save-cwd: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         save-cwd: Move AC_LIBOBJ invocations to module description.
4         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         same: Move AC_LIBOBJ invocations to module description.
10         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11         * modules/same (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         safe-write: Move AC_LIBOBJ invocations to module description.
16         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18         instead of gl_SAFE_WRITE.
19         (Makefile.am): Augment lib_SOURCES.
20
21 2011-05-23  Bruno Haible  <bruno@clisp.org>
22
23         safe-read: Move AC_LIBOBJ invocations to module description.
24         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
25         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
26         of gl_SAFE_READ.
27         (Makefile.am): Augment lib_SOURCES.
28
29 2011-05-23  Bruno Haible  <bruno@clisp.org>
30
31         safe-alloc: Move AC_LIBOBJ invocations to module description.
32         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
34
35 2011-05-23  Bruno Haible  <bruno@clisp.org>
36
37         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
38         * m4/rijndael.m4: Remove file.
39         * modules/crypto/rijndael (Files): Remove it.
40         (configure.ac): Remove gl_RIJNDAEL call.
41         (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         readtokens: Move AC_LIBOBJ invocations to module description.
46         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48
49 2011-05-23  Bruno Haible  <bruno@clisp.org>
50
51         read-file: Move AC_LIBOBJ invocations to module description.
52         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
53         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
54         of gl_FUNC_READ_FILE.
55         (Makefile.am): Augment lib_SOURCES.
56
57 2011-05-23  Bruno Haible  <bruno@clisp.org>
58
59         quotearg: Move AC_LIBOBJ invocations to module description.
60         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
61         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
62
63 2011-05-23  Bruno Haible  <bruno@clisp.org>
64
65         quote: Move AC_LIBOBJ invocations to module description.
66         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
67         * modules/quote (Makefile.am): Augment lib_SOURCES.
68
69 2011-05-23  Bruno Haible  <bruno@clisp.org>
70
71         posixver: Move AC_LIBOBJ invocations to module description.
72         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
73         * modules/posixver (Makefile.am): Augment lib_SOURCES.
74
75 2011-05-23  Bruno Haible  <bruno@clisp.org>
76
77         posixtm: Move AC_LIBOBJ invocations to module description.
78         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
79         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
80
81 2011-05-23  Bruno Haible  <bruno@clisp.org>
82
83         physmem: Move AC_LIBOBJ invocations to module description.
84         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
85         * modules/physmem (Makefile.am): Augment lib_SOURCES.
86
87 2011-05-23  Bruno Haible  <bruno@clisp.org>
88
89         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
90         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
91         invocation.
92         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
93
94 2011-05-23  Bruno Haible  <bruno@clisp.org>
95
96         mpsort: Move AC_LIBOBJ invocations to module description.
97         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
98         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
99
100 2011-05-23  Bruno Haible  <bruno@clisp.org>
101
102         modechange: Move AC_LIBOBJ invocations to module description.
103         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
104         * modules/modechange (Makefile.am): Augment lib_SOURCES.
105
106 2011-05-23  Bruno Haible  <bruno@clisp.org>
107
108         mkdir-p: Move AC_LIBOBJ invocations to module description.
109         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
110         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
111
112 2011-05-23  Bruno Haible  <bruno@clisp.org>
113
114         mkancesdirs: Move AC_LIBOBJ invocations to module description.
115         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
116         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
117
118 2011-05-23  Bruno Haible  <bruno@clisp.org>
119
120         mgetgroups: Move AC_LIBOBJ invocations to module description.
121         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
122         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
123
124 2011-05-23  Bruno Haible  <bruno@clisp.org>
125
126         memxor: Move AC_LIBOBJ invocations to module description.
127         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
128         * modules/memxor (Makefile.am): Augment lib_SOURCES.
129
130 2011-05-23  Bruno Haible  <bruno@clisp.org>
131
132         memcoll: Move AC_LIBOBJ invocations to module description.
133         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
134         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
135
136 2011-05-23  Bruno Haible  <bruno@clisp.org>
137
138         memcasecmp: Move AC_LIBOBJ invocations to module description.
139         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
140         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
141
142 2011-05-23  Bruno Haible  <bruno@clisp.org>
143
144         crypto/md5: Move AC_LIBOBJ invocations to module description.
145         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
146         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
147
148 2011-05-23  Bruno Haible  <bruno@clisp.org>
149
150         crypto/md4: Move AC_LIBOBJ invocations to module description.
151         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
152         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
153
154 2011-05-23  Bruno Haible  <bruno@clisp.org>
155
156         crypto/md2: Move AC_LIBOBJ invocations to module description.
157         * m4/md2.m4: Remove file.
158         * modules/crypto/md2 (Files): Remove it.
159         (configure.ac): Remove gl_MD2 call.
160         (Makefile.am): Augment lib_SOURCES.
161
162 2011-05-23  Bruno Haible  <bruno@clisp.org>
163
164         long-options: Move AC_LIBOBJ invocations to module description.
165         * m4/long-options.m4: Remove file.
166         * modules/long-options (Files): Remove it.
167         (configure.ac): Remove gl_LONG_OPTIONS call.
168         (Makefile.am): Augment lib_SOURCES.
169
170 2011-05-23  Bruno Haible  <bruno@clisp.org>
171
172         i-ring: Move AC_LIBOBJ invocations to module description.
173         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
174         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
175
176 2011-05-23  Bruno Haible  <bruno@clisp.org>
177
178         idcache: Move AC_LIBOBJ invocations to module description.
179         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
180         * modules/idcache (Makefile.am): Augment lib_SOURCES.
181
182 2011-05-23  Bruno Haible  <bruno@clisp.org>
183
184         human: Move AC_LIBOBJ invocations to module description.
185         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
186         * modules/human (Makefile.am): Augment lib_SOURCES.
187
188 2011-05-23  Bruno Haible  <bruno@clisp.org>
189
190         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
191         * m4/hmac-sha1.m4: Remove file.
192         * modules/crypto/hmac-sha1 (Files): Remove it.
193         (configure.ac): Remove gl_HMAC_SHA1 call.
194         (Makefile.am): Augment lib_SOURCES.
195
196 2011-05-23  Bruno Haible  <bruno@clisp.org>
197
198         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
199         * m4/hmac-md5.m4: Remove file.
200         * modules/crypto/hmac-md5 (Files): Remove it.
201         (configure.ac): Remove gl_HMAC_MD5 call.
202         (Makefile.am): Augment lib_SOURCES.
203
204 2011-05-23  Bruno Haible  <bruno@clisp.org>
205
206         hash: Move AC_LIBOBJ invocations to module description.
207         * m4/hash.m4: Remove file.
208         * modules/hash (Files): Remove it.
209         (configure.ac): Remove gl_HASH call.
210         (Makefile.am): Augment lib_SOURCES.
211
212 2011-05-23  Bruno Haible  <bruno@clisp.org>
213
214         hard-locale: Move AC_LIBOBJ invocations to module description.
215         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
216         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
217
218 2011-05-23  Bruno Haible  <bruno@clisp.org>
219
220         getugroups: Move AC_LIBOBJ invocations to module description.
221         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
222         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         gettime: Move AC_LIBOBJ invocations to module description.
227         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
228         * modules/gettime (Makefile.am): Augment lib_SOURCES.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         getndelim2: Move AC_LIBOBJ invocations to module description.
233         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
234         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-23  Bruno Haible  <bruno@clisp.org>
237
238         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
239         * m4/gc-pbkdf2-sha1.m4: Remove file.
240         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
241         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
242         (Makefile.am): Augment lib_SOURCES.
243
244 2011-05-23  Bruno Haible  <bruno@clisp.org>
245
246         fts: Move AC_LIBOBJ invocations to module description.
247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
248         * modules/fts (configure.ac): ... to here.
249
250 2011-05-23  Bruno Haible  <bruno@clisp.org>
251
252         file-type: Move AC_LIBOBJ invocations to module description.
253         * m4/file-type.m4: Remove file.
254         * modules/file-type (Files): Remove it.
255         (configure.ac): Remove gl_FILE_TYPE call.
256         (Makefile.am): Augment lib_SOURCES.
257
258 2011-05-23  Bruno Haible  <bruno@clisp.org>
259
260         filenamecat*: Respect rules for use of AC_LIBOBJ.
261         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
262         Remove AC_LIBOBJ invocation.
263         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
264         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
265
266 2011-05-23  Bruno Haible  <bruno@clisp.org>
267
268         filemode: Move AC_LIBOBJ invocations to module description.
269         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
270         * modules/filemode (Makefile.am): Augment lib_SOURCES.
271
272 2011-05-23  Bruno Haible  <bruno@clisp.org>
273
274         openat-safer: Move AC_LIBOBJ invocations to module description.
275         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
276         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
277
278 2011-05-23  Bruno Haible  <bruno@clisp.org>
279
280         fcntl-safer: Move AC_LIBOBJ invocations to module description.
281         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
282         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
283
284 2011-05-23  Bruno Haible  <bruno@clisp.org>
285
286         exclude: Move AC_LIBOBJ invocations to module description.
287         * m4/exclude.m4: Remove file.
288         * modules/exclude (Files): Remove it.
289         (configure.ac): Remove gl_EXCLUDE call.
290         (Makefile.am): Augment lib_SOURCES.
291
292 2011-05-23  Bruno Haible  <bruno@clisp.org>
293
294         dirname*: Respect rules for use of AC_LIBOBJ.
295         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
296         invocations.
297         * modules/dirname (Makefile.am): Augment lib_SOURCES.
298         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
299
300 2011-05-23  Bruno Haible  <bruno@clisp.org>
301
302         dirent-safer: Move AC_LIBOBJ invocations to module description.
303         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
304         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
305
306 2011-05-23  Bruno Haible  <bruno@clisp.org>
307
308         crypto/des: Move AC_LIBOBJ invocations to module description.
309         * m4/des.m4: Remove file.
310         * modules/crypto/des (Files): Remove it.
311         (configure.ac): Remove gl_DES call.
312         (Makefile.am): Augment lib_SOURCES.
313
314 2011-05-23  Bruno Haible  <bruno@clisp.org>
315
316         cycle-check: Move AC_LIBOBJ invocations to module description.
317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
318         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
319
320 2011-05-23  Bruno Haible  <bruno@clisp.org>
321
322         c-strtold: Move AC_LIBOBJ invocations to module description.
323         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
324         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
325
326 2011-05-23  Bruno Haible  <bruno@clisp.org>
327
328         c-strtod: Move AC_LIBOBJ invocations to module description.
329         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
330         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
331
332 2011-05-23  Bruno Haible  <bruno@clisp.org>
333
334         crc: Move AC_LIBOBJ invocations to module description.
335         * m4/crc.m4: Remove file.
336         * modules/crc (Files): Remove it.
337         (configure.ac): Remove gl_CRC call.
338         (Makefile.am): Augment lib_SOURCES.
339
340 2011-05-23  Bruno Haible  <bruno@clisp.org>
341
342         close-stream: Move AC_LIBOBJ invocations to module description.
343         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
344         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
345
346 2011-05-23  Bruno Haible  <bruno@clisp.org>
347
348         closeout: Move AC_LIBOBJ invocations to module description.
349         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
350         * modules/closeout (Makefile.am): Augment lib_SOURCES.
351
352 2011-05-23  Bruno Haible  <bruno@clisp.org>
353
354         closein: Move AC_LIBOBJ invocations to module description.
355         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
356         * modules/closein (Makefile.am): Augment lib_SOURCES.
357
358 2011-05-23  Bruno Haible  <bruno@clisp.org>
359
360         cloexec: Move AC_LIBOBJ invocations to module description.
361         * m4/cloexec.m4: Remove file.
362         * modules/cloexec (Files): Remove it.
363         (configure.ac): Remove gl_CLOEXEC call.
364         (Makefile.am): Augment lib_SOURCES.
365
366 2011-05-23  Bruno Haible  <bruno@clisp.org>
367
368         check-version: Move AC_LIBOBJ invocations to module description.
369         * m4/check-version.m4: Remove file.
370         * modules/check-version (Files): Remove it.
371         (configure.ac): Remove gl_CHECK_VERSION call.
372         (Makefile.am): Augment lib_SOURCES.
373
374 2011-05-23  Bruno Haible  <bruno@clisp.org>
375
376         chdir-safer: Move AC_LIBOBJ invocations to module description.
377         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
378         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
379
380 2011-05-23  Bruno Haible  <bruno@clisp.org>
381
382         canonicalize: Move AC_LIBOBJ invocations to module description.
383         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
384         AC_LIBOBJ invocation.
385         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
386
387 2011-05-23  Bruno Haible  <bruno@clisp.org>
388
389         canon-host: Move AC_LIBOBJ invocations to module description.
390         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
391         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
392         instead of gl_CANON_HOST.
393         (Makefile.am): Augment lib_SOURCES.
394
395 2011-05-23  Bruno Haible  <bruno@clisp.org>
396
397         backupfile: Move AC_LIBOBJ invocations to module description.
398         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
399         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
400
401 2011-05-23  Bruno Haible  <bruno@clisp.org>
402
403         argmatch: Move AC_LIBOBJ invocations to module description.
404         * m4/argmatch.m4: Remove file.
405         * modules/argmatch (Files): Remove it.
406         (configure.ac): Remove gl_ARGMATCH call.
407         (Makefile.am): Augment lib_SOURCES.
408
409 2011-05-23  Bruno Haible  <bruno@clisp.org>
410
411         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
412         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
413         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
414
415 2011-05-23  Bruno Haible  <bruno@clisp.org>
416
417         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
418         * m4/arcfour.m4: Remove file.
419         * modules/crypto/arcfour (Files): Remove it.
420         (configure.ac): Remove gl_ARCFOUR call.
421         (Makefile.am): Augment lib_SOURCES.
422
423 2011-05-22  Bruno Haible  <bruno@clisp.org>
424
425         write: Move AC_LIBOBJ invocations to module description.
426         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
427         * modules/write (configure.ac): ... to here.
428
429 2011-05-22  Bruno Haible  <bruno@clisp.org>
430
431         wmemset: Move AC_LIBOBJ invocations to module description.
432         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
433         here...
434         * modules/wmemset (configure.ac): ... to here.
435
436 2011-05-22  Bruno Haible  <bruno@clisp.org>
437
438         wmemmove: Move AC_LIBOBJ invocations to module description.
439         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
440         here...
441         * modules/wmemmove (configure.ac): ... to here.
442
443 2011-05-22  Bruno Haible  <bruno@clisp.org>
444
445         wmemcpy: Move AC_LIBOBJ invocations to module description.
446         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
447         here...
448         * modules/wmemcpy (configure.ac): ... to here.
449
450 2011-05-22  Bruno Haible  <bruno@clisp.org>
451
452         wmemcmp: Move AC_LIBOBJ invocations to module description.
453         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
454         here...
455         * modules/wmemcmp (configure.ac): ... to here.
456
457 2011-05-22  Bruno Haible  <bruno@clisp.org>
458
459         wmemchr: Move AC_LIBOBJ invocations to module description.
460         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
461         here...
462         * modules/wmemchr (configure.ac): ... to here.
463
464 2011-05-22  Bruno Haible  <bruno@clisp.org>
465
466         wcswidth: Move AC_LIBOBJ invocations to module description.
467         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
468         here...
469         * modules/wcswidth (configure.ac): ... to here.
470
471 2011-05-22  Bruno Haible  <bruno@clisp.org>
472
473         wcwidth: Respect rules for use of AC_LIBOBJ.
474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
475         invocation from here...
476         * modules/wcwidth (configure.ac): ... to here.
477         (Depends-on): Update conditions.
478
479 2011-05-22  Bruno Haible  <bruno@clisp.org>
480
481         wctype: Move AC_LIBOBJ invocations to module description.
482         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
483         invocation from here...
484         * modules/wctype (configure.ac): ... to here.
485         (Depends-on): Update conditions.
486
487 2011-05-22  Bruno Haible  <bruno@clisp.org>
488
489         wctrans: Move AC_LIBOBJ invocations to module description.
490         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
491         invocation from here...
492         * modules/wctrans (configure.ac): ... to here.
493
494 2011-05-22  Bruno Haible  <bruno@clisp.org>
495
496         wctomb: Move AC_LIBOBJ invocations to module description.
497         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
498         invocations from here...
499         * modules/wctomb (configure.ac): ... to here.
500
501 2011-05-22  Bruno Haible  <bruno@clisp.org>
502
503         wctob: Move AC_LIBOBJ invocations to module description.
504         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
505         gl_PREREQ_WCTOB invocations from here...
506         * modules/wctob (configure.ac): ... to here.
507         (Depends-on): Update conditions.
508
509 2011-05-22  Bruno Haible  <bruno@clisp.org>
510
511         wcsxfrm: Move AC_LIBOBJ invocations to module description.
512         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
513         here...
514         * modules/wcsxfrm (configure.ac): ... to here.
515
516 2011-05-22  Bruno Haible  <bruno@clisp.org>
517
518         wcstok: Move AC_LIBOBJ invocations to module description.
519         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
520         * modules/wcstok (configure.ac): ... to here.
521
522 2011-05-22  Bruno Haible  <bruno@clisp.org>
523
524         wcsstr: Move AC_LIBOBJ invocations to module description.
525         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
526         * modules/wcsstr (configure.ac): ... to here.
527
528 2011-05-22  Bruno Haible  <bruno@clisp.org>
529
530         wcsspn: Move AC_LIBOBJ invocations to module description.
531         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
532         * modules/wcsspn (configure.ac): ... to here.
533
534 2011-05-22  Bruno Haible  <bruno@clisp.org>
535
536         wcsrtombs: Move AC_LIBOBJ invocations to module description.
537         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
538         gl_PREREQ_WCSRTOMBS invocations from here...
539         * modules/wcsrtombs (configure.ac): ... to here.
540
541 2011-05-22  Bruno Haible  <bruno@clisp.org>
542
543         wcsrchr: Move AC_LIBOBJ invocations to module description.
544         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
545         here...
546         * modules/wcsrchr (configure.ac): ... to here.
547
548 2011-05-22  Bruno Haible  <bruno@clisp.org>
549
550         wcspbrk: Move AC_LIBOBJ invocations to module description.
551         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
552         here...
553         * modules/wcspbrk (configure.ac): ... to here.
554
555 2011-05-22  Bruno Haible  <bruno@clisp.org>
556
557         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
558         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
559         gl_PREREQ_WCSNRTOMBS invocations from here...
560         * modules/wcsnrtombs (configure.ac): ... to here.
561
562 2011-05-22  Bruno Haible  <bruno@clisp.org>
563
564         wcsnlen: Move AC_LIBOBJ invocations to module description.
565         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
566         here...
567         * modules/wcsnlen (configure.ac): ... to here.
568
569 2011-05-22  Bruno Haible  <bruno@clisp.org>
570
571         wcsncpy: Move AC_LIBOBJ invocations to module description.
572         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
573         here...
574         * modules/wcsncpy (configure.ac): ... to here.
575
576 2011-05-22  Bruno Haible  <bruno@clisp.org>
577
578         wcsncmp: Move AC_LIBOBJ invocations to module description.
579         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
580         here...
581         * modules/wcsncmp (configure.ac): ... to here.
582
583 2011-05-22  Bruno Haible  <bruno@clisp.org>
584
585         wcsncat: Move AC_LIBOBJ invocations to module description.
586         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
587         here...
588         * modules/wcsncat (configure.ac): ... to here.
589
590 2011-05-22  Bruno Haible  <bruno@clisp.org>
591
592         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
593         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
594         from here...
595         * modules/wcsncasecmp (configure.ac): ... to here.
596
597 2011-05-22  Bruno Haible  <bruno@clisp.org>
598
599         wcslen: Move AC_LIBOBJ invocations to module description.
600         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
601         * modules/wcslen (configure.ac): ... to here.
602
603 2011-05-22  Bruno Haible  <bruno@clisp.org>
604
605         wcsdup: Move AC_LIBOBJ invocations to module description.
606         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
607         * modules/wcsdup (configure.ac): ... to here.
608
609 2011-05-22  Bruno Haible  <bruno@clisp.org>
610
611         wcscspn: Move AC_LIBOBJ invocations to module description.
612         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
613         here...
614         * modules/wcscspn (configure.ac): ... to here.
615
616 2011-05-22  Bruno Haible  <bruno@clisp.org>
617
618         wcscpy: Move AC_LIBOBJ invocations to module description.
619         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
620         * modules/wcscpy (configure.ac): ... to here.
621
622 2011-05-22  Bruno Haible  <bruno@clisp.org>
623
624         wcscoll: Move AC_LIBOBJ invocations to module description.
625         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
626         here...
627         * modules/wcscoll (configure.ac): ... to here.
628
629 2011-05-22  Bruno Haible  <bruno@clisp.org>
630
631         wcscmp: Move AC_LIBOBJ invocations to module description.
632         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
633         * modules/wcscmp (configure.ac): ... to here.
634
635 2011-05-22  Bruno Haible  <bruno@clisp.org>
636
637         wcschr: Move AC_LIBOBJ invocations to module description.
638         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
639         * modules/wcschr (configure.ac): ... to here.
640
641 2011-05-22  Bruno Haible  <bruno@clisp.org>
642
643         wcscat: Move AC_LIBOBJ invocations to module description.
644         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
645         * modules/wcscat (configure.ac): ... to here.
646
647 2011-05-22  Bruno Haible  <bruno@clisp.org>
648
649         wcscasecmp: Move AC_LIBOBJ invocations to module description.
650         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
651         here...
652         * modules/wcscasecmp (configure.ac): ... to here.
653
654 2011-05-22  Bruno Haible  <bruno@clisp.org>
655
656         wcrtomb: Move AC_LIBOBJ invocations to module description.
657         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
658         invocations from here...
659         * modules/wcrtomb (configure.ac): ... to here.
660
661 2011-05-22  Bruno Haible  <bruno@clisp.org>
662
663         wcpncpy: Move AC_LIBOBJ invocations to module description.
664         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
665         here...
666         * modules/wcpncpy (configure.ac): ... to here.
667
668 2011-05-22  Bruno Haible  <bruno@clisp.org>
669
670         wcpcpy: Move AC_LIBOBJ invocations to module description.
671         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
672         * modules/wcpcpy (configure.ac): ... to here.
673
674 2011-05-22  Bruno Haible  <bruno@clisp.org>
675
676         waitpid: Move AC_LIBOBJ invocations to module description.
677         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
678         invocation from here...
679         * modules/waitpid (configure.ac): ... to here.
680
681 2011-05-22  Bruno Haible  <bruno@clisp.org>
682
683         utimensat: Move AC_LIBOBJ invocations to module description.
684         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
685         here...
686         * modules/utimensat (configure.ac): ... to here.
687
688 2011-05-22  Bruno Haible  <bruno@clisp.org>
689
690         usleep: Move AC_LIBOBJ invocations to module description.
691         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
692         here...
693         * modules/usleep (configure.ac): ... to here.
694
695 2011-05-22  Bruno Haible  <bruno@clisp.org>
696
697         unlockpt: Move AC_LIBOBJ invocations to module description.
698         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
699         gl_PREREQ_UNLOCKPT invocations from here...
700         * modules/unlockpt (configure.ac): ... to here.
701
702 2011-05-22  Bruno Haible  <bruno@clisp.org>
703
704         unlink: Respect rules for use of AC_LIBOBJ.
705         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
706         * modules/unlink (configure.ac): ... to here.
707
708 2011-05-22  Bruno Haible  <bruno@clisp.org>
709
710         uname: Move AC_LIBOBJ invocations to module description.
711         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
713         here...
714         * modules/uname (configure.ac): ... to here.
715
716 2011-05-22  Bruno Haible  <bruno@clisp.org>
717
718         ttyname_r: Move AC_LIBOBJ invocations to module description.
719         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
720         gl_PREREQ_TTYNAME_R invocations from here...
721         * modules/ttyname_r (configure.ac): ... to here.
722
723 2011-05-22  Bruno Haible  <bruno@clisp.org>
724
725         tsearch: Move AC_LIBOBJ invocations to module description.
726         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
727         invocations from here...
728         * modules/tsearch (configure.ac): ... to here.
729
730 2011-05-22  Bruno Haible  <bruno@clisp.org>
731
732         towctrans: Move AC_LIBOBJ invocations to module description.
733         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
734         AC_LIBOBJ invocation from here...
735         * modules/towctrans (configure.ac): ... to here.
736
737 2011-05-22  Bruno Haible  <bruno@clisp.org>
738
739         tmpfile: Move AC_LIBOBJ invocations to module description.
740         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
741         invocations from here...
742         * modules/tmpfile (configure.ac): ... to here.
743
744 2011-05-22  Bruno Haible  <bruno@clisp.org>
745
746         times: Move AC_LIBOBJ invocations to module description.
747         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
748         * modules/times (configure.ac): ... to here.
749
750 2011-05-22  Bruno Haible  <bruno@clisp.org>
751
752         time_r: Move AC_LIBOBJ invocations to module description.
753         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
754         invocations from here...
755         * modules/time_r (configure.ac): ... to here.
756
757 2011-05-22  Bruno Haible  <bruno@clisp.org>
758
759         timegm: Move AC_LIBOBJ invocations to module description.
760         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
761         invocations from here...
762         * modules/timegm (configure.ac): ... to here.
763
764 2011-05-22  Bruno Haible  <bruno@clisp.org>
765
766         tcgetsid: Move AC_LIBOBJ invocations to module description.
767         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
768         and gl_PREREQ_TCGETSID invocations from here...
769         * modules/tcgetsid (configure.ac): ... to here.
770         (Depends-on): Update conditions.
771
772 2011-05-22  Bruno Haible  <bruno@clisp.org>
773
774         symlinkat: Move AC_LIBOBJ invocations to module description.
775         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
776         here...
777         * modules/symlinkat (configure.ac): ... to here.
778
779 2011-05-22  Bruno Haible  <bruno@clisp.org>
780
781         symlink: Move AC_LIBOBJ invocations to module description.
782         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
783         here...
784         * modules/symlink (configure.ac): ... to here.
785
786 2011-05-22  Bruno Haible  <bruno@clisp.org>
787
788         strverscmp: Move AC_LIBOBJ invocations to module description.
789         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
791         from here...
792         * modules/strverscmp (configure.ac): ... to here.
793
794 2011-05-22  Bruno Haible  <bruno@clisp.org>
795
796         strtok_r: Move AC_LIBOBJ invocations to module description.
797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
798         and gl_PREREQ_STRTOK_R invocations from here...
799         * modules/strtok_r (configure.ac): ... to here.
800         (Depends-on): Update conditions.
801
802 2011-05-22  Bruno Haible  <bruno@clisp.org>
803
804         strtoumax: Move AC_LIBOBJ invocations to module description.
805         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
807         from here...
808         * modules/strtoumax (configure.ac): ... to here.
809
810 2011-05-22  Bruno Haible  <bruno@clisp.org>
811
812         strtoimax: Move AC_LIBOBJ invocations to module description.
813         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
815         from here...
816         * modules/strtoimax (configure.ac): ... to here.
817
818 2011-05-22  Bruno Haible  <bruno@clisp.org>
819
820         strtoull: Move AC_LIBOBJ invocations to module description.
821         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
823         from here...
824         * modules/strtoull (configure.ac): ... to here.
825
826 2011-05-22  Bruno Haible  <bruno@clisp.org>
827
828         strtoll: Move AC_LIBOBJ invocations to module description.
829         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
831         here...
832         * modules/strtoll (configure.ac): ... to here.
833
834 2011-05-22  Bruno Haible  <bruno@clisp.org>
835
836         strtoul: Move AC_LIBOBJ invocations to module description.
837         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
838         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
839         * modules/strtoul (configure.ac): ... to here.
840
841 2011-05-22  Bruno Haible  <bruno@clisp.org>
842
843         strtol: Move AC_LIBOBJ invocations to module description.
844         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
845         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
846         * modules/strtol (configure.ac): ... to here.
847
848 2011-05-22  Bruno Haible  <bruno@clisp.org>
849
850         strtod: Move AC_LIBOBJ invocations to module description.
851         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
852         invocations from here...
853         * modules/strtod (configure.ac): ... to here.
854
855 2011-05-22  Bruno Haible  <bruno@clisp.org>
856
857         strstr*: Move AC_LIBOBJ invocations to module description.
858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
859         invocations from here...
860         * modules/strstr-simple (configure.ac): ... to here.
861         * modules/strstr (configure.ac): ... and here.
862
863 2011-05-22  Bruno Haible  <bruno@clisp.org>
864
865         strsignal: Move AC_LIBOBJ invocations to module description.
866         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
867         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
868         * modules/strsignal (configure.ac): ... to here.
869         (Depends-on): Update conditions.
870
871 2011-05-22  Bruno Haible  <bruno@clisp.org>
872
873         strsep: Move AC_LIBOBJ invocations to module description.
874         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
876         here...
877         * modules/strsep (configure.ac): ... to here.
878
879 2011-05-22  Bruno Haible  <bruno@clisp.org>
880
881         strptime: Move AC_LIBOBJ invocations to module description.
882         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
883         gl_PREREQ_STRPTIME invocations from here...
884         * modules/strptime (configure.ac): ... to here.
885
886 2011-05-22  Bruno Haible  <bruno@clisp.org>
887
888         strpbrk: Move AC_LIBOBJ invocations to module description.
889         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
891         here...
892         * modules/strpbrk (configure.ac): ... to here.
893
894 2011-05-22  Bruno Haible  <bruno@clisp.org>
895
896         strnlen: Move AC_LIBOBJ invocations to module description.
897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
898         invocations from here...
899         * modules/strnlen (configure.ac): ... to here.
900
901 2011-05-22  Bruno Haible  <bruno@clisp.org>
902
903         strndup: Move AC_LIBOBJ invocations to module description.
904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
905         invocations from here...
906         * modules/strndup (configure.ac): ... to here.
907         (Depends-on): Update conditions.
908
909 2011-05-22  Bruno Haible  <bruno@clisp.org>
910
911         strncat: Move AC_LIBOBJ invocations to module description.
912         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
913         invocations from here...
914         * modules/strncat (configure.ac): ... to here.
915
916 2011-05-22  Bruno Haible  <bruno@clisp.org>
917
918         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
919         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
920         invocations from here...
921         * modules/strdup (configure.ac): ... to here.
922         * modules/strdup-posix (configure.ac): ... and here.
923
924 2011-05-22  Bruno Haible  <bruno@clisp.org>
925
926         strcspn: Move AC_LIBOBJ invocations to module description.
927         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
929         here...
930         * modules/strcspn (configure.ac): ... to here.
931
932 2011-05-22  Bruno Haible  <bruno@clisp.org>
933
934         strchrnul: Move AC_LIBOBJ invocations to module description.
935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
936         gl_PREREQ_STRCHRNUL invocations from here...
937         * modules/strchrnul (configure.ac): ... to here.
938
939 2011-05-22  Bruno Haible  <bruno@clisp.org>
940
941         strcasestr*: Move AC_LIBOBJ invocations to module description.
942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
943         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
944         * modules/strcasestr-simple (configure.ac): ... to here.
945         * modules/strcasestr (configure.ac): ... and here.
946
947 2011-05-22  Bruno Haible  <bruno@clisp.org>
948
949         strcase: Move AC_LIBOBJ invocations to module description.
950         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
951         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
952         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
953         gl_PREREQ_STRNCASECMP invocations from here...
954         * modules/strcase (configure.ac): ... to here.
955
956 2011-05-22  Bruno Haible  <bruno@clisp.org>
957
958         stpncpy: Move AC_LIBOBJ invocations to module description.
959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
960         here...
961         * modules/stpncpy (configure.ac): ... to here.
962
963 2011-05-22  Bruno Haible  <bruno@clisp.org>
964
965         stpcpy: Move AC_LIBOBJ invocations to module description.
966         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
967         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
968         here...
969         * modules/stpcpy (configure.ac): ... to here.
970
971 2011-05-21  Bruno Haible  <bruno@clisp.org>
972
973         stat: Move AC_LIBOBJ invocations to module description.
974         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
975         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
976         here...
977         * modules/stat (configure.ac): ... to here.
978
979 2011-05-21  Bruno Haible  <bruno@clisp.org>
980
981         sleep: Move AC_LIBOBJ invocations to module description.
982         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
983         * modules/sleep (configure.ac): ... to here.
984
985 2011-05-21  Bruno Haible  <bruno@clisp.org>
986
987         signbit: Move AC_LIBOBJ invocations to module description.
988         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
989         * modules/signbit (configure.ac): ... to here.
990
991 2011-05-21  Bruno Haible  <bruno@clisp.org>
992
993         sigprocmask: Move AC_LIBOBJ invocations to module description.
994         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
995         gl_PREREQ_SIGPROMASK invocations from here...
996         * modules/sigprocmask (configure.ac): ... to here.
997
998 2011-05-21  Bruno Haible  <bruno@clisp.org>
999
1000         sigaction: Move AC_LIBOBJ invocations to module description.
1001         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1002         gl_PREREQ_SIGACTION invocations from here...
1003         * modules/sigaction (configure.ac): ... to here.
1004
1005 2011-05-21  Bruno Haible  <bruno@clisp.org>
1006
1007         sig2str: Move AC_LIBOBJ invocations to module description.
1008         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1010         here...
1011         * modules/sig2str (configure.ac): ... to here.
1012
1013 2011-05-21  Bruno Haible  <bruno@clisp.org>
1014
1015         setlocale: Move AC_LIBOBJ invocations to module description.
1016         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1017         gl_PREREQ_SETLOCALE invocations from here...
1018         * modules/setlocale (configure.ac): ... to here.
1019
1020 2011-05-21  Bruno Haible  <bruno@clisp.org>
1021
1022         unsetenv: Move AC_LIBOBJ invocations to module description.
1023         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1024         and gl_PREREQ_UNSETENV invocations from here...
1025         * modules/unsetenv (configure.ac): ... to here.
1026         (Depends-on): Update.
1027
1028 2011-05-21  Bruno Haible  <bruno@clisp.org>
1029
1030         setenv: Move AC_LIBOBJ invocations to module description.
1031         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1032         here...
1033         * modules/setenv (configure.ac): ... to here.
1034
1035 2011-05-21  Bruno Haible  <bruno@clisp.org>
1036
1037         selinux-h: Move AC_LIBOBJ invocations to module description.
1038         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1039         AC_LIBOBJ invocation from here...
1040         * modules/selinux-h (configure.ac): ... to here.
1041
1042 2011-05-21  Bruno Haible  <bruno@clisp.org>
1043
1044         select: Respect rules for use of AC_LIBOBJ.
1045         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1046         here...
1047         * modules/select (configure.ac): ... to here.
1048
1049 2011-05-21  Bruno Haible  <bruno@clisp.org>
1050
1051         scandir: Move AC_LIBOBJ invocations to module description.
1052         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1053         invocations from here...
1054         * modules/scandir (configure.ac): ... to here.
1055
1056 2011-05-21  Bruno Haible  <bruno@clisp.org>
1057
1058         rpmatch: Move AC_LIBOBJ invocations to module description.
1059         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1061         here...
1062         * modules/rpmatch (configure.ac): ... to here.
1063
1064 2011-05-21  Bruno Haible  <bruno@clisp.org>
1065
1066         rmdir: Respect rules for use of AC_LIBOBJ.
1067         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1068         * modules/rmdir (configure.ac): ... to here.
1069
1070 2011-05-21  Bruno Haible  <bruno@clisp.org>
1071
1072         renameat: Move AC_LIBOBJ invocations to module description.
1073         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1074         here...
1075         * modules/renameat (configure.ac): ... to here.
1076
1077 2011-05-21  Bruno Haible  <bruno@clisp.org>
1078
1079         rename: Respect rules for use of AC_LIBOBJ.
1080         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1081         here...
1082         * modules/rename (configure.ac): ... to here.
1083
1084 2011-05-21  Bruno Haible  <bruno@clisp.org>
1085
1086         remove: Move AC_LIBOBJ invocations to module description.
1087         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1088         here...
1089         * modules/remove (configure.ac): ... to here.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1094         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1095         macro.
1096         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1097         * modules/relocatable-lib (configure.ac): ... to here.
1098         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1099         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1100
1101 2011-05-21  Bruno Haible  <bruno@clisp.org>
1102
1103         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1104         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1105         here...
1106         * modules/relocatable-prog (configure.ac): ... to here.
1107
1108 2011-05-21  Bruno Haible  <bruno@clisp.org>
1109
1110         regex: Move AC_LIBOBJ invocations to module description.
1111         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1112         invocations from here...
1113         * modules/regex (configure.ac): ... to here.
1114
1115 2011-05-21  Bruno Haible  <bruno@clisp.org>
1116
1117         realloc-*: Move AC_LIBOBJ invocations to module description.
1118         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1119         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1120         AC_LIBOBJ invocations from here...
1121         * modules/realloc-gnu (configure.ac): ... to here.
1122         * modules/realloc-posix (configure.ac): ... and here.
1123
1124 2011-05-21  Bruno Haible  <bruno@clisp.org>
1125
1126         readutmp: Move AC_LIBOBJ invocations to module description.
1127         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1128         * modules/readutmp (configure.ac): ... to here.
1129
1130 2011-05-21  Bruno Haible  <bruno@clisp.org>
1131
1132         readlinkat: Move AC_LIBOBJ invocations to module description.
1133         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1134         here...
1135         * modules/readlinkat (configure.ac): ... to here.
1136
1137 2011-05-21  Bruno Haible  <bruno@clisp.org>
1138
1139         readlink: Move AC_LIBOBJ invocations to module description.
1140         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1141         gl_PREREQ_READLINK invocations from here...
1142         * modules/readlink (configure.ac): ... to here.
1143
1144 2011-05-21  Bruno Haible  <bruno@clisp.org>
1145
1146         readline: Move AC_LIBOBJ invocations to module description.
1147         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1148         gl_PREREQ_READLINE invocations from here...
1149         * modules/readline (configure.ac): ... to here.
1150
1151 2011-05-21  Bruno Haible  <bruno@clisp.org>
1152
1153         read: Move AC_LIBOBJ invocations to module description.
1154         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1155         * modules/read (configure.ac): ... to here.
1156
1157 2011-05-21  Bruno Haible  <bruno@clisp.org>
1158
1159         rawmemchr: Move AC_LIBOBJ invocations to module description.
1160         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1162         from here...
1163         * modules/rawmemchr (configure.ac): ... to here.
1164
1165 2011-05-21  Bruno Haible  <bruno@clisp.org>
1166
1167         random_r: Move AC_LIBOBJ invocations to module description.
1168         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1169         gl_PREREQ_RANDOM_R invocations from here...
1170         * modules/random_r (configure.ac): ... to here.
1171
1172 2011-05-21  Bruno Haible  <bruno@clisp.org>
1173
1174         pwrite: Move AC_LIBOBJ invocations to module description.
1175         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1176         * modules/pwrite (configure.ac): ... to here.
1177
1178 2011-05-21  Bruno Haible  <bruno@clisp.org>
1179
1180         putenv: Move AC_LIBOBJ invocations to module description.
1181         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1182         * modules/putenv (configure.ac): ... to here.
1183
1184 2011-05-21  Bruno Haible  <bruno@clisp.org>
1185
1186         login_tty: Move AC_LIBOBJ invocations to module description.
1187         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1188         * modules/login_tty (configure.ac): ... to here.
1189
1190 2011-05-21  Bruno Haible  <bruno@clisp.org>
1191
1192         openpty: Move AC_LIBOBJ invocations to module description.
1193         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1194         * modules/openpty (configure.ac): ... to here.
1195
1196 2011-05-21  Bruno Haible  <bruno@clisp.org>
1197
1198         forkpty: Move AC_LIBOBJ invocations to module description.
1199         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1200         * modules/forkpty (configure.ac): ... to here.
1201
1202 2011-05-21  Bruno Haible  <bruno@clisp.org>
1203
1204         ptsname: Move AC_LIBOBJ invocations to module description.
1205         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1206         invocations from here...
1207         * modules/ptsname (configure.ac): ... to here.
1208
1209 2011-05-21  Bruno Haible  <bruno@clisp.org>
1210
1211         pread: Move AC_LIBOBJ invocations to module description.
1212         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1213         * modules/pread (configure.ac): ... to here.
1214
1215 2011-05-21  Bruno Haible  <bruno@clisp.org>
1216
1217         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1218         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1219         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1220         * modules/posix_spawn (configure.ac): ... to here.
1221         * modules/posix_spawnp (configure.ac): ... and here.
1222
1223 2011-05-21  Bruno Haible  <bruno@clisp.org>
1224
1225         popen: Move AC_LIBOBJ invocations to module description.
1226         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1227         invocations from here...
1228         * modules/popen (configure.ac): ... to here.
1229
1230 2011-05-21  Bruno Haible  <bruno@clisp.org>
1231
1232         poll: Move AC_LIBOBJ invocations to module description.
1233         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1234         invocations from here...
1235         * modules/poll (configure.ac): ... to here.
1236
1237 2011-05-21  Bruno Haible  <bruno@clisp.org>
1238
1239         pipe-posix: Move AC_LIBOBJ invocations to module description.
1240         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1241         * modules/pipe-posix (configure.ac): ... to here.
1242
1243 2011-05-21  Bruno Haible  <bruno@clisp.org>
1244
1245         openat: Respect rules for use of AC_LIBOBJ.
1246         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1247         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1248         * modules/openat (configure.ac): ... to here.
1249
1250 2011-05-21  Bruno Haible  <bruno@clisp.org>
1251
1252         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1253         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1254         invocation from here...
1255         * modules/obstack-printf (configure.ac): ... to here.
1256         * modules/obstack-printf-posix (configure.ac): ... and here.
1257
1258 2011-05-21  Bruno Haible  <bruno@clisp.org>
1259
1260         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1261         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1262         from here...
1263         * modules/nl_langinfo (configure.ac): ... to here.
1264
1265 2011-05-21  Bruno Haible  <bruno@clisp.org>
1266
1267         nanosleep: Move AC_LIBOBJ invocations to module description.
1268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1269         gl_PREREQ_NANOSLEEP invocations from here...
1270         * modules/nanosleep (configure.ac): ... to here.
1271
1272 2011-05-21  Bruno Haible  <bruno@clisp.org>
1273
1274         mountlist: Move AC_LIBOBJ invocations to module description.
1275         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1276         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1277         * modules/mountlist (configure.ac): ... to here.
1278
1279 2011-05-21  Bruno Haible  <bruno@clisp.org>
1280
1281         mktime: Respect rules for use of AC_LIBOBJ.
1282         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1283         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1284         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1285         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1286         * modules/mktime (configure.ac): ... to here.
1287         * modules/mktime-internal (configure.ac): ... and here.
1288         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1289
1290 2011-05-21  Bruno Haible  <bruno@clisp.org>
1291
1292         mkstemps: Move AC_LIBOBJ invocations to module description.
1293         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1294         here...
1295         * modules/mkstemps (configure.ac): ... to here.
1296
1297 2011-05-21  Bruno Haible  <bruno@clisp.org>
1298
1299         mkstemp: Move AC_LIBOBJ invocations to module description.
1300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1301         gl_PREREQ_MKSTEMP invocations from here...
1302         * modules/mkstemp (configure.ac): ... to here.
1303
1304 2011-05-21  Bruno Haible  <bruno@clisp.org>
1305
1306         mkostemps: Move AC_LIBOBJ invocations to module description.
1307         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1308         here...
1309         * modules/mkostemps (configure.ac): ... to here.
1310
1311 2011-05-21  Bruno Haible  <bruno@clisp.org>
1312
1313         mkostemp: Move AC_LIBOBJ invocations to module description.
1314         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1315         gl_PREREQ_MKOSTEMP invocations from here...
1316         * modules/mkostemp (configure.ac): ... to here.
1317
1318 2011-05-21  Bruno Haible  <bruno@clisp.org>
1319
1320         mknod: Move AC_LIBOBJ invocations to module description.
1321         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1322         * modules/mknod (configure.ac): ... to here.
1323
1324 2011-05-21  Bruno Haible  <bruno@clisp.org>
1325
1326         mkfifoat: Move AC_LIBOBJ invocations to module description.
1327         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1328         here...
1329         * modules/mkfifoat (configure.ac): ... to here.
1330
1331 2011-05-21  Bruno Haible  <bruno@clisp.org>
1332
1333         mkfifo: Respect rules for use of AC_LIBOBJ.
1334         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1335         here...
1336         * modules/mkfifo (configure.ac): ... to here.
1337
1338 2011-05-21  Bruno Haible  <bruno@clisp.org>
1339
1340         mkdtemp: Move AC_LIBOBJ invocations to module description.
1341         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1342         invocations from here...
1343         * modules/mkdtemp (configure.ac): ... to here.
1344
1345 2011-05-21  Bruno Haible  <bruno@clisp.org>
1346
1347         mkdir: Move AC_LIBOBJ invocations to module description.
1348         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1349         * modules/mkdir (configure.ac): ... to here.
1350
1351 2011-05-21  Bruno Haible  <bruno@clisp.org>
1352
1353         memset: Move AC_LIBOBJ invocations to module description.
1354         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1355         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1356         here...
1357         * modules/memset (configure.ac): ... to here.
1358
1359 2011-05-21  Bruno Haible  <bruno@clisp.org>
1360
1361         memrchr: Move AC_LIBOBJ invocations to module description.
1362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1364         here...
1365         * modules/memrchr (configure.ac): ... to here.
1366
1367 2011-05-21  Bruno Haible  <bruno@clisp.org>
1368
1369         mempcpy: Move AC_LIBOBJ invocations to module description.
1370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1372         here...
1373         * modules/mempcpy (configure.ac): ... to here.
1374
1375 2011-05-21  Bruno Haible  <bruno@clisp.org>
1376
1377         memmove: Move AC_LIBOBJ invocations to module description.
1378         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1380         here...
1381         * modules/memmove (configure.ac): ... to here.
1382
1383 2011-05-21  Bruno Haible  <bruno@clisp.org>
1384
1385         memmem*: Move AC_LIBOBJ invocations to module description.
1386         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1387         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1388         here...
1389         (gl_FUNC_MEMMEM): ... and here...
1390         * modules/memmem-simple (configure.ac): ... to here.
1391         * modules/memmem (configure.ac): ... and here.
1392
1393 2011-05-21  Bruno Haible  <bruno@clisp.org>
1394
1395         memcpy: Move AC_LIBOBJ invocations to module description.
1396         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1398         here...
1399         * modules/memcpy (configure.ac): ... to here.
1400
1401 2011-05-21  Bruno Haible  <bruno@clisp.org>
1402
1403         memcmp: Simplify autoconf macro.
1404         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1405         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1406         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1407
1408 2011-05-21  Bruno Haible  <bruno@clisp.org>
1409
1410         memcmp: Move AC_LIBOBJ invocations to module description.
1411         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1412         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1413         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1414         * modules/memcmp (configure.ac): ... to here.
1415         (Depends-on): Update conditions.
1416
1417 2011-05-21  Bruno Haible  <bruno@clisp.org>
1418
1419         memchr: Respect rules for use of AC_LIBOBJ.
1420         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1421         invocations from here...
1422         * modules/memchr (configure.ac): ... to here.
1423
1424 2011-05-21  Bruno Haible  <bruno@clisp.org>
1425
1426         mbtowc: Move AC_LIBOBJ invocations to module description.
1427         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1428         invocations from here...
1429         * modules/mbtowc (configure.ac): ... to here.
1430
1431 2011-05-21  Bruno Haible  <bruno@clisp.org>
1432
1433         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1434         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1435         gl_PREREQ_MBSRTOWCS invocations from here...
1436         * modules/mbsrtowcs (configure.ac): ... to here.
1437
1438 2011-05-21  Bruno Haible  <bruno@clisp.org>
1439
1440         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1441         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1442         gl_PREREQ_MBSNRTOWCS invocations from here...
1443         * modules/mbsnrtowcs (configure.ac): ... to here.
1444
1445 2011-05-21  Bruno Haible  <bruno@clisp.org>
1446
1447         mbsinit: Move AC_LIBOBJ invocations to module description.
1448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1449         invocations from here...
1450         * modules/mbsinit (configure.ac): ... to here.
1451
1452 2011-05-21  Bruno Haible  <bruno@clisp.org>
1453
1454         mbrlen: Move AC_LIBOBJ invocations to module description.
1455         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1456         invocations from here...
1457         * modules/mbrlen (configure.ac): ... to here.
1458
1459 2011-05-21  Bruno Haible  <bruno@clisp.org>
1460
1461         mbrtowc: Respect rules for use of AC_LIBOBJ.
1462         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1463         invocations from here...
1464         * modules/mbrtowc (configure.ac): ... to here.
1465
1466 2011-05-21  Bruno Haible  <bruno@clisp.org>
1467
1468         malloc-*: Move AC_LIBOBJ invocations to module description.
1469         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1470         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1471         AC_LIBOBJ invocations from here...
1472         * modules/malloc-gnu (configure.ac): ... to here.
1473         * modules/malloc-posix (configure.ac): ... and here.
1474
1475 2011-05-21  Bruno Haible  <bruno@clisp.org>
1476
1477         lstat, openat: Respect rules for use of AC_LIBOBJ.
1478         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1480         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1481         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1482         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1483         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1484         here.
1485         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1486
1487 2011-05-21  Bruno Haible  <bruno@clisp.org>
1488
1489         lseek: Move AC_LIBOBJ invocations to module description.
1490         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1491         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1492         * modules/lseek (configure.ac): ... to here.
1493
1494 2011-05-21  Bruno Haible  <bruno@clisp.org>
1495
1496         linkat: Move AC_LIBOBJ invocations to module description.
1497         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1498         here...
1499         * modules/linkat (configure.ac): ... to here.
1500
1501 2011-05-21  Bruno Haible  <bruno@clisp.org>
1502
1503         link: Respect rules for use of AC_LIBOBJ.
1504         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1505         * modules/link (configure.ac): ... to here.
1506
1507 2011-05-21  Bruno Haible  <bruno@clisp.org>
1508
1509         lchown: Move AC_LIBOBJ invocations to module description.
1510         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1511         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1512         * modules/lchown (configure.ac): ... to here.
1513
1514 2011-05-21  Bruno Haible  <bruno@clisp.org>
1515
1516         iswctype: Move AC_LIBOBJ invocations to module description.
1517         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1518         here...
1519         * modules/iswctype (configure.ac): ... to here.
1520
1521 2011-05-21  Bruno Haible  <bruno@clisp.org>
1522
1523         iswblank: Move AC_LIBOBJ invocations to module description.
1524         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1525         here...
1526         * modules/iswblank (configure.ac): ... to here.
1527
1528 2011-05-21  Bruno Haible  <bruno@clisp.org>
1529
1530         atanl: Move AC_LIBOBJ invocations to module description.
1531         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1532         * modules/atanl (configure.ac): ... to here.
1533
1534 2011-05-21  Bruno Haible  <bruno@clisp.org>
1535
1536         acosl: Move AC_LIBOBJ invocations to module description.
1537         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1538         * modules/acosl (configure.ac): ... to here.
1539
1540 2011-05-21  Bruno Haible  <bruno@clisp.org>
1541
1542         asinl: Respect rules for use of AC_LIBOBJ.
1543         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1544         * modules/asinl (configure.ac): ... to here.
1545
1546 2011-05-21  Bruno Haible  <bruno@clisp.org>
1547
1548         tanl: Move AC_LIBOBJ invocations to module description.
1549         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1550         * modules/tanl (configure.ac): ... to here.
1551
1552 2011-05-21  Bruno Haible  <bruno@clisp.org>
1553
1554         cosl: Move AC_LIBOBJ invocations to module description.
1555         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1556         * modules/cosl (configure.ac): ... to here.
1557
1558 2011-05-21  Bruno Haible  <bruno@clisp.org>
1559
1560         sinl: Move AC_LIBOBJ invocations to module description.
1561         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1562         * modules/sinl (configure.ac): ... to here.
1563
1564 2011-05-21  Bruno Haible  <bruno@clisp.org>
1565
1566         logl: Move AC_LIBOBJ invocations to module description.
1567         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1568         * modules/logl (configure.ac): ... to here.
1569
1570 2011-05-21  Bruno Haible  <bruno@clisp.org>
1571
1572         expl: Move AC_LIBOBJ invocations to module description.
1573         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1574         * modules/expl (configure.ac): ... to here.
1575
1576 2011-05-21  Bruno Haible  <bruno@clisp.org>
1577
1578         roundl: Move AC_LIBOBJ invocations to module description.
1579         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1580         * modules/roundl (configure.ac): ... to here.
1581
1582 2011-05-21  Bruno Haible  <bruno@clisp.org>
1583
1584         round: Move AC_LIBOBJ invocations to module description.
1585         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1586         * modules/round (configure.ac): ... to here.
1587
1588 2011-05-21  Bruno Haible  <bruno@clisp.org>
1589
1590         roundf: Move AC_LIBOBJ invocations to module description.
1591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1592         * modules/roundf (configure.ac): ... to here.
1593
1594 2011-05-21  Bruno Haible  <bruno@clisp.org>
1595
1596         truncl: Move AC_LIBOBJ invocations to module description.
1597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1598         * modules/truncl (configure.ac): ... to here.
1599
1600 2011-05-21  Bruno Haible  <bruno@clisp.org>
1601
1602         trunc: Move AC_LIBOBJ invocations to module description.
1603         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1604         * modules/trunc (configure.ac): ... to here.
1605
1606 2011-05-21  Bruno Haible  <bruno@clisp.org>
1607
1608         truncf: Move AC_LIBOBJ invocations to module description.
1609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1610         * modules/truncf (configure.ac): ... to here.
1611
1612 2011-05-21  Bruno Haible  <bruno@clisp.org>
1613
1614         ceill: Move AC_LIBOBJ invocations to module description.
1615         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1616         * modules/ceill (configure.ac): ... to here.
1617
1618 2011-05-21  Bruno Haible  <bruno@clisp.org>
1619
1620         ceil: Move AC_LIBOBJ invocations to module description.
1621         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1622         * modules/ceil (configure.ac): ... to here.
1623
1624 2011-05-21  Bruno Haible  <bruno@clisp.org>
1625
1626         ceilf: Move AC_LIBOBJ invocations to module description.
1627         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1628         * modules/ceilf (configure.ac): ... to here.
1629
1630 2011-05-21  Bruno Haible  <bruno@clisp.org>
1631
1632         floorl: Respect rules for use of AC_LIBOBJ.
1633         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1634         * modules/floorl (configure.ac): ... to here.
1635
1636 2011-05-21  Bruno Haible  <bruno@clisp.org>
1637
1638         floor: Respect rules for use of AC_LIBOBJ.
1639         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1640         * modules/floor (configure.ac): ... to here.
1641
1642 2011-05-21  Bruno Haible  <bruno@clisp.org>
1643
1644         floorf: Move AC_LIBOBJ invocations to module description.
1645         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1646         * modules/floorf (configure.ac): ... to here.
1647
1648 2011-05-20  Bruno Haible  <bruno@clisp.org>
1649
1650         sqrtl: Respect rules for use of AC_LIBOBJ.
1651         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1652         * modules/sqrtl (configure.ac): ... to here.
1653
1654 2011-05-20  Bruno Haible  <bruno@clisp.org>
1655
1656         ldexpl: Respect rules for use of AC_LIBOBJ.
1657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1658         * modules/ldexpl (configure.ac): ... to here.
1659
1660 2011-05-20  Bruno Haible  <bruno@clisp.org>
1661
1662         frexpl*: Respect rules for use of AC_LIBOBJ.
1663         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1664         invocation from here...
1665         * modules/frexpl (configure.ac): ... to here.
1666         * modules/frexpl-nolibm (configure.ac): ... and here.
1667
1668 2011-05-20  Bruno Haible  <bruno@clisp.org>
1669
1670         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1671         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1672         invocation from here...
1673         * modules/frexp (configure.ac): ... to here.
1674         * modules/frexp-nolibm (configure.ac): ... and here.
1675
1676 2011-05-20  Bruno Haible  <bruno@clisp.org>
1677
1678         isnan: Respect rules for use of AC_LIBOBJ.
1679         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1680         invocations here.
1681         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1682         REPLACE_ISNAN.
1683         * modules/isnand (configure.ac): Likewise.
1684         * modules/isnanl (configure.ac): Likewise.
1685
1686 2011-05-20  Bruno Haible  <bruno@clisp.org>
1687
1688         isnanl*: Respect rules for use of AC_LIBOBJ.
1689         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1690         invocation from here...
1691         * modules/isnanl (configure.ac): ... to here.
1692         * modules/isnanl-nolibm (configure.ac): ... and here.
1693
1694 2011-05-20  Bruno Haible  <bruno@clisp.org>
1695
1696         isnand*: Move AC_LIBOBJ invocations to module description.
1697         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1698         invocation from here...
1699         * modules/isnand (configure.ac): ... to here.
1700         * modules/isnand-nolibm (configure.ac): ... and here.
1701
1702 2011-05-20  Bruno Haible  <bruno@clisp.org>
1703
1704         isnanf*: Move AC_LIBOBJ invocations to module description.
1705         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1706         invocation from here...
1707         * modules/isnanf (configure.ac): ... to here.
1708         * modules/isnanf-nolibm (configure.ac): ... and here.
1709
1710 2011-05-20  Bruno Haible  <bruno@clisp.org>
1711
1712         isnan*: Separate the AC_LIBOBJ invocations.
1713         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1714         AC_LIBOBJ invocation.
1715         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1716         here.
1717         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1718         AC_LIBOBJ invocation.
1719         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1720         here.
1721         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1722         AC_LIBOBJ invocation.
1723         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1724         here.
1725         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1726
1727 2011-05-08  Bruno Haible  <bruno@clisp.org>
1728
1729         isinf: Move AC_LIBOBJ invocations to module description.
1730         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1731         * modules/isinf (configure.ac): ... to here.
1732
1733 2011-05-08  Bruno Haible  <bruno@clisp.org>
1734
1735         isfinite: Move AC_LIBOBJ invocations to module description.
1736         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1737         * modules/isfinite (configure.ac): ... to here.
1738
1739 2011-05-08  Bruno Haible  <bruno@clisp.org>
1740
1741         isblank: Move AC_LIBOBJ invocations to module description.
1742         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1743         here...
1744         * modules/isblank (configure.ac): ... to here.
1745
1746 2011-05-08  Bruno Haible  <bruno@clisp.org>
1747
1748         isapipe: Move AC_LIBOBJ invocations to module description.
1749         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1750         gl_PREREQ_ISAPIPE invocations from here...
1751         * modules/isapipe (configure.ac): ... to here.
1752         (Depends-on): Update condition.
1753
1754 2011-05-08  Bruno Haible  <bruno@clisp.org>
1755
1756         ioctl: Move AC_LIBOBJ invocations to module description.
1757         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1758         invocations from here...
1759         * modules/ioctl (configure.ac): ... to here.
1760         (Depends-on): Update condition.
1761
1762 2011-05-08  Bruno Haible  <bruno@clisp.org>
1763
1764         imaxdiv: Move AC_LIBOBJ invocations to module description.
1765         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1766         invocations from here...
1767         * modules/imaxdiv (configure.ac): ... to here.
1768
1769 2011-05-08  Bruno Haible  <bruno@clisp.org>
1770
1771         imaxabs: Move AC_LIBOBJ invocations to module description.
1772         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1773         invocations from here...
1774         * modules/imaxabs (configure.ac): ... to here.
1775
1776 2011-05-08  Bruno Haible  <bruno@clisp.org>
1777
1778         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1780         AC_LIBOBJ invocations from here...
1781         * modules/getaddrinfo (configure.ac): ... to here.
1782         (Depends-on): Add conditions.
1783
1784 2011-05-08  Bruno Haible  <bruno@clisp.org>
1785
1786         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1787         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1788         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1789         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1790         (gl_PREREQ_INET_PTON): ... from here.
1791         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1792         gl_PREREQ_INET_PTON here.
1793         (Depends-on): Update condition.
1794
1795 2011-05-08  Bruno Haible  <bruno@clisp.org>
1796
1797         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1799         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1800         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1801         (gl_PREREQ_INET_NTOP): ... from here.
1802         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1803         gl_PREREQ_INET_NTOP here.
1804         (Depends-on): Update condition.
1805
1806 2011-05-08  Bruno Haible  <bruno@clisp.org>
1807
1808         iconv_open: Move AC_LIBOBJ invocations to module description.
1809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1810         AC_LIBOBJ invocations from here...
1811         * modules/iconv_open (configure.ac): ... to here.
1812
1813 2011-05-08  Bruno Haible  <bruno@clisp.org>
1814
1815         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1816         If module 'iconv_open' is among the main modules and module
1817         'iconv_open-utf' is among the tests dependencies, then
1818         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1819         return the special iconv_t values. Therefore iconv() and iconv_close()
1820         must support these special iconv_t values, already in lib, not only in
1821         tests.
1822         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1823         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1824         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1825         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1826         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1827         (Depends-on): Add the dependencies of iconv_open-utf.
1828         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1829         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1830         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1831
1832 2011-05-08  Bruno Haible  <bruno@clisp.org>
1833
1834         group-member: Move AC_LIBOBJ invocations to module description.
1835         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1836         gl_PREREQ_GROUP_MEMBER invocations from here...
1837         * modules/group-member (configure.ac): ... to here.
1838
1839 2011-05-08  Bruno Haible  <bruno@clisp.org>
1840
1841         grantpt: Move AC_LIBOBJ invocations to module description.
1842         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1843         invocations from here...
1844         * modules/grantpt (configure.ac): ... to here.
1845
1846 2011-05-08  Bruno Haible  <bruno@clisp.org>
1847
1848         glob: Move AC_LIBOBJ invocations to module description.
1849         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1850         from here...
1851         * modules/glob (configure.ac): ... to here.
1852
1853 2011-05-08  Bruno Haible  <bruno@clisp.org>
1854
1855         getusershell: Move AC_LIBOBJ invocations to module description.
1856         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1857         Move AC_LIBOBJ invocation from here...
1858         * modules/getusershell (configure.ac): ... to here.
1859         (Depends-on): Update condition.
1860
1861 2011-05-08  Bruno Haible  <bruno@clisp.org>
1862
1863         gettimeofday: Move AC_LIBOBJ invocations to module description.
1864         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1865         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1866         gl_PREREQ_GETTIMEOFDAY invocations from here...
1867         * modules/gettimeofday (configure.ac): ... to here.
1868
1869 2011-05-08  Bruno Haible  <bruno@clisp.org>
1870
1871         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1872         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1873         just gl_FUNC_TZSET.
1874         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1875         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1877         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1878
1879 2011-05-08  Bruno Haible  <bruno@clisp.org>
1880
1881         getsubopt: Move AC_LIBOBJ invocations to module description.
1882         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1883         gl_PREREQ_GETSUBOPT invocations from here...
1884         * modules/getsubopt (configure.ac): ... to here.
1885
1886 2011-05-08  Bruno Haible  <bruno@clisp.org>
1887
1888         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1889         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1890         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1891         * modules/getpass-gnu (configure.ac): ... to here.
1892
1893 2011-05-08  Bruno Haible  <bruno@clisp.org>
1894
1895         getpass: Move AC_LIBOBJ invocations to module description.
1896         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1897         gl_PREREQ_GETPASS invocations from here...
1898         * modules/getpass (configure.ac): ... to here.
1899
1900 2011-05-08  Bruno Haible  <bruno@clisp.org>
1901
1902         getpagesize: Move AC_LIBOBJ invocations to module description.
1903         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1904         from here...
1905         * modules/getpagesize (configure.ac): ... to here.
1906
1907 2011-05-08  Bruno Haible  <bruno@clisp.org>
1908
1909         getopt: Move AC_LIBOBJ invocations to module description.
1910         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1911         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1912         invocations from here...
1913         * modules/getopt-gnu (configure.ac): ... to here.
1914         * modules/getopt-posix (configure.ac): ... and here.
1915         (Depends-on): Update condition.
1916
1917 2011-05-08  Bruno Haible  <bruno@clisp.org>
1918
1919         getopt, argp: Respect rules for use of AC_LIBOBJ.
1920         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1921         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1922         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1923         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1924
1925 2011-05-08  Bruno Haible  <bruno@clisp.org>
1926
1927         getlogin_r: Move AC_LIBOBJ invocations to module description.
1928         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1929         gl_PREREQ_GETLOGIN_R invocations from here...
1930         * modules/getlogin_r (configure.ac): ... to here.
1931
1932 2011-05-08  Bruno Haible  <bruno@clisp.org>
1933
1934         getlogin: Move AC_LIBOBJ invocations to module description.
1935         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1936         here...
1937         * modules/getlogin (configure.ac): ... to here.
1938
1939 2011-05-08  Bruno Haible  <bruno@clisp.org>
1940
1941         getloadavg: Move AC_LIBOBJ invocations to module description.
1942         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1943         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1944         * modules/getloadavg (configure.ac): ... to here.
1945
1946 2011-05-08  Bruno Haible  <bruno@clisp.org>
1947
1948         gethrxtime: Move AC_LIBOBJ invocations to module description.
1949         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1950         LIB_GETHRXTIME from here...
1951         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1952         invocations from here...
1953         * modules/gethrxtime (configure.ac): ... to here.
1954
1955 2011-05-08  Bruno Haible  <bruno@clisp.org>
1956
1957         gethostname: Move AC_LIBOBJ invocations to module description.
1958         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1959         gl_PREREQ_GETHOSTNAME invocations from here...
1960         * modules/gethostname (configure.ac): ... to here.
1961
1962 2011-05-08  Bruno Haible  <bruno@clisp.org>
1963
1964         getgroups: Move AC_LIBOBJ invocations to module description.
1965         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1966         here...
1967         * modules/getgroups (configure.ac): ... to here.
1968
1969 2011-05-08  Bruno Haible  <bruno@clisp.org>
1970
1971         getdtablesize: Move AC_LIBOBJ invocations to module description.
1972         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1973         invocation from here...
1974         * modules/getdtablesize (configure.ac): ... to here.
1975
1976 2011-05-08  Bruno Haible  <bruno@clisp.org>
1977
1978         getdomainname: Move AC_LIBOBJ invocations to module description.
1979         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1980         gl_PREREQ_GETDOMAINNAME invocations from here...
1981         * modules/getdomainname (configure.ac): ... to here.
1982
1983 2011-05-08  Bruno Haible  <bruno@clisp.org>
1984
1985         getline: Move AC_LIBOBJ invocations to module description.
1986         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1987         invocations from here...
1988         * modules/getline (configure.ac): ... to here.
1989
1990 2011-05-08  Bruno Haible  <bruno@clisp.org>
1991
1992         getline: Simplify.
1993         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1994         It's already handled through the module dependency.
1995
1996 2011-05-08  Bruno Haible  <bruno@clisp.org>
1997
1998         getdelim: Move AC_LIBOBJ invocations to module description.
1999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2000         and gl_PREREQ_GETDELIM invocations from here...
2001         * modules/getdelim (configure.ac): ... to here.
2002         (Depends-on): Fix condition.
2003
2004 2011-05-08  Bruno Haible  <bruno@clisp.org>
2005
2006         getcwd: Move AC_LIBOBJ invocations to module description.
2007         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2008         invocations from here...
2009         * modules/getcwd (configure.ac): ... to here.
2010
2011 2011-05-08  Bruno Haible  <bruno@clisp.org>
2012
2013         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2014         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2015         here...
2016         * modules/getcwd-lgpl (configure.ac): ... to here.
2017
2018 2011-05-07  Bruno Haible  <bruno@clisp.org>
2019
2020         crypto/gc: Move AC_LIBOBJ invocations to module description.
2021         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2022         * modules/crypto/gc (configure.ac): ... to here.
2023
2024 2011-05-07  Bruno Haible  <bruno@clisp.org>
2025
2026         fwriting: Move AC_LIBOBJ invocations to module description.
2027         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2028         here...
2029         * modules/fwriting (configure.ac): ... to here.
2030
2031 2011-05-07  Bruno Haible  <bruno@clisp.org>
2032
2033         fwritable: Move AC_LIBOBJ invocations to module description.
2034         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2035         here...
2036         * modules/fwritable (configure.ac): ... to here.
2037
2038 2011-05-07  Bruno Haible  <bruno@clisp.org>
2039
2040         futimens: Move AC_LIBOBJ invocations to module description.
2041         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2042         here...
2043         * modules/futimens (configure.ac): ... to here.
2044
2045 2011-05-07  Bruno Haible  <bruno@clisp.org>
2046
2047         ftruncate: Move AC_LIBOBJ invocations to module description.
2048         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2049         gl_PREREQ_FTRUNCATE invocations from here...
2050         * modules/ftruncate (configure.ac): ... to here.
2051
2052 2011-05-07  Bruno Haible  <bruno@clisp.org>
2053
2054         fsync: Move AC_LIBOBJ invocations to module description.
2055         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2056         invocations from here...
2057         * modules/fsync (configure.ac): ... to here.
2058
2059 2011-05-07  Bruno Haible  <bruno@clisp.org>
2060
2061         fsusage: Move AC_LIBOBJ invocations to module description.
2062         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2063         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2064         * modules/fsusage (configure.ac): ... to here.
2065
2066 2011-05-07  Bruno Haible  <bruno@clisp.org>
2067
2068         freopen: Move AC_LIBOBJ invocations to module description.
2069         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2070         invocations from here...
2071         * modules/freopen (configure.ac): ... to here.
2072
2073 2011-05-07  Bruno Haible  <bruno@clisp.org>
2074
2075         free: Move AC_LIBOBJ invocations to module description.
2076         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2077         invocations from here...
2078         * modules/free (configure.ac): ... to here.
2079
2080 2011-05-07  Bruno Haible  <bruno@clisp.org>
2081
2082         freadable: Move AC_LIBOBJ invocations to module description.
2083         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2084         here...
2085         * modules/freadable (configure.ac): ... to here.
2086
2087 2011-05-07  Bruno Haible  <bruno@clisp.org>
2088
2089         fpurge: Move AC_LIBOBJ invocations to module description.
2090         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2091         invocations from here...
2092         * modules/fpurge (configure.ac): ... to here.
2093
2094 2011-05-07  Bruno Haible  <bruno@clisp.org>
2095
2096         fpending: Move AC_LIBOBJ invocations to module description.
2097         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2098         gl_FUNC_FPENDING.
2099         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2100         invocations from here...
2101         * modules/fpending (configure.ac): ... to here.
2102
2103 2011-05-07  Bruno Haible  <bruno@clisp.org>
2104
2105         fopen: Move AC_LIBOBJ invocations to module description.
2106         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2107         invocations from here...
2108         * modules/fopen (configure.ac): ... to here.
2109
2110 2011-05-07  Bruno Haible  <bruno@clisp.org>
2111
2112         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2113         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2114         gl_FUNC_FNMATCH_POSIX.
2115         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2116         invocations from here...
2117         * modules/fnmatch (configure.ac): ... to here.
2118         * modules/fnmatch-gnu (configure.ac): ... and here.
2119
2120 2011-05-07  Bruno Haible  <bruno@clisp.org>
2121
2122         flock: Move AC_LIBOBJ invocations to module description.
2123         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2124         invocations from here...
2125         * modules/flock (configure.ac): ... to here.
2126
2127 2011-05-07  Bruno Haible  <bruno@clisp.org>
2128
2129         fileblocks: Move AC_LIBOBJ invocations to module description.
2130         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2131         gl_PREREQ_FILEBLOCKS invocations from here...
2132         * modules/fileblocks (configure.ac): ... to here.
2133
2134 2011-05-06  Bruno Haible  <bruno@clisp.org>
2135
2136         fflush: Move AC_LIBOBJ invocations to module description.
2137         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2138         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2139         invocations from here...
2140         * modules/fflush (configure.ac): ... to here.
2141
2142 2011-05-06  Bruno Haible  <bruno@clisp.org>
2143
2144         fdopendir: Move AC_LIBOBJ invocations to module description.
2145         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2146         here...
2147         * modules/fdopendir (configure.ac): ... to here.
2148         (Depends-on): Improve conditions.
2149
2150 2011-05-06  Bruno Haible  <bruno@clisp.org>
2151
2152         _Exit: Move AC_LIBOBJ invocations to module description.
2153         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2154         invocations from here...
2155         * modules/_Exit (configure.ac): ... to here.
2156
2157 2011-05-21  Bruno Haible  <bruno@clisp.org>
2158
2159         euidaccess: Respect rules for use of AC_LIBOBJ.
2160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2162         from here...
2163         * modules/euidaccess (configure.ac): ... to here.
2164
2165 2011-05-06  Bruno Haible  <bruno@clisp.org>
2166
2167         error: Move AC_LIBOBJ invocations to module description.
2168         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2169         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2170         invocations from here...
2171         * modules/error (configure.ac): ... to here.
2172
2173 2011-05-06  Bruno Haible  <bruno@clisp.org>
2174
2175         duplocale: Move AC_LIBOBJ invocations to module description.
2176         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2177         gl_PREREQ_DUPLOCALE invocations from here...
2178         * modules/duplocale (configure.ac): ... to here.
2179
2180 2011-05-05  Bruno Haible  <bruno@clisp.org>
2181
2182         dirfd: Move AC_LIBOBJ invocations to module description.
2183         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2184         gl_FUNC_DIRFD.
2185         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2186         here...
2187         * modules/dirfd (configure.ac): ... to here.
2188         (Depends-on): Fix condition.
2189
2190 2011-05-05  Bruno Haible  <bruno@clisp.org>
2191
2192         chown: Respect rules for use of AC_LIBOBJ.
2193         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2194         * modules/chown (configure.ac): ... to here.
2195
2196 2011-05-05  Bruno Haible  <bruno@clisp.org>
2197
2198         chdir-long: Move AC_LIBOBJ invocations to module description.
2199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2200         gl_PREREQ_CHDIR_LONG invocations from here...
2201         * modules/chdir-long (configure.ac): ... to here.
2202
2203 2011-05-05  Bruno Haible  <bruno@clisp.org>
2204
2205         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2206         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2207         from here...
2208         * modules/canonicalize-lgpl (configure.ac): ... to here.
2209
2210 2011-05-05  Bruno Haible  <bruno@clisp.org>
2211
2212         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2213         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2214         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2215         REPLACE_CALLOC.
2216         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2217         * modules/calloc-gnu (configure.ac): Likewise.
2218
2219 2011-05-05  Bruno Haible  <bruno@clisp.org>
2220
2221         btowc: Move AC_LIBOBJ invocations to module description.
2222         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2223         invocations from here...
2224         * modules/btowc (configure.ac): ... to here.
2225
2226 2011-05-21  Bruno Haible  <bruno@clisp.org>
2227
2228         atexit: Move AC_LIBOBJ invocations to module description.
2229         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2231         here...
2232         * modules/atexit (configure.ac): ... to here.
2233
2234 2011-05-05  Bruno Haible  <bruno@clisp.org>
2235
2236         atoll: Move AC_LIBOBJ invocations to module description.
2237         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2238         invocations from here...
2239         * modules/atoll (configure.ac): ... to here.
2240
2241 2011-05-05  Bruno Haible  <bruno@clisp.org>
2242
2243         argz: Move AC_LIBOBJ invocations to module description.
2244         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2245         * modules/argz (configure.ac): ... to here.
2246
2247 2011-05-05  Bruno Haible  <bruno@clisp.org>
2248
2249         alphasort: Move AC_LIBOBJ invocations to module description.
2250         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2251         gl_PREREQ_ALPHASORT invocations from here...
2252         * modules/alphasort (configure.ac): ... to here.
2253
2254 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2255
2256         verify: new macro verify_expr; verify_true deprecated
2257         * NEWS: Mention this.
2258         * doc/verify.texi (Compile-time Assertions): Document this.
2259         * lib/verify.h (verify_true): Deprecate.
2260         (verify_expr): New macro.
2261         * tests/test-verify.c (function): Test verify_expr.
2262
2263 2011-06-14  Jim Meyering  <meyering@redhat.com>
2264
2265         init.sh: give more portable redirection-related advice in a comment
2266         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2267         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2268         for lots of discussion.  Stefano Lattarini suggested the solution
2269         of putting "9>&2" after the command.  Reported by Bruno Haible.
2270
2271 2011-06-13  Bruno Haible  <bruno@clisp.org>
2272
2273         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2274         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2275         'none'.
2276
2277 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         ftoastr: use strtof only if HAVE_STRTOF
2280         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2282         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2283         * modules/ftoastr (configure.ac): Check for strtof.
2284
2285 2011-06-13  Bruno Haible  <bruno@clisp.org>
2286
2287         gnulib-tool: Addendum to 2011-06-08 commit.
2288         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2289         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2290
2291 2011-06-13  Bruno Haible  <bruno@clisp.org>
2292
2293         fseeko: Provide a non-inline replacement of fseek().
2294         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2295         * modules/fseeko (Depends-on): Add fseek.
2296         * modules/fseek (License): Change to LGPLv2+.
2297
2298 2011-06-13  Bruno Haible  <bruno@clisp.org>
2299
2300         ftello: Provide a non-inline replacement of ftell().
2301         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2302         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2303         not have ftello() (such as on mingw).
2304         * modules/ftello (Depends-on): Add ftell.
2305         * modules/ftell (License): Change to LGPLv2+.
2306
2307 2011-05-07  Bruno Haible  <bruno@clisp.org>
2308
2309         ftell: Move AC_LIBOBJ invocations to module description.
2310         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2311         * modules/ftell (configure.ac): ... to here.
2312
2313 2011-05-07  Bruno Haible  <bruno@clisp.org>
2314
2315         ftello: Respect rules for use of AC_LIBOBJ.
2316         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2317         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2318         here...
2319         * modules/ftello (configure.ac): ... to here.
2320
2321 2011-05-07  Bruno Haible  <bruno@clisp.org>
2322
2323         fseeko: Simplify.
2324         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2325         (gl_FUNC_FSEEKO): Inline it here.
2326
2327 2011-05-07  Bruno Haible  <bruno@clisp.org>
2328
2329         fseek: Move AC_LIBOBJ invocations to module description.
2330         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2331         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2332         * modules/fseek (configure.ac): ... to here.
2333
2334 2011-05-07  Bruno Haible  <bruno@clisp.org>
2335
2336         fseek: Respect rules for use of AC_LIBOBJ.
2337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2338         here...
2339         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2340
2341 2011-05-07  Bruno Haible  <bruno@clisp.org>
2342
2343         fseeko: Respect rules for use of AC_LIBOBJ.
2344         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2345         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2346         here...
2347         * modules/fseeko (configure.ac): ... to here.
2348
2349 2011-06-13  Bruno Haible  <bruno@clisp.org>
2350
2351         gnulib-tool: Allow comments in the 'Depends-on' section.
2352         * doc/gnulib.texi (Module description): Mention comment syntax in the
2353         Depends-on section.
2354         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2355
2356 2011-06-13  Bruno Haible  <bruno@clisp.org>
2357
2358         file-set.h: guard __attibute__ use, now that it's not always defined
2359         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2360         versions that support it.  This fixes a coreutils build failure with
2361         the vendor cc on HP-UX 11.31.
2362
2363 2011-06-12  Bruno Haible  <bruno@clisp.org>
2364
2365         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2366         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2367         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2368         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2369         (acl, aclsort): New declarations.
2370         (aclv_nontrivial): New declaration.
2371         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2372         (file_has_acl): Read also the second kind of HP-UX ACLs.
2373         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2374         kind of HP-UX ACLs if the first kind fails.
2375         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2376         second kind of HP-UX ACLs.
2377         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2378         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2379         agree.
2380         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2381         hpuxjfs.
2382         Handle hpuxjfs.
2383         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2384         hpuxjfs.
2385         Handle hpuxjfs.
2386         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2387         (func_test_same_acls): Use both lsacl and getacl.
2388         Handle hpuxjfs.
2389         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2390         (func_test_same_acls): Use both lsacl and getacl.
2391         Handle hpuxjfs.
2392
2393 2011-06-12  Bruno Haible  <bruno@clisp.org>
2394
2395         acl: Complete the 2010-08-10 fix.
2396         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2397         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2398         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2399         explicitly.
2400         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2401         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2402
2403 2011-06-12  Bruno Haible  <bruno@clisp.org>
2404
2405         spawn-pipe tests: Comments.
2406         * tests/test-spawn-pipe-child.c (main): Update comment.
2407         Reported by James Youngman <jay@gnu.org>.
2408
2409 2011-06-11  James Youngman  <jay@gnu.org>
2410
2411         New module 'stat-size'.
2412         * modules/stat-size: New module.  Provides macros for accessing
2413         file size information in instances of struct stat.  Depends on the
2414         fileblocks module because it calls st_blocks.
2415         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2416         * doc/gnulib.texi: Include stat-size.texi.
2417         * doc/stat-size.texi: Documentation for this module.
2418         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2419         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2420         AC_STRUCT_ST_BLOCKS.
2421
2422 2011-06-09  Bruno Haible  <bruno@clisp.org>
2423
2424         thread: Support pthreads-win32.
2425         * lib/glthread/thread.h (gl_thread_self): Define differently on
2426         pthreads-win32.
2427         (gl_null_thread): New declaration.
2428         (gl_thread_self_pointer): New macro.
2429         * lib/glthread/thread.c (gl_null_thread): New constant.
2430         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2431         gl_thread_self.
2432         * tests/test-tls.c: Likewise.
2433         Suggested by Paul Eggert. Reported by Eric Blake.
2434
2435 2011-06-09  Bruno Haible  <bruno@clisp.org>
2436
2437         thread: Fix confusion between NULL and 0.
2438         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2439         Reported by Paul Eggert.
2440
2441 2011-06-09  Bruno Haible  <bruno@clisp.org>
2442
2443         spawn-pipe tests: Avoid test failure on HP-UX 11.
2444         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2445         is closed.
2446
2447 2011-06-09  Bruno Haible  <bruno@clisp.org>
2448
2449         acl tests: Fix compilation error on HP-UX 11.
2450         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2451
2452 2011-06-09  Bruno Haible  <bruno@clisp.org>
2453
2454         rmdir: Avoid test failure on HP-UX 10.20.
2455         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2456         EEXIST.
2457
2458 2011-06-08  Eric Blake  <eblake@redhat.com>
2459
2460         perror: fix test on mingw
2461         * modules/perror-tests (Depends-on): Add dup2.
2462
2463         strerror_r-posix: fix on MacOS
2464         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2465         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2466         logic bug.
2467         * lib/strerror_r.c (strerror_r): Fix the bug.
2468         * lib/strerror.c (strerror): Likewise.
2469         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2470         problem.
2471         * doc/posix-functions/strerror.texi (strerror): Likewise.
2472         * doc/posix-functions/perror.texi (perror): Likewise.
2473         * tests/test-strerror.c (main): Enhance test.
2474         * tests/test-strerror_r.c (main): Likewise.
2475
2476 2011-06-08  Bruno Haible  <bruno@clisp.org>
2477
2478         gnulib-tool: Better isolation between different gnulib-tool invocations.
2479         * gnulib-tool: New option --witness-c-macro.
2480         (witness_c_macro): New variable.
2481         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2482         AM_CPPFLAGS define it as a C macro.
2483         (func_emit_tests_Makefile_am): Likewise.
2484         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2485         read it from there.
2486         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2487         m4_define, not AC_DEFUN.
2488         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2489         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2490         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2491         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2492         s|...|...|, to substitute the values of the GNULIB_* module indicator
2493         variables.
2494         * modules/dirent (Makefile.am): Likewise.
2495         * modules/fcntl-h (Makefile.am): Likewise.
2496         * modules/iconv-h (Makefile.am): Likewise.
2497         * modules/langinfo (Makefile.am): Likewise.
2498         * modules/locale (Makefile.am): Likewise.
2499         * modules/math (Makefile.am): Likewise.
2500         * modules/netdb (Makefile.am): Likewise.
2501         * modules/poll-h (Makefile.am): Likewise.
2502         * modules/pty (Makefile.am): Likewise.
2503         * modules/search (Makefile.am): Likewise.
2504         * modules/signal (Makefile.am): Likewise.
2505         * modules/spawn (Makefile.am): Likewise.
2506         * modules/stdio (Makefile.am): Likewise.
2507         * modules/stdlib (Makefile.am): Likewise.
2508         * modules/string (Makefile.am): Likewise.
2509         * modules/sys_ioctl (Makefile.am): Likewise.
2510         * modules/sys_select (Makefile.am): Likewise.
2511         * modules/sys_socket (Makefile.am): Likewise.
2512         * modules/sys_stat (Makefile.am): Likewise.
2513         * modules/sys_times (Makefile.am): Likewise.
2514         * modules/sys_utsname (Makefile.am): Likewise.
2515         * modules/sys_wait (Makefile.am): Likewise.
2516         * modules/termios (Makefile.am): Likewise.
2517         * modules/time (Makefile.am): Likewise.
2518         * modules/unistd (Makefile.am): Likewise.
2519         * modules/wchar (Makefile.am): Likewise.
2520
2521 2011-06-08  Eric Blake  <eblake@redhat.com>
2522
2523         strerror: simplify replacement
2524         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2525         * modules/strerror (configure.ac): No prereqs needed here...
2526         * modules/strerror-override (configure.ac): ...but this needs it.
2527         (Files): Add file for needed prereq macro.
2528
2529 2011-06-08  Bruno Haible  <bruno@clisp.org>
2530
2531         strerror_r-posix: Tweaks.
2532         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2533         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2535         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2536         (gl_FUNC_STRERROR_R): ... to here.
2537         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2538
2539 2011-06-07  Eric Blake  <eblake@redhat.com>
2540
2541         perror: document fixed bugs
2542         * doc/posix-functions/perror.texi (perror): Document recent
2543         patches.
2544
2545 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2546
2547         stat-time: get_stat_birthtime failure is better-defined
2548         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2549         return a timestamp whose tv_sec and tv_nsec values are both -1.
2550         Previously, the spec said only that the tv_nsec value was negative.
2551         This upward-compatible change simplifies GNU tar a bit.
2552
2553 2011-06-07  Eric Blake  <eblake@redhat.com>
2554
2555         strerror_r-posix: work around cygwin 1.7.9
2556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2557         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2558         bug without replacing strerror_r.
2559         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2560         strerror_r is buggy, but without requiring strerror_r compilation.
2561         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2562
2563         test-perror: relax test to ignore cygwin bug
2564         * tests/test-perror2.c (main): Relax test on requiring detection
2565         of stream errors, and use unbuffered stream.
2566         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2567         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2568         * doc/posix-functions/fputc.texi (fputc): Likewise.
2569         * doc/posix-functions/fputs.texi (fputs): Likewise.
2570         * doc/posix-functions/fputws.texi (fputws): Likewise.
2571         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2572         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2573         * doc/posix-functions/getopt.texi (getopt): Likewise.
2574         * doc/posix-functions/perror.texi (perror): Likewise.
2575         * doc/posix-functions/printf.texi (printf): Likewise.
2576         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2577         * doc/posix-functions/psignal.texi (psignal): Likewise.
2578         * doc/posix-functions/putc.texi (putc): Likewise.
2579         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2580         Likewise.
2581         * doc/posix-functions/putchar.texi (putchar): Likewise.
2582         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2583         Likewise.
2584         * doc/posix-functions/puts.texi (puts): Likewise.
2585         * doc/posix-functions/putwc.texi (putwc): Likewise.
2586         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2587         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2588         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2589         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2590         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2591         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2592         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2593         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2594
2595 2011-05-22  Bruno Haible  <bruno@clisp.org>
2596
2597         strerror: Move AC_LIBOBJ invocations to module description.
2598         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2599         gl_PREREQ_STRERROR invocations from here...
2600         * modules/strerror (configure.ac): ... to here.
2601
2602 2011-05-21  Bruno Haible  <bruno@clisp.org>
2603
2604         perror: Use common idiom.
2605         * modules/perror (configure.ac): Reorder statements.
2606
2607 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2608
2609         tests: fix usage message in 'mktempd_'
2610         * tests/init.sh (mktempd_): In the usage message, use literal
2611         'mktempd_', not '$ME' (which is even undefined), as the name of
2612         the subroutine.
2613
2614 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2615
2616         tests init: new function 'fatal_', for hard errors
2617         Before this patch, the only way offered by tests/init.sh to
2618         properly signal a hard error was the `framework_failure_'
2619         function.  But the error message issued by that function,
2620         as its name would suggest, refers to a set-up failure in the
2621         testsuite, while hard errors can obviously also be due to
2622         other reasons.  The best way to fix this inconsistency is to
2623         introduce a new function with a more general error message.
2624         * tests/init.sh (fatal_): New function.
2625
2626 2011-06-06  Eric Blake  <eblake@redhat.com>
2627
2628         canonicalize-lgpl: use common idiom
2629         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2630         over newer POSIX -Rf.
2631         Reported by Bruno Haible.
2632
2633         canonicalize-lgpl: work around AIX realpath bug
2634         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2635         * doc/posix-functions/realpath.texi (realpath): Document it.
2636         Reported by Bruno Haible.
2637
2638         strerror: work around FreeBSD bug
2639         * lib/strerror.c (strerror): Special case 0.
2640         Reported by Bruno Haible.
2641
2642         strerror-override: avoid bloating errno module
2643         * modules/errno (Files, configure.ac): Move replacement strings...
2644         * modules/strerror-override: ...to new module.
2645         * modules/strerror (Depends-on): Add strerror-override.
2646         * modules/strerror_r-posix (Depends-on): Likewise.
2647         * MODULES.html.sh: Document new module.
2648         Reported by Bruno Haible.
2649
2650 2011-06-06  Bruno Haible  <bruno@clisp.org>
2651
2652         spawn-pipe tests: Rename program.
2653         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2654         * tests/test-spawn-pipe-child.c: Update comment.
2655         * tests/test-spawn-pipe.sh: Update.
2656         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2657
2658         spawn-pipe tests: Link the child program only against libc.
2659         * tests/test-spawn-pipe-child.c: New file, extracted from
2660         tests/test-spawn-pipe.c.
2661         (main): Expect only one argument.
2662         (is_open): New function, copied from tests/test-pipe.c.
2663         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2664         (child_main): Remove function.
2665         (test_pipe): Pass only one argument to the child program.
2666         (main): Remove child process code. Expect the child program's name as
2667         first argument.
2668         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2669         argument.
2670         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2671         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2672         test-spawn-pipe-child against no libraries.
2673
2674 2011-06-06  Bruno Haible  <bruno@clisp.org>
2675
2676         careadlinkat: Avoid mismatch between ssize_t and int.
2677         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2678         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2679
2680 2011-06-06  Jim Meyering  <meyering@redhat.com>
2681
2682         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2683         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2684         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2685
2686 2011-06-05  Bruno Haible  <bruno@clisp.org>
2687
2688         ansi-c++-opt: Interoperability with libtool.
2689         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2690         set the variable to "no", not to ":".
2691         * NEWS: Mention the change.
2692
2693 2011-06-05  Bruno Haible  <bruno@clisp.org>
2694
2695         acl: Fix test failure on AIX 7.
2696         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2697         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2698
2699 2011-06-05  Bruno Haible  <bruno@clisp.org>
2700
2701         pipe-filter-ii: Fix test failure on AIX and IRIX.
2702         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2703         with EAGAIN, retry with a smaller buffer size.
2704
2705 2011-06-05  Bruno Haible  <bruno@clisp.org>
2706
2707         localename: Fix link dependencies.
2708         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2709         * modules/localename-tests (Makefile.am): Link test-localename with
2710         $(LIBTHREAD).
2711
2712 2011-06-05  Bruno Haible  <bruno@clisp.org>
2713
2714         error: Avoid gcc warning.
2715         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2716
2717 2011-06-05  Bruno Haible  <bruno@clisp.org>
2718
2719         unsetenv: Avoid gcc warning.
2720         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2721
2722 2011-06-05  Bruno Haible  <bruno@clisp.org>
2723
2724         setenv: Avoid gcc warning.
2725         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2726
2727 2011-06-05  Bruno Haible  <bruno@clisp.org>
2728
2729         sys_select: Ensure memset is declared also on AIX 7.
2730         * lib/sys_select.in.h: Include <string.h> also on AIX.
2731         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2732         self-contained also on AIX 7.1.
2733
2734 2011-06-04  Jim Meyering  <meyering@redhat.com>
2735
2736         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2737         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2738         function name, "error".
2739         (_gl_translatable_diag_func_re): New configurable variable.
2740
2741 2011-06-04  Bruno Haible  <bruno@clisp.org>
2742
2743         getopt: Avoid gcc warning.
2744         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2745
2746 2011-06-04  Bruno Haible  <bruno@clisp.org>
2747
2748         strerror_r: Fix comments.
2749         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2750         commit.
2751
2752 2011-06-04  Bruno Haible  <bruno@clisp.org>
2753
2754         perror: Fix compilation error.
2755         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2756         Undefine fprintf, not sprintf.
2757         * modules/perror (Depends-on): Remove intprops, verify.
2758
2759 2011-06-04  Bruno Haible  <bruno@clisp.org>
2760
2761         setlocale: Enable replacement on Cygwin 1.5.
2762         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2763         Cygwin 1.5.x.
2764         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2765         LC_CTYPE category also exists on Cygwin 1.5.x.
2766
2767 2011-06-04  Bruno Haible  <bruno@clisp.org>
2768
2769         strerror-override: Don't disable symbol renamings.
2770         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2771         * lib/strerror-override.c: Include config.h.
2772         (strerror_override): Don't undefine.
2773
2774 2011-06-03  Bruno Haible  <bruno@clisp.org>
2775
2776         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2777         * lib/localename.h: Update copyright header.
2778         * lib/localename.c: Likewise.
2779         * lib/relocatable.h: Likewise.
2780         * lib/relocatable.c: Likewise.
2781
2782 2011-06-02  Bruno Haible  <bruno@clisp.org>
2783
2784         doc: Fix a module name.
2785         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2786
2787 2011-06-02  Bruno Haible  <bruno@clisp.org>
2788
2789         pipe2: Remove dependency on 'nonblocking' module.
2790         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2791         O_NONBLOCK is defined by gnulib.
2792         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2793         is zero.
2794         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2795         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2796         defined by gnulib.
2797         (get_nonblocking_flag): New function.
2798         (main): Test O_NONBLOCK flag only if it is nonzero.
2799         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2800
2801 2011-06-03  Jim Meyering  <meyering@redhat.com>
2802
2803         maint: three new prohibit-header-without-use rules
2804         Prohibit use of cloexec.h, posixver.h, same.h without use.
2805         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2806         (sc_prohibit_posixver_without_use): Likewise.
2807         (sc_prohibit_same_without_use): Likewise.
2808
2809 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2810
2811         allocator: 'die' routine is now given requested size
2812         * lib/allocator.h (struct allocator.die): New size arg.
2813         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2814         If the actual problem is an ssize_t limitation, not a size_t or
2815         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2816
2817 2011-06-01  Eric Blake  <eblake@redhat.com>
2818
2819         strerror: drop strerror_r dependency
2820         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2821         * lib/strerror-override.c (strerror_override): ...to new file.
2822         * lib/strerror-override.h: Add prototype.
2823         * lib/strerror-impl.h: Delete.
2824         * lib/strerror.c (strerror): New implementation.
2825         * modules/errno (Files): Add new files.
2826         (configure.ac): Compile new file as appropriate.
2827         * modules/strerror (Files): Drop unused file.
2828         (Depends-on): Drop strerror_r-posix.
2829         * MODULES.html.sh: Document strerror_r-posix.
2830         Requested by Sam Steingold.
2831
2832         perror: call strerror_r directly
2833         * modules/perror (Files): Drop strerror-impl.h.
2834         * lib/perror.c (perror): Use our own stack buffer, rather than
2835         calling a wrapper that uses static storage.
2836         * doc/posix-functions/perror.texi (perror): Document a limitation
2837         of our replacement.
2838
2839         strerror_r: fix includes for FreeBSD
2840         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2841         since we use abort on some platforms.
2842         Reported by Matthias Bolte.
2843
2844 2011-05-31  Bruno Haible  <bruno@clisp.org>
2845
2846         Fix link errors in tests: openat-die uses gettext-h.
2847         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2848         against $(LIBINTL).
2849         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2850         against $(LIBINTL).
2851         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2852         $(LIBINTL).
2853         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2854         against $(LIBINTL).
2855         * modules/linkat-tests (Makefile.am): Link test-linkat against
2856         $(LIBINTL).
2857         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2858         $(LIBINTL).
2859         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2860         against $(LIBINTL).
2861         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2862         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2863         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2864         $(LIBINTL).
2865         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2866         $(LIBINTL).
2867         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2868         $(LIBINTL).
2869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2870
2871 2011-05-31  Bruno Haible  <bruno@clisp.org>
2872
2873         Fix link errors in tests: wait-process uses gettext-h.
2874         * modules/nonblocking-pipe-tests (Makefile.am): Set
2875         test_nonblocking_pipe_main_LDADD.
2876         * modules/nonblocking-socket-tests (Makefile.am): Link
2877         test-nonblocking-socket-main against $(LIBINTL).
2878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2879
2880 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2881
2882         assert-h: work around 'verify' incompatibility
2883         * lib/verify.h: Use @...@ directives, not ifdef.
2884         * modules/assert-h (assert.h): Implement the directives.
2885         (assert.h): Substitute the symbol-prefix more consistently.
2886
2887 2011-05-29  Jim Meyering  <meyering@redhat.com>
2888
2889         trim: remove three superfluous assignments
2890         * lib/trim.c (trim2): Remove three superfluous assignments
2891         and correct brace positioning.
2892
2893 2011-05-29  Bruno Haible  <bruno@clisp.org>
2894
2895         wctype-h: Avoid namespace pollution on Solaris 2.6.
2896         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2897         identifiers.
2898         * doc/posix-headers/wctype.texi: Mention the problem.
2899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2900
2901 2011-05-28  Jim Meyering  <meyering@redhat.com>
2902
2903         parse-datetime.y: accommodate -Wstrict-overflow
2904         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2905         placate -Wstrict-overflow.
2906
2907         trim: avoid a warning from -O2 -Wstrict-overflow
2908         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2909
2910 2011-05-29  Bruno Haible  <bruno@clisp.org>
2911
2912         gnulib-tool: Fix bug in yesterday's commit.
2913         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2914         twice.
2915
2916 2011-05-29  Bruno Haible  <bruno@clisp.org>
2917
2918         Allow multiple gnulib generated include files to be combined.
2919         * gnulib-tool (func_compute_include_guard_prefix): New function.
2920         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2921         ${gl_include_guard_prefix} references.
2922         (func_import, func_create_testdir): Invoke
2923         func_compute_include_guard_prefix.
2924         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2925         * lib/ctype.in.h: Likewise.
2926         * lib/dirent.in.h: Likewise.
2927         * lib/errno.in.h: Likewise.
2928         * lib/fcntl.in.h: Likewise.
2929         * lib/float.in.h: Likewise.
2930         * lib/getopt.in.h: Likewise.
2931         * lib/iconv.in.h: Likewise.
2932         * lib/langinfo.in.h: Likewise.
2933         * lib/locale.in.h: Likewise.
2934         * lib/math.in.h: Likewise.
2935         * lib/netdb.in.h: Likewise.
2936         * lib/netinet_in.in.h: Likewise.
2937         * lib/poll.in.h: Likewise.
2938         * lib/pthread.in.h: Likewise.
2939         * lib/pty.in.h: Likewise.
2940         * lib/sched.in.h: Likewise.
2941         * lib/se-selinux.in.h: Likewise.
2942         * lib/search.in.h: Likewise.
2943         * lib/signal.in.h: Likewise.
2944         * lib/spawn.in.h: Likewise.
2945         * lib/stdarg.in.h: Likewise.
2946         * lib/stddef.in.h: Likewise.
2947         * lib/stdint.in.h: Likewise.
2948         * lib/stdio.in.h: Likewise.
2949         * lib/stdlib.in.h: Likewise.
2950         * lib/string.in.h: Likewise.
2951         * lib/strings.in.h: Likewise.
2952         * lib/sys_file.in.h: Likewise.
2953         * lib/sys_ioctl.in.h: Likewise.
2954         * lib/sys_select.in.h: Likewise.
2955         * lib/sys_socket.in.h: Likewise.
2956         * lib/sys_stat.in.h: Likewise.
2957         * lib/sys_time.in.h: Likewise.
2958         * lib/sys_times.in.h: Likewise.
2959         * lib/sys_uio.in.h: Likewise.
2960         * lib/sys_utsname.in.h: Likewise.
2961         * lib/sys_wait.in.h: Likewise.
2962         * lib/sysexits.in.h: Likewise.
2963         * lib/termios.in.h: Likewise.
2964         * lib/time.in.h: Likewise.
2965         * lib/unistd.in.h: Likewise.
2966         * lib/wchar.in.h: Likewise.
2967         * lib/wctype.in.h: Likewise.
2968         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2969         * modules/ctype (Makefile.am): Likewise.
2970         * modules/dirent (Makefile.am): Likewise.
2971         * modules/errno (Makefile.am): Likewise.
2972         * modules/fcntl-h (Makefile.am): Likewise.
2973         * modules/float (Makefile.am): Likewise.
2974         * modules/getopt-posix (Makefile.am): Likewise.
2975         * modules/iconv-h (Makefile.am): Likewise.
2976         * modules/langinfo (Makefile.am): Likewise.
2977         * modules/locale (Makefile.am): Likewise.
2978         * modules/math (Makefile.am): Likewise.
2979         * modules/netdb (Makefile.am): Likewise.
2980         * modules/netinet_in (Makefile.am): Likewise.
2981         * modules/poll-h (Makefile.am): Likewise.
2982         * modules/pthread (Makefile.am): Likewise.
2983         * modules/pty (Makefile.am): Likewise.
2984         * modules/sched (Makefile.am): Likewise.
2985         * modules/search (Makefile.am): Likewise.
2986         * modules/selinux-h (Makefile.am): Likewise.
2987         * modules/signal (Makefile.am): Likewise.
2988         * modules/spawn (Makefile.am): Likewise.
2989         * modules/stdarg (Makefile.am): Likewise.
2990         * modules/stddef (Makefile.am): Likewise.
2991         * modules/stdint (Makefile.am): Likewise.
2992         * modules/stdio (Makefile.am): Likewise.
2993         * modules/stdlib (Makefile.am): Likewise.
2994         * modules/string (Makefile.am): Likewise.
2995         * modules/strings (Makefile.am): Likewise.
2996         * modules/sys_file (Makefile.am): Likewise.
2997         * modules/sys_ioctl (Makefile.am): Likewise.
2998         * modules/sys_select (Makefile.am): Likewise.
2999         * modules/sys_socket (Makefile.am): Likewise.
3000         * modules/sys_stat (Makefile.am): Likewise.
3001         * modules/sys_time (Makefile.am): Likewise.
3002         * modules/sys_times (Makefile.am): Likewise.
3003         * modules/sys_uio (Makefile.am): Likewise.
3004         * modules/sys_utsname (Makefile.am): Likewise.
3005         * modules/sys_wait (Makefile.am): Likewise.
3006         * modules/sysexits (Makefile.am): Likewise.
3007         * modules/termios (Makefile.am): Likewise.
3008         * modules/time (Makefile.am): Likewise.
3009         * modules/unistd (Makefile.am): Likewise.
3010         * modules/wchar (Makefile.am): Likewise.
3011         * modules/wctype-h (Makefile.am): Likewise.
3012         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3013
3014 2011-05-29  Bruno Haible  <bruno@clisp.org>
3015
3016         assert-h: Allow multiple gnulib generated replacements to coexist.
3017         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3018
3019 2011-05-29  Bruno Haible  <bruno@clisp.org>
3020
3021         argp: Allow coexistence with strerror_r-posix module.
3022         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3023         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3024         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3025         not the glibc signature.
3026
3027 2011-05-28  Bruno Haible  <bruno@clisp.org>
3028
3029         gnulib-tool: Alternative structure of testdirs, similar to --import.
3030         * gnulib-tool: New option --single-configure.
3031         (func_usage): Document it.
3032         (single_configure): New variable.
3033         (func_modules_transitive_closure_separately,
3034         func_modules_transitive_closure_separately,
3035         func_determine_use_libtests, func_modules_add_dummy_separately,
3036         func_modules_to_filelist_separately): New functions, extracted from
3037         func_import.
3038         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3039         (func_import): Use the new functions.
3040         (func_create_testdir): Set final_modules. Handle $single_configure =
3041         true case.
3042
3043 2011-05-28  Bruno Haible  <bruno@clisp.org>
3044
3045         getloadavg: Remove an unreliable safety check.
3046         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3047         getloadavg.c is in place.
3048         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3049         Reported by Sam Steingold <sds@gnu.org>.
3050
3051 2011-05-28  Bruno Haible  <bruno@clisp.org>
3052
3053         doc: Cleanup yet another file produced by texinfo.tex.
3054         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3055
3056 2011-05-28  Bruno Haible  <bruno@clisp.org>
3057
3058         Finish the conditional dependencies mechanism.
3059         * gnulib-tool: New option --no-conditional-dependencies.
3060         (func_usage): Document it. Don't mark --conditional-dependencies as
3061         experimental.
3062         (cond_dependencies): The possible values can now be true, false, empty.
3063         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3064         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3065         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3066
3067 2011-05-28  Bruno Haible  <bruno@clisp.org>
3068
3069         doc: Use a recent texinfo.tex.
3070         * doc/Makefile (tex_opts): New variable.
3071         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3072
3073 2011-05-28  Jim Meyering  <meyering@redhat.com>
3074
3075         intprops.h: adjust comment to match code change
3076         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3077         only once, it *may* have side effects.  Also fix an unrelated typo.
3078         (_GL_INT_SIGNED): Likewise.
3079
3080 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3081
3082         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3083
3084 2011-05-26  Bruno Haible  <bruno@clisp.org>
3085
3086         mbsrchr: Avoid collision with system function on Interix.
3087         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3088         Reported by Markus Duft <mduft@gentoo.org>.
3089
3090 2011-05-15  James Youngman  <jay@gnu.org>
3091
3092         getopt: for ambiguous options, enumerate the possibilities.
3093         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3094         the ambiguous options when an ambiguous prefix is given. This was
3095         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3096         glibc change was
3097         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3098
3099 2011-05-25  Eric Blake  <eblake@redhat.com>
3100
3101         getcwd: work around mingw bug
3102         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3103         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3104         Reported by Matthias Bolte.
3105
3106 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3107
3108         test-intprops: disable -Wtype-limits diagnostics
3109         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3110         diagnostics.  Otherwise, the integer overflow macros generate many
3111         diagnostics.  Reported by Jim Meyering in
3112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3113
3114         intprops: shorten, to pacify gcc -Woverlength-strings
3115         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3116         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3117         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3118         likely to run afoul of C compiler limits for string constant lengths.
3119         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3120
3121 2011-05-24  Eric Blake  <eblake@redhat.com>
3122
3123         docs: document recently fixed glibc printf bug
3124         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3125         * doc/posix-functions/printf.texi (printf): Likewise.
3126         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3127         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3128
3129         closein-tests: convert to init.sh
3130         * modules/closein-tests (Files): Add init.sh
3131         * tests/test-closein.sh Use it.
3132
3133         yesno-tests: convert to init.sh
3134         * modules/yesno-tests (Files): Add init.sh.
3135         * tests/test-yesno.sh: Use it.
3136
3137         atexit-tests: ensure reliable exit status
3138         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3139         Reported by Bruno Haible.
3140
3141 2011-05-24  Bruno Haible  <bruno@clisp.org>
3142
3143         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3144         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3145         gl_PREREQ_STRERROR_R invocations from here...
3146         * modules/strerror_r-posix (configure.ac): ... to here.
3147
3148 2011-05-24  Eric Blake  <eblake@redhat.com>
3149
3150         strerror_r: fix missing header
3151         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3152
3153         strerror_r: fix AIX test failures
3154         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3155         ERANGE failure.
3156
3157         strerror_r: fix Solaris test failures
3158         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3159         failures.
3160         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3161
3162         strerror_r: enforce POSIX recommendations
3163         * lib/strerror_r.c (safe_copy): New helper method.
3164         (strerror_r): Guarantee a non-empty string.
3165         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3166         recent POSIX rulings and to match our strerror guarantees.
3167         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3168
3169 2011-05-24  Jim Meyering  <meyering@redhat.com>
3170
3171         test-perror2.c: avoid warning about unused variable
3172         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3173
3174 2011-05-24  Eric Blake  <eblake@redhat.com>
3175
3176         perror: avoid spurious test failure on HP-UX
3177         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3178
3179         tests: fix logic bug in init.sh
3180         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3181         shell.
3182
3183 2011-05-24  Jim Meyering  <meyering@redhat.com>
3184
3185         utimensat: do not reference an out-of-scope buffer
3186         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3187         declared in an inner scope, yet "times" would be dereferenced outside
3188         the scope in which "ts" was valid.
3189         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3190         of ts[2] "out/up", so that the use of aliased "times" (via
3191         "times = ts;") does not end up referencing an out-of-scope "ts"
3192
3193         opendir-safer.c: don't clobber errno; don't close negative FD
3194         * lib/opendir-safer.c (opendir_safer):
3195         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3196         file descriptor, and more importantly, don't clobber the
3197         offending errno value with EINVAL.  Before, upon failure
3198         of dup_safer, we would pass the negative file descriptor to
3199         fdopendir, which would clobber errno.
3200
3201 2011-05-23  Bruno Haible  <bruno@clisp.org>
3202
3203         idcache: Fix module description.
3204         * modules/idcache (Include): Set to "idcache.h".
3205
3206 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3207
3208         gnulib-tool: fix portability problem with MacOS sed
3209         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3210         before the "}".  Problem reported by Leo in
3211         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3212         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3213         sed_extract_condition1, sed_extract_condition2.
3214
3215 2011-05-23  Bruno Haible  <bruno@clisp.org>
3216
3217         hash: Simplify autoconf macro.
3218         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3219
3220 2011-05-23  Bruno Haible  <bruno@clisp.org>
3221
3222         getugroups: Fix module description.
3223         * modules/getugroups (Include): Set to "getugroups.h".
3224
3225 2011-05-23  Bruno Haible  <bruno@clisp.org>
3226
3227         linkat: Simplify autoconf macro.
3228         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3229
3230 2011-05-23  Bruno Haible  <bruno@clisp.org>
3231             Eric Blake  <eblake@redhat.com>
3232
3233         linkat, renameat: Update dependencies.
3234         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3235         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3236         symlinkat.
3237
3238 2011-05-23  Jim Meyering  <meyering@redhat.com>
3239
3240         maint.mk: more tight_scope improvements
3241         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3242         (_gl_TS_headers): Define only in if-0'd block.
3243         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3244         sometimes we must *not* use it.  Adjust uses accordingly.
3245         (sc_tight_scope): Use much simpler grep-based test to determine
3246         whether we skip this rule.
3247
3248         maint.mk: generalize/improve the tight-scope rule
3249         * top/maint.mk: Emit a warning when the test is skipped.
3250         (_gl_TS_dir): Add $(srcdir)/ prefix.
3251         (_gl_TS_function_match): Simplify, rather than trying
3252         to enumerate common types.  Otherwise, it would fail to match an
3253         "extern unsigned char const *" declaration in idutils.
3254         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3255         a way to support use of that type of macro.
3256         (_gl_TS_var_match): Simplify regexp.
3257         (_gl_TS_obj_files): New configurable variable.
3258         (_gl_TS_headers): Likewise.
3259
3260 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3261
3262         verify: fix bug when gnulib <assert.h> is also included
3263         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3264         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3265         Perhaps there's a better way, but this fixes the immediate problem.
3266         Problem reported by Bruno Haible in
3267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3268
3269 2011-05-22  Bruno Haible  <bruno@clisp.org>
3270
3271         xgetcwd: Simplify autoconf macro.
3272         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3273
3274 2011-05-22  Bruno Haible  <bruno@clisp.org>
3275
3276         New module 'mktime-internal'.
3277         * modules/mktime-internal: New file.
3278         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3279         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3280         mktime_internal as a C macro if libc has __mktime_internal.
3281         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3282         conditions.
3283         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3284
3285 2011-05-22  Bruno Haible  <bruno@clisp.org>
3286
3287         timegm: Correct mktime replacement statements.
3288         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3289         defining mktime as a C macro. This completes a 2009-07-28 commit.
3290
3291 2011-05-22  Bruno Haible  <bruno@clisp.org>
3292
3293         timegm: Simplify autoconf macro.
3294         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3295
3296 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         clock-time: change to LGPLv2+.
3299         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3300         BSD-like but we have no mark for that; this is good enough for now.
3301
3302 2011-05-21  Bruno Haible  <bruno@clisp.org>
3303
3304         strerror_r: Fix comments.
3305         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3306
3307 2011-05-21  Bruno Haible  <bruno@clisp.org>
3308
3309         relocatable-prog-wrapper: Fix possible link error.
3310         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3311         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3312         (gl_FUNC_SETENV): ... to here.
3313         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3314         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3315
3316 2011-05-21  Bruno Haible  <bruno@clisp.org>
3317
3318         relocatable-prog-wrapper: Assume strerror() exists.
3319         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3320         m4/strerror.m4.
3321         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3322         * lib/relocwrapper.c: Remove mention of strerror module.
3323         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3325         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3326         C macro.
3327
3328 2011-05-21  Bruno Haible  <bruno@clisp.org>
3329
3330         select: Simplify replacement idiom.
3331         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3332         Win32 platforms.
3333         * lib/sys_select.in.h (select): Simplify accordingly.
3334         * modules/select (Depends-on): Likewise.
3335
3336 2011-05-21  Bruno Haible  <bruno@clisp.org>
3337
3338         mkdir-p: Simplify autoconf macro.
3339         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3340         gl_FUNC_LCHOWN.
3341
3342 2011-05-21  Eric Blake  <eblake@redhat.com>
3343
3344         strerror_r: avoid clobbering strerror on cygwin
3345         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3346         fall back instead to sys_errlist.
3347         * modules/strerror (configure.ac): Add witness.
3348         * tests/test-strerror_r.c (main): Enhance test.
3349         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3350         * tests/test-perror2.c (main): Free memory before exit.
3351
3352 2011-05-21  Bruno Haible  <bruno@clisp.org>
3353
3354         mkdtemp: Use gnulib naming conventions.
3355         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3356         * modules/mkdtemp (configure.ac): Update.
3357
3358 2011-05-20  Eric Blake  <eblake@redhat.com>
3359
3360         strerror_r: avoid corrupting errno on Solaris
3361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3362         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3363
3364         strerror_r: avoid compiler warning
3365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3366
3367         strerror_r: simplify AIX code
3368         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3369
3370         test-perror: avoid spurious failure on FreeBSD
3371         * modules/perror-tests (Depends-on): Add strerror, now that
3372         strerror_r no longer pulls it in.
3373
3374 2011-05-20  Bruno Haible  <bruno@clisp.org>
3375
3376         strerror_r-posix: Remove unused dependencies.
3377         * modules/strerror_r-posix (Depends-on): Remove strerror.
3378         Reported by Eric Blake.
3379
3380 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3381
3382         intprops: remove assumption about A|B representation
3383         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3384         is a valid integer if both A and B are.  Although this is true for
3385         all known practical hosts, the C standard doesn't guarantee it,
3386         and the code need not assume it.  Also, this change may work around
3387         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3389
3390 2011-05-20  Eric Blake  <eblake@redhat.com>
3391
3392         perror: work around FreeBSD bug
3393         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3394         is broken.  Move AC_LIBOBJ...
3395         * modules/perror (configure.ac): Here.
3396         * doc/posix-functions/perror.texi (perror): Document this.
3397         * tests/test-perror2.c (main): Enhance test.
3398
3399         test-perror: check for strerror interactions
3400         * tests/macros.h (STREQ): Add macro.
3401         * modules/perror-tests (Files): Add second test.
3402         * tests/test-perror2.c (main): New file.
3403         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3404
3405         test-perror: rewrite to use init script
3406         * modules/perror-tests (Files): Add init.sh.
3407         * tests/test-perror.sh: Use temporary directory.
3408
3409 2011-05-20  Jim Meyering  <meyering@redhat.com>
3410
3411         maint: replace misused "a" with "an"
3412         * doc/intprops.texi: "a integer"
3413         * doc/regex.texi: "a explanation"
3414         * lib/alignof.h: "a object"
3415         * lib/argmatch.h: "a explanation"
3416         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3417         * lib/stdint.in.h: "a integer"
3418         * lib/userspec.c: "a owner"
3419         * doc/gnulib.texi: Fix "a idea", and reword.
3420
3421 2011-05-19  Jim Meyering  <meyering@redhat.com>
3422
3423         maint: correct misuse of "a" and "an"
3424         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3425         * lib/argp-help.c: "an docum...": s/an/a/
3426         * lib/argp-parse.c: "An vector": s/An/A/
3427         * lib/execute.c: "an native": s/an/a/
3428         * lib/spawn-pipe.c: Likewise.
3429         * lib/gc.h: "an Gc_rc": s/an/a/
3430         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3431         * lib/fts.c: "an stat.st_dev": s/an/a/
3432
3433 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3434
3435         intprops-tests: work around HP-UX 11.23 cc bug with constants
3436         * tests/test-intprops.c (VERIFY): New macro.
3437         (main): Use it, instead of verify, to work around the compiler bug; see
3438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3439
3440         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3441         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3442         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3443         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3444         (_GL_REMAINDER_OVERFLOW): Use it.
3445
3446         intprops-tests: revert unsigned part of previous change
3447         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3448         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3449         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3451
3452 2011-05-19  Bruno Haible  <bruno@clisp.org>
3453
3454         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3455         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3456         strerror_r() returned without filling the buffer.
3457         Reported by Eric Blake.
3458
3459 2011-05-19  Eric Blake  <eblake@redhat.com>
3460
3461         strerror_r: guarantee unchanged errno
3462         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3463         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3464         failure.
3465         * tests/test-strerror_r.c (main): Enhance test.
3466
3467 2011-05-19  Bruno Haible  <bruno@clisp.org>
3468
3469         strerror_r: Reorder #if blocks.
3470         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3471         for consistency with the previous commit.
3472
3473 2011-05-19  Bruno Haible  <bruno@clisp.org>
3474
3475         perror: Avoid clobbering the strerror buffer when possible.
3476         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3477         * lib/strerror.c: Include it.
3478         * modules/strerror (Files): Add lib/strerror-impl.h.
3479         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3480         (my_strerror): New function, defined through lib/strerror-impl.h.
3481         (perror): Use it instead of strerror.
3482         * modules/perror (Files): Add lib/strerror-impl.h.
3483         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3484
3485 2011-05-19  Eric Blake  <eblake@redhat.com>
3486
3487         strerror_r: fix on newer cygwin
3488         * lib/strerror_r.c (strerror_r): Cygwin now has
3489         __xpg_strerror_r, use it.
3490
3491 2011-05-19  Bruno Haible  <bruno@clisp.org>
3492
3493         strerror_r: Avoid clobbering the strerror buffer when possible.
3494         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3495         (sys_nerr, sys_errlist): New declarations.
3496         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3497         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3498         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3499
3500 2011-05-19  Bruno Haible  <bruno@clisp.org>
3501
3502         strerror_r: Fix test failure on mingw.
3503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3504         EXTEND_STRERROR_R.
3505         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3506         macros from errno.in.h instead.
3507
3508 2011-05-19  Eric Blake  <eblake@redhat.com>
3509
3510         strerror: relax test for Solaris
3511         * tests/test-strerror.c (main): Permit Solaris behavior.
3512         * tests/test-strerror_r.c (main): Likewise.
3513
3514         strerror: enforce POSIX ruling on strerror(0)
3515         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3517         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3518         * doc/posix-functions/strerror.texi (strerror): Document it.
3519         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3520         * tests/test-strerror.c (main): Strengthen test.
3521         * tests/test-strerror_r.c (main): Likewise.
3522
3523 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3524
3525         intprop-tests: port to older and more-pedantic compilers
3526         * modules/intprops-tests (Files): Add tests/macros.h.
3527         * tests/test-intprops.c: Include macros.h.
3528         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3529         it's no longer documented to expand to an integer constant expression.
3530         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3531         argument is floating point, as it's no longer documented to expand
3532         to an integer constant expression in that case.
3533         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3534         compiler bugs reported by Bruno Haible.  See
3535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3536         (U0, U1): New constants, to work around the same bugs.  Also,
3537         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3538
3539         intprops: work around C compiler bugs
3540         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3541         bug in Sun C 5.11 2010/08/13 and other compilers; see
3542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3543
3544         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3545         * doc/intprops.texi (Integer Type Determination): Fix
3546         documentation for TYPE_IS_INTEGER: it returns an constant
3547         expression, not an integer constant expression.  Fix doc for
3548         TYPE_SIGNED: it returns an integer constant expression only if its
3549         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3550         hardly worth documented that way....)
3551
3552 2011-05-18  Bruno Haible  <bruno@clisp.org>
3553
3554         strerror_r: Avoid clobbering the strerror buffer when possible.
3555         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3556         Handle gnulib defined errno values here. When strerror() returns NULL
3557         or an empty string, return EINVAL.
3558         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3559         gnulib defined errno values here.
3560         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3561
3562 2011-05-18  Eric Blake  <eblake@redhat.com>
3563
3564         fnmatch: avoid compiler warning
3565         * lib/fnmatch_loop.c (FCT): Use correct type.
3566         Reported by Matthias Bolte.
3567
3568 2011-05-13  Jim Meyering  <meyering@redhat.com>
3569
3570         maint.mk: three new prohibit_<HDR>_without_use rules
3571         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3572         (sc_prohibit_stdio-safer_without_use): Likewise.
3573         (sc_prohibit_xfreopen_without_use): Likewise.
3574
3575 2011-05-17  Jim Meyering  <meyering@redhat.com>
3576
3577         announce-gen: fail if the NEWS delta is empty
3578         If there's nothing noteworthy in NEWS, then either you forgot
3579         or you shouldn't be releasing.
3580         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3581
3582 2011-05-17  Pádraig Brady <P@draigBrady.com>
3583
3584         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3585         reserved symbols starting with double underscore from the check.
3586
3587 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3588
3589         intprops: add doc
3590         * doc/intprops.texi: New file, documenting intprops.
3591         * doc/gnulib.texi (Particular Modules): Include it.
3592
3593         verify: add doc to gnulib manual and fix example
3594         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3595         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3596         (Compile-time Assertions): Fix example so it can't overflow.
3597
3598 2011-05-17  Jim Meyering  <meyering@redhat.com>
3599
3600         warnings.m4: don't usurp save_CPPFLAGS variable name
3601         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3602
3603         doc: fix typo
3604         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3605
3606 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3607             Bruno Haible  <bruno@clisp.org>
3608
3609         doc: Tweak recent change.
3610         * README (Portability guidelines): Tweak new text.
3611         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3612         Interix 6.1.
3613
3614 2011-05-16  Eric Blake  <eblake@redhat.com>
3615
3616         inttypes: avoid autoconf warning
3617         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3618         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3619
3620 2011-05-16  Sam Steingold <sds@gnu.org>
3621         and Eric Blake  <eblake@redhat.com>
3622
3623         vc-list-files: accept multiple directory operands
3624         * build-aux/vc-list-files: Iterate over all remaining operands.
3625
3626 2011-05-16  Bruno Haible  <bruno@clisp.org>
3627
3628         Fix confusion regarding deprecated modules.
3629         * modules/calloc (Status, Notice): Mark module as deprecated, not
3630         obsolete.
3631         * modules/fnmatch-posix (Status, Notice): Likewise.
3632         * modules/getdate (Status, Notice): Likewise.
3633         * modules/getopt (Status, Notice): Likewise.
3634         * modules/malloc (Status, Notice): Likewise.
3635         * modules/pipe (Status, Notice): Likewise.
3636         * modules/realloc (Status, Notice): Likewise.
3637         * modules/rename-dest-slash (Status, Notice): Likewise.
3638         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3639         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3640         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3641         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3642         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3643
3644 2011-05-16  Bruno Haible  <bruno@clisp.org>
3645
3646         doc: List the target platforms.
3647         * doc/gnulib-intro.texi (Target Platforms): New section.
3648         * doc/gnulib.texi (Introduction): Update menu.
3649         * README (Portability guidelines): Refer to the new section. Update
3650         statement about oldest supported environment. Remove rationale why
3651         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3652         unportable C89 function.
3653         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3654         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3655
3656 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3659
3660 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3661
3662         intprops-tests: new module
3663         * modules/intprops-tests, tests/test-intprops.c: New files.
3664
3665         intprops: add safe, portable integer overflow checking
3666         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3667         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3668         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3669         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3670         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3671         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3672         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3673         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3674         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3675         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3676         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3677
3678 2011-05-12  James Youngman  <jay@gnu.org>
3679
3680         Add a test for glibc's Bugzilla bug #12378.
3681         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3682         doesn't allow the literal matching of a lone "[" (which is
3683         required by POSIX).
3684         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3685
3686 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3687
3688         Sync glibc change fixing Bugzilla bug #12378.
3689         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3690         beginning and fall back to matching as normal character if the
3691         string ends before the matching ']' is found.  This is what POSIX
3692         requires.
3693
3694 2011-05-13  Eric Blake  <eblake@redhat.com>
3695
3696         getcwd-lgpl: relax test for FreeBSD
3697         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3698         issue.
3699         * tests/test-getcwd-lgpl.c (main): Relax test.
3700         Reported by Matthias Bolte.
3701
3702 2011-05-11  Eric Blake  <eblake@redhat.com>
3703
3704         test-fflush: silence compiler warning
3705         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3706
3707 2011-05-11  Bruno Haible  <bruno@clisp.org>
3708
3709         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3710         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3711         * modules/canonicalize (Depends-on): Add 'nocrash'.
3712         * modules/canonicalize-lgpl (Depends-on): Likewise.
3713         * doc/posix-functions/realpath.texi: Update platforms list.
3714         Reported by Ryan Schmidt <ryandesign@macports.org>.
3715
3716 2011-05-11  Bruno Haible  <bruno@clisp.org>
3717
3718         group-member: Declare function in <unistd.h>.
3719         * lib/unistd.in.h (group_member): New declaration.
3720         * lib/group-member.h: Remove file.
3721         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3722         * tests/test-unistd-c++.cc: Check signature of group_member.
3723         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3724         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3725         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3726         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3727         HAVE_GROUP_MEMBER.
3728         * modules/group-member (Files): Remove lib/group-member.h.
3729         (Depends-on): Add unistd. Specify conditions.
3730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3731         (Include): Change to <unistd.h>.
3732         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3733         HAVE_GROUP_MEMBER.
3734         * NEWS: Mention the change.
3735         * lib/euidaccess.c: Don't include group-member.h.
3736
3737 2011-05-11  Bruno Haible  <bruno@clisp.org>
3738
3739         group-member: Document module.
3740         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3741         module.
3742
3743 2011-05-11  Bruno Haible  <bruno@clisp.org>
3744
3745         fclose: Fix mistake earlier today.
3746         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3747
3748 2011-05-11  Eric Blake  <eblake@redhat.com>
3749
3750         fclose: preserve fflush errors
3751         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3752         Reported by Jim Meyering.
3753
3754         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3755         * build-aux/bootstrap (check_versions): When no specific version
3756         is required, merely check that the app produces an exit status
3757         that indicates its existence.
3758
3759         maint.mk: drop redundant check
3760         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3761         the same but better.
3762
3763 2011-05-11  Bruno Haible  <bruno@clisp.org>
3764
3765         fclose: Fix possible link error.
3766         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3767         unregister_shadow_fd. Improve comments.
3768         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3769         Eric Blake.
3770
3771 2011-05-11  Jim Meyering  <meyering@redhat.com>
3772
3773         maint.mk: improve "can not" detection and generalize rule name
3774         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3775         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3776         Use the same technique as in sc_prohibit_doubled_word, so that
3777         we recognize "can not" also when the words are separated by a newline.
3778         Suggested by Eric Blake.
3779         (perl_filename_lineno_text_): Define.  Factored out of...
3780         (prohibit_doubled_word_): ...here.  Use the new definition.
3781         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3782         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3783         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3784
3785 2011-05-10  Eric Blake  <eblake@redhat.com>
3786
3787         fclose: avoid double close race when possible
3788         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3789         all but WINDOWS_SOCKETS.
3790
3791 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3792
3793         openat: correct new comment
3794         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3795
3796 2011-05-10  Jim Meyering  <meyering@redhat.com>
3797
3798         openat: add comments
3799         * lib/openat-proc.c (openat_proc_name): Add comments,
3800         mostly from Eric Blake.
3801
3802 2011-05-09  Eric Blake  <eblake@redhat.com>
3803
3804         openat: reduce syscalls in first probe of /proc
3805         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3806         be a directory.  Simplify the probe for .. bugs.
3807         * modules/openat (Depends-on): Drop same-inode.
3808         Reported by Bastien ROUCARIES.
3809
3810 2011-05-09  Jim Meyering  <meyering@redhat.com>
3811
3812         maint.mk: change semantics/name of tight_scope variables
3813         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3814         Rename variables to align with semantics that make them more useful.
3815
3816         maint.mk: tweak new rule's name not to impinge
3817         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3818         (sc_tight_scope): Use new rule name rather than $@-0.
3819
3820         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3821         * top/maint.mk (sc_tight_scope): New rule.
3822         (sc_tight_scope-0): New rule, ifdef'd out.
3823         (_gl_TS_dir): Default.
3824         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3825         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3826
3827 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3828
3829         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3830         Haible <bruno@clisp.org>.
3831
3832 2011-05-08  Bruno Haible  <bruno@clisp.org>
3833
3834         Comments.
3835         * m4/isnanf.m4: Add comment.
3836         * m4/isnanl.m4: Likewise.
3837
3838 2011-05-08  Bruno Haible  <bruno@clisp.org>
3839
3840         glob: Remove obsolete macro.
3841         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3842
3843 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3844
3845         intprops: Sun C 5.11 supports __typeof__
3846         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3847         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3848         which is new.
3849         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3850
3851         intprops: switch to usual gnulib indenting and naming
3852         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3853         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3854
3855         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3856
3857 2011-05-08  Jim Meyering  <meyering@redhat.com>
3858
3859         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3860         * top/maint.mk (release-prep): Use make's --no-print-directory
3861         option when generating the announcement.  This eliminates the
3862         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3863         generated announcement template.
3864
3865 2011-05-08  Bruno Haible  <bruno@clisp.org>
3866
3867         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3868         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3869         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3870
3871 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3872
3873         ignore-value, verify: Omit include files from lib_SOURCES.
3874         * modules/ignore-value, modules/verify (Makefile.am):
3875         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3876         that leads Automake to duplicate use of am__objects_... variables
3877         in Makefile.in.  See
3878         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3879
3880 2011-05-07  Bruno Haible  <bruno@clisp.org>
3881
3882         fclose: Simplify autoconf macro.
3883         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3884         defined.
3885
3886 2011-05-07  Bruno Haible  <bruno@clisp.org>
3887
3888         canonicalize-lgpl: Fix autoconf macro ordering bug.
3889         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3890         gl_STDLIB_H_DEFAULTS.
3891
3892 2011-05-06  Eric Blake  <eblake@redhat.com>
3893
3894         maintainer-makefile: make sc_po_check easier to tune
3895         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3896         to probe for strings, such as an alternate location for gnulib.
3897
3898         fclose: guarantee behavior on seekable stdin
3899         * modules/fclose (Depends-on): Add fflush.
3900         * doc/posix-functions/fclose.texi (fclose): Document this.
3901         * tests/test-fclose.c (main): Make test for this unconditional.
3902
3903 2011-05-06  Bruno Haible  <bruno@clisp.org>
3904
3905         fflush, fpurge: Relicense under LGPLv2+.
3906         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3907         * modules/fpurge (License): Likewise.
3908         With permission from Eric Blake and Jim Meyering.
3909         Suggested by Eric Blake.
3910
3911 2011-05-06  Karl Berry  <karl@gnu.org>
3912
3913         * MODULES.html.sh (func_all_modules): remove exit.
3914
3915 2011-05-06  Jim Meyering  <meyering@redhat.com>
3916
3917         maint.mk: use info-gnu@ as the default only for a stable release
3918         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3919         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3920         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3921         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3922
3923 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3924
3925         assert-h: new module, which supports C1X-style static_assert
3926         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3927         * lib/verify.h: Revamp so that this can be copied into assert.h,
3928         while retaining the ability to use it standalone as before.
3929         Rename private identifiers so as not to encroach on the
3930         standard C namespace, since this is now used by assert.h.
3931         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3932         the old verify_true.
3933         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3934         the old verify_true.  Use _GL_VERIFY_TYPE.
3935         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3936         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3937         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3938         defined when this file is copied into the replacement assert.h.
3939         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3940         and _Static_assert is not built in.
3941         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3942         defined, and use the new macros mentioned above.
3943         * doc/posix-headers/assert.texi: Document this.
3944
3945 2011-05-05  Bruno Haible  <bruno@clisp.org>
3946
3947         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3948         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3949         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3950         gl_REPLACE_FCLOSE here.
3951         * modules/fflush (Depends-on): Remove fclose.
3952         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3953         combination with module 'fclose'.
3954
3955 2011-05-05  Bruno Haible  <bruno@clisp.org>
3956
3957         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3958         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3959         gl_FUNC_FFLUSH.
3960         (gl_FUNC_FFLUSH): Use it.
3961         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3962         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3963         gl_REPLACE_FSEEKO here.
3964
3965 2011-05-05  Bruno Haible  <bruno@clisp.org>
3966
3967         tzset: Relicense under LGPL.
3968         * modules/tzset (License): Change to LGPL.
3969         No agreement needed; it's a no-op.
3970
3971         strtoimax, strtoumax: Relicense under LGPL.
3972         * modules/strtoimax (License): Change to LGPL.
3973         * modules/strtoumax (License): Likewise.
3974         With permission from Jim Meyering, Paul Eggert:
3975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3977
3978         getgroups: Relicense under LGPL.
3979         * modules/getgroups (License): Change to LGPL.
3980         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3984
3985         nanosleep: Relicense under LGPL.
3986         * modules/nanosleep (License): Change to LGPL.
3987         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3988         Haible:
3989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3993
3994         futimens: Relicense under LGPL.
3995         * modules/futimens (License): Change to LGPL.
3996         With permission from Eric Blake:
3997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3998
3999         fflush: Relicense under LGPL.
4000         * modules/fflush (License): Change to LGPL.
4001         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4005
4006         tmpfile: Relicense under LGPL.
4007         * modules/tmpfile (License): Change to LGPL.
4008         With permission from Ben Pfaff:
4009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4010
4011         isfinite: Relicense under LGPL.
4012         * modules/isfinite (License): Change to LGPL.
4013         With permission from Ben Pfaff, Bruno Haible:
4014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4016
4017         acosl..tanl: Relicense under LGPL.
4018         * modules/acosl (License): Change to LGPL.
4019         * modules/asinl (License): Likewise.
4020         * modules/atanl (License): Likewise.
4021         * modules/cosl (License): Likewise.
4022         * modules/expl (License): Likewise.
4023         * modules/logl (License): Likewise.
4024         * modules/sinl (License): Likewise.
4025         * modules/sqrtl (License): Likewise.
4026         * modules/tanl (License): Likewise.
4027         Source code originally from glibc and Paolo Bonzini. Agreements:
4028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4030
4031 2011-05-05  Bruno Haible  <bruno@clisp.org>
4032
4033         signal: Define sighandler_t.
4034         * lib/signal.in.h (sighandler_t): New type.
4035         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4036         whether sighandler_t is defined.
4037         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4038         * modules/signal (Depends-on): Add extensions.
4039         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4040         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4041         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4042
4043 2011-05-05  Eric Blake  <eblake@redhat.com>
4044
4045         maint: remove useless REPLACE_*_H macros
4046         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4047         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4048         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4049         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4050         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4051         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4052         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4053         * m4/btowc.m4: Update callers.
4054         * m4/dirfd.m4: Likewise.
4055         * m4/duplocale.m4: Likewise.
4056         * m4/fchdir.m4: Likewise.
4057         * m4/fdopendir.m4: Likewise.
4058         * m4/inet_ntop.m4: Likewise.
4059         * m4/inet_pton.m4: Likewise.
4060         * m4/ioctl.m4: Likewise.
4061         * m4/mbrlen.m4: Likewise.
4062         * m4/mbrtowc.m4: Likewise.
4063         * m4/mbsinit.m4: Likewise.
4064         * m4/mbsnrtowcs.m4: Likewise.
4065         * m4/mbsrtowcs.m4: Likewise.
4066         * m4/poll.m4: Likewise.
4067         * m4/setlocale.m4: Likewise.
4068         * m4/wcrtomb.m4: Likewise.
4069         * m4/wcsnrtombs.m4: Likewise.
4070         * m4/wcsrtombs.m4: Likewise.
4071         * m4/wctob.m4: Likewise.
4072         * m4/wcwidth.m4: Likewise.
4073         * modules/posix_spawn: Likewise.
4074         * modules/posix_spawn_file_actions_addclose: Likewise.
4075         * modules/posix_spawn_file_actions_adddup2: Likewise.
4076         * modules/posix_spawn_file_actions_addopen: Likewise.
4077         * modules/posix_spawn_file_actions_destroy: Likewise.
4078         * modules/posix_spawn_file_actions_init: Likewise.
4079         * modules/posix_spawnattr_destroy: Likewise.
4080         * modules/posix_spawnattr_getflags: Likewise.
4081         * modules/posix_spawnattr_getpgroup: Likewise.
4082         * modules/posix_spawnattr_getschedparam: Likewise.
4083         * modules/posix_spawnattr_getschedpolicy: Likewise.
4084         * modules/posix_spawnattr_getsigdefault: Likewise.
4085         * modules/posix_spawnattr_getsigmask: Likewise.
4086         * modules/posix_spawnattr_init: Likewise.
4087         * modules/posix_spawnattr_setflags: Likewise.
4088         * modules/posix_spawnattr_setpgroup: Likewise.
4089         * modules/posix_spawnattr_setschedparam: Likewise.
4090         * modules/posix_spawnattr_setschedpolicy: Likewise.
4091         * modules/posix_spawnattr_setsigdefault: Likewise.
4092         * modules/posix_spawnattr_setsigmask: Likewise.
4093         * modules/posix_spawnp: Likewise.
4094
4095 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4096
4097         Add option to do-release-commit-and-tag to specify branch.
4098         * build-aux/do-release-commit-and-tag: Add --branch.
4099
4100 2011-05-03  Bruno Haible  <bruno@clisp.org>
4101
4102         Avoid unnecessary compilation units, through conditional dependencies.
4103         * modules/accept (Depends-on): Add conditions to the dependencies.
4104         * modules/acosl (Depends-on): Likewise.
4105         * modules/argz (Depends-on): Likewise.
4106         * modules/asinl (Depends-on): Likewise.
4107         * modules/atanl (Depends-on): Likewise.
4108         * modules/atoll (Depends-on): Likewise.
4109         * modules/bind (Depends-on): Likewise.
4110         * modules/btowc (Depends-on): Likewise.
4111         * modules/canonicalize-lgpl (Depends-on): Likewise.
4112         * modules/ceil (Depends-on): Likewise.
4113         * modules/ceilf (Depends-on): Likewise.
4114         * modules/ceill (Depends-on): Likewise.
4115         * modules/chdir-long (Depends-on): Likewise.
4116         * modules/chown (Depends-on): Likewise.
4117         * modules/close (Depends-on): Likewise.
4118         * modules/connect (Depends-on): Likewise.
4119         * modules/cosl (Depends-on): Likewise.
4120         * modules/dirfd (Depends-on): Likewise.
4121         * modules/dprintf (Depends-on): Likewise.
4122         * modules/dprintf-posix (Depends-on): Likewise.
4123         * modules/error (Depends-on): Likewise.
4124         * modules/euidaccess (Depends-on): Likewise.
4125         * modules/expl (Depends-on): Likewise.
4126         * modules/faccessat (Depends-on): Likewise.
4127         * modules/fchdir (Depends-on): Likewise.
4128         * modules/fclose (Depends-on): Likewise.
4129         * modules/fcntl (Depends-on): Likewise.
4130         * modules/fdopendir (Depends-on): Likewise.
4131         * modules/fflush (Depends-on): Likewise.
4132         * modules/floor (Depends-on): Likewise.
4133         * modules/floorf (Depends-on): Likewise.
4134         * modules/floorl (Depends-on): Likewise.
4135         * modules/fnmatch (Depends-on): Likewise.
4136         * modules/fopen (Depends-on): Likewise.
4137         * modules/fprintf-posix (Depends-on): Likewise.
4138         * modules/frexp (Depends-on): Likewise.
4139         * modules/frexp-nolibm (Depends-on): Likewise.
4140         * modules/frexpl (Depends-on): Likewise.
4141         * modules/frexpl-nolibm (Depends-on): Likewise.
4142         * modules/fseek (Depends-on): Likewise.
4143         * modules/fsusage (Depends-on): Likewise.
4144         * modules/ftell (Depends-on): Likewise.
4145         * modules/ftello (Depends-on): Likewise.
4146         * modules/futimens (Depends-on): Likewise.
4147         * modules/getcwd (Depends-on): Likewise.
4148         * modules/getcwd-lgpl (Depends-on): Likewise.
4149         * modules/getdelim (Depends-on): Likewise.
4150         * modules/getdomainname (Depends-on): Likewise.
4151         * modules/getgroups (Depends-on): Likewise.
4152         * modules/gethostname (Depends-on): Likewise.
4153         * modules/getline (Depends-on): Likewise.
4154         * modules/getlogin_r (Depends-on): Likewise.
4155         * modules/getopt-posix (Depends-on): Likewise.
4156         * modules/getpeername (Depends-on): Likewise.
4157         * modules/getsockname (Depends-on): Likewise.
4158         * modules/getsockopt (Depends-on): Likewise.
4159         * modules/getsubopt (Depends-on): Likewise.
4160         * modules/getusershell (Depends-on): Likewise.
4161         * modules/glob (Depends-on): Likewise.
4162         * modules/grantpt (Depends-on): Likewise.
4163         * modules/iconv_open (Depends-on): Likewise.
4164         * modules/iconv_open-utf (Depends-on): Likewise.
4165         * modules/inet_ntop (Depends-on): Likewise.
4166         * modules/inet_pton (Depends-on): Likewise.
4167         * modules/ioctl (Depends-on): Likewise.
4168         * modules/isapipe (Depends-on): Likewise.
4169         * modules/isfinite (Depends-on): Likewise.
4170         * modules/isinf (Depends-on): Likewise.
4171         * modules/lchown (Depends-on): Likewise.
4172         * modules/ldexpl (Depends-on): Likewise.
4173         * modules/link (Depends-on): Likewise.
4174         * modules/linkat (Depends-on): Likewise.
4175         * modules/listen (Depends-on): Likewise.
4176         * modules/logl (Depends-on): Likewise.
4177         * modules/lstat (Depends-on): Likewise.
4178         * modules/mbrlen (Depends-on): Likewise.
4179         * modules/mbrtowc (Depends-on): Likewise.
4180         * modules/mbsinit (Depends-on): Likewise.
4181         * modules/mbsnrtowcs (Depends-on): Likewise.
4182         * modules/mbsrtowcs (Depends-on): Likewise.
4183         * modules/mbtowc (Depends-on): Likewise.
4184         * modules/memcmp (Depends-on): Likewise.
4185         * modules/mkdir (Depends-on): Likewise.
4186         * modules/mkdtemp (Depends-on): Likewise.
4187         * modules/mkfifo (Depends-on): Likewise.
4188         * modules/mkfifoat (Depends-on): Likewise.
4189         * modules/mknod (Depends-on): Likewise.
4190         * modules/mkostemp (Depends-on): Likewise.
4191         * modules/mkostemps (Depends-on): Likewise.
4192         * modules/mkstemp (Depends-on): Likewise.
4193         * modules/mkstemps (Depends-on): Likewise.
4194         * modules/mktime (Depends-on): Likewise.
4195         * modules/nanosleep (Depends-on): Likewise.
4196         * modules/open (Depends-on): Likewise.
4197         * modules/openat (Depends-on): Likewise.
4198         * modules/perror (Depends-on): Likewise.
4199         * modules/poll (Depends-on): Likewise.
4200         * modules/popen (Depends-on): Likewise.
4201         * modules/posix_spawn (Depends-on): Likewise.
4202         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4203         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4204         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4205         * modules/posix_spawnp (Depends-on): Likewise.
4206         * modules/pread (Depends-on): Likewise.
4207         * modules/printf-posix (Depends-on): Likewise.
4208         * modules/ptsname (Depends-on): Likewise.
4209         * modules/putenv (Depends-on): Likewise.
4210         * modules/pwrite (Depends-on): Likewise.
4211         * modules/readline (Depends-on): Likewise.
4212         * modules/readlink (Depends-on): Likewise.
4213         * modules/readlinkat (Depends-on): Likewise.
4214         * modules/recv (Depends-on): Likewise.
4215         * modules/recvfrom (Depends-on): Likewise.
4216         * modules/regex (Depends-on): Likewise.
4217         * modules/remove (Depends-on): Likewise.
4218         * modules/rename (Depends-on): Likewise.
4219         * modules/renameat (Depends-on): Likewise.
4220         * modules/rmdir (Depends-on): Likewise.
4221         * modules/round (Depends-on): Likewise.
4222         * modules/roundf (Depends-on): Likewise.
4223         * modules/roundl (Depends-on): Likewise.
4224         * modules/rpmatch (Depends-on): Likewise.
4225         * modules/select (Depends-on): Likewise.
4226         * modules/send (Depends-on): Likewise.
4227         * modules/sendto (Depends-on): Likewise.
4228         * modules/setenv (Depends-on): Likewise.
4229         * modules/setlocale (Depends-on): Likewise.
4230         * modules/setsockopt (Depends-on): Likewise.
4231         * modules/shutdown (Depends-on): Likewise.
4232         * modules/sigaction (Depends-on): Likewise.
4233         * modules/signbit (Depends-on): Likewise.
4234         * modules/sigprocmask (Depends-on): Likewise.
4235         * modules/sinl (Depends-on): Likewise.
4236         * modules/sleep (Depends-on): Likewise.
4237         * modules/snprintf (Depends-on): Likewise.
4238         * modules/snprintf-posix (Depends-on): Likewise.
4239         * modules/socket (Depends-on): Likewise.
4240         * modules/sprintf-posix (Depends-on): Likewise.
4241         * modules/sqrtl (Depends-on): Likewise.
4242         * modules/stat (Depends-on): Likewise.
4243         * modules/strchrnul (Depends-on): Likewise.
4244         * modules/strdup-posix (Depends-on): Likewise.
4245         * modules/strerror (Depends-on): Likewise.
4246         * modules/strerror_r-posix (Depends-on): Likewise.
4247         * modules/strndup (Depends-on): Likewise.
4248         * modules/strnlen (Depends-on): Likewise.
4249         * modules/strptime (Depends-on): Likewise.
4250         * modules/strsep (Depends-on): Likewise.
4251         * modules/strsignal (Depends-on): Likewise.
4252         * modules/strstr-simple (Depends-on): Likewise.
4253         * modules/strtod (Depends-on): Likewise.
4254         * modules/strtoimax (Depends-on): Likewise.
4255         * modules/strtok_r (Depends-on): Likewise.
4256         * modules/strtoumax (Depends-on): Likewise.
4257         * modules/symlink (Depends-on): Likewise.
4258         * modules/symlinkat (Depends-on): Likewise.
4259         * modules/tanl (Depends-on): Likewise.
4260         * modules/tcgetsid (Depends-on): Likewise.
4261         * modules/tmpfile (Depends-on): Likewise.
4262         * modules/trunc (Depends-on): Likewise.
4263         * modules/truncf (Depends-on): Likewise.
4264         * modules/truncl (Depends-on): Likewise.
4265         * modules/uname (Depends-on): Likewise.
4266         * modules/unlink (Depends-on): Likewise.
4267         * modules/unlockpt (Depends-on): Likewise.
4268         * modules/unsetenv (Depends-on): Likewise.
4269         * modules/usleep (Depends-on): Likewise.
4270         * modules/utimensat (Depends-on): Likewise.
4271         * modules/vasprintf (Depends-on): Likewise.
4272         * modules/vdprintf (Depends-on): Likewise.
4273         * modules/vdprintf-posix (Depends-on): Likewise.
4274         * modules/vfprintf-posix (Depends-on): Likewise.
4275         * modules/vprintf-posix (Depends-on): Likewise.
4276         * modules/vsnprintf (Depends-on): Likewise.
4277         * modules/vsnprintf-posix (Depends-on): Likewise.
4278         * modules/vsprintf-posix (Depends-on): Likewise.
4279         * modules/wcrtomb (Depends-on): Likewise.
4280         * modules/wcscasecmp (Depends-on): Likewise.
4281         * modules/wcscspn (Depends-on): Likewise.
4282         * modules/wcsdup (Depends-on): Likewise.
4283         * modules/wcsncasecmp (Depends-on): Likewise.
4284         * modules/wcsnrtombs (Depends-on): Likewise.
4285         * modules/wcspbrk (Depends-on): Likewise.
4286         * modules/wcsrtombs (Depends-on): Likewise.
4287         * modules/wcsspn (Depends-on): Likewise.
4288         * modules/wcsstr (Depends-on): Likewise.
4289         * modules/wcstok (Depends-on): Likewise.
4290         * modules/wcswidth (Depends-on): Likewise.
4291         * modules/wctob (Depends-on): Likewise.
4292         * modules/wctomb (Depends-on): Likewise.
4293         * modules/wctype (Depends-on): Likewise.
4294         * modules/wcwidth (Depends-on): Likewise.
4295         * modules/write (Depends-on): Likewise.
4296
4297 2011-05-03  Bruno Haible  <bruno@clisp.org>
4298
4299         Support for conditional dependencies.
4300         * doc/gnulib.texi (Module description): Document the syntax of
4301         conditional dependencies.
4302         * gnulib-tool: New option --conditional-dependencies.
4303         (func_usage): Document it.
4304         (cond_dependencies): New variable.
4305         (func_get_automake_snippet_conditional,
4306         func_get_automake_snippet_unconditional): New functions, extracted from
4307         func_get_automake_snippet.
4308         (func_get_automake_snippet): Use them.
4309         (sed_first_32_chars): New variable.
4310         (func_module_shellfunc_name): New function.
4311         (func_module_shellvar_name): New function.
4312         (func_module_conditional_name): New function.
4313         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4314         func_cond_module_condition): New functions.
4315         (func_modules_transitive_closure): Add support for conditional
4316         dependencies.
4317         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4318         conditional automake snippet in an automake conditional.
4319         (func_emit_autoconf_snippets): Emit shell functions that contain the
4320         code for conditional modules.
4321         (func_import, func_create_testdir): Update specification.
4322
4323 2011-05-03  Eric Blake  <eblake@redhat.com>
4324
4325         test-getaddrinfo: report error information
4326         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4327
4328 2011-05-03  Jim Meyering  <meyering@redhat.com>
4329
4330         bootstrap: avoid build failure when $GZIP is set
4331         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4332         program name.  If defined at all, it is supposed to list gzip options.
4333         Reported by Alan Curry in http://debbugs.gnu.org/8609
4334
4335 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4336
4337         readme-release: new module with release instructions
4338         * modules/readme-release: New module.
4339         * top/README-release: New file, from coreutils, grep, diffutils.
4340         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4341
4342 2011-05-02  Eric Blake  <eblake@redhat.com>
4343
4344         fflush: also replace fclose when fixing fflush
4345         * modules/fflush (Depends-on): Add fclose.
4346         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4347         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4348         memstreams with no backing fd.
4349         * doc/posix-functions/fclose.texi (fclose): Document the use of
4350         fflush module to fix the bug.
4351         * tests/test-fclose.c (main): Relax test when fclose is used in
4352         isolation.
4353
4354         fclose: add some tests
4355         * modules/fclose-tests: New test module.
4356         * tests/test-fclose.c: New file.
4357         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4358
4359         fclose: reduced dependencies
4360         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4361         simpler lseek.
4362         * lib/fclose.c (rpl_fclose): Likewise.
4363         Reported by Simon Josefsson.
4364
4365         exit: drop remaining clients
4366         * modules/argmatch (Depends-on): Replace exit with stdlib.
4367         * modules/copy-file (Depends-on): Likewise.
4368         * modules/execute (Depends-on): Likewise.
4369         * modules/exitfail (Depends-on): Likewise.
4370         * modules/obstack (Depends-on): Likewise.
4371         * modules/pagealign_alloc (Depends-on): Likewise.
4372         * modules/pipe-filter-gi (Depends-on): Likewise.
4373         * modules/pipe-filter-ii (Depends-on): Likewise.
4374         * modules/savewd (Depends-on): Likewise.
4375         * modules/spawn-pipe (Depends-on): Likewise.
4376         * modules/wait-process (Depends-on): Likewise.
4377         * modules/xsetenv (Depends-on): Likewise.
4378         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4379         * modules/git-merge-changelog (Depends-on): Likewise.
4380         * modules/long-options (Depends-on): Likewise.
4381         * modules/pt_chown (Depends-on): Likewise.
4382         * modules/sysexits (Depends-on): Likewise.
4383
4384         freading: relax license from LGPLv3+ to LGPLv2+
4385         * modules/freading (License): Relax LGPL version.
4386
4387 2011-05-02  Bruno Haible  <bruno@clisp.org>
4388
4389         fchdir: Remove unused dependencies.
4390         * modules/fchdir (Depends-on): Remove include_next.
4391
4392 2011-05-02  Bruno Haible  <bruno@clisp.org>
4393
4394         gnulib-tool: Refactor.
4395         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4396         from func_emit_autoconf_snippets.
4397         (func_emit_autoconf_snippets): Use it.
4398
4399 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4400
4401         * NEWS: Document removal of 'exit'.
4402         * modules/exit: Remove file.
4403
4404 2011-05-01  Bruno Haible  <bruno@clisp.org>
4405
4406         Update DEPENDENCIES.
4407         * DEPENDENCIES (gettext): Recommend the newest release.
4408         Reported by Simon Josefsson.
4409
4410 2011-05-01  Bruno Haible  <bruno@clisp.org>
4411
4412         gnulib-tool: Reduce code duplication.
4413         * gnulib-tool (func_emit_autoconf_snippets): New function.
4414         (func_import, func_create_testdir): Use it.
4415
4416 2011-04-30  Eric Blake  <eblake@redhat.com>
4417
4418         fclose: don't fail on non-seekable input stream
4419         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4420         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4421         since fflush is allowed to fail in that case.
4422
4423 2011-04-30  Bruno Haible  <bruno@clisp.org>
4424
4425         dup3: cleanup
4426         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4427
4428 2011-04-30  Bruno Haible  <bruno@clisp.org>
4429
4430         netdb: Make it work in C++ mode.
4431         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4432         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4433         module.
4434         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4435         gl_MODULE_INDICATOR_FOR_TESTS.
4436         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4437         * modules/netdb-c++-tests: New file.
4438         * tests/test-netdb-c++.cc: New file.
4439
4440 2011-04-30  Bruno Haible  <bruno@clisp.org>
4441
4442         New modules 'vfscanf', 'vscanf'.
4443         * modules/vfscanf: New file.
4444         * modules/vscanf: New file.
4445         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4446         here.
4447         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4448         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4449
4450 2011-04-30  Bruno Haible  <bruno@clisp.org>
4451
4452         passfd: Add comments.
4453         * lib/passfd.c: Add comments about platforms.
4454
4455 2011-04-30  Bruno Haible  <bruno@clisp.org>
4456
4457         sys_uio: Make <sys/uio.h> self-contained.
4458         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4459         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4460
4461 2011-04-30  Bruno Haible  <bruno@clisp.org>
4462
4463         sys_socket: Ensure 'struct iovec' definition.
4464         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4465         <sys/socket.h>.
4466         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4467
4468 2011-04-30  Bruno Haible  <bruno@clisp.org>
4469
4470         sys_uio: Protect definition of 'struct iovec'.
4471         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4472         it as a C struct.
4473
4474 2011-04-30  Bruno Haible  <bruno@clisp.org>
4475
4476         manywarnings: fix indentation
4477         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4478
4479 2011-04-30  Pádraig Brady <P@draigBrady.com>
4480
4481         manywarnings: add -Wno-missing-field-initializers if needed.
4482         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4483         option if it's needed to allow initialization with { 0, }
4484
4485 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4486
4487         announce-gen: cosmetic improvement
4488         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4489
4490 2011-04-29  Jim Meyering  <meyering@redhat.com>
4491
4492         vc-list-files: indent with spaces, not TABs
4493         * build-aux/vc-list-files: Convert leading TABs to spaces,
4494         to match the style of most other files in gnulib.
4495
4496         announce-gen: indent with spaces, not TABs
4497         * build-aux/announce-gen: Convert all TABs to spaces, to match
4498         the style of most other files in gnulib.
4499
4500 2011-04-29  Eric Blake  <eblake@redhat.com>
4501
4502         quotearg: avoid uninitialized variable use
4503         * lib/quotearg.c (quoting_options_from_style): Initialize
4504         remaining fields, and ensure that custom styles are only used via
4505         quoting_options rather than quoting_style.
4506
4507 2011-04-29  Jim Meyering  <meyering@redhat.com>
4508
4509         maint.mk: remove unused VC-tag variable
4510         * top/maint.mk (VC-tag): Remove unused variable.
4511
4512 2011-04-29  Bruno Haible  <bruno@clisp.org>
4513
4514         netdb: fix gai_strerror replacements
4515         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4516         * modules/netdb: Substitute it.
4517
4518 2011-04-29  Jim Meyering  <meyering@redhat.com>
4519
4520         test-getcwd.c: avoid new set-but-not-used warning
4521         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4522         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4523         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4524         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4525
4526         test-hash.c: avoid a new shadowing warning
4527         * tests/test-hash.c (main): Don't shadow "dup".
4528
4529 2011-04-28  Eric Blake  <eblake@redhat.com>
4530
4531         getaddrinfo: fix gai_strerror signature
4532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4533         and work around mingw with UNICODE defined.
4534         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4535         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4536         * modules/netdb (Makefile.am): Substitute it.
4537         * lib/netdb.in.h (gai_strerror): Declare replacement.
4538         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4539         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4540         the fix.
4541
4542         getsockopt: avoid compiler warning
4543         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4544         Reported by Matthias Bolte.
4545
4546         tests: drop unused link dependency
4547         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4548         * modules/dirent-safer-tests (Makefile.am): Likewise.
4549         * modules/fdopendir-tests (Makefile.am): Likewise.
4550         * modules/mkfifoat-tests (Makefile.am): Likewise.
4551         * modules/openat-safer-tests (Makefile.am): Likewise.
4552         * modules/openat-tests (Makefile.am): Likewise.
4553         * modules/readlinkat-tests (Makefile.am): Likewise.
4554         * modules/symlinkat-tests (Makefile.am): Likewise.
4555         * modules/linkat-tests (Makefile.am): Likewise.
4556         (Depends-on): Switch to filenamecat-lgpl.
4557         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4558         LIBINTL.
4559         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4560         * tests/test-linkat.c (main): Don't require xalloc.
4561
4562         hash, mgetgroups: drop xalloc dependency
4563         * lib/hash.c (includes): Adjust includes.
4564         * lib/mgetgroups.c (includes): Likewise.
4565         (xgetgroups): Move...
4566         * lib/xgetgroups.c: ...to new file.
4567         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4568         * modules/xgetgroups: New file, split from...
4569         * modules/mgetgroups: ...here.
4570         (Depends-on): Add xalloc-oversized.
4571         * modules/hash (Depends-on): Likewise.
4572         * modules/hash-tests (Depends-on): Drop xalloc.
4573         (test_hash_LDADD): Drop unused library.
4574         * tests/test-hash.c (main): Break xalloc dependency.
4575         (includes): Drop unused include.
4576
4577         xalloc-oversized: new module
4578         * modules/xalloc-oversized: New module.
4579         * modules/xalloc (Depends-on): Add it.
4580         * lib/xalloc.h (xalloc_oversized): Move...
4581         * lib/xalloc-oversized.h: ...into new file.
4582
4583         utimecmp: drop dependency on xmalloc
4584         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4585         due to memory pressure.
4586         * modules/utimecmp (Depends-on): Drop xalloc.
4587
4588 2011-04-27  Eric Blake  <eblake@redhat.com>
4589
4590         getcwd: fix mingw bugs
4591         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4592         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4593         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4594
4595 2011-04-27  Bruno Haible  <bruno@clisp.org>
4596
4597         mkstemps: Ensure declaration on MacOS X 10.5.
4598         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4599         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4600         MacOS X.
4601
4602 2011-04-27  Bruno Haible  <bruno@clisp.org>
4603
4604         mkstemp: More documentation.
4605         * doc/posix-functions/mkstemp.texi: Document header file problem on
4606         MacOS X.
4607
4608 2011-04-27  Bruno Haible  <bruno@clisp.org>
4609
4610         mkstemp: Tweak configure message when cross-compiling.
4611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4612         result as a guess.
4613
4614 2011-04-27  Bruno Haible  <bruno@clisp.org>
4615
4616         clean-temp: Clarify what it does.
4617         * lib/clean-temp.h: Add more comments.
4618         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4619         module.
4620         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4621         * doc/glibc-functions/mkstemps.texi: Likewise.
4622         * doc/glibc-functions/mkostemps.texi: Likewise.
4623
4624 2011-04-27  Eric Blake  <eblake@redhat.com>
4625
4626         fchdir: avoid extra chdir and fix test
4627         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4628         getcwd-lgpl.
4629         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4630         have to be canonical.
4631         (canonicalize_file_name): Drop unused macro.
4632         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4633
4634         filenamecat-lgpl: fix licence
4635         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4636         when it was first created.
4637
4638         linkat, renameat: add missing dependency
4639         * modules/linkat (Depends-on): Require getcwd-lgpl.
4640         * modules/renameat (Depends-on): Likewise.
4641
4642         tests: reduce dependencies
4643         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4644         * tests/test-renameat.c (main): Likewise.
4645         * modules/linkat-tests (Depends-on): Relax dependency.
4646         * modules/renameat-tests (Depends-on): Likewise.
4647         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4648         dependency explicit.
4649
4650         save-cwd: reduce default dependency
4651         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4652         * lib/save-cwd.c: Update comments.
4653         * NEWS: Document the semantic change.
4654
4655         getcwd: enhance tests
4656         * tests/test-getcwd-lgpl.c: New file, taken from...
4657         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4658         repeat long path stress tests from m4 probe.
4659         * modules/getcwd-lgpl-tests: New module.
4660         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4661         * m4/getcwd-abort-bug.m4: Update comment.
4662         * m4/getcwd-path-max.m4: Likewise.
4663
4664         getcwd-lgpl: new module
4665         * modules/getcwd-lgpl: New module.
4666         * lib/getcwd-lgpl.c: New file.
4667         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4668         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4669         * modules/getcwd (configure.ac): Set C witness.
4670         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4671
4672         getcwd: tweak comments
4673         * m4/getcwd-abort-bug.m4: Fix comments.
4674         * m4/getcwd-path-max.m4: Likewise.
4675         * m4/getcwd.m4: Likewise.
4676
4677 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4678         and Eric Blake  <eblake@redhat.com>
4679
4680         mkstemp: replace if system version uses wrong permissions
4681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4682         read/write mode bits set in file created by mkstemp.
4683         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4684
4685 2011-04-27  Eric Blake  <eblake@redhat.com>
4686
4687         passfd: avoid compiler warning
4688         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4689         Reported by Laine Stump.
4690
4691 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4692
4693         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4694         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4695
4696 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4697         and Eric Blake  <eblake@redhat.com>
4698
4699         mkstemp: mention clean-temp module
4700         * lib/mkstemp.c: Add comment.
4701         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4702
4703 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         inttypes: also provide default values for 32-bit tests
4706         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4707         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4708
4709 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4710
4711         strtoumax: remove dependency on strtoimax
4712         This is like the strtoull change of yesterday.
4713         * modules/strtoumax (Files): Add lib/strtoimax.c.
4714         (Depends-on): Remove strtoimax and add verify.
4715
4716         inttypes-incomplete: new module
4717         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4718         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4719         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4720         of gl_INTTYPES_H.
4721         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4722         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4723         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4724         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4725         * modules/strtoumax, modules/xstrtol (Depends-on):
4726         Depend on inttypes-incomplete, not inttypes.
4727         * modules/inttypes-incomplete: New module, containing the contents
4728         of the old modules/inttypes module, except that the Files: section
4729         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4730         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4731         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4732         (Depends-on): Depend only on inttypes-incomplete.
4733         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4734
4735         inttypes: omit now-redundant strtoimax and strtoumax work
4736         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4737         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4738
4739         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4740         This supports apps that need pointers to strtoimax and strtoumax,
4741         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4742         nonexistent functions.  See
4743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4744         et seq.
4745         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4747         a macro.
4748         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4749
4750 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4751
4752         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4753
4754 2011-04-25  Bruno Haible  <bruno@clisp.org>
4755
4756         strtol, strtoul: Mark modules as obsolete.
4757         * modules/strtol (Status, Notice): New sections.
4758         * modules/strtoul (Status, Notice): New sections.
4759
4760 2011-04-25  Bruno Haible  <bruno@clisp.org>
4761
4762         strtod: Remove check for strtod, unless supporting old platforms.
4763         * modules/strtod-obsolete: New file.
4764         * m4/strtod-obsolete.m4: New file.
4765         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4766         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4767         * modules/strtod (Depends-on): Add strtod-obsolete.
4768         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4769
4770 2011-04-25  Bruno Haible  <bruno@clisp.org>
4771
4772         strcase: Make module obsolete.
4773         * modules/strcase (Status, Notice): New sections.
4774
4775 2011-04-25  Bruno Haible  <bruno@clisp.org>
4776
4777         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4778         * modules/dup2-obsolete: New file.
4779         * m4/dup2-obsolete.m4: New file.
4780         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4781         gl_FUNC_DUP2_OBSOLETE is not also defined.
4782         * modules/dup2 (Depends-on): Add dup2-obsolete.
4783         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4784
4785 2011-04-25  Bruno Haible  <bruno@clisp.org>
4786
4787         strnlen: Avoid memchr related link error on old obsolete platforms.
4788         * modules/memchr-obsolete: New file.
4789         * m4/memchr-obsolete.m4: New file.
4790         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4791         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4792         * modules/memchr (Depends-on): Add memchr-obsolete.
4793         * modules/strnlen (Depends-on): Likewise.
4794         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4795
4796 2011-04-25  Jim Meyering  <meyering@redhat.com>
4797
4798         maint.mk: makefile_at_at_check extend and clean up
4799         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4800         in addition to */Makefile.am.
4801         Exempt legitimate uses of @VAR@ notation, e.g.,
4802         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4803         Remove obsolete coreutils-specific comment.
4804         Prompted by discussion here:
4805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4806
4807 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         strtoul: remove dependency on strtol
4810         This is so that 'configure' need not check for strtol merely because
4811         the application needs strtoul.
4812         * modules/strtoul (Files): Add lib/strtol.c.
4813         (Depends-on): Remove strtol.
4814
4815         strtoull: remove dependency on strtoul
4816         This is like the strtoll change.
4817         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4818         (Depends-on): Remove strtoul.
4819
4820         strtoll: remove dependency on strtol
4821         This is so that 'configure' need not check for strtol merely because
4822         the application needs strtoll.
4823         * modules/strtoll (Files): Add lib/strtol.c.
4824         (Depends-on): Remove strtol.
4825
4826 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4827
4828         inttypes: Move some configure check to module 'imaxdiv'.
4829         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4830         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4831         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4832
4833 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4834
4835         inttypes: Move some configure check to module 'imaxabs'.
4836         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4837         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4838         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4839
4840 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4841
4842         inttypes: Remove configure tests that are not needed since 2009-12-31.
4843         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4844         gl_cv_header_working_inttypes_h.
4845
4846 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         * modules/strnlen (Depends-on): Remove memchr.
4849         The strnlen implementation doesn't need the memchr module's fixes; see
4850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4851
4852         strtol: remove dependency on wchar
4853         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4854         * modules/strtol (Depends-on): Remove wchar.
4855
4856 2011-04-21  Eric Blake  <eblake@redhat.com>
4857
4858         passfd: fix test regression on Linux
4859         * modules/passfd-tests (configure.ac): Correct socketpair check.
4860
4861         passfd: speed up configure and drop unused code
4862         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4863         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4864         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4865         Instead of probing at configure for unix_scm_rights_bsd44_way,
4866         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4867         check to a struct member probe.
4868         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4869         (sendfd, recvfd): Update preprocessor checks.
4870         * modules/passfd (Files): Reflect rename, and drop unused file.
4871         (Depends-on): Drop unused dependency.
4872
4873         passfd: allow compilation on mingw
4874         * modules/sys_socket (Depends-on): Add sys_uio.
4875         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4876         iovec and a minimal struct msghdr.
4877         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4878         * tests/test-sys_socket.c (main): Enhance test.
4879         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4880         guaranteed to provide what we need.
4881         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4882         * modules/passfd-tests (Depends-on): Add sys_wait.
4883         * tests/test-passfd.c (main): Skip test on mingw, for now.
4884         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4885         partial 'struct msghdr' implementation.
4886
4887         sys_uio: new module
4888         * modules/sys_uio: New module.
4889         * modules/sys_uio-tests: Likewise.
4890         * lib/sys_uio.in.h: New file.
4891         * m4/sys_uio_h.m4: Likewise.
4892         * tests/test-sys_uio.c: Likewise.
4893         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4894         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4895
4896 2011-04-20  Jim Meyering  <meyering@redhat.com>
4897
4898         useless-if-before-free: avoid false-positive
4899         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4900         disjunct so that it too requires a terminating ";".  Without that,
4901         this script would identify as useless one statement from gcc that
4902         was not:
4903           if (aligned_ptr)
4904             free (((void **) aligned_ptr) [-1]);
4905
4906 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4907
4908         doc: update users.txt.
4909         * users.txt: Add barcode.
4910
4911 2011-04-19  Bruno Haible  <bruno@clisp.org>
4912
4913         ioctl: Remove link dependency on native Windows.
4914         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4915         (gl_close_fn, gl_ioctl_fn): New types.
4916         (struct fd_hook): Renamed from struct close_hook. Change type of
4917         private_close_fn field. Add private_ioctl_fn field.
4918         (close_hook_fn): Add parameter for primary close method.
4919         (execute_close_hooks, execute_all_close_hooks): Likewise.
4920         (ioctl_hook_fn): New type.
4921         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4922         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4923         argument.
4924         (unregister_fd_hook): Renamed from unregister_close_hook.
4925         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4926         Don't include <unistd.h>.
4927         (close): Remove undef.
4928         (anchor): Update.
4929         (execute_close_hooks): Add argument for primary close method.
4930         (execute_all_close_hooks): Likewise.
4931         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4932         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4933         argument. Allow each argument to be NULL.
4934         (unregister_fd_hook): Renamed from unregister_close_hook.
4935         * lib/close.c (rpl_close): Pass 'close' function pointer to
4936         execute_all_close_hooks.
4937         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4938         (primary_ioctl): New function.
4939         (ioctl): Don't call ioctlsocket here. Instead, call
4940         execute_all_ioctl_hooks.
4941         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4942         close method.
4943         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4944         (fd_sockets_hook): Renamed from close_sockets_hook.
4945         (gl_sockets_startup, gl_sockets_cleanup): Update.
4946         * modules/fd-hook: Renamed from modules/close-hook. Update.
4947         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4948         * modules/sockets (Depends-on): Likewise.
4949         * modules/ioctl (Depends-on): Add fd-hook.
4950         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4951         GNULIB_SOCKET.
4952
4953 2011-04-19  Bruno Haible  <bruno@clisp.org>
4954
4955         Move the support of O_NONBLOCK in open() to the 'open' module.
4956         * modules/nonblocking (Depends-on): Remove 'open'.
4957         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4958         gl_cv_have_open_O_NONBLOCK.
4959         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4960         O_NONBLOCK support.
4961         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4962
4963 2011-04-17  Bruno Haible  <bruno@clisp.org>
4964
4965         pipe2: Simplify code.
4966         * lib/pipe2.c (pipe2): Reduce code duplication.
4967
4968 2011-04-17  Bruno Haible  <bruno@clisp.org>
4969
4970         nonblocking: Add comment.
4971         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4972
4973 2011-04-17  Bruno Haible  <bruno@clisp.org>
4974
4975         nonblocking: Add tests for sockets.
4976         * tests/test-nonblocking-socket.sh: New file.
4977         * tests/test-nonblocking-socket-main.c: New file.
4978         * tests/test-nonblocking-socket-child.c: New file.
4979         * tests/test-nonblocking-socket.h: New file.
4980         * tests/socket-server.h: New file.
4981         * tests/socket-client.h: New file.
4982         * modules/nonblocking-socket-tests: New file.
4983         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4984
4985 2011-04-17  Bruno Haible  <bruno@clisp.org>
4986
4987         nonblocking: Add tests for pipes.
4988         * tests/test-nonblocking-pipe.sh: New file.
4989         * tests/test-nonblocking-pipe-main.c: New file.
4990         * tests/test-nonblocking-pipe-child.c: New file.
4991         * tests/test-nonblocking-pipe.h: New file.
4992         * tests/test-nonblocking-writer.h: New file.
4993         * tests/test-nonblocking-reader.h: New file.
4994         * tests/test-nonblocking-misc.h: New file.
4995         * modules/nonblocking-pipe-tests: New file.
4996         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4997
4998 2011-04-16  Bruno Haible  <bruno@clisp.org>
4999
5000         gettext: Clarify the needed programmer actions.
5001         * modules/gettext (Notice): New field.
5002         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5003
5004 2011-04-16  Bruno Haible  <bruno@clisp.org>
5005
5006         strchrnul: Tweak last commit.
5007         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5008         bug.
5009         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5010         as in _GL_FUNCDECL_SYS.
5011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5012         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5013
5014 2011-04-15  Eric Blake  <eblake@redhat.com>
5015
5016         strchrnul: work around cygwin bug
5017         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5018         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5020         * modules/string (Makefile.am): Substitute it.
5021         * lib/string.in.h (strchrnul): Use it.
5022
5023 2011-04-15  Bruno Haible  <bruno@clisp.org>
5024
5025         Don't require lib/stdio-write.c when only module 'stdio' is used.
5026         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5027         invocation.
5028         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5029
5030 2011-04-14  Bruno Haible  <bruno@clisp.org>
5031
5032         Support non-blocking pipe I/O in read() on native Windows.
5033         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5034         (read): New declaration.
5035         * lib/read.c: New file.
5036         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5037         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5038         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5039         vscanf): New declarations.
5040         * lib/stdio-read.c: New file.
5041         * m4/read.m4: New file.
5042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5043         REPLACE_READ.
5044         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5045         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5046         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5047         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5048         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5049         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5050         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5051         * modules/read: New file.
5052         * modules/nonblocking (Files): Add lib/stdio-read.c.
5053         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5054         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5055         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5056         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5057         * modules/pread (Depends-on): Add read.
5058         * modules/safe-read (Depends-on): Likewise.
5059         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5060         gets, scanf, vfscanf, vscanf): Verify signatures.
5061         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5062         problem with non-blocking pipes.
5063         * doc/posix-functions/fgetc.texi: Likewise.
5064         * doc/posix-functions/fgets.texi: Likewise.
5065         * doc/posix-functions/fread.texi: Likewise.
5066         * doc/posix-functions/fscanf.texi: Likewise.
5067         * doc/posix-functions/getc.texi: Likewise.
5068         * doc/posix-functions/getchar.texi: Likewise.
5069         * doc/posix-functions/gets.texi: Likewise.
5070         * doc/posix-functions/scanf.texi: Likewise.
5071         * doc/posix-functions/vfscanf.texi: Likewise.
5072         * doc/posix-functions/vscanf.texi: Likewise.
5073
5074 2011-04-14  Bruno Haible  <bruno@clisp.org>
5075
5076         Support non-blocking pipe I/O in write() on native Windows.
5077         * lib/write.c (rpl_write): Split a write request that failed merely
5078         because the byte count was larger than the pipe buffer's size.
5079         * doc/posix-functions/write.texi: Mention the problem with large byte
5080         counts.
5081
5082 2011-04-14  Bruno Haible  <bruno@clisp.org>
5083
5084         wchar: Ensure that wchar_t gets defined on uClibc.
5085         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5086         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5087
5088 2011-04-13  Bruno Haible  <bruno@clisp.org>
5089
5090         safe-write, full-read: Avoid unnecessary compilation units.
5091         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5092         (Depends-on): Remove safe-read. Add ssize_t.
5093         * modules/full-read (Files): Add lib/full-write.c.
5094         (Depends-on): Add full-write.
5095
5096 2011-04-13  Bruno Haible  <bruno@clisp.org>
5097
5098         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5099         * modules/pwrite (Depends-on): Add 'write'.
5100
5101 2011-04-13  Bruno Haible  <bruno@clisp.org>
5102
5103         Support non-blocking pipe I/O in write() on native Windows.
5104         * lib/unistd.in.h (write): Enable replacement also if
5105         GNULIB_UNISTD_H_NONBLOCKING is 1.
5106         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5107         (rpl_write): When failing to write on a non-blocking pipe, change
5108         errno from ENOSPC to EAGAIN.
5109         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5110         putchar, puts, vfprintf, vprintf): Enable replacement also if
5111         GNULIB_STDIO_H_NONBLOCKING is 1.
5112         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5113         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5114         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5115         CALL_WITH_SIGPIPE_EMULATION.
5116         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5117         * m4/nonblocking.m4: New file.
5118         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5119         for non-blocking I/O support.
5120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5121         GNULIB_UNISTD_H_NONBLOCKING.
5122         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5123         required for non-blocking I/O support.
5124         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5125         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5126         lib/stdio-write.c, m4/asm-underscore.m4.
5127         (Depends-on): Add stdio, unistd.
5128         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5129         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5130         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5131         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5132         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5133         problem with non-blocking pipes.
5134         * doc/posix-functions/fputc.texi: Likewise.
5135         * doc/posix-functions/fputs.texi: Likewise.
5136         * doc/posix-functions/fwrite.texi: Likewise.
5137         * doc/posix-functions/printf.texi: Likewise.
5138         * doc/posix-functions/putc.texi: Likewise.
5139         * doc/posix-functions/putchar.texi: Likewise.
5140         * doc/posix-functions/puts.texi: Likewise.
5141         * doc/posix-functions/vfprintf.texi: Likewise.
5142         * doc/posix-functions/vprintf.texi: Likewise.
5143         * doc/posix-functions/write.texi: Likewise.
5144
5145 2011-04-10  Jim Meyering  <meyering@redhat.com>
5146
5147         maint.mk: prohibit doubled words
5148         Detect them also when they're separated by a newline.
5149         There are 3 ways to customize it:
5150           - disable the test on a per file basis, as usual with rules using
5151             $(VC_LIST_EXCEPT)
5152           - replace the default doubled-word-selecting regexp (affects all files)
5153           - ignore a particular file-vs-doubled-word match
5154         I nearly used that last one to ignore the "is is" match in
5155         coreutils' NEWS file, since the text was "ls -is is ..."
5156         To do that, I would have added this line to cfg.mk:
5157           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5158         but it would have ignored any "is is" match in NEWS.
5159         Low probability, but still...
5160         Instead, I changed the text, slightly:
5161           -  ls -is is now consistent with ls -lis in ignoring values returned
5162           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5163         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5164         (prohibit_doubled_word_): Define.
5165         (sc_prohibit_doubled_word): New rule.
5166         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5167
5168 2011-04-10  Jim Meyering  <meyering@redhat.com>
5169
5170         maint: fix doubled-word typo in comment
5171         * m4/gethostname.m4: s/is is/it is/
5172         * m4/getdomainname.m4: Likewise.
5173
5174 2011-04-10  Jim Meyering  <meyering@redhat.com>
5175
5176         maint: remove doubled word: s/it it/it/
5177         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5178
5179 2011-04-10  Jim Meyering  <meyering@redhat.com>
5180
5181         maint.mk: remove useless semicolon and backslash
5182         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5183         semicolon and backslash.
5184
5185 2011-04-10  Bruno Haible  <bruno@clisp.org>
5186
5187         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5188         * modules/stdint-tests (Depends-on): Add wchar.
5189
5190 2011-04-10  Jim Meyering  <meyering@redhat.com>
5191
5192         maint: remove doubled words in comments, e.g., s/a a/a/
5193         * lib/strptime.c (day_of_the_week): s/the the/the/
5194         * tests/test-chown.h (test_chown): s/a a/a/
5195
5196         test-chown.h: correct a cast
5197         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5198         when the destination is a stat.st_gid.
5199
5200 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5201
5202         getaddrinfo: Fix test for sa_len member.
5203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5204         include <sys/types.h> before <sys/socket.h>.
5205
5206 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5207
5208         maint: change "can not" to "cannot"
5209         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5210         boundaries.
5211
5212 2011-04-09  Jim Meyering  <meyering@redhat.com>
5213
5214         maint: change "a a" to "a"
5215         * tests/test-lchown.h (test_lchown): s/a a/a/
5216
5217         maint.mk: prohibit \<the the\>
5218         * top/maint.mk (sc_prohibit_the_the): New rule.
5219
5220         maint: fix "the the" in comment
5221         * lib/count-one-bits.h: s/the the/the/
5222
5223         maint: change "can not" to "cannot"
5224         But do not change the occurrences in maintain.texi or in
5225         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5226         * doc/gnulib-tool.texi: s/can not/cannot/
5227         * doc/posix-functions/accept.texi (accept): Likewise.
5228         * doc/posix-functions/socket.texi (socket): Likewise.
5229         * lib/mbrtowc.c: Likewise.
5230
5231         maint.mk: prohibit use of "can not"
5232         * top/maint.mk (sc_prohibit_can_not): New rule.
5233         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5234
5235 2011-04-09  Bruno Haible  <bruno@clisp.org>
5236
5237         careadlinkat: Guard against misuse of careadlinkatcwd.
5238         * lib/careadlinkat.c: Include <stdlib.h>.
5239         (careadlinkatcwd): Check that the fd argument is as expected.
5240
5241 2011-04-09  Bruno Haible  <bruno@clisp.org>
5242
5243         careadlinkat: Use common coding style.
5244         * lib/careadlinkat.c: Move gnulib includes after system includes.
5245
5246 2011-04-09  Bruno Haible  <bruno@clisp.org>
5247
5248         careadlinkat: Clarify specification.
5249         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5250         (careadlinkatcwd): Add comment.
5251         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5252
5253 2011-04-09  Bruno Haible  <bruno@clisp.org>
5254
5255         areadlinkat: Avoid link error on many platforms.
5256         * modules/areadlinkat (Depends-on): Add areadlink.
5257
5258 2011-04-09  Bruno Haible  <bruno@clisp.org>
5259
5260         allocator, careadlinkat: Fix double-inclusion guard.
5261         * lib/allocator.h: Fix double-inclusion guard.
5262         * lib/careadlinkat.h: Likewise.
5263
5264 2011-04-09  Bruno Haible  <bruno@clisp.org>
5265
5266         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5267         * lib/relocwrapper.c: Update dependencies hierarchy.
5268         * build-aux/install-reloc: Update list of files to be compiled.
5269         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5270         lib/allocator.[hc].
5271
5272 2011-04-08  Eric Blake  <eblake@redhat.com>
5273
5274         strftime: silence gnulib-tool warning
5275         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5276
5277 2011-04-08  Bruno Haible  <bruno@clisp.org>
5278
5279         verify: Fix syntax error with GCC 4.6 in C++ mode.
5280         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5281         (HAVE_STATIC_ASSERT): New macro.
5282         (verify_true, verify): Use 'static_assert' if it is supported and
5283         '_Static_assert' is not supported.
5284
5285 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         allocator: New module.
5288         * modules/allocator, lib/allocator.c: New files.
5289         * lib/allocator.h (stdlib_allocator): New decl.
5290         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5291         Remove.  Do not include <stdlib.h>.
5292         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5293         * modules/careadlinkat (Files): Remove lib/allocator.h.
5294         (Depends-on): Add allocator.
5295
5296         stdlib: let modules use system malloc, realloc
5297         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5298         if !_GL_USE_STDLIB_ALLOC.
5299         (malloc, realloc): Limit this change to a smaller scope.
5300
5301         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5302         (malloc, realloc): Don't #undef; no longer needed.
5303         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5304         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5305         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5306         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5307         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5308         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5309         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5310         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5311
5312         careadlinkat: rename members to avoid problem
5313         * lib/allocator.h (struct allocator): Rename members from
5314         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5315         and realloc are #define'd.  Reported by Eric Blake in
5316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5317         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5318
5319 2011-04-08  Eric Blake  <eblake@redhat.com>
5320
5321         nonblocking: reduce dependency
5322         * tests/test-nonblocking.c: Only test sockets when in use.
5323         * modules/nonblocking-tests (Depends-on): Drop socket.
5324         (Makefile.am): Link even if sockets are not present.
5325         * modules/pipe2-tests (Makefile.am): Likewise.
5326         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5327
5328         pipe2: fix O_NONBLOCK support on mingw
5329         * modules/pipe2 (Depends-on): Add nonblocking.
5330         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5331         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5332         * tests/test-nonblocking.c (main): Likewise.
5333         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5334
5335         fcntl-h: fix O_ACCMODE on cygwin
5336         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5337         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5338
5339         pipe-filter: drop O_NONBLOCK workarounds
5340         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5341         * modules/pipe-filter-ii (Depends-on): Likewise.
5342         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5343
5344         nonblocking: provide O_NONBLOCK for mingw
5345         * modules/nonblocking (Depends-on): Add open.
5346         (configure.ac): Set new witness macro.
5347         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5348         * modules/fcntl-h (Makefile.am): Substitute it.
5349         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5350         nonblocking module is in use.
5351         * lib/nonblocking.c: Adjust portability test.
5352         * lib/open.c (open): Don't let native open see gnulib flag.
5353         * tests/test-fcntl-h.c (main): Enhance test.
5354         * tests/test-open.h (test_open): Likewise.
5355         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5356
5357         careadlinkat: fix compilation error on mingw
5358         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5359         within struct allocator.
5360
5361 2011-04-06  Eric Blake  <eblake@redhat.com>
5362
5363         binary-io: relicense under LGPLv2+
5364         * modules/binary-io (License): Relax to LGPLv2+.
5365         Requested for libvirt, and required by pipe2.
5366
5367 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5368
5369         verify: use _Static_assert if available
5370         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5371         (verify_true, verify): Use it if available.  This generates better
5372         diagnostics with GCC 4.6.0 and later.
5373
5374 2011-04-05  Bruno Haible  <bruno@clisp.org>
5375
5376         Remove leftover generated .h files after config.status changed.
5377
5378         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5379         GL_GENERATE_ALLOCA_H.
5380         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5381         GL_GENERATE_ALLOCA_H evaluates to false.
5382
5383         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5384         GL_GENERATE_ARGZ_H.
5385         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5386         evaluates to false.
5387
5388         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5389         GL_GENERATE_BYTESWAP_H.
5390         * modules/byteswap (Makefile.am): Remove byteswap.h if
5391         GL_GENERATE_BYTESWAP_H evaluates to false.
5392
5393         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5394         GL_GENERATE_ERRNO_H.
5395         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5396         evaluates to false.
5397
5398         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5399         GL_GENERATE_FLOAT_H.
5400         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5401         evaluates to false.
5402
5403         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5404         GL_GENERATE_FNMATCH_H.
5405         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5406         GL_GENERATE_FNMATCH_H evaluates to false.
5407
5408         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5409         GL_GENERATE_GLOB_H.
5410         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5411         evaluates to false.
5412
5413         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5414         automake conditional GL_GENERATE_ICONV_H.
5415         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5416         evaluates to false.
5417
5418         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5419         GL_GENERATE_NETINET_IN_H.
5420         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5421         GL_GENERATE_NETINET_IN_H evaluates to false.
5422
5423         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5424         conditional GL_GENERATE_PTHREAD_H.
5425         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5426         * modules/pthread (Makefile.am): Remove pthread.h if
5427         GL_GENERATE_PTHREAD_H evaluates to false.
5428
5429         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5430         GL_GENERATE_SCHED_H.
5431         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5432         evaluates to false.
5433
5434         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5435         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5436         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5437         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5438
5439         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5440         GL_GENERATE_STDARG_H.
5441         * modules/stdarg (Makefile.am): Remove stdarg.h if
5442         GL_GENERATE_STDARG_H evaluates to false.
5443
5444         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5445         GL_GENERATE_STDBOOL_H.
5446         * modules/stdbool (Makefile.am): Remove stdbool.h if
5447         GL_GENERATE_STDBOOL_H evaluates to false.
5448
5449         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5450         conditional GL_GENERATE_STDDEF_H.
5451         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5452         * modules/stddef (Makefile.am): Remove stddef.h if
5453         GL_GENERATE_STDDEF_H evaluates to false.
5454
5455         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5456         GL_GENERATE_STDINT_H.
5457         * modules/stdint (Makefile.am): Remove stdint.h if
5458         GL_GENERATE_STDINT_H evaluates to false.
5459
5460         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5461         GL_GENERATE_SYSEXITS_H.
5462         * modules/sysexits (Makefile.am): Remove sysexits.h if
5463         GL_GENERATE_SYSEXITS_H evaluates to false.
5464
5465         Reported by Karl Berry and Ralf Wildenhues.
5466
5467 2011-04-05  Bruno Haible  <bruno@clisp.org>
5468
5469         Ensure to rebuild generated .h files when config.status has changed.
5470         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5471         config.status.
5472         * modules/ctype (Makefile.am): Likewise.
5473         * modules/dirent (Makefile.am): Likewise.
5474         * modules/errno (Makefile.am): Likewise.
5475         * modules/fcntl-h (Makefile.am): Likewise.
5476         * modules/float (Makefile.am): Likewise.
5477         * modules/getopt-posix (Makefile.am): Likewise.
5478         * modules/glob (Makefile.am): Likewise.
5479         * modules/iconv-h (Makefile.am): Likewise.
5480         * modules/inttypes (Makefile.am): Likewise.
5481         * modules/langinfo (Makefile.am): Likewise.
5482         * modules/locale (Makefile.am): Likewise.
5483         * modules/math (Makefile.am): Likewise.
5484         * modules/netdb (Makefile.am): Likewise.
5485         * modules/netinet_in (Makefile.am): Likewise.
5486         * modules/poll-h (Makefile.am): Likewise.
5487         * modules/pthread (Makefile.am): Likewise.
5488         * modules/pty (Makefile.am): Likewise.
5489         * modules/sched (Makefile.am): Likewise.
5490         * modules/search (Makefile.am): Likewise.
5491         * modules/selinux-h (Makefile.am): Likewise.
5492         * modules/signal (Makefile.am): Likewise.
5493         * modules/spawn (Makefile.am): Likewise.
5494         * modules/stdarg (Makefile.am): Likewise.
5495         * modules/stdbool (Makefile.am): Likewise.
5496         * modules/stddef (Makefile.am): Likewise.
5497         * modules/stdint (Makefile.am): Likewise.
5498         * modules/stdio (Makefile.am): Likewise.
5499         * modules/stdlib (Makefile.am): Likewise.
5500         * modules/string (Makefile.am): Likewise.
5501         * modules/strings (Makefile.am): Likewise.
5502         * modules/sys_file (Makefile.am): Likewise.
5503         * modules/sys_ioctl (Makefile.am): Likewise.
5504         * modules/sys_select (Makefile.am): Likewise.
5505         * modules/sys_socket (Makefile.am): Likewise.
5506         * modules/sys_stat (Makefile.am): Likewise.
5507         * modules/sys_time (Makefile.am): Likewise.
5508         * modules/sys_times (Makefile.am): Likewise.
5509         * modules/sys_utsname (Makefile.am): Likewise.
5510         * modules/sys_wait (Makefile.am): Likewise.
5511         * modules/sysexits (Makefile.am): Likewise.
5512         * modules/termios (Makefile.am): Likewise.
5513         * modules/time (Makefile.am): Likewise.
5514         * modules/unistd (Makefile.am): Likewise.
5515         * modules/wchar (Makefile.am): Likewise.
5516         * modules/wctype-h (Makefile.am): Likewise.
5517         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5518
5519 2011-04-05  Bruno Haible  <bruno@clisp.org>
5520
5521         pipe2: Relicense under LGPLv2+.
5522         * modules/pipe2 (License): Change to LGPLv2+.
5523         Requested by Eric Blake, for libvirt.
5524
5525 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5526
5527         bootstrap: compute gnulib_extra_files after updating build_aux
5528         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5529         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5530
5531 2011-04-05  Eric Blake  <eblake@redhat.com>
5532
5533         bootstrap: preserve git whitelist item sorting
5534         * build-aux/bootstrap (sort_patterns): New function.
5535         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5536
5537 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5538
5539         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5540         sc_space_tab check.
5541
5542 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5543
5544         areadlink, areadlinkat: rewrite in terms of careadlinkat
5545         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5546         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5547         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5548         (malloc, realloc): Remove #undefs.
5549         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5550         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5551         readlink, ssize_t, stdint, unistd.
5552         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5553         areadlink, stdint.
5554
5555         careadlinkat: new module
5556         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5557         * modules/careadlinkat: New files, written by me with
5558         a review and feedback from Ben Pfaff in
5559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5560
5561 2011-04-01  Bruno Haible  <bruno@clisp.org>
5562
5563         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5564         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5565         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5566         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5567         Reported by Bruce Korb <bruce.korb@gmail.com>.
5568
5569 2011-04-01  Bruno Haible  <bruno@clisp.org>
5570
5571         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5572         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5573         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5574         * modules/wcpcpy (Depends-on): Add extensions.
5575         * modules/wcpncpy (Depends-on): Likewise.
5576         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5577         systems.
5578         * doc/posix-functions/wcpncpy.texi: Likewise.
5579         * doc/posix-functions/wcwidth.texi: Likewise.
5580
5581 2011-03-31  Eric Blake  <eblake@redhat.com>
5582
5583         nonblocking: fix mingw test failures
5584         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5585         non-blocking flag on regular file.
5586         (get_nonblocking_flag): Set errno on invalid fd.
5587         * tests/test-nonblocking.c (main): Avoid test failure on
5588         directories if fchdir is not active.
5589         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5590
5591 2011-03-31  Bruno Haible  <bruno@clisp.org>
5592
5593         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5594         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5595         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5596         Reported by Simon Josefsson <simon@josefsson.org>.
5597
5598 2011-03-31  Bruno Haible  <bruno@clisp.org>
5599         and Eric Blake  <eblake@redhat.com>
5600
5601         nonblocking: new module
5602         * modules/nonblocking: New module.
5603         * modules/nonblocking-tests: Likewise.
5604         * lib/nonblocking.h: New file.
5605         * lib/nonblocking.c: Likewise.
5606         * tests/test-nonblocking.c: New test.
5607         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5608
5609 2011-03-30  Bruno Haible  <bruno@clisp.org>
5610
5611         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5612         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5613         instead of 'printf' format for GCC >= 4.4.
5614         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5615         (fprintf, printf, vfprintf, vprintf): Declare with
5616         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5617         the system's vfprintf() function.
5618         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5619
5620 2011-03-30  Eric Blake  <eblake@redhat.com>
5621
5622         passfd: fix scoping bug
5623         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5624         before sendmsg/recvmsg.
5625
5626         passfd: standardize coding conventions
5627         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5628         can be learned at compile time.
5629         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5630         ifdefs.
5631         (sendfd, recvfd): Follow gnulib code conventions.
5632
5633         passfd: fix incorrect sendmsg arguments
5634         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5635         incorrect msg_controllen value.
5636         * modules/passfd-tests (Depends-on): Check for alarm.
5637         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5638         Reported by Bastien ROUCARIES.
5639
5640 2011-03-30  Bruno Haible  <bruno@clisp.org>
5641
5642         c-strcasestr: Relicense under LGPLv2+.
5643         * modules/c-strcasestr (License): Change to LGPLv2+.
5644         Requested by Eric Blake, for libvirt.
5645
5646 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5647
5648         * users.txt: Add libidn2.  Fix libtasn1 link.
5649
5650 2011-03-30  Jim Meyering  <meyering@redhat.com>
5651
5652         tests: readlink* ("",... fails with EINVAL on newer kernels
5653         readlink and readlinkat have typically failed with ENOENT for
5654         the invalid, empty file name,  "".  However, with the advent
5655         of linux-2.6.39, they fail with EINVAL.
5656         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5657         when operating on the empty file name.
5658         * tests/test-readlink.h (test_readlink): Likewise.
5659
5660 2011-03-29  Bruno Haible  <bruno@clisp.org>
5661
5662         Relicense some modules under LGPLv2+, for libidn2.
5663         * modules/array-mergesort (License): Change to LGPLv2+.
5664         * modules/c-strcaseeq (License): Likewise.
5665         * modules/striconveh (License): Likewise.
5666         * modules/striconveha (License): Likewise.
5667         * modules/uniconv/base (License): Likewise.
5668         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5669         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5670         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5671         * modules/unictype/base (License): Likewise.
5672         * modules/unictype/bidiclass-of (License): Likewise.
5673         * modules/unictype/category-M (License): Likewise.
5674         * modules/unictype/category-none (License): Likewise.
5675         * modules/unictype/category-of (License): Likewise.
5676         * modules/unictype/category-test (License): Likewise.
5677         * modules/unictype/category-test-withtable (License): Likewise.
5678         * modules/unictype/combining-class (License): Likewise.
5679         * modules/unictype/joiningtype-of (License): Likewise.
5680         * modules/unictype/scripts (License): Likewise.
5681         * modules/uninorm/base (License): Likewise.
5682         * modules/uninorm/canonical-decomposition (License): Likewise.
5683         * modules/uninorm/composition (License): Likewise.
5684         * modules/uninorm/decompose-internal (License): Likewise.
5685         * modules/uninorm/decomposition-table (License): Likewise.
5686         * modules/uninorm/nfc (License): Likewise.
5687         * modules/uninorm/nfd (License): Likewise.
5688         * modules/uninorm/u32-normalize (License): Likewise.
5689         * modules/unistr/base (License): Likewise.
5690         * modules/unistr/u32-cpy (License): Likewise.
5691         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5692         * modules/unistr/u32-to-u8 (License): Likewise.
5693         * modules/unistr/u32-uctomb (License): Likewise.
5694         * modules/unistr/u8-check (License): Likewise.
5695         * modules/unistr/u8-mblen (License): Likewise.
5696         * modules/unistr/u8-mbtouc (License): Likewise.
5697         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5698         * modules/unistr/u8-mbtoucr (License): Likewise.
5699         * modules/unistr/u8-prev (License): Likewise.
5700         * modules/unistr/u8-strlen (License): Likewise.
5701         * modules/unistr/u8-to-u32 (License): Likewise.
5702         * modules/unistr/u8-uctomb (License): Likewise.
5703         * modules/unitypes (License): Likewise.
5704         Requested by Simon Josefsson.
5705
5706 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5707
5708         lib-symbol-visibility: Add a notice.
5709         * modules/lib-symbol-visibility (Notice): New field.
5710
5711 2011-03-29  Bruno Haible  <bruno@clisp.org>
5712
5713         getaddrinfo: Doc fix.
5714         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5715         section "fixed in Gnulib".
5716
5717 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5718
5719         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5720         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5721
5722 2011-03-26  Bruno Haible  <bruno@clisp.org>
5723
5724         unictype/property-byname: Reduce the number of load-time relocations.
5725         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5726         (UC_PROPERTY_INDEX_*): New enumeration values.
5727         (uc_property_byname): Convert an index from the lookup table to an
5728         uc_property_t.
5729         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5730         values.
5731
5732 2011-03-26  Bruno Haible  <bruno@clisp.org>
5733
5734         unictype/property-byname: Allow omitted word separators and aliases.
5735         * lib/unictype/pr_byname.gperf: Add property names without word
5736         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5737         for 'space'.
5738
5739 2011-03-26  Bruno Haible  <bruno@clisp.org>
5740
5741         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5742         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5743         also hyphens to space.
5744         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5745         without spaces.
5746         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5747
5748 2011-03-26  Bruno Haible  <bruno@clisp.org>
5749
5750         unictype/joiningtype-byname: Recognize long names as well.
5751         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5752         a long name.
5753         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5754         unictype/joiningtype_byname.h.
5755         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5756         * lib/unictype/joiningtype_byname.gperf: New file.
5757         * modules/unictype/joiningtype-byname (Files): Add
5758         lib/unictype/joiningtype_byname.gperf.
5759         (Depends-on): Add gperf.
5760         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5761         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5762         long names.
5763
5764         Tests for module 'unictype/joiningtype-longname'.
5765         * modules/unictype/joiningtype-longname-tests: New file.
5766         * tests/unictype/test-joiningtype_longname.c: New file.
5767
5768         New module 'unictype/joiningtype-longname'.
5769         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5770         * lib/unictype/joiningtype_longname.c: New file.
5771         * modules/unictype/joiningtype-longname: New file.
5772         * modules/unictype/joiningtype-all (Depends-on): Add
5773         unictype/joiningtype-longname.
5774
5775 2011-03-26  Bruno Haible  <bruno@clisp.org>
5776
5777         unictype/bidiclass-byname: Recognize long names as well.
5778         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5779         name.
5780         * lib/unictype/bidi_byname.c: Include <string.h>,
5781         unictype/bidi_byname.h.
5782         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5783         * lib/unictype/bidi_byname.gperf: New file.
5784         * modules/unictype/bidiclass-byname (Files): Add
5785         lib/unictype/bidi_byname.gperf.
5786         (Depends-on): Add gperf.
5787         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5788         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5789         long names.
5790
5791         Tests for module 'unictype/bidiclass-longname'.
5792         * modules/unictype/bidiclass-longname-tests: New file.
5793         * tests/unictype/test-bidi_longname.c: New file.
5794
5795         New module 'unictype/bidiclass-longname'.
5796         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5797         * lib/unictype/bidi_longname.c: New file.
5798         * modules/unictype/bidiclass-longname: New file.
5799         * modules/unictype/bidiclass-all (Depends-on): Add
5800         unictype/bidiclass-longname.
5801
5802 2011-03-26  Bruno Haible  <bruno@clisp.org>
5803
5804         unictype/bidi*: Rename modules.
5805         * modules/unictype/bidiclass-all: Renamed from
5806         modules/unictype/bidicategory-all.
5807         * modules/unictype/bidiclass-name: Renamed from
5808         modules/unictype/bidiclass-name.
5809         (Description): Update.
5810         * modules/unictype/bidiclass-name-tests: Renamed from
5811         modules/unictype/bidicategory-name-tests.
5812         * modules/unictype/bidiclass-byname: Renamed from
5813         modules/unictype/bidicategory-byname.
5814         (Description): Update.
5815         * modules/unictype/bidiclass-byname-tests: Renamed from
5816         modules/unictype/bidicategory-byname-tests.
5817         * modules/unictype/bidiclass-of: Renamed from
5818         modules/unictype/bidicategory-of.
5819         (Description): Update.
5820         * modules/unictype/bidiclass-of-tests: Renamed from
5821         modules/unictype/bidicategory-of-tests.
5822         * modules/unictype/bidiclass-test: Renamed from
5823         modules/unictype/bidicategory-test.
5824         (Description): Update.
5825         * modules/unictype/bidiclass-test-tests: Renamed from
5826         modules/unictype/bidicategory-test-tests.
5827         * modules/unictype/bidicategory-all: New file, a simple redirection.
5828         * modules/unictype/bidicategory-name: Likewise.
5829         * modules/unictype/bidicategory-byname: Likewise.
5830         * modules/unictype/bidicategory-of: Likewise.
5831         * modules/unictype/bidicategory-test: Likewise.
5832         * modules/unictype/property-bidi-* (Dependencies): Update.
5833         * lib/unictype/bidi_*.c: Update comment.
5834
5835 2011-03-26  Bruno Haible  <bruno@clisp.org>
5836
5837         unictype/bidi*: Rename functions, part 2.
5838         * modules/unictype/bidicategory-name (configure.ac): Update required
5839         libunistring version.
5840         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5841
5842 2011-03-25  Bruno Haible  <bruno@clisp.org>
5843
5844         New module 'unictype/combining-class-all'.
5845         * modules/unictype/combining-class-all: New file.
5846
5847         Tests for module 'unictype/combining-class-byname'.
5848         * modules/unictype/combining-class-byname-tests: New file.
5849         * tests/unictype/test-combiningclass_byname.c: New file.
5850
5851         New module 'unictype/combining-class-byname'.
5852         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5853         * lib/unictype/combiningclass_byname.c: New file.
5854         * lib/unictype/combiningclass_byname.gperf: New file.
5855         * modules/unictype/combining-class-byname: New file.
5856
5857         Tests for module 'unictype/combining-class-longname'.
5858         * modules/unictype/combining-class-longname-tests: New file.
5859         * tests/unictype/test-combiningclass_longname.c: New file.
5860
5861         New module 'unictype/combining-class-longname'.
5862         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5863         * lib/unictype/combiningclass_longname.c: New file.
5864         * modules/unictype/combining-class-longname: New file.
5865
5866         Tests for module 'unictype/combining-class-name'.
5867         * modules/unictype/combining-class-name-tests: New file.
5868         * tests/unictype/test-combiningclass_name.c: New file.
5869
5870         New module 'unictype/combining-class-name'.
5871         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5872         * lib/unictype/combiningclass_name.c: New file.
5873         * modules/unictype/combining-class-name: New file.
5874
5875 2011-03-25  Bruno Haible  <bruno@clisp.org>
5876
5877         unictype/combining-class: Rename source files.
5878         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5879         of unictype/combining.h.
5880         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5881         Update.
5882         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5883         * modules/unictype/combining-class (Description): Fix.
5884         (Files, Makefile.am): Update.
5885         * tests/unictype/test-combiningclass.c: Renamed from
5886         tests/unictype/test-combining.c.
5887         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5888
5889 2011-03-25  Bruno Haible  <bruno@clisp.org>
5890
5891         unictype: Update list of canonical combining classes.
5892         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5893
5894 2011-03-25  Bruno Haible  <bruno@clisp.org>
5895
5896         unictype/category-byname: Recognize long names as well.
5897         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5898         a long name.
5899         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5900         unictype/categ_byname.h.
5901         (UC_CATEGORY_INDEX_*): New enumeration values.
5902         (uc_general_category_byname): Use uc_general_category_lookup and
5903         convert from index to value.
5904         * lib/unictype/categ_byname.gperf: New file.
5905         * modules/unictype/category-byname (Files): Add
5906         lib/unictype/categ_byname.gperf.
5907         (Depends-on): Add gperf.
5908         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5909         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5910         long names.
5911
5912         Tests for module 'unictype/category-longname'.
5913         * modules/unictype/category-longname-tests: New file.
5914         * tests/unictype/test-categ_longname.c: New file.
5915
5916         New module 'unictype/category-longname'.
5917         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5918         * lib/unictype/categ_longname.c: New file.
5919         * modules/unictype/category-longname: New file.
5920         * modules/unictype/category-all (Depends-on): Add it.
5921
5922 2011-03-25  Bruno Haible  <bruno@clisp.org>
5923
5924         Tests for module 'unictype/category-LC'.
5925         * modules/unictype/category-LC-tests: New file.
5926         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5927
5928         New module 'unictype/category-LC'.
5929         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5930         (UC_CATEGORY_LC): New declaration.
5931         (UC_CASED_LETTER): New macro.
5932         * lib/gen-uni-tables.c (is_category_LC): New function.
5933         (output_categories): Also handle category LC.
5934         (UC_CATEGORY_MASK_LC): New enumeration value.
5935         (general_category_byname): Also handle category LC.
5936         * lib/unictype/categ_LC.c: New file.
5937         * lib/unictype/categ_LC.h: New file, automatically generated.
5938         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5939         category LC.
5940         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5941         * modules/unictype/category-LC: New file.
5942         * modules/unictype/category-byname (Depends-on): Add
5943         unictype/category-LC.
5944         * modules/unictype/category-all (Depends-on): Likewise.
5945
5946 2011-03-25  Eric Blake  <eblake@redhat.com>
5947
5948         xmalloc: revert yesterday's regression
5949         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5950         realloc's underlying behavior (allowing allocation of zero-size
5951         objects, especially if malloc-gnu is also in use).
5952
5953 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5954
5955         maint.mk: add missing version to VC-tag
5956         * top/maint.mk: git tag was missing actual tag name; add it.
5957
5958         valgrind: do leak checking, and exit with code 1 on error (not 0)
5959         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5960         to VALGRIND.
5961
5962 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5963
5964         posix-modules: say what it does.
5965         * posix-modules: Add a line to the --help output saying what it does.
5966
5967 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5968
5969         xmalloc: Do not leak if underlying realloc is C99 compatible.
5970         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5971         This avoids a leak on C99-based systems.  See
5972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5973
5974 2011-03-24  Eric Blake  <eblake@redhat.com>
5975
5976         realloc: document portability problem
5977         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5978         passing 0 size to realloc.
5979
5980 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5981
5982         doc: update users.txt
5983         * users.txt: Add cvsps, tmpwatch
5984
5985 2011-03-23  Matt Rice  <ratmice@gmail.com>
5986
5987         doc: update users.txt
5988         * users.txt: Add gdb.
5989
5990 2011-03-23  Jim Meyering  <meyering@redhat.com>
5991
5992         doc: update users.txt
5993         Looking through matches up to the following URL (there are still
5994         several more pages), I found several projects that use gnulib:
5995         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5996         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5997         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5998
5999 2011-03-22  Bruno Haible  <bruno@clisp.org>
6000
6001         unictype/bidi*: Rename functions.
6002         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6003         uc_bidi_class, uc_is_bidi_class): New declarations.
6004         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6005         uc_bidi_category_byname.
6006         (uc_bidi_category_byname): New function.
6007         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6008         u_bidi_category_name.
6009         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6010         (uc_bidi_category_name): New function.
6011         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6012         uc_bidi_category.
6013         (uc_bidi_category): New function.
6014         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6015         uc_is_bidi_category. Invoke uc_bidi_class.
6016         (uc_is_bidi_category): New function.
6017         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6018         instead of uc_bidi_category_byname.
6019         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6020         instead of uc_bidi_category_name.
6021         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6022         uc_bidi_category.
6023         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6024         instead of uc_is_bidi_category.
6025
6026 2011-03-21  Bruno Haible  <bruno@clisp.org>
6027
6028         New module 'unictype/joininggroup-all'.
6029         * modules/unictype/joininggroup-all: New file.
6030
6031         Tests for module 'unictype/joininggroup-of'.
6032         * modules/unictype/joininggroup-of-tests: New file.
6033         * tests/unictype/test-joininggroup_of.c: New file.
6034         * tests/unictype/test-joininggroup_of.h: New file, automatically
6035         generated by gen-uni-tables.
6036
6037         New module 'unictype/joininggroup-of'.
6038         * modules/unictype/joininggroup-of: New file.
6039         * lib/unictype/joininggroup_of.c: New file.
6040         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6041         gen-uni-tables.
6042
6043         Tests for module 'unictype/joininggroup-byname'.
6044         * modules/unictype/joininggroup-byname-tests: New file.
6045         * tests/unictype/test-joininggroup_byname.c: New file.
6046
6047         New module 'unictype/joininggroup-byname'.
6048         * modules/unictype/joininggroup-byname: New file.
6049         * lib/unictype/joininggroup_byname.c: New file.
6050         * lib/unictype/joininggroup_byname.gperf: New file.
6051
6052         Tests for module 'unictype/joininggroup-name'.
6053         * modules/unictype/joininggroup-name-tests: New file.
6054         * tests/unictype/test-joininggroup_name.c: New file.
6055
6056         New module 'unictype/joininggroup-name'.
6057         * modules/unictype/joininggroup-name: New file.
6058         * lib/unictype/joininggroup_name.c: New file.
6059         * lib/unictype/joininggroup_name.h: New file.
6060
6061         New module 'unictype/joiningtype-all'.
6062         * modules/unictype/joiningtype-all: New file.
6063
6064         Tests for module 'unictype/joiningtype-of'.
6065         * modules/unictype/joiningtype-of-tests: New file.
6066         * tests/unictype/test-joiningtype_of.c: New file.
6067         * tests/unictype/test-joiningtype_of.h: New file, automatically
6068         generated by gen-uni-tables.
6069
6070         New module 'unictype/joiningtype-of'.
6071         * modules/unictype/joiningtype-of: New file.
6072         * lib/unictype/joiningtype_of.c: New file.
6073         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6074         gen-uni-tables.
6075
6076         Tests for module 'unictype/joiningtype-byname'.
6077         * modules/unictype/joiningtype-byname-tests: New file.
6078         * tests/unictype/test-joiningtype_byname.c: New file.
6079
6080         New module 'unictype/joiningtype-byname'.
6081         * modules/unictype/joiningtype-byname: New file.
6082         * lib/unictype/joiningtype_byname.c: New file.
6083
6084         Tests for module 'unictype/joiningtype-name'.
6085         * modules/unictype/joiningtype-name-tests: New file.
6086         * tests/unictype/test-joiningtype_name.c: New file.
6087
6088         New module 'unictype/joiningtype-name'.
6089         * modules/unictype/joiningtype-name: New file.
6090         * lib/unictype/joiningtype_name.c: New file.
6091
6092         unictype: Add support for Arabic shaping properties.
6093         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6094         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6095         declarations.
6096         (UC_JOINING_GROUP_*): New enumeration values.
6097         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6098         declarations.
6099         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6100         (unicode_joining_type): New variable.
6101         (UC_JOINING_GROUP_*): New enumeration values.
6102         (unicode_joining_group): New variable.
6103         (fill_arabicshaping, joining_type_as_c_identifier,
6104         output_joining_type_test, output_joining_type,
6105         joining_group_as_c_identifier, output_joining_group_test,
6106         output_joining_group): New functions.
6107         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6108         fill_arabicshaping and output_joining_type_test, output_joining_type,
6109         output_joining_group_test, output_joining_group.
6110         Reported by Simon Josefsson.
6111
6112 2011-03-21  Jim Meyering  <meyering@redhat.com>
6113
6114         strftime: fix a bug in yesterday's change
6115         * lib/strftime.c (add): Accommodate width's initial value of -1.
6116         Otherwise, nstrftime would copy uninitialized data into
6117         the result buffer.
6118
6119 2011-03-21  Jim Meyering  <meyering@redhat.com>
6120
6121         tests: add strftime-tests module
6122         * tests/test-strftime.c: New file.
6123         * modules/strftime-tests: New module.
6124
6125 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6126
6127         strftime: don't assume a byte count fits in 'int'
6128         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6129         found this problem by static analysis, using gcc -Wstrict-overflow
6130         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6131         on an integer overflow having undefined behavior, but it turns out
6132         that the argument is a size, which might not fit in 'int' anyway,
6133
6134 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         stdio: don't require ignore_value around fwrite
6137
6138         This patch works around libc bug 11959
6139         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6140         Without this patch, applications must often write
6141         ignore_value (fwrite (...)) even though the ignore_value is
6142         not helpful here.  It's common to write many objects, using
6143         fwrite/printf/etc., and then use ferror to detect output error.
6144
6145         I considered making this patch optional, but decided against it,
6146         because libc is obviously being inconsistent here: there is no
6147         reason libc should insist that user code must inspect fwrite
6148         return's value without also insisting that it inspect printf's,
6149         putchar's, etc.  If user code wants to have a strict style where
6150         all these functions' values are checked (so that ferror need not
6151         be checked), we could add support for that style in a new gnulib
6152         module, but in the meantime it's better to be consistent and to
6153         support common usage.
6154
6155         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6156         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6157         that we are compiling in checking mode, and if not C++, and
6158         if not already wrapping fwrite for some other reason.
6159         (fwrite): #define to rpl_fwrite if the latter is defined.
6160
6161 2011-03-20  Bruno Haible  <bruno@clisp.org>
6162
6163         verror: Fix compilation error introduced on 2011-02-13.
6164         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6165         instead of __attribute__.
6166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6167
6168 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6169             Bruno Haible  <bruno@clisp.org>
6170
6171         socklen: do not depend on sys_socket
6172         While trying to modify Emacs to use gnulib's socklen module,
6173         I discovered a circular dependency: socklen depends on sys_socket
6174         and vice versa.  Emacs can use socklen, but it does not need
6175         sys_socket because it has its own substitute for sys/socket.h.
6176         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6177         gl_TYPE_SOCKLEN_T.
6178         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6179         gl_PREREQ_SYS_H_SOCKET.
6180         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6181         gl_PREREQ_SYS_H_SOCKET.
6182         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6183         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6184         * modules/socklen (Depends-on): Do not depend on sys_socket.
6185         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6186
6187 2011-03-20  Jim Meyering  <meyering@redhat.com>
6188
6189         maint.mk: sort file names *after* new transformation
6190         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6191         prefix would have led to an unwarranted failure in GNU parted.
6192         Sort after that transformation.
6193
6194 2011-03-19  Jim Meyering  <meyering@redhat.com>
6195
6196         maint.mk: fix po-file syntax-check rule
6197         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6198         Patch by Bruno Haible.
6199
6200 2011-03-19  Bruno Haible  <bruno@clisp.org>
6201
6202         socklen: Update comment.
6203         * m4/socklen.m4: Update comment about platforms.
6204
6205 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6206             Bruno Haible  <bruno@clisp.org>
6207
6208         inet_ntop, inet_pton: Simplify.
6209         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6210         documented to provide socklen_t and we already depend on sys_socket.
6211         * modules/inet_pton (Depends-on): Likewise.
6212         * lib/arpa_inet.in.h: Adjust comment.
6213
6214 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6215             Bruno Haible  <bruno@clisp.org>
6216
6217         netdb: Simplify.
6218         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6219         documented to provide socklen_t and we already depend on sys_socket.
6220         * lib/netdb.in.h: Adjust comment.
6221
6222 2011-03-19  Bruno Haible  <bruno@clisp.org>
6223
6224         sys_socket, netdb: Document problem with socklen_t.
6225         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6226         platforms.
6227         * doc/posix-headers/netdb.texi: Likewise.
6228
6229 2011-03-18  Eric Blake  <eblake@redhat.com>
6230
6231         maint.mk: let po check work in VPATH build
6232         * top/maint.mk (po_file): Allow cfg.mk override.
6233         (sc_po_check): Allow VPATH use.
6234         Reported by Jiri Denemark.
6235
6236 2011-03-16  Jim Meyering  <meyering@redhat.com>
6237
6238         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6239         Before, you would have had to create one .x-sc_ file per rule in order
6240         to exempt offending files.  Now, you may instead use a Make variable --
6241         usually defined in cfg.mk -- whose name identifies the affected rule.
6242         * top/maint.mk (_sc_excl): Define.
6243         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6244         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6245
6246 2011-03-13  Bruno Haible  <bruno@clisp.org>
6247
6248         ignore-value tests: Avoid warnings.
6249         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6250         empty for gcc < 3.4.
6251
6252 2011-03-13  Bruno Haible  <bruno@clisp.org>
6253
6254         passfd: Fix link error on Solaris.
6255         * modules/passfd (Description): Correct.
6256         (Depends-on): Add socketlib.
6257         (Link): New section.
6258         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6259
6260 2011-03-13  Bruno Haible  <bruno@clisp.org>
6261
6262         passfd: Fix link error on AIX 5.2.
6263         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6264
6265 2011-03-13  Bruno Haible  <bruno@clisp.org>
6266
6267         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6268         * lib/sys_socket.in.h: Include <stddef.h>.
6269         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6270         CMSG_FIRSTHDR. Remove unused variable.
6271
6272 2011-03-13  Bruno Haible  <bruno@clisp.org>
6273
6274         passfd: Fix compilation error on OpenBSD.
6275         * lib/passfd.c: Include <sys/uio.h>.
6276
6277 2011-03-13  Bruno Haible  <bruno@clisp.org>
6278
6279         passfd test: Fix warnings.
6280         * tests/test-passfd.c: Include <sys/wait.h>.
6281         (main): Fix typo.
6282
6283 2011-03-13  Bruno Haible  <bruno@clisp.org>
6284
6285         passfd module, part 4, tweaks.
6286         * tests/test-passfd.c: Reorder includes.
6287         (main): Fix perror and printf calls.
6288
6289 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6290
6291         passfd module, part 4.
6292         * modules/passfd-tests: New file.
6293         * tests/test-passfd.c: New file.
6294
6295 2011-03-13  Jim Meyering  <meyering@redhat.com>
6296
6297         Makefile: rely on GNU make; derive syntax-check rule names
6298         Rather than requiring that each sc_ rule be listed as a dependent
6299         of "check", use features of GNU make to derive the list.
6300         * Makefile (syntax-check-rules): Define.
6301         (check): Depend on the new variable, not the hard-coded list.
6302
6303 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6304             Bruno Haible  <bruno@clisp.org>
6305
6306         passfd module, part 3.
6307         * lib/passfd.h (recvfd): Add a flags argument.
6308         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6309         (recvfd): Add a flags argument.
6310         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6311         exists.
6312         * modules/passfd (Depends-on): Add cloexec.
6313         Suggested by Eric Blake.
6314
6315 2011-03-13  Bruno Haible  <bruno@clisp.org>
6316
6317         passfd module, part 2, tweaks.
6318         * modules/passfd (Files): Reorder.
6319         (Depends-on): Remove errno.
6320         (Include): Remove <sys/socket.h>, <sys/un.h>.
6321         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6322         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6323         specification header. Include <sys/socket.h> always. Don't include
6324         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6325         (sendfd): Clarify that it sets errno when it fails.
6326         (recvfd): Fix specification.
6327
6328 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6329
6330         passfd module, part 2.
6331         * modules/passfd: New file.
6332         * lib/passfd.h: New file.
6333         * lib/passfd.c: New file.
6334
6335 2011-03-12  Bruno Haible  <bruno@clisp.org>
6336
6337         wcswidth, mbswidth: Avoid integer overflow.
6338         * lib/wcswidth.c: Include <limits.h>.
6339         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6340         * lib/mbswidth.c: Include <limits.h>.
6341         (mbsnwidth): Avoid 'int' overflow.
6342         Reported by Jim Meyering.
6343
6344 2011-03-12  Bruno Haible  <bruno@clisp.org>
6345
6346         futimens, utimensat: Avoid endless recursion on Solaris 10.
6347         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6348         Solaris.
6349         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6350         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6351
6352 2011-03-11  Jim Meyering  <meyering@redhat.com>
6353
6354         maint.mk: relax a regexp to accommodate other formatting styles
6355         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6356         between "ngettext" and the following "(".
6357
6358 2011-03-11  Pádraig Brady <P@draigBrady.com>
6359
6360         maint.mk: suppress a false positive warning
6361         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6362         diagnostics are marked with ngettext.
6363
6364 2011-03-10  Eric Blake  <eblake@redhat.com>
6365
6366         wchar: add explicit dependencies, for Tru64
6367         * modules/mbmemcasecoll (Depends-on): Add wchar.
6368         * modules/mbtowc (Depends-on): Likewise.
6369         * modules/vasnprintf (Depends-on): Likewise.
6370         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6371         * modules/wctomb (Depends-on): Likewise.
6372         Reported by Peter O'Gorman.
6373
6374 2011-03-08  Bruno Haible  <bruno@clisp.org>
6375
6376         passfd module, part 1, tweaks.
6377         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6378         Improve indentation. Improve AC_MSG_CHECKING messages.
6379         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6380         gl_SOCKET_FAMILIES.
6381
6382 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6383
6384         passfd module, part 1.
6385         * m4/afunix.m4: New file.
6386         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6387         sockets.
6388
6389 2011-03-08  Bruno Haible  <bruno@clisp.org>
6390
6391         regex-quote: New API.
6392         * lib/regex-quote.h: Include <stdbool.h>.
6393         (struct regex_quote_spec): New type.
6394         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6395         New declarations.
6396         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6397         'const struct regex_quote_spec *' argument.
6398         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6399         (pcre_special): New constant.
6400         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6401         New functions.
6402         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6403         'const struct regex_quote_spec *' argument.
6404         * modules/regex-quote (Depends-on): Add stdbool.
6405         * tests/test-regex-quote.c (check): Update for new API. Add test for
6406         anchored results.
6407         * NEWS: Mention the API change.
6408         Reported by Reuben Thomas and Eric Blake.
6409
6410 2011-03-06  Bruno Haible  <bruno@clisp.org>
6411
6412         regex-quote: Fix creation of POSIX extended regular expressions.
6413         * lib/regex-quote.c (ere_special): Add grouping and alternation
6414         operators.
6415
6416 2011-03-05  Bruno Haible  <bruno@clisp.org>
6417
6418         doc: Improve doc regarding autopoint vs. gnulib.
6419         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6420         disable autopoint while running autoreconf.
6421         Suggested by Ralf Wildenhues.
6422
6423 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6424
6425         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6426         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6427
6428 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6429
6430         parse-duration: remove xalloc.h dependency
6431         * lib/parse-duration.c (parse_period): handle NULL return from
6432         strdup instead of calling xstrdup().
6433         * modules/parse-duration: remove "xalloc" dependency
6434
6435 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6436
6437         bootstrap: honor m4_base when running aclocal
6438         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6439
6440 2011-03-02  Jim Meyering  <meyering@redhat.com>
6441
6442         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6443         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6444         on request from Matt Booth.
6445
6446 2011-03-01  Eric Blake  <eblake@redhat.com>
6447
6448         test-link: work on Hurd
6449         * tests/test-link.h (test_link): Hurd rejects linking directories
6450         with EISDIR instead of the POSIX-mandated EPERM.
6451
6452 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         stdio: simplify by moving files to printf-posix, sigpipe
6455         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6456         since this symbol is needed only if printf is replaced.
6457         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6458         Require gl_ASM_SYMBOL_PREFIX.
6459         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6460         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6461         (Depends-on): Add 'raise'.
6462         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6463         * modules/stdio (Files): Remove lib/stdio-write.c,
6464         m4/asm-underscore.m4.
6465         (Depends-on): Remove 'raise'.
6466
6467         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6468         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6469         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6470         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6471
6472 2011-02-28  Bruno Haible  <bruno@clisp.org>
6473
6474         localcharset: Assume ANSI C behaviour of free().
6475         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6476         calling free().
6477         Suggested by Simon Josefsson <simon@josefsson.org>.
6478
6479 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6480             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6481             Bruno Haible  <bruno@clisp.org>  (tiny change)
6482
6483         On Cygwin, use /proc file system instead of win32 API.
6484         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6485         Win32 file names.
6486         (DllMain): Simplify by removing Cygwin specific code.
6487         (find_shared_library_fullname): Use Linux specific implementation also
6488         for Cygwin.
6489         (get_shared_library_fullname): Update accordingly.
6490         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6491         Win32 file names.
6492         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6493         Cygwin specific code.
6494
6495 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6496             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6497
6498         Fix OpenMP flag detection for various Fortran compilers.
6499         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6500         OpenMP-conditional compilation construct, to force compile
6501         failure with missing OpenMP flag.
6502         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6503
6504 2011-02-25  Eric Blake  <eblake@redhat.com>
6505
6506         strstr: expand test coverage
6507         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6508         compilation.
6509         * tests/test-memmem.c (main): Duplicate tests.
6510         * tests/test-strcasestr.c (main): Likewise.
6511         * tests/test-c-strcasestr.c (main): Likewise.
6512
6513 2011-02-25  Jim Meyering  <meyering@redhat.com>
6514
6515         maint.mk: detect missing-NL-at-EOF, too
6516         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6517         it also detects when a file lacks a newline at EOF.
6518         (require_exactly_one_NL_at_EOF_): Renamed from
6519         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6520         since people may well have .x-sc_... file names tied to the
6521         existing name.  Suggested by Eric Blake.
6522
6523 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6524
6525         dirname: move m4/dos.m4 functionality into lib/dosname.h
6526
6527         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6528         extracts symbols from it, puts them into config.h; but it's much
6529         easier to use the symbols directly.  filename.h already does this,
6530         but it disagrees with dos.m4 in some respects.  This patch
6531         introduces a different include file dosname.h that packages up
6532         dos.m4, and then later we can work on merging filename.h and
6533         dosname.h.  Applications that need only the easy-to-configure
6534         symbols should consider including dosname.h rather than dirname.h.
6535         * NEWS: Mention incompatible changes.
6536         * m4/dos.m4: Remove.
6537         * lib/dosname.h, modules/dosname: New files.
6538         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6539         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6540         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6541         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6542         Include dosname.h, not dirname.h.
6543         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6544         Include dosname.h, for definitions of symbols like ISSLASH
6545         that used to be in config.h.
6546         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6547         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6548         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6549         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6550         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6551         * modules/rmdir (Files): Likewise.
6552         * modules/stat (Files): Likewise.
6553         * modules/unlink (Files): Likewise.
6554         * modules/dirname-lgpl (Depends-on): Add dosname.
6555         * modules/lstat (Depends-on): Likewise.
6556         * modules/openat (Depends-on): Likewise.
6557         * modules/rmdir (Depends-on): Likewise.
6558         * modules/savewd (Depends-on): Likewise.
6559         * modules/stat (Depends-on): Likewise.
6560         * modules/unlink (Depends-on): Likewise.
6561         * modules/openat (Depends-on): Remove dirname-lgpl.
6562         * modules/savewd (Depends-on): Likewise.
6563         * tests/test-dirname.c: Do not use removed symbols like
6564         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6565         the remaining symbols, e.g., ISSLASH ('\\').
6566
6567 2011-02-25  Eric Blake  <eblake@redhat.com>
6568
6569         strstr: revert patches that introduced bug and pessimization
6570         * lib/str-two-way.h: Add another reference.
6571         (two_way_short_needle, two_way_long_needle): Revert changes from
6572         2011-02-24; they pessimize search speed.
6573         (critical_factorization): Partially revert changes from
6574         2010-06-22; they violate the requirement that the left half of the
6575         needle be smaller than the period of the needle.
6576
6577 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6578
6579         filenamecat: remove unnecessary dependency on dirname-lgpl
6580         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6581         is no direct dependency, just an indirect one via filenamecat-lgpl.
6582
6583         remove: remove unnecessary use of m4/dos.m4
6584         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6585         * modules/remove (FILES): Remove m4/dos.m4.
6586
6587         * lib/openat-proc.c: Don't include dirname.h; not needed.
6588
6589         backupfile: remove unnecessary use of m4/dos.m4
6590         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6591         of its symbols are used by the backupfile code.  backupfile.c does
6592         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6593         for the rare case of programs that want all their backup file
6594         names to live within 8+3 limits, and dos.m4 doesn't address that.
6595         * modules/backupfile (Files): Remove m4/dos.m4.
6596
6597 2011-02-24  Jim Meyering  <meyering@redhat.com>
6598
6599         strstr: fix a bug whereby strstr would mistakenly return NULL
6600         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6601         in period calculation.
6602         (two_way_long_needle): Likewise.
6603         The original problem was reported by Mike Stump in
6604         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6605         Ralf Wildenhues provided the short needle and haystack.
6606         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6607         Add a more involved test to trigger the bug in two_way_long_needle.
6608
6609 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6610
6611         gnulib-tool: remove use of bold display in help screen
6612         * gnulib-tool (func_usage): Do not use bold display anymore in the
6613         help screen.  That was just meant to be a temporary emphasis for a
6614         backward-incompatible change.
6615
6616 2011-02-23  Bruno Haible  <bruno@clisp.org>
6617
6618         Fix misindentation of preprocessor directives.
6619         * lib/argp-namefrob.h: Reindent preprocessor directives.
6620         * lib/getopt_int.h (struct _getopt_data): Likewise.
6621         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6622         * lib/vasnprintf.c (decode_long_double): Likewise.
6623         * tests/test-argmatch.c: Insert blank lines, for clarity.
6624         * tests/test-exclude.c: Likewise.
6625
6626 2011-02-22  Bruno Haible  <bruno@clisp.org>
6627
6628         ioctl: Fix for MacOS X in 64-bit mode.
6629         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6630         value.
6631         Suggested by Eric Blake.
6632         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6633
6634 2011-02-22  Jim Meyering  <meyering@redhat.com>
6635
6636         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6637         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6638         in lib/.
6639
6640 2011-02-22  Eric Blake  <eblake@redhat.com>
6641
6642         maint: avoid any CDPATH issue
6643         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6644
6645         maint: adjust cpp indentation for my modules, as well
6646         * Makefile (sc_cpp_indent_check): Add my name.
6647         * lib/fbufmode.c: Filter through cppi.
6648         * lib/fpurge.c: Likewise.
6649         * lib/freadable.c: Likewise.
6650         * lib/freading.c: Likewise.
6651         * lib/fwritable.c: Likewise.
6652         * lib/fwriting.c: Likewise.
6653         * lib/sigaction.c: Likewise.
6654
6655 2011-02-22  Jim Meyering  <meyering@redhat.com>
6656
6657         maint: adjust cpp indentation to reflect nesting depth
6658         I.e., in a block of code that begins with an unnested "#if",
6659         put one space between the "#" in column 1 and following token.
6660         For example,
6661         -#include <sys/vfs.h>
6662         +# include <sys/vfs.h>
6663         Do this only in .c files that are part of a module I maintain.
6664         * lib/linkat.c: Filter through cppi.
6665         * lib/nanosleep.c: Likewise.
6666         * lib/openat.c: Likewise.
6667         * lib/openat-die.c: Likewise.
6668         * lib/dup3.c: Likewise.
6669         * lib/fchownat.c: Likewise.
6670         * lib/flock.c: Likewise.
6671         * lib/fsync.c: Likewise.
6672         * lib/fts.c: Likewise.
6673         * lib/getpass.c: Likewise.
6674         * lib/gettimeofday.c: Likewise.
6675         * lib/userspec.c: Likewise.
6676         * Makefile (sc_cpp_indent_check): New rule, to check this.
6677
6678 2011-02-22  Bruno Haible  <bruno@clisp.org>
6679
6680         New module 'wctomb'.
6681         * lib/stdlib.in.h (wctomb): New declaration.
6682         * lib/wctomb.c: New file.
6683         * lib/wctomb-impl.h: New file.
6684         * m4/wctomb.m4: New file.
6685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6686         REPLACE_WCTOMB.
6687         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6688         REPLACE_WCTOMB.
6689         * modules/wctomb: New file.
6690         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6691         * doc/posix-functions/wctomb.texi: Mention the new module.
6692         * modules/wctob (Depends-on): Add wctomb.
6693
6694 2011-02-22  Bruno Haible  <bruno@clisp.org>
6695
6696         New module 'mbtowc'.
6697         * lib/stdlib.in.h (mbtowc): New declaration.
6698         * lib/mbtowc.c: New file.
6699         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6700         * m4/mbtowc.m4: New file.
6701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6702         REPLACE_MBTOWC.
6703         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6704         REPLACE_MBTOWC.
6705         * modules/mbtowc: New file.
6706         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6707         * doc/posix-functions/mbtowc.texi: Mention the new module.
6708         * modules/btowc (Depends-on): Add mbtowc.
6709
6710 2011-02-22  Bruno Haible  <bruno@clisp.org>
6711
6712         wcrtomb: Add more tests for native Windows platforms.
6713         * tests/test-wcrtomb-w32-1.sh: New file.
6714         * tests/test-wcrtomb-w32-2.sh: New file.
6715         * tests/test-wcrtomb-w32-3.sh: New file.
6716         * tests/test-wcrtomb-w32-4.sh: New file.
6717         * tests/test-wcrtomb-w32-5.sh: New file.
6718         * tests/test-wcrtomb-w32.c: New file.
6719         * modules/wcrtomb-tests (Files): Add them.
6720         (Makefile.am): Arrange to run these tests.
6721         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6722         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6723
6724 2011-02-20  Bruno Haible  <bruno@clisp.org>
6725
6726         wcrtomb: Enhance test.
6727         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6728
6729 2011-02-20  Bruno Haible  <bruno@clisp.org>
6730
6731         mbrtowc: Tiny optimization.
6732         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6733
6734 2011-02-20  Jim Meyering  <meyering@redhat.com>
6735
6736         test-exclude.c: remove unmatched #endif
6737         * tests/test-exclude.c: Remove stray #endif, left over from
6738         the change of a week ago.
6739
6740 2011-02-19  Jim Meyering  <meyering@redhat.com>
6741
6742         git-version-gen: skip "-dirty" check when appropriate
6743         * build-aux/git-version-gen: Don't run any git commands when the
6744         version string comes from .tarball-version.  Prior to this, we
6745         would run git update-index --refresh even from a just-unpacked
6746         tarball directory, and that could affect a .git/ directory in a
6747         parent of the build directory.  Reported by Mike Frysinger.
6748
6749 2011-02-19  Bruno Haible  <bruno@clisp.org>
6750
6751         unictype/property-byname: Reduce the size of the 'data' segment.
6752         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6753
6754 2011-02-19  Bruno Haible  <bruno@clisp.org>
6755
6756         unictype/scripts: Reduce the size of the 'data' segment.
6757         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6758         '%pic'.
6759         * lib/unictype/scripts_byname.gperf: Regenerated.
6760
6761 2011-02-19  Bruno Haible  <bruno@clisp.org>
6762
6763         stdint: Update documentation.
6764         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6765
6766 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6767
6768         stdint: omit redundant check for wchar.h
6769         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6770         always tests whether wchar.h exists, so remove the now-redundant test.
6771
6772 2011-02-18  Bruno Haible  <bruno@clisp.org>
6773
6774         stdint: Cut dependency to module 'wchar'.
6775         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6776         include the necessary prerequisites.
6777         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6778         * modules/stdint (Depends-on): Remove wchar.
6779         (Makefile.am): Substitute HAVE_WCHAR_H.
6780         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6781
6782 2011-02-18  Eric Blake  <eblake@redhat.com>
6783
6784         longlong: skip, rather than fail, on cross-compilation
6785         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6786         when cross-compiling; regression from 2011-02-16.
6787
6788 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6789
6790         * NEWS: Mention 2011-02-08 change to stdlib.
6791
6792 2011-02-17  Bruno Haible  <bruno@clisp.org>
6793
6794         getloadavg: Add comments about platforms.
6795         * m4/getloadavg.m4: Add comment.
6796         * lib/getloadavg.c: Likewise.
6797
6798 2011-02-17  Bruno Haible  <bruno@clisp.org>
6799
6800         getloadavg: Fix link error on Solaris 2.6.
6801         * modules/getloadavg (Link): New section.
6802         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6803         linking test-getloadavg.
6804         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6805         getloadavg.
6806
6807 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6808
6809         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6810         It was 'int', but this doesn't match the IRIX 6.5 manual.
6811         Suggested by Bruno Haible in
6812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6813
6814 2011-02-17  Bruno Haible  <bruno@clisp.org>
6815
6816         havelib: Fix comments.
6817         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6818         change.
6819
6820 2011-02-17  Bruno Haible  <bruno@clisp.org>
6821
6822         havelib: Update config.rpath.
6823         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6824
6825 2011-02-17  Bruno Haible  <bruno@clisp.org>
6826
6827         getloadavg test: Add some plausibility checks.
6828         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6829         is improbable.
6830
6831 2011-02-16  Eric Blake  <eblake@redhat.com>
6832
6833         maintainer-makefile: make syntax-check a no-op from tarballs
6834         * top/maint.mk (no-vc-detected): New rule.
6835         (local-checks-available): Use it to avoid hanging if someone tries
6836         'make syntax-check' from a tarball.  Also append to any non-syntax
6837         checks already defined in cfg.mk.
6838
6839 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6840
6841         longlong: tune, particularly for common case of c99
6842
6843         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6844         or running anything if c99, or if unsigned long long int does not
6845         work.  In either case, we know the answer without further tests.
6846         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6847         it at most once, and use its results for both long long int and
6848         unsigned long long int.  This is more likely to be efficient in
6849         the common case where the program wants to check for both long
6850         long int and unsigned long long int.
6851         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6852         since the answer is already known.
6853
6854 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6855
6856         getloadavg: set errno
6857         * lib/getloadavg.c: Set errno when returning -1.  If no other
6858         error number looks appropriate, set it to ENOSYS if the getloadavg
6859         looks like it can't possibly ever work, ENOTSUP otherwise.
6860         Suggested by Bruno Haible in
6861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6862
6863         getloadavg: trim unused parts and speed up 'configure'
6864         * NEWS: Document this.
6865         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6866         always compiled if getloadavg is absent.
6867         Move test code to ...
6868         * tests/test-getloadavg.c: New file, containing previous
6869         contents of test from lib/getloadavg.c.  It also contains
6870         suggestions by Bruno Haible in
6871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6872         * modules/getloadavg-tests: New file.
6873         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6874         Do tests in the same order as they're needed for getloadavg.c.
6875         Omit setgid-related tests that generate symbols KMEM_GROUP,
6876         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6877         Do only the tests that are needed to see whether the system has
6878         getloadavg, moving the other tests into ...
6879         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6880         NLIST_NAME_UNION; nobody should be using it.  Do not define
6881         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6882         relevant, as the user of this module shouldn't care how getloadavg
6883         is implemented.
6884
6885         getloadavg: omit unused var
6886         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6887
6888 2011-02-15  Jim Meyering  <meyering@redhat.com>
6889
6890         doc: update users.txt
6891         * users.txt: Update iwhd's URL.
6892
6893 2011-02-13  Bruno Haible  <bruno@clisp.org>
6894
6895         Consistent macro naming for macros that use GCC __attribute__.
6896         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6897         _ATTRIBUTE_NONNULL_.
6898         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6899         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6900         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6901         ATTRIBUTE_DEPRECATED.
6902         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6903         ATTRIBUTE_NORETURN.
6904         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6905         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6906         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6907         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6908         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6909         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6910         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6911         ATTRIBUTE_SENTINEL.
6912         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6913         ATTRIBUTE_RETURN_CHECK.
6914         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6915         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6916         ATTRIBUTE_NORETURN.
6917         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6918         Reported by Paul Eggert.
6919
6920 2011-02-13  Bruno Haible  <bruno@clisp.org>
6921
6922         Don't interfere with a program's definition of __attribute__.
6923         * lib/argp.h (__attribute__): Remove definition.
6924         (_GL_ATTRIBUTE_FORMAT): New macro.
6925         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6926         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6927         (_GL_ATTRIBUTE_FORMAT): New macro.
6928         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6929         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6930         GCC 3 or newer.
6931         * lib/error.h (__attribute__): Remove definition.
6932         (_GL_ATTRIBUTE_FORMAT): New macro.
6933         (error, error_at_line): Use it.
6934         * lib/hash.h (__attribute__): Remove definition.
6935         (ATTRIBUTE_WUR): Update definition. Define always.
6936         * lib/openat.h (__attribute__): Remove definition.
6937         (ATTRIBUTE_NORETURN): Update definition. Define always.
6938         * lib/sigpipe-die.h (__attribute__): Remove definition.
6939         (ATTRIBUTE_NORETURN): Update definition. Define always.
6940         * lib/vasnprintf.h (__attribute__): Remove definition.
6941         (_GL_ATTRIBUTE_FORMAT): New macro.
6942         (asnprintf, vasnprintf): Use it.
6943         * lib/xalloc.h (__attribute__): Remove definition.
6944         (ATTRIBUTE_NORETURN): Update definition. Define always.
6945         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6946         * lib/xmemdup0.h (__attribute__): Remove definition.
6947         (ATTRIBUTE_NORETURN): Update definition. Define always.
6948         * lib/xprintf.h (__attribute__): Remove definition.
6949         (_GL_ATTRIBUTE_FORMAT): New macro.
6950         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6951         * lib/xstrtol.h (__attribute__): Remove definition.
6952         (ATTRIBUTE_NORETURN): Update definition. Define always.
6953         * lib/xvasprintf.h (__attribute__): Remove definition.
6954         (_GL_ATTRIBUTE_FORMAT): New macro.
6955         (xasprintf, xvasprintf): Use it.
6956         * tests/test-argmatch.c (__attribute__): Remove definition.
6957         (ATTRIBUTE_NORETURN): Update definition. Define always.
6958         * tests/test-exclude.c (__attribute__): Remove definition.
6959         (ATTRIBUTE_NORETURN): Update definition. Define always.
6960         Reported by Paul Eggert.
6961
6962 2011-02-13  Bruno Haible  <bruno@clisp.org>
6963
6964         mbrtowc: Add more tests for native Windows platforms.
6965         * tests/test-mbrtowc-w32-1.sh: New file.
6966         * tests/test-mbrtowc-w32-2.sh: New file.
6967         * tests/test-mbrtowc-w32-3.sh: New file.
6968         * tests/test-mbrtowc-w32-4.sh: New file.
6969         * tests/test-mbrtowc-w32-5.sh: New file.
6970         * tests/test-mbrtowc-w32.c: New file.
6971         * modules/mbrtowc-tests (Files): Add them.
6972         (Makefile.am): Arrange to run these tests.
6973         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6974         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6975
6976 2011-02-13  Bruno Haible  <bruno@clisp.org>
6977
6978         mbrtowc: Work around native Windows bug.
6979         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6980         guess when no suitable locale for testing was found.
6981         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6982
6983 2011-02-13  Bruno Haible  <bruno@clisp.org>
6984
6985         mbsinit: Work around mingw bug.
6986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6987         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6988         Windows.
6989         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6990
6991 2011-02-13  Bruno Haible  <bruno@clisp.org>
6992
6993         mbsinit: Don't crash for a NULL argument.
6994         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6995         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6996
6997 2011-02-13  Bruno Haible  <bruno@clisp.org>
6998
6999         Don't interfere with a program's definition of __attribute__.
7000         * lib/stdio.in.h (__attribute__): Remove definition.
7001         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7002         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7003         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7004         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7005         * lib/string.in.h (__attribute__): Remove definition.
7006         Reported by Paul Eggert.
7007
7008 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7009
7010         stdlib: don't get in the way of non-GCC __attribute__
7011         See thread starting at
7012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7013         Revert previous stdlib change, installing the following instead:
7014         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7015         to get in the way of a non-GCC compiler that supports __attribute__.
7016         (_GL_ATTRIBUTE_RETURN): New macro.
7017         (_Exit): Use it instead of __attribute__.
7018
7019 2011-02-12  Bruno Haible  <bruno@clisp.org>
7020
7021         quotearg test: Avoid test failure on mingw.
7022         * tests/test-quotearg.sh: Convert the locale identifier from native
7023         Windows syntax to Unix syntax.
7024
7025 2011-02-12  Bruno Haible  <bruno@clisp.org>
7026
7027         setlocale: Prefer gnulib's override over libintl's override.
7028         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7029         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7030         GNULIB_defined_setlocale is set.
7031
7032 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7033
7034         stdlib: support non-GCC __attribute__
7035
7036         Fix a serious and tricky problem encountered when attempting to
7037         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7038         5.5, but it crashed due to memory corruption on Solaris 10 with
7039         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7040         bits that are otherwise zero.  This tagging is optional inside
7041         Emacs but is preferred and is used when __attribute__ ((__aligned
7042         (8))) works, as it does with both recent-enough GCC and with Sun C
7043         5.11.  However, Sun C 5.11 is not GCC and does not #define
7044         __GNUC__ and __GNUC_MINOR__.
7045
7046         When I added the getloadavg module to Emacs, it brought in
7047         stdlib.in.h, which contained this fragment:
7048
7049            #ifndef __attribute__
7050            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7051            #  define __attribute__(Spec)   /* empty */
7052            # endif
7053            #endif
7054
7055         When files that include <stdlib.h> were compiled with Sun C 5.11,
7056         the above code disabled __attribute__ ((__aligned (8))), which
7057         caused variables to not be properly aligned, which eventually led
7058         to the pointer corruption mentioned above.  (This was a bit hard
7059         to diagnose, unfortunately.)
7060
7061         Several "#define __attribute__(X) /* empty */" code snippets need
7062         to be eradicated from Gnulib to work with non-GCC compilers that
7063         support __attribute__.  The Autoconf way to do this is to test for
7064         each kind of attribute that we want support for, and selectively
7065         enable that in source code.
7066
7067         Fix this problem just for stdlib.h, by adding a test for the
7068         __noreturn__ attribute, and change stdlib.in.h to use that test
7069         when needed.  This technique can be easily generalized to the
7070         other *.in.h files and attributes, and a similar technique can be
7071         used for *.h and *.c files.  This patch is enough to solve the
7072         problem for Emacs + getloadavg, and I thought I'd publish it for
7073         feedback before undertaking further, similar fixes in other
7074         modules.
7075
7076         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7077         because it's not needed for stdlib.h.  It merely substitutes the
7078         value directly into stdlib.h.  We may well need to #define it, or
7079         similar symbols, for other modules, but it's nice to also have an
7080         option to not #define it for applications like Emacs that do not
7081         need it.
7082
7083         * lib/stdlib.in.h (__attribute__): Do not #define.
7084         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7085         be defined only if the _Exit module is also used.
7086         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7088         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7089         platforms.
7090         * modules/_Exit (Files): Add m4/attribute.m4.
7091         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7092         * m4/attribute.m4: New file.
7093
7094 2011-02-12  Bruno Haible  <bruno@clisp.org>
7095
7096         wcsrtombs: Work around bug on native Windows.
7097         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7098         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7099         instead of len.
7100         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7101
7102 2011-02-12  Bruno Haible  <bruno@clisp.org>
7103
7104         mbsrtowcs: Work around bug on native Windows.
7105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7106         against mingw bug.
7107         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7108
7109 2011-02-12  Bruno Haible  <bruno@clisp.org>
7110
7111         Avoid setlocale bugs in tests.
7112         * modules/btowc (Dependencies): Add setlocale.
7113         * modules/c-strcase (Dependencies): Likewise.
7114         * modules/mbmemcasecmp (Dependencies): Likewise.
7115         * modules/mbmemcasecoll (Dependencies): Likewise.
7116         * modules/mbrtowc (Dependencies): Likewise.
7117         * modules/mbscasecmp (Dependencies): Likewise.
7118         * modules/mbscasestr (Dependencies): Likewise.
7119         * modules/mbschr (Dependencies): Likewise.
7120         * modules/mbscspn (Dependencies): Likewise.
7121         * modules/mbsinit (Dependencies): Likewise.
7122         * modules/mbsncasecmp (Dependencies): Likewise.
7123         * modules/mbsnrtowcs (Dependencies): Likewise.
7124         * modules/mbspbrk (Dependencies): Likewise.
7125         * modules/mbspcasecmp (Dependencies): Likewise.
7126         * modules/mbsrchr (Dependencies): Likewise.
7127         * modules/mbsrtowcs (Dependencies): Likewise.
7128         * modules/mbsspn (Dependencies): Likewise.
7129         * modules/mbsstr (Dependencies): Likewise.
7130         * modules/nl_langinfo (Dependencies): Likewise.
7131         * modules/quotearg (Dependencies): Likewise.
7132         * modules/unicase/locale-language (Dependencies): Likewise.
7133         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7134         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7135         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7136         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7137         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7138         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7139         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7140         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7141         * modules/vasnprintf-posix (Dependencies): Likewise.
7142         * modules/wcrtomb (Dependencies): Likewise.
7143         * modules/wcsnrtombs (Dependencies): Likewise.
7144         * modules/wcsrtombs (Dependencies): Likewise.
7145
7146 2011-02-12  Bruno Haible  <bruno@clisp.org>
7147
7148         setlocale: Workaround native Windows bug.
7149         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7150         succeeds but sets LC_CTYPE to "C", report a failure.
7151         * tests/test-setlocale2.sh: New file.
7152         * tests/test-setlocale2.c: New file.
7153         * modules/setlocale-tests (Files): Add the new files.
7154         (Makefile.am): Enable test-setlocale2.sh test.
7155         * doc/posix-functions/setlocale.texi: Mention workaround.
7156
7157 2011-02-11  Bruno Haible  <bruno@clisp.org>
7158
7159         Tests for module 'setlocale'.
7160         * modules/setlocale-tests: New file.
7161         * tests/test-setlocale1.sh: New file.
7162         * tests/test-setlocale1.c: New file.
7163
7164         New module 'setlocale'.
7165         * lib/locale.in.h (setlocale): New declaration.
7166         * lib/setlocale.c: New file, based on
7167         gettext/gettext-runtime/intl/setlocale.c.
7168         * m4/setlocale.m4: New file.
7169         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7170         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7171         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7172         REPLACE_SETLOCALE.
7173         * modules/setlocale: New file.
7174         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7175         * doc/posix-functions/setlocale.texi: Mention the new module.
7176
7177 2011-02-11  Bruno Haible  <bruno@clisp.org>
7178
7179         Prepare for locale dependent tests on mingw.
7180         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7181         because it has the wrong locale encoding.
7182         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7183         French_France.1252 instead of "fr".
7184         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7185         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7186         because it has the wrong locale encoding.
7187         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7188         native Windows, try Turkish_Turkey.65001.
7189         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7190         Chinese_China.54936.
7191
7192         Prepare for locale dependent tests on mingw.
7193         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7194         differently.
7195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7196         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7199
7200 2011-02-11  Eric Blake  <eblake@redhat.com>
7201
7202         strptime: avoid compiler warnings
7203         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7204         compiler warnings about dead code.
7205         Reported by Daniel P. Berrange.
7206
7207 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7208
7209         doc: update users.txt
7210         * users.txt: Add rcs.
7211
7212 2011-02-10  John W. Eaton  <jwe@gnu.org>
7213
7214         doc: update users.txt
7215         * users.txt: Add octave.
7216
7217 2011-02-10  Jim Meyering  <meyering@redhat.com>
7218
7219         doc: update users.txt
7220         * users.txt: Add iwhd.
7221
7222 2011-02-09  Bruno Haible  <bruno@clisp.org>
7223
7224         gnulib-tool: Make copyright notice adjustment more robust.
7225         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7226         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7227         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7228         License".
7229         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7230
7231 2011-02-06  Bruno Haible  <bruno@clisp.org>
7232
7233         New module 'towctrans'.
7234         * modules/towctrans: New file.
7235         * lib/wctype.in.h (towctrans): New declaration.
7236         * lib/towctrans.c: New file.
7237         * lib/towctrans-impl.h: New file.
7238         * m4/towctrans.m4: New file.
7239         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7240         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7241         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7242         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7243         * doc/posix-functions/towctrans.texi: Mention the new module.
7244
7245 2011-02-06  Bruno Haible  <bruno@clisp.org>
7246
7247         New module 'wctrans'.
7248         * modules/wctrans: New file.
7249         * lib/wctype.in.h (wctrans): New declaration.
7250         * lib/wctrans.c: New file.
7251         * lib/wctrans-impl.h: New file.
7252         * m4/wctrans.m4: New file.
7253         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7254         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7255         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7256         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7257         * doc/posix-functions/wctrans.texi: Mention the new module.
7258
7259 2011-02-06  Bruno Haible  <bruno@clisp.org>
7260
7261         New module 'iswctype'.
7262         * modules/iswctype: New file.
7263         * lib/wctype.in.h (iswctype): New declaration.
7264         * lib/iswctype.c: New file.
7265         * lib/iswctype-impl.h: New file.
7266         * m4/iswctype.m4: New file.
7267         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7268         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7269         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7270         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7271         * doc/posix-functions/iswctype.texi: Mention the new module and the
7272         HP-UX 11.00 problem.
7273
7274 2011-02-06  Bruno Haible  <bruno@clisp.org>
7275
7276         New module 'wctype'.
7277         * modules/wctype: Change to represent the wctype() substitute.
7278         * lib/wctype.in.h (wctype): New declaration.
7279         * lib/wctype.c: New file.
7280         * lib/wctype-impl.h: New file.
7281         * m4/wctype.m4: New file.
7282         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7283         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7284         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7285         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7286         * doc/posix-functions/wctype.texi: Mention the new module and the
7287         HP-UX 11.00 problem.
7288
7289 2011-02-06  Bruno Haible  <bruno@clisp.org>
7290
7291         wctype-h: Ensure wctype_t and wctrans_t are defined.
7292         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7293         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7294         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7295         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7296         HAVE_WCTRANS_T.
7297         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7298
7299 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7300
7301         flock: fix license typo
7302
7303         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7304         omitted.
7305
7306 2011-02-08  Bruno Haible  <bruno@clisp.org>
7307
7308         Split large sed scripts, for HP-UX sed.
7309         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7310         to avoid HP-UX limit of 99 commands, in the near future.
7311         * modules/stdlib (Makefile.am): Likewise.
7312         * modules/unistd (Makefile.am): Likewise.
7313         * modules/wchar (Makefile.am): Likewise.
7314         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7315         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7316         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7317
7318 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7319             Bruno Haible  <bruno@clisp.org>
7320
7321         stdlib: improve random_r modularization
7322         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7323         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7324         you also need the random_r module to get this material right.
7325         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7326         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7327         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7328
7329 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7330
7331         stdlib: don't depend on stdint
7332         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7333         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7334         be independent of whether stdint.h is needed.
7335         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7336         here, instead of ...
7337         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7338         struct random_data should be using the random_r module, not just
7339         the stdlib module (which wouldn't make sense: what package needs
7340         just struct random_data without also needing random_r?).
7341         * modules/stdlib (Depends-on): Remove stdint.
7342
7343         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7344         See the thread rooted at
7345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7346         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7347         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7348         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7349         __VMS)); previously it was always included (via fcntl--.h).
7350         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7351         hand; this is good enough for load averages.  Also, do not use
7352         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7353         flags directly if available and don't bother otherwise.  (Packages
7354         that need the extra reliability should use the modules that define
7355         these flags on older platforms that lack them.)
7356         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7357         fcntl-safer.
7358
7359 2011-02-08  Jim Meyering  <meyering@redhat.com>
7360
7361         di-set.h, ino-map.h: add multiple-inclusion guard
7362         Technically, the guard is required only for ino-map.h, due to its
7363         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7364         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7365         * lib/ino-map.h: Likewise.
7366
7367 2011-02-06  Bruno Haible  <bruno@clisp.org>
7368
7369         iswblank: Ensure declaration on glibc systems.
7370         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7371         * modules/iswblank (Dependencies): Add 'extensions'.
7372         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7373
7374 2011-02-06  Bruno Haible  <bruno@clisp.org>
7375
7376         New module 'iswblank'.
7377         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7378         * modules/iswblank: New file.
7379         * modules/wctype-h (Files): Remove lib/iswblank.c.
7380         (Makefile.am): Substitute GNULIB_ISWBLANK.
7381         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7382         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7383         (gl_WCTYPE_H_DEFAULTS): New macro.
7384         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7385         * modules/iswblank-tests: New file.
7386         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7387         * tests/test-wctype-h.c (main): Remove iswblank tests.
7388         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7389         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7390         of 'wctype-h'.
7391         * NEWS: Mention the change.
7392         * modules/mbchar (Depends-on): Add iswblank.
7393
7394 2011-02-08  Bruno Haible  <bruno@clisp.org>
7395
7396         di-set tests: Refactor.
7397         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7398         unnecessary includes.
7399         (ASSERT): Remove macro.
7400         (main): Make C90 compliant by avoiding variable declaration after
7401         statement.
7402         * modules/di-set-tests (Files): Add tests/macros.h.
7403
7404 2011-02-08  Bruno Haible  <bruno@clisp.org>
7405
7406         ino-map tests: Refactor.
7407         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7408         unnecessary includes.
7409         (ASSERT): Remove macro.
7410         (main): Make C90 compliant by avoiding variable declaration after
7411         statement.
7412         * modules/ino-map-tests (Files): Add tests/macros.h.
7413
7414 2011-02-08  Jim Meyering  <meyering@redhat.com>
7415
7416         di-set: add "const" to a cast
7417         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7418         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7419
7420 2011-02-06  Bruno Haible  <bruno@clisp.org>
7421
7422         Rename module 'wctype' to 'wctype-h'.
7423         * modules/wctype-h: Renamed from modules/wctype.
7424         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7425         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7426         (Files, Depends-on, Makefile.am): Update.
7427         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7428         (Files, Makefile.am): Update.
7429         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7430         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7431         * doc/posix-headers/wctype.texi: Update.
7432         * doc/posix-functions/iswalnum.texi: Update.
7433         * doc/posix-functions/iswalpha.texi: Update.
7434         * doc/posix-functions/iswblank.texi: Update.
7435         * doc/posix-functions/iswcntrl.texi: Update.
7436         * doc/posix-functions/iswdigit.texi: Update.
7437         * doc/posix-functions/iswgraph.texi: Update.
7438         * doc/posix-functions/iswlower.texi: Update.
7439         * doc/posix-functions/iswprint.texi: Update.
7440         * doc/posix-functions/iswpunct.texi: Update.
7441         * doc/posix-functions/iswspace.texi: Update.
7442         * doc/posix-functions/iswupper.texi: Update.
7443         * doc/posix-functions/iswxdigit.texi: Update.
7444         * doc/posix-functions/towlower.texi: Update.
7445         * doc/posix-functions/towupper.texi: Update.
7446         * NEWS: Mention the change.
7447         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7448         * modules/mbchar (Dependencies): Likewise.
7449         * modules/mbswidth (Dependencies): Likewise.
7450         * modules/quotearg (Dependencies): Likewise.
7451         * modules/regex (Dependencies): Likewise.
7452         * modules/wcscasecmp (Dependencies): Likewise.
7453         * modules/wcsncasecmp (Dependencies): Likewise.
7454         * modules/wcwidth (Dependencies): Likewise.
7455
7456 2011-02-06  Bruno Haible  <bruno@clisp.org>
7457
7458         New module 'wcswidth'.
7459         * modules/wcswidth: New file.
7460         * lib/wchar.in.h (wcswidth): New declaration.
7461         * lib/wcswidth.c: New file.
7462         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7463         * m4/wcswidth.m4: New file.
7464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7466         REPLACE_WCSWIDTH.
7467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7468         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7469         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7470         * doc/posix-functions/wcswidth.texi: Mention the new module.
7471
7472 2011-02-06  Bruno Haible  <bruno@clisp.org>
7473
7474         New module 'wcstok'.
7475         * modules/wcstok: New file.
7476         * lib/wchar.in.h (wcstok): New declaration.
7477         * lib/wcstok.c: New file.
7478         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7479         * m4/wcstok.m4: New file.
7480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7483         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7484         * doc/posix-functions/wcstok.texi: Mention the new module.
7485
7486 2011-02-06  Bruno Haible  <bruno@clisp.org>
7487
7488         New module 'wcsstr'.
7489         * modules/wcsstr: New file.
7490         * lib/wchar.in.h (wcsstr): New declaration.
7491         * lib/wcsstr.c: New file.
7492         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7493         * m4/wcsstr.m4: New file.
7494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7497         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7498         * doc/posix-functions/wcsstr.texi: Mention the new module.
7499
7500 2011-02-06  Bruno Haible  <bruno@clisp.org>
7501
7502         New module 'wcspbrk'.
7503         * modules/wcspbrk: New file.
7504         * lib/wchar.in.h (wcspbrk): New declaration.
7505         * lib/wcspbrk.c: New file.
7506         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7507         * m4/wcspbrk.m4: New file.
7508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7511         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7512         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7513
7514 2011-02-06  Bruno Haible  <bruno@clisp.org>
7515
7516         New module 'wcsspn'.
7517         * modules/wcsspn: New file.
7518         * lib/wchar.in.h (wcsspn): New declaration.
7519         * lib/wcsspn.c: New file.
7520         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7521         * m4/wcsspn.m4: New file.
7522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7525         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7526         * doc/posix-functions/wcsspn.texi: Mention the new module.
7527
7528 2011-02-06  Bruno Haible  <bruno@clisp.org>
7529
7530         New module 'wcscspn'.
7531         * modules/wcscspn: New file.
7532         * lib/wchar.in.h (wcscspn): New declaration.
7533         * lib/wcscspn.c: New file.
7534         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7535         * m4/wcscspn.m4: New file.
7536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7539         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7540         * doc/posix-functions/wcscspn.texi: Mention the new module.
7541
7542 2011-02-06  Bruno Haible  <bruno@clisp.org>
7543
7544         New module 'wcsrchr'.
7545         * modules/wcsrchr: New file.
7546         * lib/wchar.in.h (wcsrchr): New declaration.
7547         * lib/wcsrchr.c: New file.
7548         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7549         * m4/wcsrchr.m4: New file.
7550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7553         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7554         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7555
7556 2011-02-06  Bruno Haible  <bruno@clisp.org>
7557
7558         New module 'wcschr'.
7559         * modules/wcschr: New file.
7560         * lib/wchar.in.h (wcschr): New declaration.
7561         * lib/wcschr.c: New file.
7562         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7563         * m4/wcschr.m4: New file.
7564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7567         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7568         * doc/posix-functions/wcschr.texi: Mention the new module.
7569
7570 2011-02-06  Bruno Haible  <bruno@clisp.org>
7571
7572         New module 'wcsdup'.
7573         * modules/wcsdup: New file.
7574         * lib/wchar.in.h (wcsdup): New declaration.
7575         * lib/wcsdup.c: New file.
7576         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7577         * m4/wcsdup.m4: New file.
7578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7581         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7582         * doc/posix-functions/wcsdup.texi: Mention the new module.
7583
7584 2011-02-06  Bruno Haible  <bruno@clisp.org>
7585
7586         New module 'wcsxfrm'.
7587         * modules/wcsxfrm: New file.
7588         * lib/wchar.in.h (wcsxfrm): New declaration.
7589         * lib/wcsxfrm.c: New file.
7590         * lib/wcsxfrm-impl.h: New file.
7591         * m4/wcsxfrm.m4: New file.
7592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7595         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7596         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7597
7598 2011-02-06  Bruno Haible  <bruno@clisp.org>
7599
7600         New module 'wcscoll'.
7601         * modules/wcscoll: New file.
7602         * lib/wchar.in.h (wcscoll): New declaration.
7603         * lib/wcscoll.c: New file.
7604         * lib/wcscoll-impl.h: New file.
7605         * m4/wcscoll.m4: New file.
7606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7609         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7610         * doc/posix-functions/wcscoll.texi: Mention the new module.
7611
7612 2011-02-06  Bruno Haible  <bruno@clisp.org>
7613
7614         New module 'wcsncasecmp'.
7615         * modules/wcsncasecmp: New file.
7616         * lib/wchar.in.h (wcsncasecmp): New declaration.
7617         * lib/wcsncasecmp.c: New file.
7618         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7619         * m4/wcsncasecmp.m4: New file.
7620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7623         HAVE_WCSNCASECMP.
7624         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7625         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7626
7627 2011-02-06  Bruno Haible  <bruno@clisp.org>
7628
7629         New module 'wcscasecmp'.
7630         * modules/wcscasecmp: New file.
7631         * lib/wchar.in.h (wcscasecmp): New declaration.
7632         * lib/wcscasecmp.c: New file.
7633         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7634         * m4/wcscasecmp.m4: New file.
7635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7638         HAVE_WCSCASECMP.
7639         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7640         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7641
7642 2011-02-05  Bruno Haible  <bruno@clisp.org>
7643
7644         New module 'wcsncmp'.
7645         * modules/wcsncmp: New file.
7646         * lib/wchar.in.h (wcsncmp): New declaration.
7647         * lib/wcsncmp.c: New file.
7648         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7649         * m4/wcsncmp.m4: New file.
7650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7653         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7654         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7655
7656 2011-02-05  Bruno Haible  <bruno@clisp.org>
7657
7658         New module 'wcscmp'.
7659         * modules/wcscmp: New file.
7660         * lib/wchar.in.h (wcscmp): New declaration.
7661         * lib/wcscmp.c: New file.
7662         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7663         * m4/wcscmp.m4: New file.
7664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7667         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7668         * doc/posix-functions/wcscmp.texi: Mention the new module.
7669
7670 2011-02-05  Bruno Haible  <bruno@clisp.org>
7671
7672         New module 'wcsncat'.
7673         * modules/wcsncat: New file.
7674         * lib/wchar.in.h (wcsncat): New declaration.
7675         * lib/wcsncat.c: New file.
7676         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7677         * m4/wcsncat.m4: New file.
7678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7681         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7682         * doc/posix-functions/wcsncat.texi: Mention the new module.
7683
7684 2011-02-05  Bruno Haible  <bruno@clisp.org>
7685
7686         New module 'wcscat'.
7687         * modules/wcscat: New file.
7688         * lib/wchar.in.h (wcscat): New declaration.
7689         * lib/wcscat.c: New file.
7690         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7691         * m4/wcscat.m4: New file.
7692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7695         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7696         * doc/posix-functions/wcscat.texi: Mention the new module.
7697
7698 2011-02-05  Bruno Haible  <bruno@clisp.org>
7699
7700         New module 'wcpncpy'.
7701         * modules/wcpncpy: New file.
7702         * lib/wchar.in.h (wcpncpy): New declaration.
7703         * lib/wcpncpy.c: New file.
7704         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7705         * m4/wcpncpy.m4: New file.
7706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7708         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7709         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7710         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7711
7712 2011-02-05  Bruno Haible  <bruno@clisp.org>
7713
7714         New module 'wcsncpy'.
7715         * modules/wcsncpy: New file.
7716         * lib/wchar.in.h (wcsncpy): New declaration.
7717         * lib/wcsncpy.c: New file.
7718         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7719         * m4/wcsncpy.m4: New file.
7720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7723         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7724         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7725
7726 2011-02-05  Bruno Haible  <bruno@clisp.org>
7727
7728         New module 'wcpcpy'.
7729         * modules/wcpcpy: New file.
7730         * lib/wchar.in.h (wcpcpy): New declaration.
7731         * lib/wcpcpy.c: New file.
7732         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7733         * m4/wcpcpy.m4: New file.
7734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7736         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7737         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7738         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7739
7740 2011-02-05  Bruno Haible  <bruno@clisp.org>
7741
7742         New module 'wcscpy'.
7743         * modules/wcscpy: New file.
7744         * lib/wchar.in.h (wcscpy): New declaration.
7745         * lib/wcscpy.c: New file.
7746         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7747         * m4/wcscpy.m4: New file.
7748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7751         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7752         * doc/posix-functions/wcscpy.texi: Mention the new module.
7753
7754 2011-02-05  Bruno Haible  <bruno@clisp.org>
7755
7756         New module 'wcsnlen'.
7757         * modules/wcsnlen: New file.
7758         * lib/wchar.in.h (wcsnlen): New declaration.
7759         * lib/wcsnlen.c: New file.
7760         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7761         * m4/wcsnlen.m4: New file.
7762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7765         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7766         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7767
7768 2011-02-05  Bruno Haible  <bruno@clisp.org>
7769
7770         New module 'wcslen'.
7771         * modules/wcslen: New file.
7772         * lib/wchar.in.h (wcslen): New declaration.
7773         * lib/wcslen.c: New file.
7774         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7775         * m4/wcslen.m4: New file.
7776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7779         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7780         * doc/posix-functions/wcslen.texi: Mention the new module.
7781
7782 2011-02-05  Bruno Haible  <bruno@clisp.org>
7783
7784         New module 'wmemset'.
7785         * modules/wmemset: New file.
7786         * lib/wchar.in.h (wmemset): New declaration.
7787         * lib/wmemset.c: New file.
7788         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7789         * m4/wmemset.m4: New file.
7790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7792         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7793         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7794         * doc/posix-functions/wmemset.texi: Mention the new module.
7795
7796 2011-02-05  Bruno Haible  <bruno@clisp.org>
7797
7798         New module 'wmemmove'.
7799         * modules/wmemmove: New file.
7800         * lib/wchar.in.h (wmemmove): New declaration.
7801         * lib/wmemmove.c: New file.
7802         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7803         * m4/wmemmove.m4: New file.
7804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7806         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7807         HAVE_WMEMMOVE.
7808         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7809         * doc/posix-functions/wmemmove.texi: Mention the new module.
7810
7811 2011-02-05  Bruno Haible  <bruno@clisp.org>
7812
7813         New module 'wmemcpy'.
7814         * modules/wmemcpy: New file.
7815         * lib/wchar.in.h (wmemcpy): New declaration.
7816         * lib/wmemcpy.c: New file.
7817         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7818         * m4/wmemcpy.m4: New file.
7819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7821         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7822         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7823         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7824
7825 2011-02-05  Bruno Haible  <bruno@clisp.org>
7826
7827         New module 'wmemcmp'.
7828         * modules/wmemcmp: New file.
7829         * lib/wchar.in.h (wmemcmp): New declaration.
7830         * lib/wmemcmp.c: New file.
7831         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7832         * m4/wmemcmp.m4: New file.
7833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7835         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7836         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7837         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7838
7839 2011-02-07  Jim Meyering  <meyering@redhat.com>
7840
7841         di-set, ino-map: new modules, from coreutils
7842         * lib/di-set.c: New file.
7843         * lib/di-set.h: Likewise.
7844         * lib/ino-map.c: Likewise.
7845         * lib/ino-map.h: Likewise.
7846         * modules/di-set: Likewise.
7847         * modules/di-set-tests: Likewise.
7848         * modules/ino-map: Likewise.
7849         * modules/ino-map-tests: Likewise.
7850         * tests/test-di-set.c: Likewise.
7851         * tests/test-ino-map.c: Likewise.
7852
7853 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7854
7855         getloadavg: merge minor changes from Emacs
7856
7857         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7858         (getloadavg): Use memset, not bzero.
7859
7860         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7861         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7862         clash (bug#86).
7863
7864 2010-11-14  Bruno Haible  <bruno@clisp.org>
7865
7866         Allow multiple gnulib generated replacements to coexist.
7867         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7868         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7869         * lib/langinfo.in.h (nl_item): Likewise.
7870         * lib/math.in.h (_NaN, NAN): Likewise.
7871         * lib/netdb.in.h (struct addrinfo): Likewise.
7872         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7873         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7874         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7875         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7876         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7877         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7878         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7879         pthread_mutexattr_init, pthread_mutexattr_settype,
7880         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7881         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7882         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7883         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7884         * lib/sched.in.h (struct sched_param): Likewise.
7885         * lib/se-selinux.in.h (security_class_t, security_context_t,
7886         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7887         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7888         lsetfilecon, fsetfilecon, security_check_context,
7889         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7890         Likewise.
7891         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7892         Likewise.
7893         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7894         _gl_function_taking_int_returning_void_t, union sigval,
7895         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7896         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7897         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7898         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7899         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7900         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7901         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7902         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7903         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7904         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7905         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7906         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7907         socklen_t, rpl_fd_isset): Likewise.
7908         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7909         * lib/sys_time.in.h (struct timeval): Likewise.
7910         * lib/sys_times.in.h (struct tms): Likewise.
7911         * lib/sys_utsname.in.h (struct utsname):
7912         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7913         * lib/unistd.in.h (getpagesize): Likewise.
7914         * lib/wchar.in.h (mbstate_t): Likewise.
7915         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7916         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7917         towlower, towupper): Likewise.
7918         Reported by Sam Steingold <sds@gnu.org>.
7919
7920 2011-02-05  Eric Blake  <eblake@redhat.com>
7921
7922         unsetenv: work around Haiku issues
7923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7924         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7925
7926 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7927
7928         libposix: avoid calling error() within libposix
7929         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7930         is defined.
7931
7932 2011-02-05  Eric Blake  <eblake@redhat.com>
7933
7934         strerror_r-posix: port to cygwin
7935         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7936         implementation.
7937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7938         * tests/test-strerror_r.c (main): Fix test.
7939         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7940         issue.
7941
7942 2011-02-05  Bruno Haible  <bruno@clisp.org>
7943
7944         New module 'wmemchr'.
7945         * modules/wmemchr: New file.
7946         * lib/wchar.in.h (wmemchr): New declaration.
7947         * lib/wmemchr.c: New file.
7948         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7949         * m4/wmemchr.m4: New file.
7950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7952         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7953         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7954         * doc/posix-functions/wmemchr.texi: Mention the new module.
7955
7956 2011-02-04  Eric Blake  <eblake@redhat.com>
7957
7958         fdopendir: detect FreeBSD bug
7959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7960         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7961
7962 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         stdbool: do not define HAVE_STDBOOL_H
7965         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7966         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7967         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7968         imported from the latest Autoconf git.  It was motivated by Emacs,
7969         which uses gnulib but does not need HAVE_STDBOOL_H.
7970
7971 2011-02-04  Bruno Haible  <bruno@clisp.org>
7972
7973         wcsnrtombs: Prepare for new module wwcsnrtombs.
7974         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7975         * lib/wcsnrtombs.c: Include it.
7976         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7977
7978         wcsrtombs: Prepare for new module wwcsrtombs.
7979         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7980         * lib/wcsrtombs.c: Include it.
7981         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7982
7983         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7984         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7985         * lib/mbsnrtowcs.c: Include it.
7986         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7987
7988         mbsrtowcs: Prepare for new module mbsrtowwcs.
7989         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7990         * lib/mbsrtowcs.c: Include it.
7991         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7992
7993 2011-02-04  Bruno Haible  <bruno@clisp.org>
7994
7995         vasnprintf: Reduce use of malloc for small format strings.
7996         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7997         (arguments): Add room for the first 7 arguments.
7998         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7999         (char_directives, u8_directives, u16_directives, u32_directives): Add
8000         room for the first 7 directives.
8001         * lib/printf-parse.c: Include <string.h>.
8002         (PRINTF_PARSE): Change memory handling code so that it uses the first
8003         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8004         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8005         Reported by Pádraig Brady <P@draigbrady.com>.
8006
8007 2011-01-31  Eric Blake  <eblake@redhat.com>
8008
8009         dup2: work around Haiku bug
8010         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8011         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8012         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8013         * tests/test-dup2.c (main): Enhance test.
8014
8015 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8016
8017         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8018         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8019         declared by eglibc 2.11.2.
8020         * lib/stdio.in.h: Likewise.
8021
8022 2011-01-31  Eric Blake  <eblake@redhat.com>
8023
8024         ignore-value: add missing test dependency
8025         * tests/test-ignore-value.c: Revert previous change; stdio.h
8026         provides off_t.
8027         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8028
8029 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8030
8031         mktime: clarify long_int width checking
8032         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8033         the top level, to make it clearer that the assumption about
8034         long_int width is being checked.  See
8035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8036
8037 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8038
8039         ignore-value: Fix self-test.
8040         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8041
8042 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8043
8044         TYPE_MAXIMUM: avoid theoretically undefined behavior
8045         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8046         negative number, which the C Standard says has undefined behavior.
8047         In practice this is not a problem, but might as well do it by the book.
8048         Reported by Rich Felker and Eric Blake; see
8049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8050         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8051         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8053         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8054         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8055         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8056
8057         mktime: #undef mktime before #defining it
8058         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8059
8060         mktime: systematically normalize tm_isdst comparisons
8061         * lib/mktime.c (isdst_differ): New function.
8062         (__mktime_internal): Use it systematically for all isdst comparisons.
8063         This completes the fix for libc BZ #6723, and removes the need for
8064         normalizing tm_isdst.  See
8065         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8066         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8067
8068         mktime: fix some integer overflow issues and sidestep the rest
8069
8070         This was prompted by a bug report by Benjamin Lindner for MinGW
8071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8072         His bug is due to signed integer overflow (0 - INT_MIN), and I
8073         I scanned through mktime.c looking for other integer overflow
8074         problems, fixing all the bugs I found.
8075
8076         Although the C Standard says the resulting code is still not safe
8077         in the presence of integer overflow, in practice it should be good
8078         enough for all real-world two's-complement implementations, except
8079         for debugging environments that deliberately trap on integer
8080         overflow (e.g., gcc -ftrapv).
8081
8082         * lib/mktime.c (WRAPV): New macro.
8083         (SHR): Also check that long_int and time_t shift right in the
8084         usual way, before using the fast-but-unportable method.
8085         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8086         used.  The code already assumed two's complement, so there's
8087         no need to test for alternatives.  All uses removed.
8088         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8089         the C standard.  Problem reported by Rich Felker in
8090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8091         (twos_complement_arithmetic): Also check long_int and time_t.
8092         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8093         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8094         (__mktime_internal): Avoid integer overflow with unary subtraction
8095         in two instances where -1 - X is an adequate replacement for -X,
8096         since the calculations are approximate.
8097
8098 2011-01-29  Eric Blake  <eblake@redhat.com>
8099
8100         mktime: avoid infinite loop
8101         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8102         type; behavior is still undefined but portable to all known targets.
8103         Reported by Rich Felker.
8104
8105 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8106
8107         rename, unlink, same-inode: Relicense.
8108         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8109         * modules/unlink (License): Likewise.
8110         * modules/same-inode (License): Likewise.
8111
8112 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8113
8114         mktime: avoid problems on NetBSD 5 / i386
8115         * lib/mktime.c (long_int): New type.  This works around a problem
8116         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8117         but time_t is 64 bits, and where I expect the existing code is
8118         wrong in some cases.
8119         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8120         (ydhms_diff): Bring back the compile-time check for wide-enough
8121         year and yday.
8122
8123         mktime: fix misspelling in comment
8124         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8125         This merges all recent glibc changes of importance.
8126
8127 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8128
8129         move-if-change: cope with concurrent mv of identical file.
8130         * build-aux/move-if-change (CMPPROG): Accept environment
8131         variable as an override for `cmp'.
8132         (usage): Document CMPPROG.
8133         Adjust comparison to drop stdout.  Cope with failure of mv if
8134         the target file exists and is identical to the source, for
8135         parallel builds.
8136         Report from H.J. Lu against binutils in PR binutils/12283.
8137
8138 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8139
8140         * users.txt: Mention sharutils.
8141
8142 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8143
8144         * users.txt: Mention OATH Toolkit.
8145
8146 2011-01-27  Bruno Haible  <bruno@clisp.org>
8147
8148         Prepare for supporting FreeBSD 10.
8149         * build-aux/config.libpath: Remove handling of freebsd1*.
8150
8151 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8152
8153         Prepare for supporting FreeBSD 10.
8154         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8155         match FreeBSD 10.0.
8156
8157 2011-01-27  Bruno Haible  <bruno@clisp.org>
8158
8159         vma-iter, get-rusage-as: Add OpenBSD support.
8160         * modules/vma-iter (configure.ac): Test for mquery.
8161         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8162         * lib/vma-iter.c: Include <sys/mman.h>.
8163         (vma_iterate): Add an implementation based on mquery().
8164         * lib/resource-ext.h (get_rusage_as): Update comments.
8165         * lib/get-rusage-as.c: Likewise.
8166         * lib/get-rusage-data.c: Likewise.
8167
8168 2011-01-26  Karl Berry  <karl@gnu.org>
8169
8170         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8171         variables to make it easier to override the makeinfo program used.
8172
8173 2011-01-26  Eric Blake  <eblake@redhat.com>
8174
8175         fcntl: work around Haiku F_DUPFD bugs
8176         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8177         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8178         cloexec bit on duplication.
8179         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8180
8181 2011-01-26  Bruno Haible  <bruno@clisp.org>
8182
8183         Enable memory leak tests on AIX.
8184         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8185         * tests/test-fprintf-posix3.c (main): Likewise.
8186
8187 2011-01-26  Bruno Haible  <bruno@clisp.org>
8188
8189         Tests for module 'get-rusage-data'.
8190         * modules/get-rusage-data-tests: New file.
8191         * tests/test-get-rusage-data.c: New file.
8192
8193         New module 'get-rusage-data'.
8194         * lib/resource-ext.h (get_rusage_data): New declaration.
8195         * lib/get-rusage-data.c: New file.
8196         * modules/get-rusage-data: New file.
8197
8198 2011-01-25  Bruno Haible  <bruno@clisp.org>
8199
8200         get-rusage-as: Allow for easier testing.
8201         * lib/resource-ext.h (get_rusage_as): Add comment.
8202         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8203         (main): New function for interactive testing.
8204
8205 2011-01-25  Bruno Haible  <bruno@clisp.org>
8206
8207         vma-iter: Treat Haiku like BeOS.
8208         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8209         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8210
8211 2011-01-25  Eric Blake  <eblake@redhat.com>
8212
8213         c-stack: fix regression on cygwin when libsigsegv is present
8214         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8215
8216 2011-01-24  Bruno Haible  <bruno@clisp.org>
8217
8218         vma-iter: Avoid empty intervals.
8219         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8220         on an empty interval.
8221
8222 2011-01-24  Jim Meyering  <meyering@redhat.com>
8223
8224         u64: remove unnecessary #include
8225         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8226
8227 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8230         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8231
8232 2011-01-23  Bruno Haible  <bruno@clisp.org>
8233
8234         New module 'vma-iter'.
8235         * lib/vma-iter.h: New file.
8236         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8237         * modules/vma-iter: New file.
8238         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8239         for get_rusage_as_via_iterator.
8240         (vma_iterate_callback): New function.
8241         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8242         * modules/get-rusage-as (Depends-on): Add vma-iter.
8243
8244 2011-01-23  Bruno Haible  <bruno@clisp.org>
8245
8246         uninorm: Tweak includes.
8247         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8248         Reported by Jim Meyering.
8249
8250 2011-01-23  Bruno Haible  <bruno@clisp.org>
8251
8252         get-rusage-as: Improve on NetBSD.
8253         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8254         /proc, like on FreeBSD.
8255
8256 2011-01-23  Jim Meyering  <meyering@redhat.com>
8257
8258         xreadlink.h: remove unnecessary #include
8259         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8260
8261         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8262         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8263
8264 2011-01-23  Bruno Haible  <bruno@clisp.org>
8265
8266         get-rusage-as: Fix bug.
8267         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8268         original limit when aborting the first loop.
8269
8270 2011-01-23  Bruno Haible  <bruno@clisp.org>
8271
8272         wctype: Ensure valid C syntax.
8273         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8274         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8275
8276 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8277
8278         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8280         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8281         as they are needed only for configure's test case.
8282         This removes two unnecessary symbols from config.h.
8283
8284         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8285         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8287         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8288         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8289         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8290         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8291         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8292         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8293         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8294         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8298         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8299         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8300         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8301         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8302
8303 2011-01-21  Eric Blake  <eblake@redhat.com>
8304
8305         maintainer-makefile: work with older git for submodule check
8306         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8307         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8308         Reported by Matthias Bolte.
8309
8310         bootstrap: minor portability fixes
8311         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8312         (usage): Omit leading capital and trailing . on help phrases, per
8313         GNU Coding Standards.
8314         (check_versions, top level): Prefix messages with script name.
8315
8316 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8317
8318         bootstrap: support --no-git option
8319         * build-aux/bootstrap: Add --no-git option, to be used when
8320         --gnulib-srcdir points to the exact desired checkout.
8321
8322 2011-01-21  Eric Blake  <eblake@redhat.com>
8323
8324         strerror_r-posix: work with glibc 2.13
8325         * lib/strerror_r.c (strerror_r): Fix return type.
8326
8327 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8328             Bruno Haible  <bruno@clisp.org>
8329
8330         uN_strstr: New unit tests.
8331         * modules/unistr/u8-strstr-tests: New file.
8332         * modules/unistr/u16-strstr-tests: New file.
8333         * modules/unistr/u32-strstr-tests: New file.
8334         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8335         * tests/unistr/test-u8-strstr.c: New file.
8336         * tests/unistr/test-u16-strstr.c: New file.
8337         * tests/unistr/test-u32-strstr.c: New file.
8338
8339 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8340             Bruno Haible  <bruno@clisp.org>
8341
8342         Make uN_strstr functions O(n) worst-case.
8343         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8344         16-bit and 32-bit unit cases, use the unibyte algorithm from
8345         lib/mbsstr.c.
8346         * lib/unistr/u8-strstr.c: Include <string.h>.
8347         (UNIT_IS_UINT8_T): New macro.
8348         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8349         (U_STRLEN, U_STRNLEN): New macros.
8350         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8351         (U_STRLEN, U_STRNLEN): New macros.
8352         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8353         (configure.ac): Update required libunistring version.
8354         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8355         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8356         malloca.
8357         (configure.ac): Update required libunistring version.
8358         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8359         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8360         malloca.
8361         (configure.ac): Update required libunistring version.
8362
8363 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8364             Bruno Haible  <bruno@clisp.org>
8365
8366         Prepare for faster uN_strstr functions.
8367         * lib/str-kmp.h: Support definable UNITs.
8368         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8369         needle_len argument.
8370         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8371         * lib/mbscasestr.c (mbscasestr): Likewise.
8372
8373 2011-01-21  Pádraig Brady <P@draigBrady.com>
8374
8375         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8376         * tests/test-malloca.c (main): Unset the environment variable
8377         to greatly speed up the test.
8378         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8379         * modules/malloca-tests: Depend on unsetenv.
8380
8381 2011-01-21  Pádraig Brady <P@draigBrady.com>
8382
8383         ignore-value: remove stdint dependency
8384         * lib/ignore-value.h: Remove <stdint.h>
8385         * modules/ignore-value: Remove stdint dependency.
8386
8387 2011-01-21  Jim Meyering  <meyering@redhat.com>
8388
8389         maint.mk: adjust variable name to be consistent with other gl_ vars
8390         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8391         to be lower case.
8392
8393 2011-01-20  Jim Meyering  <meyering@redhat.com>
8394
8395         maint.mk: make "check" depend on public-submodule-commit by default
8396         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8397
8398 2011-01-20  Bruno Haible  <bruno@clisp.org>
8399
8400         mbfile, mbiter: Complete change from 2008-12-21.
8401         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8402         * m4/mbiter.m4 (gl_MBITER): Likewise.
8403
8404 2011-01-20  Jim Meyering  <meyering@redhat.com>
8405
8406         init.sh: insert space between each function name and "()"
8407         * tests/init.sh: Make it a little easier to see that a function's
8408         name is "warn_", and not "warn" when looking at the first part of
8409         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8410
8411 2011-01-20  Jim Meyering  <meyering@redhat.com>
8412
8413         mountlist: clean up code formatting
8414         * lib/mountlist.c (read_file_system_list): Split a long line,
8415         correct bracing style, use NULL in place of "(struct statfs *)0",
8416         don't parenthesize return value, add spaces around "=" and after
8417         ";-in-for-stmt".
8418
8419 2011-01-14  Markus Duft <mduft@gentoo.org>
8420
8421         mountlist: add support for Interix
8422         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8423         Apply statvfs to all entries of /dev/fs.
8424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8425         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8426
8427 2011-01-20  Jim Meyering  <meyering@redhat.com>
8428
8429         maint.mk: improve the public-submodule-commit rule
8430         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8431         to suppress printing of its commands... unless V=1.
8432         Add git submodule's --quiet option to suppress printing of e.g.,
8433         "Entering gnulib" output.
8434         "cd" into $(srcdir) before running git submodule.
8435
8436 2011-01-20  Bruno Haible  <bruno@clisp.org>
8437
8438         include_next: Fix bug introduced on 2011-01-18.
8439         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8440         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8441         ac_cv_header_... variable if the second argument is not 'check'.
8442         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8443         gl_NEXT_HEADERS_INTERNAL.
8444
8445 2011-01-20  Bruno Haible  <bruno@clisp.org>
8446
8447         Allow the user to avoid the GNULIB_TEST_* macros.
8448         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8449         Suggested by Paul Eggert.
8450
8451 2011-01-14  Jim Meyering  <meyering@redhat.com>
8452
8453         bootstrap: avoid failure when there is no .gitmodules file
8454         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8455         has been assigned to, even when its value is the empty string.
8456         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8457         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8458         Reported by John W. Eaton <jwe@gnu.org>.
8459
8460 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8461
8462         assume <ctype.h>, ..., <time.h> exist
8463         For years gnulib has been assuming the existence of the headers
8464         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8465         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8466         them, since they don't appear to be needed.
8467         * README (Portability guidelines): Document this.
8468         * lib/flock.c: Assume <fcntl.h> exists.
8469         * lib/regex_internal.h: Assume <locale.h> exists.
8470         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8472         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8473         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8474         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8475         * m4/regex.m4 (gl_REGEX): Likewise.
8476         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8477         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8478         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8479         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8480         * tests/test-argp.c: Likewise.
8481         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8482
8483         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8484         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8485         AA_APPLE_UNIVERSAL_BUILD.  See
8486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8487         * NEWS: Document this.
8488
8489 2011-01-19  Eric Blake  <eblake@redhat.com>
8490
8491         c-stack: assume stack overflow if SA_SIGINFO unsupported
8492         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8493         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8494         sigaction will work.
8495         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8496         behavior match Linux.
8497         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8498
8499         stdbool-tests: accomodate Haiku
8500         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8501
8502         binary-io: fix O_TEXT on Haiku
8503         * modules/binary-io (Depends-on): Add fcntl-h.
8504         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8505         than blindly undefining O_TEXT.
8506         Reported by Scott McCreary.
8507
8508 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8509
8510         include_next: do not check for standard headers like stddef.h
8511
8512         I found this problem when modifying Emacs to use gnulib.
8513         I noticed that it added HAVE_STDDEF_H to config.h, even though
8514         gnulib always assumes <stddef.h> exists as per README and this
8515         symbol is unnecessary.
8516         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8517         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8518         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8519         faster for headers like stddef.h that are known to exist.
8520         (gl_CHECK_NEXT_HEADERS): Use it.
8521         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8522         rather than gl_CHECK_NEXT_HEADERS.
8523         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8524         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8525
8526 2011-01-18  Eric Blake  <eblake@redhat.com>
8527
8528         ansi-c++-opt: skip C++ dependency style if C++ is unused
8529         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8530         tests when we know C++ compilation is not desired.
8531         Reported by Scott McCreary.
8532
8533 2011-01-18  Bruno Haible  <bruno@clisp.org>
8534
8535         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8536         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8537         (main): Perform test also when getrlimit and setrlimit don't exist or
8538         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8539         limiting the address space size using setrlimit, compare the address
8540         space size before and after the the test.
8541         * tests/test-dprintf-posix2.c: Likewise.
8542         * tests/test-fprintf-posix3.sh: Update skip messages.
8543         * tests/test-dprintf-posix2.sh: Likewise.
8544         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8545         * modules/dprintf-posix-tests (Depends-on): Likewise.
8546         Reported by Bruce Korb <bkorb@gnu.org> and
8547         Gary V. Vaughan <gary@gnu.org>.
8548
8549 2011-01-18  Bruno Haible  <bruno@clisp.org>
8550
8551         get-rusage-as: Improvement for Cygwin.
8552         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8553         areas that are merely reserved.
8554
8555 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8556
8557         strftime: remove dependencies on multibyte modules
8558
8559         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8560         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8561         only if __osf__ is defined, and I suspect OSF doesn't need these
8562         other modules.  If my guess is wrong, we'll need to come up with a
8563         variant of strftime that doesn't need the multibyte modules.
8564
8565         I discovered this problem when attempting modify Emacs to use the
8566         strftime module.  With the previous gnulib, this caused Emacs to
8567         need 31 new files, ranging from lib/config.charset to
8568         m4/wint_t.m4.  This was overkill and I expect would be offputting
8569         to the Emacs maintainers.  After this change, only 6 new files are
8570         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8571         stdbool.m4, and tm_gmtoff.m4.
8572
8573         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8574         Suggested by Bruno Haible in
8575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8577         and do not check for wchar.h.
8578         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8579         (Depends-on): Remove mbrlen, mbsinit, wchar.
8580
8581 2011-01-18  Bruno Haible  <bruno@clisp.org>
8582
8583         Tests for module 'get-rusage-as'.
8584         * modules/get-rusage-as-tests: New file.
8585         * tests/test-get-rusage-as.c: New file.
8586
8587         New module 'get-rusage-as'.
8588         * modules/get-rusage-as: New file.
8589         * lib/resource-ext.h: New file.
8590         * lib/get-rusage-as.c: New file.
8591
8592 2011-01-17  Eric Blake  <eblake@redhat.com>
8593
8594         sigaction: relax license from LGPLv3+ to LGPLv2+
8595         * modules/sigaction (License): Relax to LGPLv2+.
8596
8597 2011-01-14  Bruno Haible  <bruno@clisp.org>
8598
8599         filemode: Make function declarations usable in C++ mode.
8600         * lib/filemode.h: Enclose function declarations in extern "C" block.
8601         Reported by John W. Eaton <jwe@gnu.org>.
8602
8603 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8604
8605         save-cwd: no longer include "xgetcwd.h"
8606         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8607         This avoids a compilation failure in projects that use save-cwd
8608         without also using the xgetcwd module.
8609
8610 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8611
8612         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8613         This is so that a program like Emacs, which needs only dtoastr,
8614         does not have to bother with distributing and compiling ftoastr
8615         and ldtoastr.
8616         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8617         * modules/dtoastr, modules/ldtoastr: New files.
8618         * modules/ftoastr: Now works just for 'float'.
8619         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8620         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8621         dtoastr.c, ldtoastr.c.
8622
8623 2011-01-11  Jim Meyering  <meyering@redhat.com>
8624
8625         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8626         There is no need to work around the lack of the fchdir function,
8627         since gnulib can now provide a replacement when required.
8628         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8629         * modules/save-cwd (Depends-on): Add fchdir.
8630
8631 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8632
8633         openat, save-cwd: avoid xmalloc
8634
8635         This removes a direct (but undocumented) dependency of openat on
8636         xalloc, along with an indirect dependency via save-cwd.  It also
8637         removes a dependency of save-cwd on xgetcwd, and thereby
8638         indirectly on xalloc.  This change causes the openat substitute
8639         to fall back on save_cwd when memory is tight, and for save_cwd to
8640         fail instead of dying when memory is tight, but that's good enough.
8641         Problem and initial idea for fix reported by Bastien Roucaries in
8642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8643
8644         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8645         xalloc.h (for xmalloc).
8646         (openat_proc_name): Use malloc, not xmalloc.
8647         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8648         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8649
8650         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8651         This avoids heap allocation for file names whose lengths are in
8652         the range 512..1023, with the upper bound increasing to at most
8653         4031 depending on the platform's PATH_MAX.  (We do not want
8654         pathmax.h here as it might supply a non-constant PATH_MAX.)
8655         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8656         Perhaps they should be moved to malloca.h?
8657         (OPENAT_BUFFER_SIZE): Use them.
8658
8659 2011-01-10  Bruno Haible  <bruno@clisp.org>
8660
8661         doc: Update users.txt.
8662         * users.txt: Add recutils.
8663
8664 2011-01-09  Karl Berry  <karl@gnu.org>
8665
8666         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8667
8668         * doc/configmake.texi: New file.
8669         * doc/gnulib.texi: Include it.
8670         * modules/configmake: Move documentation from here.
8671
8672 2011-01-09  Bruno Haible  <bruno@clisp.org>
8673
8674         Update to Unicode 6.0.0.
8675         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8676         (get_lbp): Update for Unicode 6.0.0.
8677         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8678         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8679         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8680         U+11001, U+11038..U+11046. Remove U+06DE.
8681         (uc_width): Fix bounds of planes.
8682         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8683         lib/uniwidth/width.c.
8684         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8685         trailing whitespace removed.
8686         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8687         without comments, but with the original copyright notice.
8688         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8689         * lib/unicase/ignorable.h: Likewise.
8690         * lib/unicase/tocasefold.h: Likewise.
8691         * lib/unicase/tolower.h: Likewise.
8692         * lib/unicase/totitle.h: Likewise.
8693         * lib/unicase/toupper.h: Likewise.
8694         * lib/unictype/bidi_of.h: Likewise.
8695         * lib/unictype/blocks.h: Likewise.
8696         * lib/unictype/categ_C.h: Likewise.
8697         * lib/unictype/categ_Cn.h: Likewise.
8698         * lib/unictype/categ_L.h: Likewise.
8699         * lib/unictype/categ_Ll.h: Likewise.
8700         * lib/unictype/categ_Lm.h: Likewise.
8701         * lib/unictype/categ_Lo.h: Likewise.
8702         * lib/unictype/categ_Lu.h: Likewise.
8703         * lib/unictype/categ_M.h: Likewise.
8704         * lib/unictype/categ_Mc.h: Likewise.
8705         * lib/unictype/categ_Me.h: Likewise.
8706         * lib/unictype/categ_Mn.h: Likewise.
8707         * lib/unictype/categ_N.h: Likewise.
8708         * lib/unictype/categ_Nd.h: Likewise.
8709         * lib/unictype/categ_No.h: Likewise.
8710         * lib/unictype/categ_P.h: Likewise.
8711         * lib/unictype/categ_Po.h: Likewise.
8712         * lib/unictype/categ_S.h: Likewise.
8713         * lib/unictype/categ_Sc.h: Likewise.
8714         * lib/unictype/categ_Sk.h: Likewise.
8715         * lib/unictype/categ_Sm.h: Likewise.
8716         * lib/unictype/categ_So.h: Likewise.
8717         * lib/unictype/categ_of.h: Likewise.
8718         * lib/unictype/combining.h: Likewise.
8719         * lib/unictype/ctype_alnum.h: Likewise.
8720         * lib/unictype/ctype_alpha.h: Likewise.
8721         * lib/unictype/ctype_graph.h: Likewise.
8722         * lib/unictype/ctype_lower.h: Likewise.
8723         * lib/unictype/ctype_print.h: Likewise.
8724         * lib/unictype/ctype_punct.h: Likewise.
8725         * lib/unictype/ctype_upper.h: Likewise.
8726         * lib/unictype/decdigit.h: Likewise.
8727         * lib/unictype/digit.h: Likewise.
8728         * lib/unictype/numeric.h: Likewise.
8729         * lib/unictype/pr_alphabetic.h: Likewise.
8730         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8731         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8732         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8733         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8734         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8735         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8736         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8737         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8738         * lib/unictype/pr_case_ignorable.h: Likewise.
8739         * lib/unictype/pr_cased.h: Likewise.
8740         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8741         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8742         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8743         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8744         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8745         * lib/unictype/pr_combining.h: Likewise.
8746         * lib/unictype/pr_composite.h: Likewise.
8747         * lib/unictype/pr_currency_symbol.h: Likewise.
8748         * lib/unictype/pr_decimal_digit.h: Likewise.
8749         * lib/unictype/pr_deprecated.h: Likewise.
8750         * lib/unictype/pr_format_control.h: Likewise.
8751         * lib/unictype/pr_grapheme_base.h: Likewise.
8752         * lib/unictype/pr_grapheme_extend.h: Likewise.
8753         * lib/unictype/pr_grapheme_link.h: Likewise.
8754         * lib/unictype/pr_id_continue.h: Likewise.
8755         * lib/unictype/pr_id_start.h: Likewise.
8756         * lib/unictype/pr_ideographic.h: Likewise.
8757         * lib/unictype/pr_lowercase.h: Likewise.
8758         * lib/unictype/pr_math.h: Likewise.
8759         * lib/unictype/pr_numeric.h: Likewise.
8760         * lib/unictype/pr_other_alphabetic.h: Likewise.
8761         * lib/unictype/pr_other_id_continue.h: Likewise.
8762         * lib/unictype/pr_other_math.h: Likewise.
8763         * lib/unictype/pr_punctuation.h: Likewise.
8764         * lib/unictype/pr_sentence_terminal.h: Likewise.
8765         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8766         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8767         * lib/unictype/pr_unified_ideograph.h: Likewise.
8768         * lib/unictype/pr_uppercase.h: Likewise.
8769         * lib/unictype/pr_xid_continue.h: Likewise.
8770         * lib/unictype/pr_xid_start.h: Likewise.
8771         * lib/unictype/scripts.h: Likewise.
8772         * lib/unictype/scripts_byname.gperf: Likewise.
8773         * lib/unictype/sy_java_ident.h: Likewise.
8774         * lib/unigbrk/gbrkprop.h: Likewise.
8775         * lib/unilbrk/lbrkprop1.h: Likewise.
8776         * lib/unilbrk/lbrkprop2.h: Likewise.
8777         * lib/uninorm/decomposition-table2.h: Likewise.
8778         * lib/uniwbrk/wbrkprop.h: Likewise.
8779         * tests/unicase/test-cased.c: Likewise.
8780         * tests/unicase/test-ignorable.c: Likewise.
8781         * tests/unicase/test-uc_tolower.c: Likewise.
8782         * tests/unicase/test-uc_totitle.c: Likewise.
8783         * tests/unicase/test-uc_toupper.c: Likewise.
8784         * tests/unictype/test-categ_C.c: Likewise.
8785         * tests/unictype/test-categ_Cn.c: Likewise.
8786         * tests/unictype/test-categ_L.c: Likewise.
8787         * tests/unictype/test-categ_Ll.c: Likewise.
8788         * tests/unictype/test-categ_Lm.c: Likewise.
8789         * tests/unictype/test-categ_Lo.c: Likewise.
8790         * tests/unictype/test-categ_Lu.c: Likewise.
8791         * tests/unictype/test-categ_M.c: Likewise.
8792         * tests/unictype/test-categ_Mc.c: Likewise.
8793         * tests/unictype/test-categ_Me.c: Likewise.
8794         * tests/unictype/test-categ_Mn.c: Likewise.
8795         * tests/unictype/test-categ_N.c: Likewise.
8796         * tests/unictype/test-categ_Nd.c: Likewise.
8797         * tests/unictype/test-categ_No.c: Likewise.
8798         * tests/unictype/test-categ_P.c: Likewise.
8799         * tests/unictype/test-categ_Po.c: Likewise.
8800         * tests/unictype/test-categ_S.c: Likewise.
8801         * tests/unictype/test-categ_Sc.c: Likewise.
8802         * tests/unictype/test-categ_Sk.c: Likewise.
8803         * tests/unictype/test-categ_Sm.c: Likewise.
8804         * tests/unictype/test-categ_So.c: Likewise.
8805         * tests/unictype/test-ctype_alnum.c: Likewise.
8806         * tests/unictype/test-ctype_alpha.c: Likewise.
8807         * tests/unictype/test-ctype_graph.c: Likewise.
8808         * tests/unictype/test-ctype_lower.c: Likewise.
8809         * tests/unictype/test-ctype_print.c: Likewise.
8810         * tests/unictype/test-ctype_punct.c: Likewise.
8811         * tests/unictype/test-ctype_upper.c: Likewise.
8812         * tests/unictype/test-decdigit.h: Likewise.
8813         * tests/unictype/test-digit.h: Likewise.
8814         * tests/unictype/test-numeric.h: Likewise.
8815         * tests/unictype/test-pr_alphabetic.c: Likewise.
8816         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8817         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8818         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8819         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8820         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8821         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8822         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8823         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8824         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8825         * tests/unictype/test-pr_cased.c: Likewise.
8826         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8827         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8828         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8829         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8830         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8831         * tests/unictype/test-pr_combining.c: Likewise.
8832         * tests/unictype/test-pr_composite.c: Likewise.
8833         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8834         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8835         * tests/unictype/test-pr_deprecated.c: Likewise.
8836         * tests/unictype/test-pr_format_control.c: Likewise.
8837         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8838         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8839         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8840         * tests/unictype/test-pr_id_continue.c: Likewise.
8841         * tests/unictype/test-pr_id_start.c: Likewise.
8842         * tests/unictype/test-pr_ideographic.c: Likewise.
8843         * tests/unictype/test-pr_lowercase.c: Likewise.
8844         * tests/unictype/test-pr_math.c: Likewise.
8845         * tests/unictype/test-pr_numeric.c: Likewise.
8846         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8847         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8848         * tests/unictype/test-pr_other_math.c: Likewise.
8849         * tests/unictype/test-pr_punctuation.c: Likewise.
8850         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8851         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8852         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8853         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8854         * tests/unictype/test-pr_uppercase.c: Likewise.
8855         * tests/unictype/test-pr_xid_continue.c: Likewise.
8856         * tests/unictype/test-pr_xid_start.c: Likewise.
8857         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8858         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8859         changes.
8860         * lib/unictype/categ_Cc.h: Likewise.
8861         * lib/unictype/categ_Cf.h: Likewise.
8862         * lib/unictype/categ_Co.h: Likewise.
8863         * lib/unictype/categ_Cs.h: Likewise.
8864         * lib/unictype/categ_Lt.h: Likewise.
8865         * lib/unictype/categ_Nl.h: Likewise.
8866         * lib/unictype/categ_Pc.h: Likewise.
8867         * lib/unictype/categ_Pd.h: Likewise.
8868         * lib/unictype/categ_Pe.h: Likewise.
8869         * lib/unictype/categ_Pf.h: Likewise.
8870         * lib/unictype/categ_Pi.h: Likewise.
8871         * lib/unictype/categ_Ps.h: Likewise.
8872         * lib/unictype/categ_Z.h: Likewise.
8873         * lib/unictype/categ_Zl.h: Likewise.
8874         * lib/unictype/categ_Zp.h: Likewise.
8875         * lib/unictype/categ_Zs.h: Likewise.
8876         * lib/unictype/ctype_blank.h: Likewise.
8877         * lib/unictype/ctype_cntrl.h: Likewise.
8878         * lib/unictype/ctype_digit.h: Likewise.
8879         * lib/unictype/ctype_space.h: Likewise.
8880         * lib/unictype/ctype_xdigit.h: Likewise.
8881         * lib/unictype/mirror.h: Likewise.
8882         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8883         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8884         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8885         * lib/unictype/pr_bidi_control.h: Likewise.
8886         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8887         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8888         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8889         * lib/unictype/pr_bidi_pdf.h: Likewise.
8890         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8891         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8892         * lib/unictype/pr_dash.h: Likewise.
8893         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8894         * lib/unictype/pr_diacritic.h: Likewise.
8895         * lib/unictype/pr_extender.h: Likewise.
8896         * lib/unictype/pr_hex_digit.h: Likewise.
8897         * lib/unictype/pr_hyphen.h: Likewise.
8898         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8899         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8900         * lib/unictype/pr_ignorable_control.h: Likewise.
8901         * lib/unictype/pr_iso_control.h: Likewise.
8902         * lib/unictype/pr_join_control.h: Likewise.
8903         * lib/unictype/pr_left_of_pair.h: Likewise.
8904         * lib/unictype/pr_line_separator.h: Likewise.
8905         * lib/unictype/pr_logical_order_exception.h: Likewise.
8906         * lib/unictype/pr_non_break.h: Likewise.
8907         * lib/unictype/pr_not_a_character.h: Likewise.
8908         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8909         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8910         * lib/unictype/pr_other_id_start.h: Likewise.
8911         * lib/unictype/pr_other_lowercase.h: Likewise.
8912         * lib/unictype/pr_other_uppercase.h: Likewise.
8913         * lib/unictype/pr_paired_punctuation.h: Likewise.
8914         * lib/unictype/pr_paragraph_separator.h: Likewise.
8915         * lib/unictype/pr_pattern_syntax.h: Likewise.
8916         * lib/unictype/pr_pattern_white_space.h: Likewise.
8917         * lib/unictype/pr_private_use.h: Likewise.
8918         * lib/unictype/pr_quotation_mark.h: Likewise.
8919         * lib/unictype/pr_radical.h: Likewise.
8920         * lib/unictype/pr_soft_dotted.h: Likewise.
8921         * lib/unictype/pr_space.h: Likewise.
8922         * lib/unictype/pr_titlecase.h: Likewise.
8923         * lib/unictype/pr_variation_selector.h: Likewise.
8924         * lib/unictype/pr_white_space.h: Likewise.
8925         * lib/unictype/pr_zero_width.h: Likewise.
8926         * lib/unictype/sy_c_ident.h: Likewise.
8927         * lib/unictype/sy_c_whitespace.h: Likewise.
8928         * lib/unictype/sy_java_whitespace.h: Likewise.
8929         * lib/uninorm/composition-table.gperf: Likewise.
8930         * lib/uninorm/decomposition-table1.h: Likewise.
8931         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8932         LB8.
8933         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8934         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8935         * modules/unictype/*: Bump version number of expected libunistring
8936         version.
8937
8938 2011-01-09  Bruno Haible  <bruno@clisp.org>
8939
8940         Update to Unicode 5.2.0.
8941         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8942         trailing whitespace removed.
8943
8944 2011-01-09  Bruno Haible  <bruno@clisp.org>
8945
8946         New Unicode character properties, from Unicode 5.2.0.
8947         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8948         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8949         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8950         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8951         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8952         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8953         uc_is_property_cased, uc_is_property_case_ignorable,
8954         uc_is_property_changes_when_lowercased,
8955         uc_is_property_changes_when_uppercased,
8956         uc_is_property_changes_when_titlecased,
8957         uc_is_property_changes_when_casefolded,
8958         uc_is_property_changes_when_casemapped): New declarations.
8959         * lib/unictype/pr_byname.gperf: Add the new properties.
8960         * modules/unictype/property-byname (Depends-on): Depend on the new
8961         properties modules.
8962         * modules/unictype/property-all (Depends-on): Likewise.
8963         * MODULES.html.sh (Unicode string functions): Add
8964         unictype/property-case-ignorable, unictype/property-cased,
8965         unictype/property-changes-when-casefolded,
8966         unictype/property-changes-when-casemapped,
8967         unictype/property-changes-when-lowercased,
8968         unictype/property-changes-when-titlecased,
8969         unictype/property-changes-when-uppercased.
8970
8971         New module 'unictype/property-changes-when-casemapped'.
8972         * modules/unictype/property-changes-when-casemapped: New file.
8973         * lib/unictype/pr_changes_when_casemapped.c: New file.
8974         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8975         generated by gen-uni-tables.
8976         * modules/unictype/property-changes-when-casemapped-tests: New file.
8977         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8978         automatically generated by gen-uni-tables.
8979
8980         New module 'unictype/property-changes-when-casefolded'.
8981         * modules/unictype/property-changes-when-casefolded: New file.
8982         * lib/unictype/pr_changes_when_casefolded.c: New file.
8983         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8984         generated by gen-uni-tables.
8985         * modules/unictype/property-changes-when-casefolded-tests: New file.
8986         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8987         automatically generated by gen-uni-tables.
8988
8989         New module 'unictype/property-changes-when-titlecased'.
8990         * modules/unictype/property-changes-when-titlecased: New file.
8991         * lib/unictype/pr_changes_when_titlecased.c: New file.
8992         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8993         generated by gen-uni-tables.
8994         * modules/unictype/property-changes-when-titlecased-tests: New file.
8995         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8996         automatically generated by gen-uni-tables.
8997
8998         New module 'unictype/property-changes-when-uppercased'.
8999         * modules/unictype/property-changes-when-uppercased: New file.
9000         * lib/unictype/pr_changes_when_uppercased.c: New file.
9001         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9002         generated by gen-uni-tables.
9003         * modules/unictype/property-changes-when-uppercased-tests: New file.
9004         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9005         automatically generated by gen-uni-tables.
9006
9007         New module 'unictype/property-changes-when-lowercased'.
9008         * modules/unictype/property-changes-when-lowercased: New file.
9009         * lib/unictype/pr_changes_when_lowercased.c: New file.
9010         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9011         generated by gen-uni-tables.
9012         * modules/unictype/property-changes-when-lowercased-tests: New file.
9013         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9014         automatically generated by gen-uni-tables.
9015
9016         New module 'unictype/property-case-ignorable'.
9017         * modules/unictype/property-case-ignorable: New file.
9018         * lib/unictype/pr_case_ignorable.c: New file.
9019         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9020         by gen-uni-tables.
9021         * modules/unictype/property-case-ignorable-tests: New file.
9022         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9023         generated by gen-uni-tables.
9024
9025         New module 'unictype/property-cased'.
9026         * modules/unictype/property-cased: New file.
9027         * lib/unictype/pr_cased.c: New file.
9028         * lib/unictype/pr_cased.h: New file, automatically generated by
9029         gen-uni-tables.
9030         * modules/unictype/property-cased-tests: New file.
9031         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9032         gen-uni-tables.
9033
9034 2011-01-09  Bruno Haible  <bruno@clisp.org>
9035
9036         Update to Unicode 5.2.0.
9037         * lib/gen-uni-tables.c (output_predicate, output_category,
9038         output_combclass, output_bidi_category, output_decimal_digit_test,
9039         output_decimal_digit, output_digit_test, output_digit,
9040         output_numeric_test, output_numeric, output_mirror, output_scripts,
9041         output_scripts_byname, output_blocks, output_ident_category): Fix
9042         comment header.
9043         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9044         get_wbp.
9045         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9046         items.
9047         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9048         Changes_When_Lowercased, Changes_When_Uppercased,
9049         Changes_When_Titlecased, Changes_When_Casefolded,
9050         Changes_When_Casemapped.
9051         (is_property_alphabetic, is_property_default_ignorable_code_point):
9052         Update for Unicode 5.2.0.
9053         (is_property_cased, is_property_case_ignorable,
9054         is_property_changes_when_lowercased,
9055         is_property_changes_when_uppercased,
9056         is_property_changes_when_titlecased,
9057         is_property_changes_when_casefolded,
9058         is_property_changes_when_casemapped): New functions.
9059         (output_properties): Output also the properties cased, case_ignorable,
9060         changes_when_lowercased, changes_when_uppercased,
9061         changes_when_titlecased, changes_when_casefolded,
9062         changes_when_casemapped.
9063         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9064         Unicode TR#11 revision 17 -> 19.
9065         (LBP_CP): New enumeration value.
9066         (LBP_*): Adjust values accordingly.
9067         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9068         TR#14 revision 22 -> 24.
9069         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9070         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9071         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9072         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9073         is_WBP_MIDLETTER.
9074         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9075         the code1 and code2 of each composition rule.
9076         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9077         * lib/unicase/ignorable.h: Likewise.
9078         * lib/unicase/tocasefold.h: Likewise.
9079         * lib/unicase/tolower.h: Likewise.
9080         * lib/unicase/totitle.h: Likewise.
9081         * lib/unicase/toupper.h: Likewise.
9082         * lib/unictype/bidi_of.h: Likewise.
9083         * lib/unictype/blocks.h: Likewise.
9084         * lib/unictype/categ_C.h: Likewise.
9085         * lib/unictype/categ_Cf.h: Likewise.
9086         * lib/unictype/categ_Cn.h: Likewise.
9087         * lib/unictype/categ_L.h: Likewise.
9088         * lib/unictype/categ_Ll.h: Likewise.
9089         * lib/unictype/categ_Lm.h: Likewise.
9090         * lib/unictype/categ_Lo.h: Likewise.
9091         * lib/unictype/categ_Lu.h: Likewise.
9092         * lib/unictype/categ_M.h: Likewise.
9093         * lib/unictype/categ_Mc.h: Likewise.
9094         * lib/unictype/categ_Mn.h: Likewise.
9095         * lib/unictype/categ_N.h: Likewise.
9096         * lib/unictype/categ_Nd.h: Likewise.
9097         * lib/unictype/categ_Nl.h: Likewise.
9098         * lib/unictype/categ_No.h: Likewise.
9099         * lib/unictype/categ_P.h: Likewise.
9100         * lib/unictype/categ_Pd.h: Likewise.
9101         * lib/unictype/categ_Po.h: Likewise.
9102         * lib/unictype/categ_S.h: Likewise.
9103         * lib/unictype/categ_Sc.h: Likewise.
9104         * lib/unictype/categ_So.h: Likewise.
9105         * lib/unictype/categ_of.h: Likewise.
9106         * lib/unictype/combining.h: Likewise.
9107         * lib/unictype/ctype_alnum.h: Likewise.
9108         * lib/unictype/ctype_alpha.h: Likewise.
9109         * lib/unictype/ctype_graph.h: Likewise.
9110         * lib/unictype/ctype_lower.h: Likewise.
9111         * lib/unictype/ctype_print.h: Likewise.
9112         * lib/unictype/ctype_punct.h: Likewise.
9113         * lib/unictype/ctype_upper.h: Likewise.
9114         * lib/unictype/decdigit.h: Likewise.
9115         * lib/unictype/digit.h: Likewise.
9116         * lib/unictype/numeric.h: Likewise.
9117         * lib/unictype/pr_alphabetic.h: Likewise.
9118         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9119         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9125         * lib/unictype/pr_combining.h: Likewise.
9126         * lib/unictype/pr_composite.h: Likewise.
9127         * lib/unictype/pr_currency_symbol.h: Likewise.
9128         * lib/unictype/pr_dash.h: Likewise.
9129         * lib/unictype/pr_decimal_digit.h: Likewise.
9130         * lib/unictype/pr_deprecated.h: Likewise.
9131         * lib/unictype/pr_diacritic.h: Likewise.
9132         * lib/unictype/pr_extender.h: Likewise.
9133         * lib/unictype/pr_grapheme_base.h: Likewise.
9134         * lib/unictype/pr_grapheme_extend.h: Likewise.
9135         * lib/unictype/pr_grapheme_link.h: Likewise.
9136         * lib/unictype/pr_id_continue.h: Likewise.
9137         * lib/unictype/pr_id_start.h: Likewise.
9138         * lib/unictype/pr_ideographic.h: Likewise.
9139         * lib/unictype/pr_ignorable_control.h: Likewise.
9140         * lib/unictype/pr_logical_order_exception.h: Likewise.
9141         * lib/unictype/pr_lowercase.h: Likewise.
9142         * lib/unictype/pr_numeric.h: Likewise.
9143         * lib/unictype/pr_other_alphabetic.h: Likewise.
9144         * lib/unictype/pr_punctuation.h: Likewise.
9145         * lib/unictype/pr_sentence_terminal.h: Likewise.
9146         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9147         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9148         * lib/unictype/pr_unified_ideograph.h: Likewise.
9149         * lib/unictype/pr_uppercase.h: Likewise.
9150         * lib/unictype/pr_xid_continue.h: Likewise.
9151         * lib/unictype/pr_xid_start.h: Likewise.
9152         * lib/unictype/pr_zero_width.h: Likewise.
9153         * lib/unictype/scripts.h: Likewise.
9154         * lib/unictype/scripts_byname.gperf: Likewise.
9155         * lib/unictype/sy_java_ident.h: Likewise.
9156         * lib/unigbrk/gbrkprop.h: Likewise.
9157         * lib/unilbrk/lbrkprop1.h: Likewise.
9158         * lib/unilbrk/lbrkprop2.h: Likewise.
9159         * lib/unilbrk/lbrktables.h: Likewise.
9160         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9161         LBP_CP. Implement rule LB30.
9162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9163         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9164         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9165         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9166         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9167         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9168         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9169         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9170         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9171         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9172         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9173         bits instead of 16 bits in the code1 and code2 of each composition
9174         rule.
9175         (uc_composition): Update for Unicode 5.2.0.
9176         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9177         * lib/uninorm/decomposition-table2.h: Likewise.
9178         * lib/uniwbrk/wbrkprop.h: Likewise.
9179         * tests/unicase/test-cased.c: Likewise.
9180         * tests/unicase/test-ignorable.c: Likewise.
9181         * tests/unicase/test-uc_tolower.c: Likewise.
9182         * tests/unicase/test-uc_totitle.c: Likewise.
9183         * tests/unicase/test-uc_toupper.c: Likewise.
9184         * tests/unictype/test-categ_C.c: Likewise.
9185         * tests/unictype/test-categ_Cf.c: Likewise.
9186         * tests/unictype/test-categ_Cn.c: Likewise.
9187         * tests/unictype/test-categ_L.c: Likewise.
9188         * tests/unictype/test-categ_Ll.c: Likewise.
9189         * tests/unictype/test-categ_Lm.c: Likewise.
9190         * tests/unictype/test-categ_Lo.c: Likewise.
9191         * tests/unictype/test-categ_Lu.c: Likewise.
9192         * tests/unictype/test-categ_M.c: Likewise.
9193         * tests/unictype/test-categ_Mc.c: Likewise.
9194         * tests/unictype/test-categ_Mn.c: Likewise.
9195         * tests/unictype/test-categ_N.c: Likewise.
9196         * tests/unictype/test-categ_Nd.c: Likewise.
9197         * tests/unictype/test-categ_Nl.c: Likewise.
9198         * tests/unictype/test-categ_No.c: Likewise.
9199         * tests/unictype/test-categ_P.c: Likewise.
9200         * tests/unictype/test-categ_Pd.c: Likewise.
9201         * tests/unictype/test-categ_Po.c: Likewise.
9202         * tests/unictype/test-categ_S.c: Likewise.
9203         * tests/unictype/test-categ_Sc.c: Likewise.
9204         * tests/unictype/test-categ_So.c: Likewise.
9205         * tests/unictype/test-ctype_alnum.c: Likewise.
9206         * tests/unictype/test-ctype_alpha.c: Likewise.
9207         * tests/unictype/test-ctype_graph.c: Likewise.
9208         * tests/unictype/test-ctype_lower.c: Likewise.
9209         * tests/unictype/test-ctype_print.c: Likewise.
9210         * tests/unictype/test-ctype_punct.c: Likewise.
9211         * tests/unictype/test-ctype_upper.c: Likewise.
9212         * tests/unictype/test-decdigit.h: Likewise.
9213         * tests/unictype/test-digit.h: Likewise.
9214         * tests/unictype/test-numeric.h: Likewise.
9215         * tests/unictype/test-pr_alphabetic.c: Likewise.
9216         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9217         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9218         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9219         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9220         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9221         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9222         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9223         * tests/unictype/test-pr_combining.c: Likewise.
9224         * tests/unictype/test-pr_composite.c: Likewise.
9225         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9226         * tests/unictype/test-pr_dash.c: Likewise.
9227         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9228         * tests/unictype/test-pr_deprecated.c: Likewise.
9229         * tests/unictype/test-pr_diacritic.c: Likewise.
9230         * tests/unictype/test-pr_extender.c: Likewise.
9231         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9232         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9233         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9234         * tests/unictype/test-pr_id_continue.c: Likewise.
9235         * tests/unictype/test-pr_id_start.c: Likewise.
9236         * tests/unictype/test-pr_ideographic.c: Likewise.
9237         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9238         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9239         * tests/unictype/test-pr_lowercase.c: Likewise.
9240         * tests/unictype/test-pr_numeric.c: Likewise.
9241         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9242         * tests/unictype/test-pr_punctuation.c: Likewise.
9243         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9244         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9245         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9246         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9247         * tests/unictype/test-pr_uppercase.c: Likewise.
9248         * tests/unictype/test-pr_xid_continue.c: Likewise.
9249         * tests/unictype/test-pr_xid_start.c: Likewise.
9250         * tests/unictype/test-pr_zero_width.c: Likewise.
9251         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9252         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9253         changed behaviour: line breaking is now disallowed between a letter
9254         or '=' and '('.
9255         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9256         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9257         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9258         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9259         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9260         lib/uniwidth/width.c.
9261         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9262         without comments, but with the original copyright notice.
9263         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9264         changes.
9265         * lib/unictype/categ_Cc.h: Likewise.
9266         * lib/unictype/categ_Co.h: Likewise.
9267         * lib/unictype/categ_Cs.h: Likewise.
9268         * lib/unictype/categ_Lt.h: Likewise.
9269         * lib/unictype/categ_Me.h: Likewise.
9270         * lib/unictype/categ_Pc.h: Likewise.
9271         * lib/unictype/categ_Pe.h: Likewise.
9272         * lib/unictype/categ_Pf.h: Likewise.
9273         * lib/unictype/categ_Pi.h: Likewise.
9274         * lib/unictype/categ_Ps.h: Likewise.
9275         * lib/unictype/categ_Sk.h: Likewise.
9276         * lib/unictype/categ_Sm.h: Likewise.
9277         * lib/unictype/categ_Z.h: Likewise.
9278         * lib/unictype/categ_Zl.h: Likewise.
9279         * lib/unictype/categ_Zp.h: Likewise.
9280         * lib/unictype/categ_Zs.h: Likewise.
9281         * lib/unictype/ctype_blank.h: Likewise.
9282         * lib/unictype/ctype_cntrl.h: Likewise.
9283         * lib/unictype/ctype_digit.h: Likewise.
9284         * lib/unictype/ctype_space.h: Likewise.
9285         * lib/unictype/ctype_xdigit.h: Likewise.
9286         * lib/unictype/mirror.h: Likewise.
9287         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9288         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9289         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9290         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9291         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9292         * lib/unictype/pr_bidi_control.h: Likewise.
9293         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9294         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9295         * lib/unictype/pr_bidi_pdf.h: Likewise.
9296         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9297         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9298         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9299         * lib/unictype/pr_format_control.h: Likewise.
9300         * lib/unictype/pr_hex_digit.h: Likewise.
9301         * lib/unictype/pr_hyphen.h: Likewise.
9302         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9303         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9304         * lib/unictype/pr_iso_control.h: Likewise.
9305         * lib/unictype/pr_join_control.h: Likewise.
9306         * lib/unictype/pr_left_of_pair.h: Likewise.
9307         * lib/unictype/pr_line_separator.h: Likewise.
9308         * lib/unictype/pr_math.h: Likewise.
9309         * lib/unictype/pr_non_break.h: Likewise.
9310         * lib/unictype/pr_not_a_character.h: Likewise.
9311         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9312         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9313         * lib/unictype/pr_other_id_continue.h: Likewise.
9314         * lib/unictype/pr_other_id_start.h: Likewise.
9315         * lib/unictype/pr_other_lowercase.h: Likewise.
9316         * lib/unictype/pr_other_math.h: Likewise.
9317         * lib/unictype/pr_other_uppercase.h: Likewise.
9318         * lib/unictype/pr_paired_punctuation.h: Likewise.
9319         * lib/unictype/pr_paragraph_separator.h: Likewise.
9320         * lib/unictype/pr_pattern_syntax.h: Likewise.
9321         * lib/unictype/pr_pattern_white_space.h: Likewise.
9322         * lib/unictype/pr_private_use.h: Likewise.
9323         * lib/unictype/pr_quotation_mark.h: Likewise.
9324         * lib/unictype/pr_radical.h: Likewise.
9325         * lib/unictype/pr_soft_dotted.h: Likewise.
9326         * lib/unictype/pr_space.h: Likewise.
9327         * lib/unictype/pr_titlecase.h: Likewise.
9328         * lib/unictype/pr_variation_selector.h: Likewise.
9329         * lib/unictype/pr_white_space.h: Likewise.
9330         * lib/unictype/sy_c_ident.h: Likewise.
9331         * lib/unictype/sy_c_whitespace.h: Likewise.
9332         * lib/unictype/sy_java_whitespace.h: Likewise.
9333         * modules/uni*/*: Bump version number of expected libunistring version.
9334         Reported by Simon Josefsson.
9335
9336 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9337
9338         useless-if-before-free: fix typo in --help and make the internal,
9339         automatic version date update process work once again.
9340         --help output contained a NUL character instead of the
9341         backslash-zero that was intended.  Also, the "must lie within
9342         the first 8 lines" line is on line 9, and hence not getting
9343         automatically updated.
9344         * build-aux/useless-if-before-free: Fix the former by adding a
9345         backslash, and the latter by condensing the three lines of what-it-does
9346         to a single line, leaving one line of slack for the future.
9347
9348 2011-01-09  Bruno Haible  <bruno@clisp.org>
9349
9350         uniwidth/width: Fix width of U+1D173..U+1D17A.
9351         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9352         symbolic_width, output_width_property_test): New functions.
9353         (main): Invoke output_nonspacing_property, output_width_property_test.
9354         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9355         U+1D173..U+1D17A.
9356         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9357         1.
9358         * modules/uniwidth/*: Bump version number of expected libunistring
9359         version.
9360         * modules/unilbrk/*: Likewise.
9361
9362 2011-01-08  Bruno Haible  <bruno@clisp.org>
9363
9364         uninorm tests: Preserve copyright of Unicode data file.
9365         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9366         Mention modifications.
9367
9368 2011-01-08  Bruno Haible  <bruno@clisp.org>
9369
9370         gen-uni-tables: Prepare for Unicode 5.2.0.
9371         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9372         (debug_output_lbp, output_lbp): Update.
9373
9374 2011-01-08  Bruno Haible  <bruno@clisp.org>
9375
9376         unilbrk: Clarify gen-uni-tables.c code.
9377         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9378         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9379         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9380
9381 2011-01-07  Bruno Haible  <bruno@clisp.org>
9382
9383         strtod: Restore errno when successfully parsing Infinity or NaN.
9384         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9385         restore the original errno.
9386
9387 2011-01-07  Bruno Haible  <bruno@clisp.org>
9388
9389         remove test: Avoid failure on HP-UX 11.
9390         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9391
9392 2011-01-07  Bruno Haible  <bruno@clisp.org>
9393
9394         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9395         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9396         error code.
9397
9398 2011-01-07  Pádraig Brady <P@draigBrady.com>
9399
9400         ignore-value: fixup comments, and add Eric Blake
9401         as an author since he rewrote the macros.
9402         * lib/ignore-value.h (ignore_value):  State that
9403         we now support aggregates.  Also specify exactly
9404         when the GCC warn_unused_result feature was added.
9405
9406 2011-01-06  Eric Blake  <eblake@redhat.com>
9407
9408         ignore-value: support aggregate types
9409         * lib/ignore-value.h (ignore_value): Provide separate gcc
9410         definition.
9411         * modules/ignore-value-tests: New test module.
9412         * tests/test-ignore-value.c: New test.
9413
9414         maint.mk: improve sc_prohibit_strcmp regex
9415         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9416         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9417         definition of STRNEQ.
9418
9419         signal: work around Haiku issue with SIGBUS
9420         * lib/siglist.h: Add comment.
9421         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9422         strsignal's favoring of SIGSEGV.
9423         * tests/test-signal.c (main): Avoid test failure.
9424         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9425         Reported by Scott McCreary.
9426
9427         maint.mk: add pre-release check to ensure submodule commits are public
9428         * top/maint.mk (public-submodule-commit): New rule.
9429         (submodule-checks): New variable.
9430         (alpha beta stable): Depend on the variable.
9431
9432 2011-01-05  Pádraig Brady <P@draigBrady.com>
9433         and Jim Meyering  <meyering@redhat.com>
9434
9435         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9436         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9437         (ATTRIBUTE_DEPRECATED): Define.
9438         (_ignore_case): New function.
9439         (ignore_value): New macro, to replace the old function.
9440         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9441         * modules/ignore-value (Depends-on): Add stdint.
9442
9443 2011-01-04  Eric Blake  <eblake@redhat.com>
9444
9445         doc: regenerate INSTALL
9446         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9447         @firstparagraphindent support, now that autoconf dropped it.
9448         (INSTALL_PRELUDE): Reinstate old macro.
9449         * doc/install.texi: Resync from autoconf.
9450         * doc/INSTALL: Reflect recent autoconf update.
9451         * doc/INSTALL.ISO: Likewise.
9452         * doc/INSTALL.UTF-8: Likewise.
9453         Reported by Karl Berry.
9454
9455 2011-01-04  Bruce Korb  <address@hidden>
9456
9457         git-version-gen: avoid a sub-shell
9458         * build-aux/git-version-gen: Redirect stderr in `...` via
9459         "exec 2>...", rather than via an added sub-shell.
9460
9461 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9462
9463         git-version-gen: use (...) rather than sh -c '...'
9464         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9465         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9466
9467 2011-01-03  Jim Meyering  <meyering@redhat.com>
9468
9469         git-version-gen: convert leading TABs to spaces
9470         * build-aux/git-version-gen: Expand leading TABs.
9471
9472         git-version-gen: handle failed "git rev-list"
9473         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9474         from git and proceeding as if it had succeeded but printed no SHA1
9475         checksums, suppress the diagnostic and handle the failure.
9476         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9477
9478         git-version-gen: include command name in one more diagnostic
9479         * build-aux/git-version-gen: When the required .tarball-version file
9480         was missing or unreadable, you might see the diagnostic from "cat",
9481         but no trace of the name of the invoking script.  Now, you still see
9482         the diagnostic from cat, but also get one from "git-version-gen: ".
9483         Inspired by a patch from Bruce Korb.
9484
9485         update-copyright: adjust test to match changed code
9486         * tests/test-update-copyright.sh: Change test's expected output
9487         to match new actual output.
9488
9489 2011-01-02  Bruno Haible  <bruno@clisp.org>
9490
9491         getlogin_r: Avoid test failure on HP-UX 11.
9492         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9493         ERANGE when the second argument is zero.
9494         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9495         portability problem.
9496
9497 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9498
9499         * build-aux/update-copyright: doc Simon's changes
9500
9501 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9502
9503         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9504         environment variable.
9505
9506 2011-01-02  Bruno Haible  <bruno@clisp.org>
9507
9508         unigbrk: Avoid gcc warnings.
9509         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9510         unused variable.
9511         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9512         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9513         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9514         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9515         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9516         Change type of first argument to 'const char *'.
9517         (main): Remove unused variable.
9518         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9519         type of first argument to 'const char *'.
9520         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9521         Likewise.
9522         (main): Change type of variable 's'.
9523         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9524         to 'int'.
9525
9526 2011-01-02  Bruno Haible  <bruno@clisp.org>
9527
9528         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9529         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9530         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9531         bug.
9532         * lib/pwrite.c: Undo 2010-12-31 patch.
9533         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9534
9535 2011-01-02  Bruno Haible  <bruno@clisp.org>
9536
9537         pread: Fix test whether it works.
9538         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9539
9540 2011-01-02  Bruno Haible  <bruno@clisp.org>
9541
9542         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9543         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9544         ends in "6". Don't require a specific month name. Try also the locale
9545         names found on HP-UX 11 and Solaris 7.
9546
9547 2011-01-02  Bruno Haible  <bruno@clisp.org>
9548
9549         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9550         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9551         C linkage.
9552         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9553
9554 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9555
9556         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9557         for consistency, since the "cluster" term is not used elsewhere.
9558         * lib/unigbrk.in.h: Update name.
9559         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9560         * lib/unigbrk/u16-grapheme-next.c: Update name.
9561         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9562         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9563         * lib/unigbrk/u32-grapheme-next.c: Update name.
9564         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9565         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9566         * lib/unigbrk/u8-grapheme-next.c: Update name.
9567         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9568         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9569         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9570         Suggested by Bruno Haible.
9571
9572 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9573
9574         Remove module 'u8-grapheme-len' as too redundant with
9575         'u8-grapheme-next'.
9576         * modules/unigbrk/u8-grapheme-len: Delete file.
9577         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9578         * lib/unigbrk.in.h: Remove prototype for deleted function.
9579         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9580         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9581
9582         Remove module 'u16-grapheme-len' as too redundant with
9583         'u16-grapheme-next'.
9584         * modules/unigbrk/u16-grapheme-len: Delete file.
9585         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9586         * lib/unigbrk.in.h: Remove prototype for deleted function.
9587         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9588         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9589
9590         Remove module 'u32-grapheme-len' as too redundant with
9591         'u32-grapheme-next'.
9592         * modules/unigbrk/u32-grapheme-len: Delete file.
9593         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9594         * lib/unigbrk.in.h: Remove prototype for deleted function.
9595         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9596         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9597
9598         Suggested by Bruno Haible.
9599
9600 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9601
9602         * unigbrk.in.h: Fix typo: "ben" => "been".
9603         Reported by Bruno Haible.
9604
9605 2011-01-01  Jim Meyering  <meyering@redhat.com>
9606
9607         maint: update almost all copyright ranges to include 2011
9608         Run the new "make update-copyright" rule.
9609
9610 2011-01-01  Jim Meyering  <meyering@redhat.com>
9611
9612         maint: update-copyright: exempt doc/INSTALL*
9613         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9614         since they are generated.  Suggested by Bruno Haible.
9615
9616 2011-01-01  Jim Meyering  <meyering@redhat.com>
9617
9618         maint: refine the update-copyright rule
9619         * Makefile (update-copyright): Also exclude any file that includes
9620         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9621         code that merely generates the comment.
9622
9623 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9624
9625         New module 'u8-grapheme-len'.
9626         * modules/unigbrk/u8-grapheme-len: New file.
9627         * modules/unigbrk/u8-grapheme-len-tests: New file.
9628         * lib/unigbrk.in.h: Add prototype for new function.
9629         * lib/unigbrk/u8-grapheme-len.c: New file.
9630         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9631
9632         New module 'u16-grapheme-len'.
9633         * modules/unigbrk/u16-grapheme-len: New file.
9634         * modules/unigbrk/u16-grapheme-len-tests: New file.
9635         * lib/unigbrk.in.h: Add prototype for new function.
9636         * lib/unigbrk/u16-grapheme-len.c: New file.
9637         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9638
9639         New module 'u32-grapheme-len'.
9640         * modules/unigbrk/u32-grapheme-len: New file.
9641         * modules/unigbrk/u32-grapheme-len-tests: New file.
9642         * lib/unigbrk.in.h: Add prototype for new function.
9643         * lib/unigbrk/u32-grapheme-len.c: New file.
9644         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9645
9646         New module 'u8-grapheme-next'.
9647         * modules/unigbrk/u8-grapheme-next: New file.
9648         * modules/unigbrk/u8-grapheme-next-tests: New file.
9649         * lib/unigbrk.in.h: Add prototype for new function.
9650         * lib/unigbrk/u8-grapheme-next.c: New file.
9651         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9652
9653         New module 'u16-grapheme-next'.
9654         * modules/unigbrk/u16-grapheme-next: New file.
9655         * modules/unigbrk/u16-grapheme-next-tests: New file.
9656         * lib/unigbrk.in.h: Add prototype for new function.
9657         * lib/unigbrk/u16-grapheme-next.c: New file.
9658         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9659
9660         New module 'u32-grapheme-next'.
9661         * modules/unigbrk/u32-grapheme-next: New file.
9662         * modules/unigbrk/u32-grapheme-next-tests: New file.
9663         * lib/unigbrk.in.h: Add prototype for new function.
9664         * lib/unigbrk/u32-grapheme-next.c: New file.
9665         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9666
9667         New module 'u8-grapheme-prev'.
9668         * modules/unigbrk/u8-grapheme-prev: New file.
9669         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9670         * lib/unigbrk.in.h: Add prototype for new function.
9671         * lib/unigbrk/u8-grapheme-prev.c: New file.
9672         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9673
9674         New module 'u16-grapheme-prev'.
9675         * modules/unigbrk/u16-grapheme-prev: New file.
9676         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9677         * lib/unigbrk.in.h: Add prototype for new function.
9678         * lib/unigbrk/u16-grapheme-prev.c: New file.
9679         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9680
9681         New module 'u32-grapheme-prev'.
9682         * modules/unigbrk/u32-grapheme-prev: New file.
9683         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9684         * lib/unigbrk.in.h: Add prototype for new function.
9685         * lib/unigbrk/u32-grapheme-prev.c: New file.
9686         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9687
9688         New module 'u8-grapheme-breaks'.
9689         * modules/unigbrk/u8-grapheme-breaks: New file.
9690         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9691         * lib/unigbrk.in.h: Add prototype for new function.
9692         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9693         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9694
9695         New module 'u16-grapheme-breaks'.
9696         * modules/unigbrk/u16-grapheme-breaks: New file.
9697         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9698         * lib/unigbrk.in.h: Add prototype for new function.
9699         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9700         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9701
9702         New module 'u32-grapheme-breaks'.
9703         * modules/unigbrk/u32-grapheme-breaks: New file.
9704         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9705         * lib/unigbrk.in.h: Add prototype for new function.
9706         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9707         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9708
9709         New module 'ulc-grapheme-breaks'.
9710         * modules/unigbrk/ulc-grapheme-breaks: New file.
9711         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9712         * m4/locale-ar.m4: New file.
9713         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9714         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9715         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9716
9717 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9718
9719         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9720         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9721         modified how this file was generated before I initially submitted
9722         the module, but failed to regenerate it.  This meant that several
9723         of the level2 entries were wrong.
9724         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9725         Remove the division-by-2 that is folded into the table now that
9726         gbrkprop.h has been regenerated properly.  Now -1 entries are
9727         handled correctly.
9728
9729         New module 'unigbrk/uc-gbrk-prop-tests'.
9730         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9731         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9732         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9733         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9734
9735 2011-01-01  Bruno Haible  <bruno@clisp.org>
9736
9737         Avoid use of hexadecimal escapes.
9738         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9739         instead of hexadecimal escapes.
9740
9741 2011-01-01  Jim Meyering  <meyering@redhat.com>
9742
9743         maint: new rule to update copyright year ranges
9744         * Makefile (update-copyright): New rule.
9745
9746         maint: indent with TABs in Makefile
9747         * Makefile: Expand leading sequences of spaces to TABs
9748
9749         version-etc: update the copyright year it reports
9750         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9751
9752 2010-12-31  Bruno Haible  <bruno@clisp.org>
9753
9754         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9755         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9756         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9757         zero.
9758
9759 2010-12-31  Bruno Haible  <bruno@clisp.org>
9760
9761         pwrite: Work around HP-UX 11.11 bug.
9762         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9763         works and set REPLACE_PWRITE if not.
9764         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9765         function.
9766         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9767
9768 2010-12-31  Bruno Haible  <bruno@clisp.org>
9769
9770         pread: Work around HP-UX 11 bugs.
9771         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9772         and set REPLACE_PREAD if not.
9773         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9774
9775 2010-12-31  Eric Blake  <eblake@redhat.com>
9776
9777         nl_langinfo: fix YESEXPR on Irix 6.5
9778         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9779         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9780         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9781         it.
9782
9783 2010-12-31  Bruno Haible  <bruno@clisp.org>
9784
9785         iconv: Document HP-UX 11 bug.
9786         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9787
9788 2010-12-31  Bruno Haible  <bruno@clisp.org>
9789
9790         ldexpl: Fix link error on HP-UX 11.
9791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9792         LDEXPL_LIBM, using $ISNANL_LIBM.
9793
9794 2010-12-31  Eric Blake  <eblake@redhat.com>
9795
9796         ftello: avoid compilation failure with SunStudio c89
9797         * lib/ftello.c (ftello): Use lseek, not llseek.
9798
9799         tests: avoid failing coreutils tests on cygwin
9800         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9801         (create_exe_shims_): Return 0 when skipping.
9802
9803 2010-12-31  Bruno Haible  <bruno@clisp.org>
9804
9805         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9806         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9807
9808 2010-12-31  Bruno Haible  <bruno@clisp.org>
9809
9810         waitpid: Fix link error in C++ mode.
9811         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9812
9813 2010-12-31  Bruno Haible  <bruno@clisp.org>
9814
9815         isnan: Use GCC built-ins when possible.
9816         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9817         __builtin_isnan.
9818         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9819         (isnan): Define using GCC built-ins for GCC >= 4.0.
9820
9821 2010-12-31  Bruno Haible  <bruno@clisp.org>
9822
9823         isnand: Fix mistake.
9824         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9825         __builtin_isnand.
9826
9827 2010-12-31  Bruno Haible  <bruno@clisp.org>
9828
9829         open: Avoid C++ error on HP-UX 11.
9830         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9831
9832 2010-12-31  Bruno Haible  <bruno@clisp.org>
9833
9834         time_r: Add missing declarations on HP-UX 11.
9835         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9836         instead of HAVE_LOCALTIME_R.
9837         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9838         HAVE_LOCALTIME_R always.
9839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9840         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9841         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9842         HAVE_LOCALTIME_R.
9843         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9844         * doc/posix-functions/localtime_r.texi: Likewise.
9845
9846 2010-12-29  Eric Blake  <eblake@redhat.com>
9847
9848         mountlist: tweak previous commit
9849         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9850         Reported by Paul Eggert.
9851
9852         mountlist: fix local drive detection on cygwin
9853         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9854         that works for cygwin.
9855
9856 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9857
9858         ftoastr, snprintf: ftoastr + snprintf module
9859         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9860         since the snprintf module now should be good enough here.
9861         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9862         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9863         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9864         GNULIB_SNPRINTF only for the test directory, and the latter
9865         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9866         seems to suffice by itself.
9867
9868 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9869
9870         alloca: one step towards thread-safety
9871         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9872         need for a static variable.  All callers changed.  This does not
9873         make the alloca replacement thread-safe, but it's one step.
9874
9875         tests: minor indenting change
9876         * tests/init.sh: Sync from coreutils housekeeping patch
9877         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9878         to keep lines within 80 columns.
9879
9880 2010-12-28  Jim Meyering  <meyering@redhat.com>
9881
9882         regex: don't infloop on persistent failing calloc
9883         * lib/regexec.c (build_trtable): Return failure indication upon
9884         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9885         In glibc, this was fixed for version 2.13:
9886         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9887
9888 2010-12-28  Bruno Haible  <bruno@clisp.org>
9889             Paul Eggert <eggert@cs.ucla.edu>
9890
9891         linkat: Make implementation robust against system behaviour variations.
9892         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9893         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9894         way, and to -2 if it needs a generic runtime test.
9895         * lib/linkat.c (solaris_optimized_link_immediate,
9896         solaris_optimized_link_follow): New functions.
9897         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9898         (check_same_link): Use it.
9899
9900 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9901
9902         New module 'unigbrk/base'.
9903         * modules/unigbrk/base: New file.
9904         * lib/unigbrk.in.h: New file.
9905
9906         New module 'unigbrk/uc-gbrk-prop'.
9907         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9908         * modules/unigbrk/uc-gbrk-prop: New file.
9909         * lib/unigbrk/gbrkprop.h: New file.
9910         * lib/unigbrk/uc-gbrk-prop.c: New file.
9911
9912         New module 'unigbrk/uc-is-grapheme-break'.
9913         * modules/unigbrk/uc-is-grapheme-break: New file.
9914         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9915         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9916         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9917         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9918         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9919
9920         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9921
9922 2010-12-27  Bruno Haible  <bruno@clisp.org>
9923
9924         linkat test: Avoid failure on Solaris 11 2010-11.
9925         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9926
9927 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         utimens: work around glibc rounding bug on more platforms
9930         * lib/utimens.c (fdutimens): Work around rounding bug even if
9931         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9933
9934 2010-12-27  Bruno Haible  <bruno@clisp.org>
9935
9936         select tests: Improve comments.
9937         * tests/test-select.c (do_select): Add comments.
9938
9939 2010-12-27  Bruno Haible  <bruno@clisp.org>
9940
9941         select tests: Safer way of handling timeout.
9942         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9943         at every invocation.
9944
9945 2010-12-27  Bruno Haible  <bruno@clisp.org>
9946
9947         select tests: Use 'bool' where appropriate.
9948         * tests/test-select.c (connect_to_socket): Change argument type to
9949         'bool'.
9950
9951 2010-12-27  Bruno Haible  <bruno@clisp.org>
9952
9953         select tests: Use existing modules.
9954         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9955         (configure.ac): Don't test for unistd.h.
9956         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9957         declared in <unistd.h>.
9958
9959 2010-12-27  Bruno Haible  <bruno@clisp.org>
9960
9961         mbrtowc: Work around a Solaris 7 bug.
9962         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9963         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9964         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9965         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9966         MBRTOWC_NULL_ARG1_BUG.
9967         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9968         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9969         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9970         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9971
9972 2010-12-27  Jim Meyering  <meyering@redhat.com>
9973
9974         read-file.c: tweak syntax
9975         * lib/read-file.c (fread_file): Remove space after "*" in function
9976         definitions.
9977
9978 2010-12-27  Bruno Haible  <bruno@clisp.org>
9979
9980         times test: Avoid gcc warnings on OSF/1.
9981         * tests/test-times.c (main): Cast printf arguments from clock_t to
9982         'long int'.
9983
9984 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         utimens: work around glibc rounding bug on older Linux kernels
9987         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9988         on Linux with a glibc whose utimes might not work, then work
9989         around a longstanding glibc bug involving rounding rather than
9990         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9992
9993 2010-12-26  Bruno Haible  <bruno@clisp.org>
9994
9995         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9996         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9997         _GL_CXXALIAS_SYS.
9998         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9999
10000 2010-12-26  Bruno Haible  <bruno@clisp.org>
10001
10002         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10003         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10005         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10006         looking for the declaration.
10007         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10008         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10009         problem.
10010         * doc/posix-functions/inet_pton.texi: Likewise.
10011
10012 2010-12-26  Bruno Haible  <bruno@clisp.org>
10013
10014         arpa_inet: Use the common idioms with C++ support.
10015         * lib/arpa_inet.in.h: Include c++defs.h.
10016         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10017         support.
10018         * modules/arpa_inet (Depends-on): Add c++defs.
10019         (Makefile.am): Substitute the contents of c++defs.h.
10020         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10021         * modules/arpa_inet-c++-tests: New file.
10022         * tests/test-arpa_inet-c++.cc: New file.
10023
10024 2010-12-25  Bruno Haible  <bruno@clisp.org>
10025
10026         Fix more C++ link errors on Solaris 8.
10027         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10028         $(LIB_EACCESS).
10029         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10030         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10031         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10032         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10033         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10034
10035 2010-12-25  Bruno Haible  <bruno@clisp.org>
10036
10037         printf-posix: Fix link error when a non-GCC compiler is used.
10038         * lib/stdio.in.h (printf): When not using GCC, override printf
10039         correctly.
10040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10041
10042 2010-12-25  Bruno Haible  <bruno@clisp.org>
10043
10044         strerror_r-posix: Update doc.
10045         * doc/posix-functions/strerror_r.texi: Update doc about the return
10046         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10047
10048 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10049
10050         utimens: simplify the logic of the previous change
10051         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10052         This should not affect whether the test succeeds or fails.
10053
10054         utimens: configure better on hosts with NFS clock skew
10055         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10056         uses the clock of the local host.  It might use the clock of the
10057         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10059
10060 2010-12-25  Bruno Haible  <bruno@clisp.org>
10061
10062         ptsname test: Avoid failure on Solaris.
10063         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10064         open a pseudo-terminal; don't use BSD-style ptys.
10065         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10066
10067 2010-12-25  Bruno Haible  <bruno@clisp.org>
10068
10069         ptsname: Avoid ERANGE failure on some systems.
10070         * lib/ptsname.c (buffer): Increase size.
10071
10072 2010-12-25  Bruno Haible  <bruno@clisp.org>
10073
10074         rename, renameat: Avoid test failures at NFS mounted locations.
10075         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10076         so that subsequent mkdir calls succeed.
10077
10078 2010-12-25  Bruno Haible  <bruno@clisp.org>
10079
10080         iswblank: Fix C++ link error on Solaris 8.
10081         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10082         _GL_FUNCDECL_SYS.
10083
10084 2010-12-25  Bruno Haible  <bruno@clisp.org>
10085
10086         unistd: Fix C++ link error on Solaris 8.
10087         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10088
10089 2010-12-25  Bruno Haible  <bruno@clisp.org>
10090
10091         readlink doc: Mention an old glibc bug.
10092         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10093
10094 2010-12-25  Bruno Haible  <bruno@clisp.org>
10095
10096         fcntl-h: Fix for use of C++ on glibc systems.
10097         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10098         also on glibc systems in C++ mode.
10099         Reported by Gary V. Vaughan <gary@gnu.org>.
10100
10101 2010-12-25  Bruno Haible  <bruno@clisp.org>
10102
10103         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10104         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10105
10106 2010-12-25  Bruno Haible  <bruno@clisp.org>
10107
10108         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10109         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10110         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10111         test whether truncl works according to ISO C 99 with IEC 60559.
10112         * m4/truncl-ieee.m4: New file.
10113         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10114         m4/signbit.m4.
10115         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10116
10117 2010-12-25  Bruno Haible  <bruno@clisp.org>
10118
10119         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10120         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10121         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10122         test whether ceill works according to ISO C 99 with IEC 60559.
10123         * m4/ceill-ieee.m4: New file.
10124         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10125         m4/signbit.m4.
10126         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10127
10128 2010-12-25  Bruno Haible  <bruno@clisp.org>
10129
10130         Ensure all prerequisites of <wchar.h> are included.
10131         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10132         before <wchar.h>.
10133         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10134         gl_MBRLEN_NUL_RETVAL): Likewise.
10135         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10136         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10137         AC_FUNC_MBRTOWC): Likewise.
10138         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10139         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10141         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10142         Likewise.
10143         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10144         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10145         (gl_WCHAR_H): Improve comments.
10146         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10147
10148 2010-12-25  Bruno Haible  <bruno@clisp.org>
10149
10150         strtok_r: Fix C syntax error in autoconf macro.
10151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10152         characters in test program.
10153
10154 2010-12-24  Bruno Haible  <bruno@clisp.org>
10155
10156         ceil, trunc, round: Fix gcc warnings.
10157         * lib/ceil.c (MIN): Undefine before redefining.
10158         * lib/trunc.c (MIN): Likewise.
10159         * lib/round.c (MIN): Likewise.
10160         Include <math.h> first.
10161
10162 2010-12-24  Bruno Haible  <bruno@clisp.org>
10163
10164         select tests: Avoid failures on OSF/1 5.1.
10165         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10166         failure of closing the last socket; it may fail with ECONNRESET.
10167
10168 2010-12-24  Eric Blake  <eblake@redhat.com>
10169
10170         stdint: avoid HP-UX 10.20 preprocessor bug
10171         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10172         than #if.
10173         * tests/test-floor2.c (main): Likewise.
10174         Reported by Peter O'Gorman.
10175
10176         pipe: make obsoletion transition easier
10177         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10178         * modules/pipe (Files): Include revived file.
10179         (Include): Drop reference, to mirror getdate's behavior.
10180
10181 2010-12-24  Bruno Haible  <bruno@clisp.org>
10182
10183         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10184         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10185         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10187
10188 2010-12-24  Bruno Haible  <bruno@clisp.org>
10189
10190         gethostname: Ensure declaration on NonStop Kernel.
10191         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10193
10194 2010-12-24  Bruno Haible  <bruno@clisp.org>
10195
10196         sys_select: Ensure all necessary types on NonStop Kernel.
10197         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10198         include <sys/time.h>.
10199         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10200         NonStop Kernel.
10201         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10202
10203 2010-12-24  Bruno Haible  <bruno@clisp.org>
10204
10205         sys_select: Remove unneeded include.
10206         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10207         have <sys/select.h>.
10208
10209 2010-12-24  Bruno Haible  <bruno@clisp.org>
10210
10211         gethostname: Provide a fallback for HOST_NAME_MAX.
10212         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10213         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10214         instead.
10215         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10216
10217 2010-12-24  Bruno Haible  <bruno@clisp.org>
10218
10219         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10220         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10221         (SA_RESTART): Likewise.
10222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10223
10224 2010-12-24  Bruno Haible  <bruno@clisp.org>
10225
10226         signal: Define NSIG.
10227         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10228         * tests/test-signal.c (nsig): New variable.
10229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10230
10231 2010-12-24  Bruno Haible  <bruno@clisp.org>
10232
10233         rename, renameat: Avoid test failures on OSF/1 5.1.
10234         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10235         alternative error codes.
10236         * tests/test-renameat.c (main): Likewise.
10237
10238 2010-12-24  Bruno Haible  <bruno@clisp.org>
10239
10240         *printf: Detect large precisions bug on Solaris 10/SPARC.
10241         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10242         by Paul Eggert.
10243         * tests/test-snprintf-posix.h (test_function): Add this test code here
10244         too.
10245         * tests/test-sprintf-posix.h (test_function): Likewise.
10246         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10247         * tests/test-vasprintf-posix.c (test_function): Likewise.
10248         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10249         around by gnulib.
10250         * doc/posix-functions/printf.texi: Likewise.
10251         * doc/posix-functions/snprintf.texi: Likewise.
10252         * doc/posix-functions/sprintf.texi: Likewise.
10253         * doc/posix-functions/vfprintf.texi: Likewise.
10254         * doc/posix-functions/vprintf.texi: Likewise.
10255         * doc/posix-functions/vsnprintf.texi: Likewise.
10256         * doc/posix-functions/vsprintf.texi: Likewise.
10257         * doc/posix-functions/dprintf.texi: Undo last commit.
10258         * doc/posix-functions/vdprintf.texi: Likewise.
10259
10260 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10261
10262         tests: port test-fdutimensat.c to Solaris 8
10263         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10264         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10265         On Solaris 8, it fails with errno == ENOSYS, because there is no
10266         futimens (so it can't use the fd), and there is no lutimens (so it
10267         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10268
10269         vsnprintf: make more consistent with snprintf; doc fixes
10270
10271         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10272         the byte count return problem was promoted from the snprintf-posix
10273         to the snprintf module.
10274         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10275         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10276         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10277         * tests/test-snprintf.c (main): Check the byte count returned.
10278         * tests/test-vsnprintf.c (main): Likewise.
10279
10280 2010-12-23  Eric Blake  <eblake@redhat.com>
10281
10282         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10283         * modules/sigpipe (License): Relax license.
10284
10285 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10286
10287         doc: document Solaris printf bug with large float precisions
10288         * doc/posix-functions/dprintf.texi (dprintf):
10289         * doc/posix-functions/fprintf.texi (fprintf):
10290         * doc/posix-functions/printf.texi (printf):
10291         * doc/posix-functions/snprintf.texi (snprintf):
10292         * doc/posix-functions/sprintf.texi (sprintf):
10293         * doc/posix-functions/vdprintf.texi (vdprintf):
10294         * doc/posix-functions/vfprintf.texi (vfprintf):
10295         * doc/posix-functions/vprintf.texi (vprintf):
10296         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10297         * doc/posix-functions/vsprintf.texi (vsprintf):
10298         Mention that these functions mishandle large floating point
10299         precisions on Solaris 10.  The same bug is also present in Solaris
10300         8, and I assume earlier.  This causes "cd gnulib-tests; make
10301         check" to fail on Solaris 8 (and I assume, later) when building
10302         the latest coreutils, in test-vasprintf-posix's call to
10303         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10304         the wide flavors (e.g., wprintf) so this patch just updates the
10305         documentation for the narrow ones.
10306
10307         test-posixtm.c: add two tests
10308         * tests/test-posixtm.c: Add two tests, to highlight the
10309         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10310         around this bug; this is merely to document it.
10311
10312 2010-12-22  Bruno Haible  <bruno@clisp.org>
10313
10314         getlogin_r: Work around portability problem on OSF/1.
10315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10316         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10317         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10318         test for a truncated result.
10319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10320         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10321         * modules/getlogin_r (Depends-on): Add memchr.
10322         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10323
10324 2010-12-22  Bruno Haible  <bruno@clisp.org>
10325
10326         ptsname: Avoid test failure on OSF/1 5.1.
10327         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10328         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10329         (same_slave): New function.
10330         (main): Use it to compare ptsname's result with the expected file name.
10331
10332 2010-12-22  Bruno Haible  <bruno@clisp.org>
10333
10334         Port extended stdio modules to HP NonStop Kernel.
10335         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10336         macros.
10337         * lib/fbufmode.c: Update comments.
10338         * lib/fflush.c: Likewise.
10339         * lib/fpurge.c: Likewise.
10340         * lib/freadable.c: Likewise.
10341         * lib/freadahead.c: Likewise.
10342         * lib/freading.c: Likewise.
10343         * lib/freadptr.c: Likewise.
10344         * lib/freadseek.c: Likewise.
10345         * lib/fseeko.c: Likewise.
10346         * lib/fseterr.c: Likewise.
10347         * lib/fwritable.c: Likewise.
10348         * lib/fwriting.c: Likewise.
10349         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10350
10351 2010-12-22  Bruno Haible  <bruno@clisp.org>
10352
10353         ttyname_r: Work around bug on OSF/1 5.1.
10354         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10355         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10356         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10357         present.
10358         * lib/ttyname_r.c (ttyname_r): Update comments.
10359
10360 2010-12-22  Bruno Haible  <bruno@clisp.org>
10361
10362         round: Implement result sign according to IEEE 754.
10363         * lib/round.c (MIN, MINUS_ZERO): New macros.
10364         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10365         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10366         * tests/test-round-ieee.c (main): Likewise.
10367         * tests/test-roundl-ieee.c (main): Likewise.
10368
10369         trunc: Implement result sign according to IEEE 754.
10370         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10371         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10372         * tests/test-trunc2.c: Include minus-zero.h.
10373         (MINUS_ZERO): New macro.
10374         (trunc_reference): Keep in sync with lib/trunc.c.
10375         * tests/test-truncf2.c: Include minus-zero.h.
10376         (MINUS_ZERO): New macro.
10377         (truncf_reference): Keep in sync with lib/trunc.c.
10378         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10379         * tests/test-trunc-ieee.c (main): Likewise.
10380         * tests/test-truncl-ieee.c (main): Likewise.
10381
10382         ceil: Implement result sign according to IEEE 754.
10383         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10384         (FUNC): Return -0.0 for -1 < x < 0.
10385         * tests/test-ceil2.c: Include minus-zero.h.
10386         (MINUS_ZERO): New macro.
10387         (ceil_reference): Keep in sync with lib/ceil.c.
10388         * tests/test-ceilf2.c: Include minus-zero.h.
10389         (MINUS_ZERO): New macro.
10390         (ceilf_reference): Keep in sync with lib/ceil.c.
10391         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10392         * tests/test-ceil-ieee.c (main): Likewise.
10393         * tests/test-ceill-ieee.c (main): Likewise.
10394
10395         floor: Implement result sign according to IEEE 754.
10396         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10397         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10398         * tests/test-floorf2.c (floorf_reference): Likewise.
10399         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10400         * tests/test-floor-ieee.c (main): Likewise.
10401         * tests/test-floorl-ieee.c (main): Likewise.
10402
10403 2010-12-22  Bruno Haible  <bruno@clisp.org>
10404
10405         getaddrinfo: Update doc.
10406         * doc/posix-functions/gai_strerror.texi: Return type is also different
10407         on AIX and HP-UX.
10408
10409 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10410
10411         getaddrinfo, inet_ntop: Update doc for Solaris.
10412         * doc/posix-functions/gai_strerror.texi: Return type is also an
10413         issue on Solaris 9 and earlier.
10414         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10415         on Solaris 10 and earlier.
10416
10417 2010-12-21  Bruno Haible  <bruno@clisp.org>
10418
10419         New module 'roundl-ieee'.
10420         * modules/roundl-ieee: New file.
10421         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10422         test whether roundl works according to ISO C 99 with IEC 60559.
10423         * m4/roundl-ieee.m4: New file.
10424         * modules/roundl-ieee-tests: New file.
10425         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10426         * tests/test-roundl.c (main): Remove signbit tests.
10427         * modules/roundl-tests (Depends-on): Remove signbit.
10428         * doc/posix-functions/roundl.texi: Mention the new module.
10429
10430 2010-12-21  Bruno Haible  <bruno@clisp.org>
10431
10432         New module 'truncl-ieee'.
10433         * modules/truncl-ieee: New file.
10434         * modules/truncl-ieee-tests: New file.
10435         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10436         * tests/test-truncl.c (main): Remove signbit tests.
10437         * modules/truncl-tests (Depends-on): Remove signbit.
10438         * doc/posix-functions/truncl.texi: Mention the new module.
10439
10440 2010-12-21  Bruno Haible  <bruno@clisp.org>
10441
10442         New module 'ceill-ieee'.
10443         * modules/ceill-ieee: New file.
10444         * modules/ceill-ieee-tests: New file.
10445         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10446         * tests/test-ceill.c (main): Remove signbit tests.
10447         * modules/ceill-tests (Depends-on): Remove signbit.
10448         * doc/posix-functions/ceill.texi: Mention the new module.
10449
10450 2010-12-21  Bruno Haible  <bruno@clisp.org>
10451
10452         New module 'floorl-ieee'.
10453         * modules/floorl-ieee: New file.
10454         * modules/floorl-ieee-tests: New file.
10455         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10456         * tests/test-floorl.c (main): Remove signbit tests.
10457         * modules/floorl-tests (Depends-on): Remove signbit.
10458         * doc/posix-functions/floorl.texi: Mention the new module.
10459
10460 2010-12-21  Bruno Haible  <bruno@clisp.org>
10461
10462         New module 'round-ieee'.
10463         * modules/round-ieee: New file.
10464         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10465         whether round works according to ISO C 99 with IEC 60559.
10466         * m4/round-ieee.m4: New file.
10467         * modules/round-ieee-tests: New file.
10468         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10469         * tests/test-round1.c (main): Remove signbit tests.
10470         * modules/round-tests (Depends-on): Remove 'signbit'.
10471         * doc/posix-functions/round.texi: Mention the new module.
10472
10473 2010-12-21  Bruno Haible  <bruno@clisp.org>
10474
10475         New module 'trunc-ieee'.
10476         * modules/trunc-ieee: New file.
10477         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10478         whether trunc works according to ISO C 99 with IEC 60559.
10479         * m4/trunc-ieee.m4: New file.
10480         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10482         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10483         * modules/trunc-ieee-tests: New file.
10484         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10485         * tests/test-trunc1.c (main): Remove signbit tests.
10486         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10487         * doc/posix-functions/trunc.texi: Mention the new module.
10488
10489 2010-12-21  Bruno Haible  <bruno@clisp.org>
10490
10491         New module 'ceil-ieee'.
10492         * modules/ceil-ieee: New file.
10493         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10494         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10495         ISO C 99 with IEC 60559.
10496         * m4/ceil-ieee.m4: New file.
10497         * modules/ceil (Files): Add lib/ceil.c.
10498         (Depends-on): Add 'float'.
10499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10500         * lib/math.in.h (ceil): New declaration.
10501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10502         REPLACE_CEIL.
10503         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10504         * modules/ceil-ieee-tests: New file.
10505         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10506         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10507         * doc/posix-functions/ceil.texi: Mention the new module.
10508
10509 2010-12-21  Bruno Haible  <bruno@clisp.org>
10510
10511         New module 'floor-ieee'.
10512         * modules/floor-ieee: New file.
10513         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10514         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10515         ISO C 99 with IEC 60559.
10516         * m4/floor-ieee.m4: New file.
10517         * modules/floor (Files): Add lib/floor.c.
10518         (Depends-on): Add 'float'.
10519         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10520         * lib/math.in.h (floor): New declaration.
10521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10522         REPLACE_FLOOR.
10523         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10524         * modules/floor-ieee-tests: New file.
10525         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10526         * tests/test-math-c++.cc: Check the signature of 'floor'.
10527         * doc/posix-functions/floor.texi: Mention the new module.
10528
10529 2010-12-21  Bruno Haible  <bruno@clisp.org>
10530
10531         New module 'roundf-ieee'.
10532         * modules/roundf-ieee: New file.
10533         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10534         test whether roundf works according to ISO C 99 with IEC 60559.
10535         * m4/roundf-ieee.m4: New file.
10536         * modules/roundf-ieee-tests: New file.
10537         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10538         * tests/test-roundf1.c (main): Remove signbit tests.
10539         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10540         * doc/posix-functions/roundf.texi: Mention the new module.
10541
10542 2010-12-21  Bruno Haible  <bruno@clisp.org>
10543
10544         New module 'truncf-ieee'.
10545         * modules/truncf-ieee: New file.
10546         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10547         test whether truncf works according to ISO C 99 with IEC 60559.
10548         * m4/truncf-ieee.m4: New file.
10549         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10551         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10552         * modules/truncf-ieee-tests: New file.
10553         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10554         * tests/test-truncf1.c (main): Remove signbit tests.
10555         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10556         * doc/posix-functions/truncf.texi: Mention the new module.
10557
10558 2010-12-21  Bruno Haible  <bruno@clisp.org>
10559
10560         New module 'ceilf-ieee'.
10561         * modules/ceilf-ieee: New file.
10562         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10563         test whether ceilf works according to ISO C 99 with IEC 60559.
10564         * m4/ceilf-ieee.m4: New file.
10565         * modules/ceilf-ieee-tests: New file.
10566         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10567         * tests/test-ceilf1.c (main): Remove signbit tests.
10568         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10569         * doc/posix-functions/ceilf.texi: Mention the new module.
10570
10571 2010-12-21  Bruno Haible  <bruno@clisp.org>
10572
10573         New module 'floorf-ieee'.
10574         * modules/floorf-ieee: New file.
10575         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10576         test whether floorf works according to ISO C 99 with IEC 60559.
10577         * m4/floorf-ieee.m4: New file.
10578         * modules/floorf-ieee-tests: New file.
10579         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10580         * tests/test-floorf1.c (main): Remove signbit tests.
10581         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10582         * doc/posix-functions/floorf.texi: Mention the new module.
10583
10584 2010-12-21  Bruno Haible  <bruno@clisp.org>
10585
10586         Support for minus zero in autoconf macros.
10587         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10588         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10589         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10590         * tests/minus-zero.h: Update comments.
10591
10592 2010-12-21  Bruno Haible  <bruno@clisp.org>
10593
10594         Tests for module 'ceil'.
10595         * modules/ceil-tests: New file.
10596         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10597         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10598
10599 2010-12-21  Bruno Haible  <bruno@clisp.org>
10600
10601         Tests for module 'floor'.
10602         * modules/floor-tests: New file.
10603         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10604         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10605
10606 2010-12-21  Bruno Haible  <bruno@clisp.org>
10607
10608         math: Fix indentation.
10609         * lib/math.in.h (floorf): Fix indentation.
10610
10611 2010-12-21  Bruno Haible  <bruno@clisp.org>
10612
10613         Fix cross-compilation guesses on Solaris.
10614         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10615         not match "solaris2.10".
10616         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10617         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10618         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10619
10620 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10621
10622         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10623         This fixes a problem observed with the latest coreutils snapshot
10624         that caused a test to fail on Solaris 8.  src/csplit.c's call
10625         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10626         earlier, instead of returning the number of bytes that would have
10627         been generated; this causes csplit to incorrectly report memory
10628         exhaustion.
10629         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10630         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10631         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10632         comments to match.
10633         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10634         Fix typo in matching older versions of Solaris: "solaris2.10"
10635         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10636         only for guessing while cross-compiling.
10637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10638
10639 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10640
10641         ftoastr: fix comment again
10642         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10644         Also, simplify example a bit by using flags = 0.
10645
10646 2010-12-20  Bruno Haible  <bruno@clisp.org>
10647
10648         round*, trunc*: Update documentation regarding glibc.
10649         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10650         * doc/posix-functions/round.texi: Likewise.
10651         * doc/posix-functions/roundl.texi: Likewise.
10652         * doc/posix-functions/truncf.texi: Likewise.
10653         * doc/posix-functions/trunc.texi: Likewise.
10654         * doc/posix-functions/truncl.texi: Likewise.
10655
10656 2010-12-20  Bruno Haible  <bruno@clisp.org>
10657
10658         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10659         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10660         * doc/posix-functions/round.texi: Likewise.
10661         * doc/posix-functions/roundl.texi: Likewise.
10662
10663 2010-12-20  Bruno Haible  <bruno@clisp.org>
10664
10665         ttyname_r: Add missing declaration on HP-UX 11.
10666         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10667         HAVE_TTYNAME_R.
10668         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10669         declared. Set HAVE_TTYNAME_R always.
10670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10671         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10672         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10673         HAVE_TTYNAME_R.
10674         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10675
10676 2010-12-20  Bruno Haible  <bruno@clisp.org>
10677
10678         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10679         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10680         * doc/posix-functions/getlogin_r.texi: Likewise.
10681         * tests/test-getlogin.c: Include <errno.h>.
10682         (main): Avoid test failure on HP-UX 11.11.
10683         * tests/test-getlogin_r.c (main): Likewise.
10684
10685 2010-12-20  Bruno Haible  <bruno@clisp.org>
10686
10687         getlogin_r: Add missing declaration on HP-UX 11.
10688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10689         declared also when it exists as a function.
10690         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10691
10692 2010-12-20  Bruno Haible  <bruno@clisp.org>
10693
10694         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10695         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10696         through wcrtomb.
10697
10698 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         ftoastr: fix comment
10701         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10702         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10703
10704 2010-12-19  Bruno Haible  <bruno@clisp.org>
10705
10706         isnan: Ensure it is a macro.
10707         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10708         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10709         Solaris.
10710
10711 2010-12-19  Bruno Haible  <bruno@clisp.org>
10712
10713         ldexpl test: Fix link error on OSF/1 5.1.
10714         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10715
10716 2010-12-19  Bruno Haible  <bruno@clisp.org>
10717
10718         wctype: Make it work in C++ mode on OSF/1 5.1.
10719         * lib/wctype.in.h (iswblank): Declare but not define here.
10720         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10721         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10722         * modules/wctype (Files): Add lib/iswblank.c.
10723
10724 2010-12-19  Bruno Haible  <bruno@clisp.org>
10725
10726         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10727         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10728         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10729
10730 2010-12-19  Bruno Haible  <bruno@clisp.org>
10731
10732         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10734         _POSIX_PII_SOCKET.
10735         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10736         * doc/posix-functions/recvfrom.texi: Likewise.
10737         * doc/posix-functions/send.texi: Likewise.
10738         * doc/posix-functions/sendto.texi: Likewise.
10739
10740 2010-12-19  Bruno Haible  <bruno@clisp.org>
10741
10742         tcgetsid: Add missing declaration on OSF/1 5.1.
10743         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10744         HAVE_TCGETSID.
10745         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10746         Don't set HAVE_TCGETSID.
10747         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10748         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10749         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10750         HAVE_TCGETSID.
10751         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10752
10753 2010-12-19  Bruno Haible  <bruno@clisp.org>
10754
10755         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10756         * lib/stdio.in.h: During the include_next statement, let recursive
10757         includes of this file include only the system header file.
10758
10759 2010-12-19  Bruno Haible  <bruno@clisp.org>
10760
10761         iconv_open: Fix regression from 2010-12-04.
10762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10763         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10764
10765 2010-12-19  Bruno Haible  <bruno@clisp.org>
10766
10767         stdbool test: Avoid a gcc warning.
10768         * tests/test-stdbool.c (main): Fail if e1 is false.
10769         Reported by Jim Meyering.
10770
10771 2010-12-19  Jim Meyering  <meyering@redhat.com>
10772
10773         setenv: restore to working order
10774         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10775         mistakenly removed.
10776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10777         HAVE_SETENV.
10778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10779         HAVE_SETENV.
10780
10781 2010-12-19  Bruno Haible  <bruno@clisp.org>
10782
10783         Document some different function declarations on OSF/1 5.1.
10784         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10785         * doc/posix-functions/inet_ntop.texi: Likewise.
10786         * doc/posix-functions/gethostname.texi: Likewise.
10787         * lib/unistd.in.h (gethostname): Update comment.
10788
10789 2010-12-19  Bruno Haible  <bruno@clisp.org>
10790
10791         doc: Mention vasprintf-posix module.
10792         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10793         the 'vasprintf-posix' module.
10794         * doc/glibc-functions/vasprintf.texi: Likewise.
10795
10796 2010-12-19  Bruno Haible  <bruno@clisp.org>
10797
10798         unsetenv: Add missing declaration on OSF/1 5.1.
10799         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10801         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10803         not HAVE_UNSETENV.
10804         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10805         HAVE_UNSETENV.
10806         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10807
10808 2010-12-19  Bruno Haible  <bruno@clisp.org>
10809
10810         setenv: Add missing declaration on OSF/1 5.1.
10811         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10812         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10813         declared. Don't set HAVE_SETENV.
10814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10815         not HAVE_SETENV.
10816         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10817         HAVE_SETENV.
10818         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10819
10820 2010-12-19  Bruno Haible  <bruno@clisp.org>
10821
10822         nl_langinfo tests: Avoid gcc warning.
10823         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10824
10825 2010-12-19  Bruno Haible  <bruno@clisp.org>
10826
10827         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10828         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10829         _GL_CXXALIAS_SYS.
10830
10831 2010-12-19  Bruno Haible  <bruno@clisp.org>
10832
10833         stdbool: Relax test.
10834         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10835         address to 'bool' work in static initializer, for compilers other than
10836         GCC.
10837
10838 2010-12-19  Bruno Haible  <bruno@clisp.org>
10839
10840         ftello: Add missing declaration on OSF/1 5.1.
10841         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10842         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10844         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10845         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10846
10847 2010-12-19  Bruno Haible  <bruno@clisp.org>
10848
10849         fseeko: Add missing declaration on OSF/1 5.1.
10850         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10853         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10854         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10855
10856 2010-12-19  Bruno Haible  <bruno@clisp.org>
10857
10858         fchdir: Add missing declaration on OSF/1 5.1.
10859         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10862         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10863         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10864
10865 2010-12-19  Bruno Haible  <bruno@clisp.org>
10866
10867         relocatable-prog-wrapper: Separate from relocatable-prog.
10868         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10869         uninstall-relocwrapper rule here.
10870         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10871         Reported by Ian Beckwith <ianb@erislabs.net>.
10872
10873 2010-12-19  Bruno Haible  <bruno@clisp.org>
10874
10875         unistr/u8-mbsnlen: Add missing dependency.
10876         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10877         Reported by Ian Beckwith <ianb@erislabs.net>.
10878
10879 2010-12-19  Bruno Haible  <bruno@clisp.org>
10880
10881         iconv: Make it possible again to use this module without 'iconv-h'.
10882         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10883         if it is not defined.
10884         Reported by Ian Beckwith <ianb@erislabs.net>.
10885
10886 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10887
10888         acl: port to Solaris 8 when copying from tmpfs to ufs
10889         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10890         error number.  Problem observed on Solaris 8 with latest
10891         coreutils, with "mv A B", where A is on a tmpfs file system and B
10892         is on a ufs file system.  This caused coreutils' mv/part-symlink
10893         test to fail.
10894
10895         tests: set fail=0 at start
10896         * tests/init.sh (setup_): Move fail=0 initialization here ...
10897         (mktempd_): ... from here, so that tests can rely on fail being
10898         set to 0 initially.  This fixes a problem in coreutils; see:
10899         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10900
10901 2010-12-18  Bruno Haible  <bruno@clisp.org>
10902
10903         memmem-simple: Stylistic changes.
10904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10905         Fix preprocessor directive indentation.
10906
10907 2010-12-15  Pádraig Brady <P@draigBrady.com>
10908
10909         memmem, memmem-simple: reorganize and expand empty needle check
10910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10911         functional checks to memmem-simple so that one has a fully functional
10912         memmem by using just this module.
10913         Restrict the performance only check to the memmem module.
10914         Also expand the empty needle check to ensure the correct
10915         pointer is returned, not just a non NULL pointer.
10916         * doc/glibc-functions/memmem.texi: Rearrange the portability
10917         documentation to correlate with the rearranged checks.
10918         Clarify exactly how the memmem and memmem-simple modules
10919         relate to each other.
10920
10921 2010-12-15  Pádraig Brady <P@draigBrady.com>
10922             Bruno Haible  <bruno@clisp.org>
10923
10924         Improve cross-compilation guesses for uClibc.
10925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10926         that uClibc does not have the glibc bug.
10927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10928         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10929
10930 2010-12-14  Eric Blake  <eblake@redhat.com>
10931
10932         configmake: provide fallbacks for oldest supported autotools
10933         * m4/configmake.m4: New file.
10934         * modules/configmake (Files): Ship it.
10935         (configure.ac): Use it to guarantee fallbacks.
10936
10937 2010-12-13  Pádraig Brady <P@draigBrady.com>
10938
10939         read-file: Improve handling of large files
10940         * lib/read-file.c (fread_file): Minimize realloc()s
10941         for regular files, and better manage sizes around SIZE_MAX.
10942
10943 2010-12-13  Eric Blake  <eblake@redhat.com>
10944
10945         cloexec, fcntl: relax license
10946         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10947         consent from all contributors.
10948         * modules/fcntl (License): Likewise.
10949
10950 2010-12-10  Bruno Haible  <bruno@clisp.org>
10951
10952         Tests for module 'pipe-posix'.
10953         * modules/pipe-posix-tests: New file.
10954         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10955
10956 2010-12-10  Bruno Haible  <bruno@clisp.org>
10957
10958         pipe-posix: Make it work in C++ mode.
10959         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10960         (pipe): Use common idiom, not a macro definition.
10961         * lib/pipe.c: New file.
10962         * m4/pipe.m4: New file.
10963         * modules/pipe-posix (Description): Enhance.
10964         (Files): Add lib/pipe.c, m4/pipe.m4.
10965         (configure.ac): Invoke gl_FUNC_PIPE.
10966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10967         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10968         * tests/test-unistd-c++.cc: Check the signature of pipe.
10969
10970 2010-12-10  Bruno Haible  <bruno@clisp.org>
10971
10972         Rename module 'pipe' to 'spawn-pipe'.
10973         * modules/spawn-pipe: New file, renamed from modules/pipe.
10974         (Files, configure.ac, Makefile.am): Update.
10975         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10976         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10977         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10978         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10979         "spawn-pipe.h" instead of "pipe.h".
10980         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10981         to gl_SPAWN_PIPE.
10982         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10983         (Files, Makefile.am): Update.
10984         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10985         Update.
10986         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10987         Include "spawn-pipe.h" instead of "pipe.h".
10988         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10989         * lib/javacomp.c: Likewise.
10990         * lib/javaversion.c: Likewise.
10991         * lib/pipe-filter-gi.c: Likewise.
10992         * lib/pipe-filter-ii.c: Likewise.
10993         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10994         * modules/javacomp (Depends-on): Likewise.
10995         * modules/javaversion (Depends-on): Likewise.
10996         * modules/pipe-filter-gi (Depends-on): Likewise.
10997         * modules/pipe-filter-ii (Depends-on): Likewise.
10998         * MODULES.html.sh (Executing programs): Update.
10999         * NEWS: Mention the change.
11000
11001 2010-12-10  Eric Blake  <eblake@redhat.com>
11002
11003         pipe-posix: new module
11004         * modules/pipe-posix: New file.
11005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11006         (gl_UNISTD_H): Check for declaration.
11007         * modules/unistd (Makefile.am): Substitute it.
11008         * lib/unistd.in.h (pipe): Provide it for mingw.
11009         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11010         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11011
11012 2010-12-07  Bruno Haible  <bruno@clisp.org>
11013
11014         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11015         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11016         u8_strcmp_gnu.
11017         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11018
11019 2010-12-06  Bruno Haible  <bruno@clisp.org>
11020
11021         Update internal documentation.
11022         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11023
11024 2010-12-04  Bruno Haible  <bruno@clisp.org>
11025
11026         Put more information about failed tests into the test return codes.
11027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11028         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11029         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11031         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11032         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11033         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11034         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11035         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11038         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11039         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11040         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11041         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11042         returns a bit mask.
11043         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11044         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11045         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11046         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11047         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11051         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11053         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11054         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11057         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11058         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11059         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11060         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11061         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11062         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11064         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11066         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11067         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11068         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11069         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11070         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11071         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11072         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11073         gl_PRINTF_PRECISION): Likewise.
11074         * m4/regex.m4 (gl_REGEX): Likewise.
11075         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11076         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11077         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11078         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11079         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11082         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11083         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11084         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11085         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11086         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11087         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11088         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11089         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11090         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11091         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11095         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11096         enumerated value.
11097         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11098
11099 2010-12-04  Bruno Haible  <bruno@clisp.org>
11100
11101         Update for Solaris 11 2010-11.
11102         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11103         Express, released in November 2010.
11104
11105 2010-12-04  Bruno Haible  <bruno@clisp.org>
11106
11107         nproc: Relax license.
11108         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11109         and Paul Eggert.
11110         Requested by Ludovic Courtès <ludo@gnu.org>.
11111
11112 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11113
11114         utimecmp: fine-grained src to nearby coarse-grained dest
11115
11116         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11117         and the source is on a file system with higher-resolution time
11118         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11119         not work, and the time stamps are close together, the algorithm to
11120         determine the exact resolution from the read-back mtime was buggy:
11121         it had a "!=" where it should have had an "==".  This bug has been
11122         in the code ever since it was introduced to gnulib.
11123         Problem reported by Dan Jacobson in
11124         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11125
11126 2010-11-30  Bruno Haible  <bruno@clisp.org>
11127
11128         strerror_r-posix: Fix autoconf test.
11129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11130
11131 2010-11-28  Bruno Haible  <bruno@clisp.org>
11132             Paul Eggert  <eggert@cs.ucla.edu>
11133
11134         Tests for module 'getdomainname'.
11135         * modules/getdomainname-tests: New file.
11136         * tests/test-getdomainname.c: New file, based on
11137         tests/test-gethostname.c.
11138
11139 2010-11-28  Bruno Haible  <bruno@clisp.org>
11140             Paul Eggert  <eggert@cs.ucla.edu>
11141
11142         getdomainname: Use the system function when possible.
11143         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11144         (getdomainname): Replace if needed. Provide the declaration if it is
11145         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11146         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11147         (getdomainname): When the system has getdomainname, call the system
11148         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11149         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11150         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11151         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11152         the function if its second argument is of type 'int' or if it is found
11153         in libnsl.
11154         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11155         <sys/systeminfo.h> and sysinfo().
11156         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11158         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11159         HAVE_GETDOMAINNAME.
11160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11161         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11162         * doc/glibc-functions/getdomainname.texi: Document the problems with
11163         the getdomainname declaration.
11164
11165 2010-11-28  Bruno Haible  <bruno@clisp.org>
11166
11167         sys_socket: Ensure ss_family field on AIX.
11168         * lib/sys_socket.in.h (ss_family): New macro definition.
11169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11170         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11171         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11172         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11173         * modules/sys_socket (Makefile.am): Substitute
11174         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11175         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11176
11177 2010-11-27  Bruno Haible  <bruno@clisp.org>
11178
11179         readline: Improve configure output.
11180         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11181         "checking for readline..." result understandable.
11182
11183 2010-11-27  Bruno Haible  <bruno@clisp.org>
11184
11185         *printf-posix: Detect a bug on Solaris 10/x86.
11186         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11187         for floating-point output.
11188         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11189         directive.
11190         * tests/test-snprintf-posix.h (test_function): Likewise.
11191         * tests/test-sprintf-posix.h (test_function): Likewise.
11192         * tests/test-vasprintf-posix.c (test_function): Likewise.
11193         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11194         * doc/posix-functions/printf.texi: Likewise.
11195         * doc/posix-functions/snprintf.texi: Likewise.
11196         * doc/posix-functions/sprintf.texi: Likewise.
11197         * doc/posix-functions/vfprintf.texi: Likewise.
11198         * doc/posix-functions/vprintf.texi: Likewise.
11199         * doc/posix-functions/vsnprintf.texi: Likewise.
11200         * doc/posix-functions/vsprintf.texi: Likewise.
11201         * doc/glibc-functions/obstack_printf.texi: Likewise.
11202         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11203
11204 2010-11-27  Bruno Haible  <bruno@clisp.org>
11205
11206         Fix link error when module libunistring-optional is in use.
11207         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11208         * modules/striconveha-tests (Makefile.am): Likewise.
11209
11210 2010-11-27  Bruno Haible  <bruno@clisp.org>
11211
11212         regex: Mention link dependencies.
11213         * modules/regex (Link): New section.
11214         * modules/rpmatch (Link): Likewise.
11215         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11216
11217 2010-11-27  Bruno Haible  <bruno@clisp.org>
11218
11219         ftoastr: Fix compilation error on Solaris.
11220         * lib/ftoastr.c: Include <config.h>.
11221
11222 2010-11-27  Bruno Haible  <bruno@clisp.org>
11223
11224         getloadavg: Update documentation.
11225         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11226
11227 2010-11-27  Bruno Haible  <bruno@clisp.org>
11228
11229         sys_socket: Fix test whether the functions are declared.
11230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11231         not <sys/select.h>.
11232
11233 2010-11-27  Bruno Haible  <bruno@clisp.org>
11234
11235         getpass: Make sure to get system declaration on some platforms.
11236         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11237         gl_USE_SYSTEM_EXTENSIONS.
11238         * modules/getpass (Depends-on): Add extensions.
11239
11240 2010-11-26  Bruno Haible  <bruno@clisp.org>
11241
11242         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11243         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11244         'iconv' module is present.
11245         (ICONV_CONST): New macro.
11246         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11247         ICONV_CONST.
11248         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11249         set ICONV_CONST.
11250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11251         here.
11252         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11253         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11254         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11255         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11256         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11257         present.
11258
11259 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11260
11261         ftoastr: comment fix
11262         * lib/ftoastr.c: "little" -> "little or no" in comment
11263
11264 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11265
11266         stdint: port to GCC 4.3 + OSX + Octave
11267         On this platform, stdint.h is buggy and defines int64_t to long
11268         long int.  The replacement defined it to long int, causing
11269         problems with C++ style name mangling.  Instead, trust the system
11270         definition if INT64_MAX is defined, and likewise for the unsigned
11271         variant.   Problem reported by Jarno Rajahalme in
11272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11273         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11274         and don't mess with int64_t and INT64_MAX in this case.
11275         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11276
11277 2010-11-24  Bruno Haible  <bruno@clisp.org>
11278
11279         doc: Corrections regarding MacOS X 10.4 and 10.5.
11280         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11281         MacOS X.
11282         Reported by Simon Josefsson.
11283
11284 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11285
11286         Uninstall ".bin" files installed by relocwrapper.
11287         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11288         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11289         unless it is already there.
11290
11291 2010-11-21  Bruno Haible  <bruno@clisp.org>
11292
11293         Update for NetBSD 5.0.
11294         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11295         NetBSD; the test fails on NetBSD 5.0.
11296         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11297         about NetBSD.
11298
11299 2010-11-21  Bruno Haible  <bruno@clisp.org>
11300
11301         Update for HP-UX 11.23 and HP-UX 11.31.
11302         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11303         HP-UX.
11304
11305 2010-11-21  Bruno Haible  <bruno@clisp.org>
11306
11307         Update for MacOS X 10.5.
11308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11309         MacOS X; the test fails on MacOS X 10.5.8.
11310         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11311         about MacOS X.
11312
11313 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11314
11315         bootstrap: add bootstrap_sync option.
11316         See discussion at
11317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11318         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11319         * build-aux/bootstrap: Accept --bootstrap-sync to update
11320         bootstrap if it is not identical to the local gnulib's
11321         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11322         enable this by default.  Accept --no-bootstrap-sync to disable
11323         it.
11324
11325 2010-11-20  Bruno Haible  <bruno@clisp.org>
11326
11327         Ensure that <features.h> is included before __GLIBC__ is tested.
11328         * lib/printf-parse.h: Include <features.h>.
11329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11330         Reported by Mike Frysinger <vapier@gentoo.org>.
11331
11332         Ensure that <features.h> is included before __GLIBC__ is tested.
11333         * lib/wchar.in.h: Include <features.h>.
11334         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11335         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11336         Reported by Mike Frysinger <vapier@gentoo.org>.
11337
11338         Ensure that <features.h> is included before __GLIBC__ is tested.
11339         * lib/arpa_inet.in.h: Include <features.h>.
11340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11341         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11342         Reported by Mike Frysinger <vapier@gentoo.org>.
11343
11344         Ensure that <features.h> is included before __GLIBC__ is tested.
11345         * build-aux/link-warning.h: Include <features.h>.
11346         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11347         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11348         Reported by Mike Frysinger <vapier@gentoo.org>.
11349
11350         Ensure that <features.h> is included before __GLIBC__ is tested.
11351         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11352         Reported by Mike Frysinger <vapier@gentoo.org>.
11353
11354 2010-11-20  Bruno Haible  <bruno@clisp.org>
11355
11356         memmem: Fix autoconf test.
11357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11358
11359 2010-11-20  Bruno Haible  <bruno@clisp.org>
11360
11361         Port to uClibc.
11362         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11363         * lib/fcntl.in.h: Likewise.
11364         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11365         * lib/mbrtowc.c (mbrtowc): Likewise.
11366         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11367         * lib/strerror_r.c: Likewise.
11368         * lib/unistr/u8-strnlen.c: Likewise.
11369         * lib/vasnprintf.c (decimal_point_char): Likewise.
11370         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11373         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11374         * tests/test-sigaction.c (handler, main): Likewise.
11375         * lib/freading.h: Treat uClibc like a non-glibc platform.
11376         * lib/freading.c: Likewise.
11377         * lib/gettext.h: Likewise.
11378         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11379         Likewise.
11380         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11381         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11382         * lib/propername.c (proper_name_utf8): Likewise.
11383         * lib/spawn.in.h: Likewise.
11384         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11385         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11386         mem_cd_iconveh_internal): Likewise.
11387         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11389         strstr, strcasestr): Likewise.
11390         * lib/unicodeio.c (unicode_to_mb): Likewise.
11391         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11392         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11393         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11394         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11395         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11396         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11397         * lib/unistr/u8-stpncpy.c: Likewise.
11398         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11399         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11401         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11402         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11403         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11407         Likewise.
11408         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11410         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11413         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11414         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11415         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11416         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11417         * tests/test-striconveha.c (main): Likewise.
11418         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11419         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11420         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11421         * doc/posix-functions/getline.texi: Likewise.
11422         Reported by Mike Frysinger <vapier@gentoo.org>.
11423
11424 2010-11-20  Bruno Haible  <bruno@clisp.org>
11425
11426         nproc: Fix condition.
11427         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11428         HAVE_PTHREAD_AFFINITY_NP.
11429
11430 2010-11-20  Bruno Haible  <bruno@clisp.org>
11431
11432         Fix a comment.
11433         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11434
11435 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         ftoastr: don't assume snprintf
11438         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11439         Implement a subset of snprintf here, by using sprintf safely.
11440         * modules/ftoastr (Depends-on): Remove snprintf.
11441
11442 2010-11-19  Jim Meyering  <meyering@redhat.com>
11443
11444         test-rename.h: fix compilation failure
11445         * tests/test-rename.h (test_rename): Add omitted "}".
11446
11447 2010-11-17  Jim Meyering  <meyering@redhat.com>
11448
11449         maint.mk: add a URL discussing the no-@acronym policy
11450         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11451
11452 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11453
11454         ftoastr: depend on snprintf, improve comments
11455         * lib/ftoastr.c: Also mention Loitsch's draft.
11456         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11457         needed in the current implementation, but it might simplify
11458         speeding up the code later.
11459         * modules/ftoastr: Depend on snprintf; this improves portability.
11460         Suggested by Bruno Haible in the same email.
11461
11462         ftoastr: port to hosts lacking strtof and strtold
11463         Problem reported by Bruno Haible in
11464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11465         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11466         environment and strtold (and presumably strtof) are not available.
11467         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11468         (configure.ac): Require gl_C99_STRTOLD.
11469
11470 2010-11-18  Bruno Haible  <bruno@clisp.org>
11471
11472         c-strtold: Avoid link error on AIX 7.
11473         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11474         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11475         (gl_C_STRTOLD): Test whether strtold_l exists.
11476         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11477
11478 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         intprops: new macro INT_BITS_STRLEN_BOUND
11481         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11482         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11483         not exposed.  Also, it uses a slightly tighter bound than before;
11484         though this makes no practical difference, we might as well be as
11485         tight as we easily can.
11486
11487         ftoastr: new module, for lossless conversion of floats to short strings
11488         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11489         * modules/ftoastr: New files.
11490
11491 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11492
11493         bootstrap: port to Solaris sed
11494         * build-aux/bootstrap (get_version): Port to Solaris sed.
11495         See Ralf Wildenhues's note in
11496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11497
11498 2010-11-14  Jim Meyering  <meyering@redhat.com>
11499
11500         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11501         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11502         and move definition closer to sole use.
11503
11504 2010-11-13  Jim Meyering  <meyering@redhat.com>
11505
11506         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11507         Now we require at least autoconf-2.59, which means the work-around
11508         is no longer needed.
11509         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11510         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11512         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11513         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11514
11515 2010-11-13  Bruno Haible  <bruno@clisp.org>
11516
11517         rename, renameat: Avoid test failures at NFS mounted locations.
11518         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11519         functions.
11520         (test_rename): Use assert_nonexistent.
11521         * tests/test-rename.c: Include <dirent.h>.
11522         * tests/test-renameat.c: Likewise.
11523         Reported by Gary V. Vaughan <gary@gnu.org>.
11524
11525         rename, renameat: Document Linux bug with NFS
11526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11527         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11528         * doc/posix-functions/renameat.texi: Likewise.
11529         Suggested by Eric Blake.
11530
11531 2010-11-13  Bruno Haible  <bruno@clisp.org>
11532
11533         rename test: Add comments.
11534         * tests/test-rename.h (test_rename): Add structure and comments.
11535
11536 2010-11-13  Eric Blake  <eblake@redhat.com>
11537
11538         maintainer-makefile: cover a few more files
11539         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11540         scripts generated within C files, for libvirt.
11541
11542 2010-11-13  Bruno Haible  <bruno@clisp.org>
11543
11544         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11545         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11546         character, return the number of bytes that belong together, not always
11547         1.
11548         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11549         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11550         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11551         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11552         number of bytes of an invalid character.
11553         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11554         (main): Invoke it.
11555         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11556         results.
11557         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11558         malformed byte sequences.
11559         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11560         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11561         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11562         Reported by Ben Pfaff and Paolo Bonzini.
11563
11564 2010-11-13  Bruno Haible  <bruno@clisp.org>
11565
11566         openat: Work around glibc bug with fchownat() and empty file names.
11567         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11568         (gl_FUNC_FCHOWNAT): Invoke it.
11569         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11570         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11571         Reported by Gary V. Vaughan <gary@gnu.org>.
11572
11573 2010-11-13  Bruno Haible  <bruno@clisp.org>
11574
11575         openat: Ensure autoconf macro ordering.
11576         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11577         gl_USE_SYSTEM_EXTENSIONS.
11578         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11579
11580 2010-11-13  Bruno Haible  <bruno@clisp.org>
11581
11582         Update comments.
11583         * lib/unistr/u8-check.c: Update file name in comments.
11584         * lib/unistr/u8-mblen.c: Likewise.
11585         * lib/unistr/u8-prev.c: Likewise.
11586         * lib/unistr/u8-strmblen.c: Likewise.
11587         * lib/unistr/u8-strmbtouc.c: Likewise.
11588
11589 2010-11-13  Jim Meyering  <meyering@redhat.com>
11590
11591         tests: avoid test failure on Solaris 10 due to lack of PATH export
11592         * tests/test-update-copyright.sh: Don't forget to export PATH.
11593
11594         init.sh: ensure that IFS is defined, just in case...
11595         * tests/init.sh (setup_): Ensure that IFS is defined,
11596         so that saving and restoring it works as expected.  This
11597         appears to be useful at least for an old version of dash
11598         from a long time ago (RH 6).  See here for details:
11599         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11600
11601         maint.mk: tighten "test a == b" check
11602         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11603         test to files that contain something like #!/bin/sh.
11604         Without this, coreutils would get two false positives in
11605         the comments of C source files.
11606
11607 2010-11-12  Eric Blake  <eblake@redhat.com>
11608
11609         bootstrap: fix typo in previous attempt
11610         * build-aux/bootstrap (buildreq): Correct the grouping.
11611         Reported by Paul Eggert.
11612
11613         maintainer-makefile: prohibit test x == x
11614         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11615         Based on a report by Matthias Bolte.
11616
11617         bootstrap: allow FreeBSD gzip
11618         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11619         which has no '.' and goes to stderr.
11620         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11621         Reported by Matthias Bolte.
11622
11623         maintainer-makefile: check for i18n setup
11624         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11625         will likely work.
11626
11627 2010-11-12  Bruno Haible  <bruno@clisp.org>
11628
11629         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11630         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11631         * lib/nanosleep.c (nanosleep): Likewise.
11632
11633 2010-11-11  Bruno Haible  <bruno@clisp.org>
11634
11635         fcntl-h: Fix for use of C++ on glibc systems.
11636         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11637         also on glibc systems in C++ mode.
11638         Reported by Gary V. Vaughan <gary@gnu.org>.
11639
11640 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11641
11642         mknod: avoid false failure with dash
11643         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11644
11645 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11646
11647         unlink: Fix "is it should" typo in diagnostic.
11648         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11650
11651 2010-11-11  Bruno Haible  <bruno@clisp.org>
11652
11653         Tests for module 'strerror_r-posix'.
11654         * modules/strerror_r-posix-tests: New file.
11655         * tests/test-strerror_r.c: New file.
11656         * tests/test-string-c++.cc: Check the signature of strerror_r.
11657
11658         New module 'strerror_r-posix'.
11659         * lib/string.in.h (strerror_r): New declaration.
11660         * lib/strerror_r.c: New file.
11661         * m4/strerror_r.m4: New file.
11662         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11663         of strerror_r.
11664         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11665         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11666         * modules/strerror_r-posix: New file.
11667         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11668         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11669         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11670         portability problems.
11671
11672 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11673
11674         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11675         line is also considered for output. Quoted function name in shell
11676         command, so temporary files for functions like MyClass::operator()
11677         are removed correctly without errors.
11678
11679 2010-11-09  Bruno Haible  <bruno@clisp.org>
11680
11681         * doc/posix-functions/strerror.texi: List more failing platforms.
11682
11683         * doc/posix-functions/strerror.texi: Add a comment.
11684
11685 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11686
11687         fdopendir: fix bug on MacOS X when low on file descriptors
11688
11689         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11690         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11691         All callers changed.
11692         (fdopendir): Invoke save_cwd at the top level, not after using
11693         multiple dup() calls to use up file descriptors.  Then retry
11694         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11695         less than the maximum number of open file descriptors, because
11696         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11697         on Mac OS X 10.6.4 for tar 1.24
11698         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11699         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11700         and for tar 1.25
11701         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11702
11703 2010-11-07  Bruno Haible  <bruno@clisp.org>
11704
11705         vasnprintf: Support I flag on glibc systems.
11706         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11707         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11708         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11709         snprintf function.
11710         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11711         glibc systems.
11712         * tests/test-vasnprintf-posix3.c: New file.
11713         * modules/vasnprintf-posix-tests (Files): Add it.
11714         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11715
11716 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11717
11718         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11719         * MODULES.html.sh: For compiler warnings, use name
11720         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11721
11722 2010-11-05  Eric Blake  <eblake@redhat.com>
11723
11724         ceil, floor: avoid spurious failure with icc
11725         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11726         [denormals-as-zero] when optimizing without -mieee-fp option.
11727         * tests/test-floorf2.c (floorf_reference): Likewise.
11728         * tests/test-ceilf1.c (dummy): New function.
11729         (main): Use it to outsmart icc's optimization.
11730         * tests/test-floorf1.c (dummy, main): Likewise.
11731
11732         tests: require working signbit
11733         * modules/ceilf-tests (Depends-on): Add signbit.
11734         * modules/ceill-tests (Depends-on): Likewise.
11735         * modules/floorf-tests (Depends-on): Likewise.
11736         * modules/floorl-tests (Depends-on): Likewise.
11737         * modules/round-tests (Depends-on): Likewise.
11738         * modules/roundf-tests (Depends-on): Likewise.
11739         * modules/roundl-tests (Depends-on): Likewise.
11740         * modules/trunc-tests (Depends-on): Likewise.
11741         * modules/truncf-tests (Depends-on): Likewise.
11742         * modules/truncl-tests (Depends-on): Likewise.
11743
11744         strtod: work around icc bug
11745         * lib/strtod.c (minus_zero): Define to working value.
11746         (strtod): Use it to avoid icc bug.
11747
11748         copysign: enhance tests
11749         * modules/copysign-tests (Files): Add minus-zero.h.
11750         * tests/test-copysign.c (main): Also test zeros.
11751
11752 2010-11-04  Eric Blake  <eblake@redhat.com>
11753
11754         ceil, floor, round, trunc: enhance tests of -0
11755         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11756         * tests/test-ceill.c (main): Likewise.
11757         * tests/test-floorf1.c (main): Likewise.
11758         * tests/test-floorl.c (main): Likewise.
11759         * tests/test-round1.c (main): Likewise.
11760         * tests/test-roundf1.c (main): Likewise.
11761         * tests/test-roundl.c (main): Likewise.
11762         * tests/test-trunc1.c (main): Likewise.
11763         * tests/test-truncf1.c (main): Likewise.
11764         * tests/test-truncl.c (main): Likewise.
11765
11766 2010-11-04  Eric Blake  <eblake@redhat.com>
11767
11768         frexp, tests: work around ICC bug with -zero
11769         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11770         works with more compilers.
11771         * tests/minus-zero.h: New file.
11772         * modules/ceilf-tests (Files): Include it.
11773         * modules/ceill-tests (Files): Likewise.
11774         * modules/floorf-tests (Files): Likewise.
11775         * modules/floorl-tests (Files): Likewise.
11776         * modules/frexp-nolibm-tests (Files): Likewise.
11777         * modules/frexp-tests (Files): Likewise.
11778         * modules/frexpl-nolibm-tests (Files): Likewise.
11779         * modules/frexpl-tests (Files): Likewise.
11780         * modules/isnan-tests (Files): Likewise.
11781         * modules/isnand-nolibm-tests (Files): Likewise.
11782         * modules/isnand-tests (Files): Likewise.
11783         * modules/isnanf-nolibm-tests (Files): Likewise.
11784         * modules/isnanf-tests (Files): Likewise.
11785         * modules/isnanl-nolibm-tests (Files): Likewise.
11786         * modules/isnanl-tests (Files): Likewise.
11787         * modules/round-tests (Files): Likewise.
11788         * modules/roundf-tests (Files): Likewise.
11789         * modules/roundl-tests (Files): Likewise.
11790         * modules/ldexpl-tests (Files): Likewise.
11791         * modules/signbit-tests (Files): Likewise.
11792         * modules/snprintf-posix-tests (Files): Likewise.
11793         * modules/sprintf-posix-tests (Files): Likewise.
11794         * modules/strtod-tests (Files): Likewise.
11795         * modules/trunc-tests (Files): Likewise.
11796         * modules/truncf-tests (Files): Likewise.
11797         * modules/truncl-tests (Files): Likewise.
11798         * modules/vsnprintf-posix-tests (Files): Likewise.
11799         * modules/vsprintf-posix-tests (Files): Likewise.
11800         * modules/vasnprintf-posix-tests (Files): Likewise.
11801         * modules/vasprintf-posix-tests (Files): Likewise.
11802         * tests/test-ceilf1.c (main): Use it.
11803         * tests/test-ceill.c (main): Likewise.
11804         * tests/test-floorf1.c (main): Likewise.
11805         * tests/test-floorl.c (main): Likewise.
11806         * tests/test-frexp.c (main): Likewise.
11807         * tests/test-frexpl.c (main): Likewise.
11808         * tests/test-isnan.c (main): Likewise.
11809         * tests/test-isnand.h (main): Likewise.
11810         * tests/test-isnanf.h (main): Likewise.
11811         * tests/test-isnanl.h (main): Likewise.
11812         * tests/test-ldexpl.c (main): Likewise.
11813         * tests/test-round.c (main): Likewise.
11814         * tests/test-roundf.c (main): Likewise.
11815         * tests/test-roundl.c (main): Likewise.
11816         * tests/test-signbit.c (test_signbitf, test_signbitd)
11817         (test_signbitl): Likewise.
11818         * tests/test-snprintf-posix.h (test_function): Likewise.
11819         * tests/test-sprintf-posix.h (test_function): Likewise.
11820         * tests/test-strtod.c (main): Likewise.
11821         * tests/test-trunc1.c (main): Likewise.
11822         * tests/test-truncf1.c (main): Likewise.
11823         * tests/test-truncl.c (main): Likewise.
11824
11825         isnanl: work around icc bug
11826         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11827
11828 2010-11-03  Eric Blake  <eblake@redhat.com>
11829
11830         tests: fix compiler warnings
11831         * tests/test-getopt.h (test_getopt): Fix condition.
11832         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11833         * tests/test-pipe2.c (main): Likewise.
11834         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11835
11836         utimens: fix broken m4 test
11837         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11838
11839 2010-10-28  Bruno Haible  <bruno@clisp.org>
11840
11841         posix_spawn*, getdtablesize: Relax license.
11842         * modules/posix_spawn (License): Change to LGPLv2+.
11843         * modules/posix_spawnp (License): Likewise.
11844         * modules/posix_spawn-internal (License): Likewise.
11845         * modules/posix_spawnattr_init (License): Likewise.
11846         * modules/posix_spawnattr_getflags (License): Likewise.
11847         * modules/posix_spawnattr_setflags (License): Likewise.
11848         * modules/posix_spawnattr_getpgroup (License): Likewise.
11849         * modules/posix_spawnattr_setpgroup (License): Likewise.
11850         * modules/posix_spawnattr_getschedparam (License): Likewise.
11851         * modules/posix_spawnattr_setschedparam (License): Likewise.
11852         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11853         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11854         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11855         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11856         * modules/posix_spawnattr_getsigmask (License): Likewise.
11857         * modules/posix_spawnattr_setsigmask (License): Likewise.
11858         * modules/posix_spawnattr_destroy (License): Likewise.
11859         * modules/posix_spawn_file_actions_init (License): Likewise.
11860         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11861         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11862         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11863         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11864         * modules/getdtablesize (License): Likewise.
11865         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11866
11867 2010-10-26  Bruno Haible  <bruno@clisp.org>
11868
11869         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11870         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11871         Cygwin and mingw.
11872         Suggested by Eric Blake.
11873
11874 2010-10-26  Bruno Haible  <bruno@clisp.org>
11875
11876         stdio: Work around compilation error due to renameat() on Solaris 10.
11877         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11878         * lib/renameat.c: Don't include <unistd.h> here.
11879         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11880         Reported by Paul Eggert and Eric Blake.
11881
11882 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11883
11884         renameat: port to Solaris 10, which declares renameat in unistd.h
11885
11886         * lib/renameat.c: Include unistd.h before stdio.h, because
11887         Solaris 10 declares renameat in unistd.h.  Problem encountered
11888         when building GNU tar 1.24 on Solaris 10.
11889
11890 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11891
11892         fdopendir: fix C89 compilation
11893         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11894         compilers.
11895
11896 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11897
11898         inttostr: simplify by removing unnecessary redundancy
11899         * lib/anytostr.c: Don't include verify.h.
11900         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11901         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11902         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11903         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11904         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11905         Likewise.
11906         * modules/inttostr (Depends-on): Remove 'verify'.
11907
11908 2010-10-23  Bruno Haible  <bruno@clisp.org>
11909
11910         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11911         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11912         Reported by Eric Blake.
11913
11914 2010-10-23  Bruno Haible  <bruno@clisp.org>
11915
11916         Tests: Fix LOCALE_JA on MirBSD 10.
11917         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11918         to an UTF-8 locale.
11919         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11921         Reported by Eric Blake.
11922
11923 2010-10-21  Bruno Haible  <bruno@clisp.org>
11924
11925         nl_langinfo test: Avoid test failure on NetBSD 5.
11926         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11927         Reported by Eric Blake.
11928
11929 2010-10-21  Eric Blake  <eblake@redhat.com>
11930
11931         c-stack: work around libsigsegv 2.8 bug
11932         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11933         overflow on at least PowerPC64.
11934
11935 2010-10-17  Bruno Haible  <bruno@clisp.org>
11936
11937         userspec: Drop redundant file.
11938         * modules/userspec (Files): Remove lib/inttostr.h.
11939
11940 2010-10-17  Bruno Haible  <bruno@clisp.org>
11941
11942         nl_langinfo tests: Silence some warnings.
11943         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11944         Reported by Jim Meyering.
11945
11946 2010-10-17  Bruno Haible  <bruno@clisp.org>
11947
11948         Make use of GCC's attribute __alloc_size__.
11949         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11950         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11951         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11952         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11953         __alloc_size__.
11954         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11955         Suggested by Jim Meyering.
11956
11957 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11958
11959         bootstrap: anchor .gitignore entries.
11960         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11961         with...
11962         (insert_vc_ignore): ... this new function, which prepends `/' to
11963         all .gitignore entries before passing them to
11964         insert_sorted_if_absent.
11965
11966 2010-10-16  Bruno Haible  <bruno@clisp.org>
11967
11968         nextafter: Fix configure check.
11969         * modules/nextafter (configure.ac): Correct expected prototype.
11970
11971 2010-10-16  Bruno Haible  <bruno@clisp.org>
11972
11973         termios: Update documentation.
11974         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11975
11976 2010-10-16  Bruno Haible  <bruno@clisp.org>
11977
11978         tests: Make them compile with TinyCC.
11979         * tests/test-strstr.c (main): Remove parentheses around array
11980         initializer.
11981
11982 2010-10-15  Eric Blake  <eblake@redhat.com>
11983
11984         ignore-value: make header idempotent
11985         * lib/ignore-value.h: Add double-inclusion guards.
11986         Reported by Stefan Berger.
11987
11988 2010-10-15  Jim Meyering  <meyering@redhat.com>
11989
11990         GNUmakefile: handle "stable" target, not "major"
11991         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11992         lists in maint.mk and announce-gen.  Without this, "make stable"
11993         would fail to ensure that $(VERSION) is up to date.
11994
11995 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11996
11997         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11998         & co.
11999
12000 2010-10-14  Bruno Haible  <bruno@clisp.org>
12001
12002         vasnprintf: Don't set errno to 0.
12003         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12004         block that sets it to 0.
12005         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12006
12007 2010-10-14  Bruno Haible  <bruno@clisp.org>
12008
12009         socketlib: Fix.
12010         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12011         gl_PREREQ_SYS_H_WINSOCK2.
12012         Reported by Ian Beckwith <ianb@erislabs.net>.
12013
12014 2010-10-13  Jim Meyering  <meyering@redhat.com>
12015
12016         test-select-stdin.c: avoid warn_unused_result warnings
12017         * tests/test-select-stdin.c: Include "macros.h".
12018         ASSERT that read and fflush succeed.
12019
12020 2010-10-13  Jim Meyering  <meyering@redhat.com>
12021
12022         git-version-gen: do require git-VC'd files in cwd
12023         * build-aux/git-version-gen: Reject a git version string
12024         if there are no commits associated with the current directory.
12025         This avoids an unlikely false-positive (unrelated dir whose parent
12026         repository also contains a tag matching v*), as pointed out
12027         by Giuseppe Scrivano in
12028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12029
12030 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12031
12032         argv-iter: omit nonconforming declaration
12033         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12034         enum arg_iter_err declaration, which doesn't conform to C99.
12035         Solaris 10 cc warns about this.
12036
12037 2010-10-13  Eric Blake  <eblake@redhat.com>
12038
12039         termios: fix compilation on mingw
12040         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12041         (gl_TERMIOS_H): Adjust it on mingw.
12042         * modules/termios (Makefile.am): Substitute new key.
12043         * lib/termios.in.h (includes): Make include_next conditional.
12044         * doc/posix-headers/termios.texi (termios.h): Update
12045         documentation.
12046         Reported by Daniel P. Berrange.
12047
12048 2010-10-13  Jim Meyering  <meyering@redhat.com>
12049
12050         git-version-gen: don't require that .git/ be in the current dir
12051         * build-aux/git-version-gen: Adjust this script so that it works
12052         when run from any working directory beneath the top-level .git/-
12053         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12055
12056         test-select: avoid warn_unused_result warnings
12057         * tests/test-select.c: Include "macros.h".
12058         ASSERT that each call to read, write, and pipe succeeds.
12059         While not technically required, also check each "close".
12060         * modules/select-tests (Files): Add tests/macros.h.
12061
12062         test-symlinkat: remove declaration of unused local
12063         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12064
12065         test-inttostr: avoid shadowing warnings
12066         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12067         and use malloc rather than the stack for the same reason as
12068         mentioned in the comment justifying the other allocation.
12069
12070 2010-10-11  Bruno Haible  <bruno@clisp.org>
12071
12072         stdlib: Allow multiple gnulib generated replacements to coexist.
12073         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12074         Reported by Sam Steingold <sds@gnu.org>.
12075
12076 2010-10-11  Jim Meyering  <meyering@redhat.com>
12077
12078         fix a documentation typo
12079         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12080
12081 2010-10-11  Eric Blake  <eblake@redhat.com>
12082
12083         futimens: work around Solaris 11 bug
12084         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12085         * tests/test-futimens.h (test_futimens): Enhance, rather than
12086         weaken test.
12087         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12088
12089 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12090
12091         Indentation.
12092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12093         higher-level operators more to the left.
12094
12095 2010-10-11  Jim Meyering  <meyering@redhat.com>
12096
12097         test-futimens: avoid unwarranted test failure on Solaris 5.11
12098         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12099         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12100         because it tries to dereference the NULL name argument.
12101
12102 2010-10-11  Bruno Haible  <bruno@clisp.org>
12103
12104         Indentation.
12105         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12106         indentation.
12107
12108 2010-10-11  Jim Meyering  <meyering@redhat.com>
12109
12110         spawn.in.h: make indentation consistent with parentheses
12111         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12112         Make indentation consistent with parentheses.
12113
12114 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12115
12116         Fix mismatched parens in previous commit
12117         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12118         parens.
12119
12120 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12121
12122         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12123
12124         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12125         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12126         * lib/malloca.c: Include "verify.h".
12127         (verify1): Remove, replacing with a verify call.
12128         * lib/relocwrapper.c (verify1): Likewise.
12129         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12130         Likewise.
12131         * modules/malloca (Depends-on): Add 'verify'.
12132         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12133         * modules/vasnprintf (Depends-on): Add 'verify'.
12134         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12136         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12137         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12138         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12141
12142         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12143
12144         Formerly the style was sometimes 2*X - 1, because the C standard
12145         was wrongly thought to disallow ?: in integral constant expressions.
12146         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12147         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12148         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12149         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12150         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12151         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12152         verify that time_t cannot be floating.
12153
12154 2010-10-08  Eric Blake  <eblake@redhat.com>
12155
12156         time: enforce recent POSIX ruling that time_t is integral
12157         * lib/time.in.h (__time_t_must_be_integral): Detect any
12158         problematic systems, allowing the rest of gnulib to assume POSIX.
12159
12160 2010-10-08  Jim Meyering  <meyering@redhat.com>
12161
12162         fdopendir: fix a bug on systems lacking openat and /proc support
12163         OpenBSD 4.7 is one such system.  The most noticeable effect was
12164         failure of any application making nontrivial use of fts: rm, du,
12165         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12166           ./rm: traversal failed: `a': Bad file descriptor
12167         Debugging that, you see that even though FD 6 was closed just
12168         prior to the opendir call in fd_clone_opendir, its resulting
12169         dir->dd_fd was 8, rather than the expected value of 6:
12170
12171         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12172         93                close (fd);
12173         (gdb) n
12174         94                dir = fd_clone_opendir (dupfd);
12175         (gdb) n
12176         95                saved_errno = errno;
12177         (gdb) p dir->dd_fd
12178         $11 = 8
12179
12180         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12181         The problem is that on OpenBSD, fd_clone_opendir has to resort
12182         to using the old-style save/restore CWD mechanism, due to its
12183         lack of openat/proc support, and *that* would steal the FD (6)
12184         that opendir was supposed to use.
12185
12186         The fix is to squirrel away the desired FD so that save_cwd uses a
12187         different one, and then free the dest FD right before calling opendir.
12188         That guarantees opendir will use the required file descriptor.
12189
12190         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12191
12192 2010-10-08  Bruno Haible  <bruno@clisp.org>
12193
12194         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12195         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12196
12197 2010-10-08  Bruno Haible  <bruno@clisp.org>
12198
12199         nanosleep: Make replacement POSIX compliant.
12200         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12201         is out of range.
12202         Reported by Jim Meyering.
12203
12204 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12205
12206         bootstrap: add hook for altering gnulib.mk, for Bison
12207         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12208         the Bison bootstrapping process can rewrite file names and variables
12209         in this file before later parts of 'bootstrap' use the file.
12210         Bison wants to include lib/gnulib.mk from the top-level makefile,
12211         so it needs the file names in this file to be relative to the top
12212         level, not relative to lib; plus it needs variable names to be
12213         rewritten.
12214         (slurp): Use the new function.
12215
12216         bootstrap: reformat for readability
12217         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12218
12219 2010-10-08  Eric Blake  <eblake@redhat.com>
12220
12221         docs: update cygwin progress
12222         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12223         1.7.7.
12224         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12225         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12226         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12227         * doc/posix-functions/carg.texi (carg): Likewise.
12228         * doc/posix-functions/cargf.texi (cargf): Likewise.
12229         * doc/posix-functions/casin.texi (casin): Likewise.
12230         * doc/posix-functions/casinf.texi (casinf): Likewise.
12231         * doc/posix-functions/casinh.texi (casinh): Likewise.
12232         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12233         * doc/posix-functions/catan.texi (catan): Likewise.
12234         * doc/posix-functions/catanf.texi (catanf): Likewise.
12235         * doc/posix-functions/catanh.texi (catanh): Likewise.
12236         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12237         * doc/posix-functions/ccos.texi (ccos): Likewise.
12238         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12239         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12240         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12241         * doc/posix-functions/cexp.texi (cexp): Likewise.
12242         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12243         * doc/posix-functions/cimag.texi (cimag): Likewise.
12244         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12245         * doc/posix-functions/clog.texi (clog): Likewise.
12246         * doc/posix-functions/clogf.texi (clogf): Likewise.
12247         * doc/posix-functions/conj.texi (conj): Likewise.
12248         * doc/posix-functions/conjf.texi (conjf): Likewise.
12249         * doc/posix-functions/cpow.texi (cpow): Likewise.
12250         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12251         * doc/posix-functions/cproj.texi (cproj): Likewise.
12252         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12253         * doc/posix-functions/creal.texi (creal): Likewise.
12254         * doc/posix-functions/crealf.texi (crealf): Likewise.
12255         * doc/posix-functions/csin.texi (csin): Likewise.
12256         * doc/posix-functions/csinf.texi (csinf): Likewise.
12257         * doc/posix-functions/csinh.texi (csinh): Likewise.
12258         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12259         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12260         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12261         * doc/posix-functions/ctan.texi (ctan): Likewise.
12262         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12263         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12264         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12265         * doc/posix-headers/complex.texi (complex.h): Likewise.
12266
12267 2010-10-07  Jim Meyering  <meyering@redhat.com>
12268
12269         parse-datetime: avoid compilation failure on OpenBSD 4.7
12270         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12271         This works around a compilation failure on OpenBSD 4.7:
12272         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12273
12274 2010-10-07  Eric Blake  <eblake@redhat.com>
12275
12276         docs: update cygwin progress
12277         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12278         1.7.6.
12279         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12280         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12281         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12282         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12283         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12284         Likewise.
12285         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12286         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12287         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12288         Likewise.
12289         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12290         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12291         Likewise.
12292         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12293         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12294         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12295         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12296         Likewise.
12297         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12298         Likewise.
12299         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12300
12301         docs: update parse-datetime history
12302         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12303         documentation of this function's history and alternatives.
12304
12305         cygwin: use more robust version check
12306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12307         exclude an eventual cygwin 1.9.1.
12308         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12310         (gl_FUNC_STRCASESTR): Likewise.
12311         Reported by Bruno Haible.
12312
12313 2010-10-06  Bruno Haible  <bruno@clisp.org>
12314
12315         string, sys_select: Avoid #including large headers unless necessary.
12316         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12317         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12318         OSF/1, BeOS, Haiku.
12319         Reported by Jim Meyering.
12320
12321 2010-10-05  Eric Blake  <eblake@redhat.com>
12322
12323         memmem, strstr, strcasestr: fix bug with long periodic needle
12324         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12325         periodic needle having false positive.
12326         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12327         and cygwin 1.7.7.
12328         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12330         (gl_FUNC_STRCASESTR): Likewise.
12331         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12332         * tests/test-memmem.c (main): Expose the bug.
12333         * tests/test-strcasestr.c (main): Likewise.
12334         * tests/test-strstr.c (main): Likewise.
12335         * tests/test-c-strcasestr.c (main): Likewise.
12336         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12337         * doc/posix-functions/strstr.texi (strstr): Likewise.
12338         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12339         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12340
12341 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12342
12343         parse-datetime: do some more renaming
12344         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12345         parse_datetime, not get_date.  Mention the renaming.
12346         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12347         in comments.
12348         * m4/bison.m4: Likewise.
12349
12350 2010-10-05  Eric Blake  <eblake@redhat.com>
12351
12352         parse-datetime: better name than get_date
12353         * NEWS: Reword the deprecation notice.
12354         * modules/get_date: Rename to modules/parse-datetime.
12355         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12356         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12357         * lib/get_date.y: Rename to lib/parse-datetime.y.
12358         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12359         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12360         * doc/getdate.texi: Provide fallback wrapper.
12361         * lib/getdate.h: Move guts, and wrap...
12362         * lib/parse-datetime.h: ...new file.
12363         * lib/parse-datetime.y (get_date): Rename...
12364         (parse_datetime): ...to this.
12365         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12366         (gl_PARSE_DATETIME): ...to this.
12367         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12368         documentation.
12369         * modules/getdate (Files): Provide fallback docs and header.
12370         (Notice, Depends-on): Update references.
12371         * tests/test-parse-datetime.c: Likewise.
12372         * DEPENDENCIES: Likewise.
12373         * MODULES.html.sh (Date and time <time.h>): Likewise.
12374         * doc/parse-datetime.texi (Date input formats)
12375         (Authors of parse_datetime): Likewise.
12376         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12377         (Include): Likewise.
12378         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12379         * gnulib-tool: Likewise.
12380         * m4/bison.m4 (gl_BISON): Likewise.
12381         Suggested by Bruno Haible.
12382
12383 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         more ports to Solaris tr, which needs [] around ranges
12386         * gnulib-tool: Solaris tr needs [] around ranges.
12387         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12388         * tests/test-pipe-filter-gi1.c (main): Likewise.
12389         * tests/test-pipe-filter-ii1.c (main): Likewise.
12390
12391 2010-10-05  Eric Blake  <eblake@redhat.com>
12392
12393         bootstrap: fix Solaris regression
12394         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12395         around ranges.
12396         Reported by Pádraig Brady.
12397
12398         bootstrap: work with pkg-config
12399         * build-aux/bootstrap (check_versions): Also transliterate - in
12400         prerequisite name.
12401         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12402         prerequisites that were already found, to avoid confusion.
12403         Reported by Justin Clift.
12404
12405         faccessat: remove unused wrappers
12406         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12407         presence of these wrappers dragged in -lgen on Solaris.
12408         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12409
12410 2010-10-05  Jim Meyering  <meyering@redhat.com>
12411
12412         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12413         * Makefile (sc_pragma_columns): New syntax-check rule.
12414
12415 2010-10-04  Bruno Haible  <bruno@clisp.org>
12416
12417         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12418         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12419         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12420         Reported by Bruce Korb and Eric Blake.
12421
12422 2010-10-04  Bruno Haible  <bruno@clisp.org>
12423
12424         threadlib: Make option --with-libpth-prefix work.
12425         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12426         use $LIBPTH, not just -lpth.
12427
12428 2010-10-04  Bruno Haible  <bruno@clisp.org>
12429
12430         Avoid line length limitation from HP NonStop system header files.
12431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12432         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12433         * lib/ctype.in.h: Likewise.
12434         * lib/dirent.in.h: Likewise.
12435         * lib/errno.in.h: Likewise.
12436         * lib/fcntl.in.h: Likewise.
12437         * lib/float.in.h: Likewise.
12438         * lib/getopt.in.h: Likewise.
12439         * lib/iconv.in.h: Likewise.
12440         * lib/inttypes.in.h: Likewise.
12441         * lib/langinfo.in.h: Likewise.
12442         * lib/locale.in.h: Likewise.
12443         * lib/math.in.h: Likewise.
12444         * lib/netdb.in.h: Likewise.
12445         * lib/netinet_in.in.h: Likewise.
12446         * lib/poll.in.h: Likewise.
12447         * lib/pthread.in.h: Likewise.
12448         * lib/pty.in.h: Likewise.
12449         * lib/sched.in.h: Likewise.
12450         * lib/se-selinux.in.h: Likewise.
12451         * lib/search.in.h: Likewise.
12452         * lib/signal.in.h: Likewise.
12453         * lib/spawn.in.h: Likewise.
12454         * lib/stdarg.in.h: Likewise.
12455         * lib/stddef.in.h: Likewise.
12456         * lib/stdint.in.h: Likewise.
12457         * lib/stdio.in.h: Likewise.
12458         * lib/stdlib.in.h: Likewise.
12459         * lib/string.in.h: Likewise.
12460         * lib/strings.in.h: Likewise.
12461         * lib/sys_file.in.h: Likewise.
12462         * lib/sys_ioctl.in.h: Likewise.
12463         * lib/sys_select.in.h: Likewise.
12464         * lib/sys_socket.in.h: Likewise.
12465         * lib/sys_stat.in.h: Likewise.
12466         * lib/sys_time.in.h: Likewise.
12467         * lib/sys_times.in.h: Likewise.
12468         * lib/sys_utsname.in.h: Likewise.
12469         * lib/sys_wait.in.h: Likewise.
12470         * lib/sysexits.in.h: Likewise.
12471         * lib/termios.in.h: Likewise.
12472         * lib/time.in.h: Likewise.
12473         * lib/unistd.in.h: Likewise.
12474         * lib/wchar.in.h: Likewise.
12475         * lib/wctype.in.h: Likewise.
12476         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12477         * modules/ctype (Makefile.am): Likewise.
12478         * modules/dirent (Makefile.am): Likewise.
12479         * modules/errno (Makefile.am): Likewise.
12480         * modules/fcntl-h (Makefile.am): Likewise.
12481         * modules/float (Makefile.am): Likewise.
12482         * modules/getopt-posix (Makefile.am): Likewise.
12483         * modules/iconv-h (Makefile.am): Likewise.
12484         * modules/inttypes (Makefile.am): Likewise.
12485         * modules/langinfo (Makefile.am): Likewise.
12486         * modules/locale (Makefile.am): Likewise.
12487         * modules/math (Makefile.am): Likewise.
12488         * modules/netdb (Makefile.am): Likewise.
12489         * modules/netinet_in (Makefile.am): Likewise.
12490         * modules/poll-h (Makefile.am): Likewise.
12491         * modules/pthread (Makefile.am): Likewise.
12492         * modules/pty (Makefile.am): Likewise.
12493         * modules/sched (Makefile.am): Likewise.
12494         * modules/search (Makefile.am): Likewise.
12495         * modules/selinux-h (Makefile.am): Likewise.
12496         * modules/signal (Makefile.am): Likewise.
12497         * modules/spawn (Makefile.am): Likewise.
12498         * modules/stdarg (Makefile.am): Likewise.
12499         * modules/stddef (Makefile.am): Likewise.
12500         * modules/stdint (Makefile.am): Likewise.
12501         * modules/stdio (Makefile.am): Likewise.
12502         * modules/stdlib (Makefile.am): Likewise.
12503         * modules/string (Makefile.am): Likewise.
12504         * modules/strings (Makefile.am): Likewise.
12505         * modules/sys_file (Makefile.am): Likewise.
12506         * modules/sys_ioctl (Makefile.am): Likewise.
12507         * modules/sys_select (Makefile.am): Likewise.
12508         * modules/sys_socket (Makefile.am): Likewise.
12509         * modules/sys_stat (Makefile.am): Likewise.
12510         * modules/sys_time (Makefile.am): Likewise.
12511         * modules/sys_times (Makefile.am): Likewise.
12512         * modules/sys_utsname (Makefile.am): Likewise.
12513         * modules/sys_wait (Makefile.am): Likewise.
12514         * modules/sysexits (Makefile.am): Likewise.
12515         * modules/termios (Makefile.am): Likewise.
12516         * modules/time (Makefile.am): Likewise.
12517         * modules/unistd (Makefile.am): Likewise.
12518         * modules/wchar (Makefile.am): Likewise.
12519         * modules/wctype (Makefile.am): Likewise.
12520
12521 2010-10-04  Bruno Haible  <bruno@clisp.org>
12522
12523         read-file tests: Avoid a test failure on NonStop Kernel.
12524         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12525         a regular file.
12526         Reported by Joachim Schmitz <schmitz@hp.com>.
12527
12528 2010-10-03  Bruno Haible  <bruno@clisp.org>
12529
12530         gnulib-tool: Fixes for --create-testdir with --libtool.
12531         * gnulib-tool (func_get_automake_snippet): Don't augment
12532         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12533         an executable.
12534         (func_create_testdir): Handle module 'alloca' like func_import.
12535         Reported by Bruce Korb <bruce.korb@gmail.com>.
12536
12537 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12538
12539         Avoid some lines longer than 80 characters.
12540         * lib/stdint.in.h: Break long comment lines.
12541         * lib/math.in.h: Likewise.
12542         (_GL_NUM_UINT_WORDS): New macro, for readability.
12543         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12544         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12545         * lib/stdlib.in.h: Likewise.
12546         * lib/spawn.in.h: Likewise.
12547         * lib/sys_socket.in.h: Update an URL.
12548         * lib/sys_stat.in.h: Break long line.
12549
12550 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12551
12552         Improve pmccabe2html.
12553         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12554         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12555         when the sources change. Remove the line in the HTML about "Used
12556         ranges" (which implied that there might be other unused ranges),
12557         rename "Resume" to "Summary" (easier to understand for more users).
12558         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12559         styles, and some unnecessary blank lines.
12560
12561 2010-10-03  Bruno Haible  <bruno@clisp.org>
12562             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12563
12564         acl: Add support for ACLs on NonStop Kernel.
12565         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12566         Check whether the function aclsort() exists.
12567         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12568         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12569         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12570         (acl_nontrivial [HAVE_ACLSORT]: New function.
12571         (file_has_acl): Implement for NonStop Kernel.
12572         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12573         (qset_acl): Implement for NonStop Kernel.
12574         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12575         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12576         (main): Implement for NonStop Kernel.
12577         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12578         Kernel. Handle this flavor.
12579         * tests/test-set-mode-acl.sh: Likewise.
12580         * tests/test-copy-acl.sh: Likewise.
12581         * tests/test-copy-file.sh: Likewise.
12582
12583 2010-10-03  Bruno Haible  <bruno@clisp.org>
12584
12585         Info about ACLs on NonStop Kernel.
12586         * doc/acl-resources.txt: Add info about NonStop Kernel.
12587         References by Joachim Schmitz <schmitz@hp.com>.
12588
12589 2010-10-02  Bruno Haible  <bruno@clisp.org>
12590
12591         Define missing EDQUOT on NonStop Kernel.
12592         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12593         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12594         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12595         missing.
12596         * doc/posix-headers/errno.texi: Mention the NSK bug.
12597         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12598         Reported by Joachim Schmitz <schmitz@hp.com>.
12599
12600 2010-10-02  Bruno Haible  <bruno@clisp.org>
12601
12602         Update doc for POSIX:2008.
12603         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12604         Update URL of POSIX specification.
12605
12606 2010-10-02  Bruno Haible  <bruno@clisp.org>
12607
12608         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12609         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12610         from gnulib, not from Automake.
12611
12612 2010-10-02  Bruno Haible  <bruno@clisp.org>
12613
12614         New module 'system-posix'.
12615         * modules/system-posix: New file.
12616         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12617         module is present.
12618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12619         GNULIB_SYSTEM_POSIX.
12620         * modules/stdlib (Depends-on): Remove sys_wait.
12621         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12622         * doc/posix-functions/system.texi: Mention the new module.
12623         * doc/posix-headers/stdlib.texi: Likewise.
12624         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12625         define test_sys_wait_macros to a no-op.
12626         Reported by Sam Steingold <sds@gnu.org>.
12627
12628 2010-09-30  Bruno Haible  <bruno@clisp.org>
12629
12630         More renaming from 'getdate' to 'get_date'.
12631         * doc/get_date.texi: Renamed from doc/getdate.texi.
12632         * modules/get_date (Files): Update.
12633         * MODULES.html.sh (Date and time <time.h>): Update.
12634         * DEPENDENCIES: Update.
12635         * gnulib-tool: Update comment.
12636         * m4/bison.m4 (gl_BISON): Likewise.
12637         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12638
12639 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12640
12641         bootstrap: support ACLOCAL_FLAGS during aclocal
12642         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12643         can add additional -I dir for third-party .m4 files.
12644
12645 2010-09-30  Eric Blake  <eblake@redhat.com>
12646
12647         bootstrap: use glibtoolize on MacOS
12648         * build-aux/bootstrap (check_versions): Convert libtool into
12649         libtoolize.
12650         (tool search): Move libtool check earlier, and look for
12651         glibtoolize for MacOS.
12652         (gnulib_tool_options): Auto-add --libtool when appropriate.
12653         Reported by Justin Clift.
12654
12655         poll: fix typo that broke test on MacOS
12656         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12657         Reported by Justin Clift.
12658
12659         getdate: rename to get_date
12660         Note: getdate.h is not renamed, to minimize client impact.
12661         * modules/getdate: Mark obsolete.  Move old contents...
12662         * modules/get_date: ...to new module name.
12663         * modules/getdate-tests: Move...
12664         * modules/get_date-tests: ...here.
12665         * m4/getdate.m4: Move...
12666         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12667         * lib/getdate.y: Move...
12668         * lib/get_date.y: ...here.
12669         * tests/test-getdate.c: Move...
12670         * tests/test-get_date.c: ...here.
12671         * doc/posix-functions/getdate.texi (getdate): Update name.
12672         * NEWS: Mention the change.
12673
12674 2010-09-29  Bruno Haible  <bruno@clisp.org>
12675
12676         Separate the module 'waitpid' from the module 'sys_wait'.
12677         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12678         present.
12679         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12680         gl_MODULE_INDICATOR_FOR_TESTS.
12681         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12682         * modules/sys_wait (Depends-on): Remove waitpid.
12683         (Makefile.am): Substitute GNULIB_WAITPID.
12684         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12685         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12686         signature only if the 'waitpid' module is present.
12687         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12688         * NEWS: Mention the change.
12689         * modules/grantpt (Depends-on): Add waitpid.
12690         * modules/wait-process (Depends-on): Likewise.
12691
12692 2010-09-29  Bruno Haible  <bruno@clisp.org>
12693
12694         More tests for module 'sys_wait'.
12695         * modules/sys_wait-c++-tests: New file.
12696         * tests/test-sys_wait-c++.cc: New file.
12697         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12698         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12699
12700 2010-09-29  Bruno Haible  <bruno@clisp.org>
12701
12702         New module 'waitpid'.
12703         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12704         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12705         Don't include <process.h>.
12706         (waitpid): Declare only, using modern idiom.
12707         * m4/waitpid.m4: New file.
12708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12709         * modules/waitpid: New file.
12710         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12711         (Makefile.am): Update.
12712         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12713
12714 2010-09-28  Bruno Haible  <bruno@clisp.org>
12715
12716         poll: Assume ANSI C.
12717         * lib/poll.c (poll): Use an ANSI C declaration.
12718
12719 2010-09-28  Bruno Haible  <bruno@clisp.org>
12720
12721         poll-h: Create poll.h on all platforms.
12722         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12723         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12724         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12725         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12726         (gl_REPLACE_POLL_H): Don't set POLL_H.
12727         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12728         * modules/poll-h (Depends-on): Add include_next.
12729         (Makefile.am): Create poll.h unconditionally. Substitute also
12730         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12731
12732 2010-09-28  Bruno Haible  <bruno@clisp.org>
12733
12734         Tests for module 'poll-h'.
12735         * modules/poll-h-c++-tests: New file.
12736         * tests/test-poll-h-c++.cc: New file.
12737
12738         Tests for module 'poll-h'.
12739         * modules/poll-h-tests: New file.
12740         * tests/test-poll-h.c: New file.
12741
12742 2010-09-28  Bruno Haible  <bruno@clisp.org>
12743
12744         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12745         * modules/poll-h (Depends-on): Add 'extensions'.
12746
12747 2010-09-28  Bruno Haible  <bruno@clisp.org>
12748
12749         New module 'poll-h'.
12750         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12751         (poll): Use modern idiom.
12752         * modules/poll-h: New file.
12753         * modules/poll (Files): Remove lib/poll.in.h.
12754         (Depends-on): Add poll-h.
12755         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12756         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12757         * m4/poll_h.m4: New file.
12758         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12759         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12760         and invoke gl_REPLACE_POLL_H.
12761         * lib/poll.c: Use common idiom.
12762         * tests/test-poll.c: Likewise.
12763         * doc/posix-headers/poll.texi: Mention the poll-h module.
12764         Suggested by Eric Blake.
12765
12766 2010-09-26  Bruno Haible  <bruno@clisp.org>
12767
12768         sys_wait: Implement WSTOPSIG.
12769         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12770         Reported by Simon Josefsson.
12771
12772 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12773
12774         stdlib, sys_wait: Avoid compilation error on mingw.
12775         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12776
12777 2010-09-26  Bruno Haible  <bruno@clisp.org>
12778
12779         stdlib tests: Avoid code duplication.
12780         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12781         * modules/sys_wait-tests (Files): Likewise.
12782         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12783         * tests/test-stdlib.c: Include test-sys_wait.h.
12784         (main): Invoke test_sys_wait_macros.
12785         * tests/test-sys_wait.c: Include test-sys_wait.h.
12786         (main): Invoke test_sys_wait_macros.
12787
12788 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12789
12790         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12791         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12792         sure Windows sockets are working before calling getaddrinfo.
12793         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12794         * doc/gnulib.texi (Windows sockets): Fix typo.
12795
12796 2010-09-25  Bruno Haible  <bruno@clisp.org>
12797
12798         Tests for module 'regex-quote'.
12799         * modules/regex-quote-tests: New file.
12800         * tests/test-regex-quote.c: New file.
12801
12802         New module 'regex-quote'.
12803         * lib/regex-quote.h: New file.
12804         * lib/regex-quote.c: New file.
12805         * modules/regex-quote: New file.
12806         Suggested by Reuben Thomas <rrt@sc3d.org>.
12807
12808 2010-09-24  Bruno Haible  <bruno@clisp.org>
12809
12810         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12811         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12812
12813 2010-09-23  Bruno Haible  <bruno@clisp.org>
12814
12815         setenv: Relax license.
12816         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12817         Blake.
12818         Requested by Eric Blake.
12819
12820 2010-09-22  Bruno Haible  <bruno@clisp.org>
12821
12822         termios: Relax license.
12823         * modules/termios (License): Change to LGPLv2+.
12824         Requested by Eric Blake.
12825
12826 2010-09-22  Bruno Haible  <bruno@clisp.org>
12827
12828         threadlib: Allow the package to change the default to 'no'.
12829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12830         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12831         Reported by Paul Eggert.
12832
12833 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12834             Bruno Haible  <bruno@clisp.org>
12835
12836         Fix endless loop in mbmemcasecoll.
12837         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12838         byte.
12839         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12840
12841 2010-09-22  Bruno Haible  <bruno@clisp.org>
12842
12843         Tests for module 'memcoll'.
12844         * modules/memcoll-tests: New file.
12845         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12846
12847         memcoll, xmemcoll: Clarify size vs. length.
12848         * modules/memcoll.c (memcoll0): Clarify specification.
12849         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12850         passed to collate_error.
12851
12852 2010-09-22  Bruno Haible  <bruno@clisp.org>
12853
12854         Tests for module 'memcasecmp'.
12855         * modules/memcasecmp-tests: New file.
12856         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12857
12858 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12859
12860         * lib/pthread.in.h: Add split double-inclusion guard, and include
12861         system <pthread.h> if there is one.  Use @@-style as in other
12862         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12863         pthread.h doesn't.
12864         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12865         (pthread_mutexattr_settype, pthread_mutex_trylock):
12866         New static inline functions, if there's no system <pthread.h>.
12867         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12868         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12869         Approximate with mutexes if the system lacks spinlocks, as in
12870         MacOS.
12871         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12872         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12873         @@-style.  Check for spinlocks separately.
12874         (gl_PTHREAD_DEFAULTS): New macro.
12875         * modules/pthread: Redo to use a more typical style for in.h files.
12876
12877 2010-09-21  Eric Blake  <eblake@redhat.com>
12878
12879         net_if: enhance tests
12880         * tests/test-net_if.c (main): Move signature checks earlier.
12881         Print failures to stderr.
12882         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12883         Document the bug that we do not yet fix.
12884
12885 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12886
12887         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12888         about gnulib, not GSS.
12889
12890 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12891
12892         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12893         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12894         for Emacs.
12895         * build-aux/pmccabe2html: Make Makefile.am example code more
12896         cut-and-paste friendly.
12897
12898 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12899
12900         * tests/test-net_if.c: New file.
12901         * modules/net_if-tests: New file.
12902
12903 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12904
12905         pthread: add pthread_spin_destroy
12906         * lib/pthread.in.h (pthread_spin_destroy): New function.
12907
12908 2010-09-19  Bruno Haible  <bruno@clisp.org>
12909
12910         gnulib-tool: Fix --help output.
12911         * gnulib-tool (func_usage): Fix help message.
12912         Reported by Reuben Thomas <rrt@sc3d.org>.
12913
12914 2010-09-18  Jim Meyering  <meyering@redhat.com>
12915
12916         maint.mk: avoid unexpanded \n in two diagnostics
12917         * top/maint.mk (sc_prohibit_always_true_header_tests):
12918         Don't use a literal \n in a halt=... assignment.  It would not be
12919         expanded, and the two \n bytes would appear in the diagnostic output
12920         rather than the desired newline.  Use halt=$$(printf ... instead.
12921         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12922
12923 2010-09-18  Bruno Haible  <bruno@clisp.org>
12924
12925         netinet_in: Doc tweak.
12926         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12928
12929 2010-09-18  Jim Meyering  <meyering@redhat.com>
12930
12931         init.sh: correct an outdated comment
12932         * tests/init.sh (create_exe_shims_):  s/function/alias/
12933
12934         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12935         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12936         a file named "*.exe" is removed between the glob expansion and the
12937         processing of that oddly named file.
12938
12939 2010-09-17  Eric Blake  <eblake@redhat.com>
12940
12941         mirbsd: add some more support
12942         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12943         in BSD family.
12944         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12945         devices as OpenBSD.
12946         * m4/host-os.m4 (mirbsd): Add MirBSD.
12947
12948         tests: fix unportable assumption on sys/wait.h
12949         * tests/test-sys_wait.c (main): Relax test.
12950         * tests/test-stdlib.c (main): Likewise.
12951
12952         init.sh: accomodate directory with no .exes
12953         * tests/init.sh: Accomodate directory containing only scripts.
12954
12955         tests: avoid compiler warning
12956         * tests/test-stdlib.c (main): Use the variable.
12957
12958         fdutimens, fdutimensat: update signature, again
12959         * lib/utimens.h (gl_futimens): Delete, and move signature...
12960         (fdutimens): ...here.
12961         (fdutimensat): Rearrange signature.
12962         (lutimensat): Rename variable for clarity.
12963         * lib/fdutimensat.c (fdutimensat): Update signature.
12964         * lib/utimens.c (fdutimens): Likewise.
12965         (gl_futimens): Delete.
12966         (utimens, lutimens): Update callers.
12967         * lib/futimens.c (futimens): Likewise.
12968         * tests/test-fdutimensat.c: Likewise.
12969         * tests/test-utimens.c: Likewise.
12970         * tests/test-futimens.h: Update comment.
12971         * NEWS: Mention this.
12972         Suggested by Paul Eggert.
12973
12974 2010-09-17  Bruno Haible  <bruno@clisp.org>
12975
12976         Take over the maintenance of some older macros from Autoconf.
12977         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12978         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12979         GNU Autoconf.
12980         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12981         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12982
12983 2010-09-17  Eric Blake  <eblake@redhat.com>
12984
12985         fdutimensat: drop atflag validation
12986         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12987         with valid fd, to close a race scenario where futimens is
12988         unsupported and FILE was replaced by a symlink.
12989         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12990         accordingly.
12991         Suggested by Paul Eggert.
12992
12993 2010-09-16  Bruno Haible  <bruno@clisp.org>
12994
12995         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12996         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12997
12998 2010-09-16  Bruno Haible  <bruno@clisp.org>
12999
13000         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13001         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13002         login_tty exists.
13003         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13004
13005 2010-09-16  Bruno Haible  <bruno@clisp.org>
13006
13007         login_tty: Make the replacement code work on BSD systems.
13008         * lib/login_tty.c: Include <sys/ioctl.h>.
13009         (login_tty): Use ioctl TIOCSCTTY when available.
13010         * modules/login_tty (Depends-on): Add sys_ioctl.
13011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13012
13013 2010-09-16  Bruno Haible  <bruno@clisp.org>
13014
13015         login_tty: Stricter unit test.
13016         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13017         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13018         and tcgetsid() after login_tty.
13019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13020
13021 2010-09-16  Bruno Haible  <bruno@clisp.org>
13022
13023         New module 'tcgetsid'.
13024         * lib/tcgetsid.c: New file.
13025         * m4/tcgetsid.m4: New file.
13026         * modules/tcgetsid: New file.
13027         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13028         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13029         GNULIB_TCGETSID, HAVE_TCGETSID.
13030         * lib/termios.in.h: Include <sys/types.h>.
13031         (tcgetsid): New declaration.
13032         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13033         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13034         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13035         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13036
13037 2010-09-16  Bruno Haible  <bruno@clisp.org>
13038
13039         Tests for module 'termios'.
13040         * modules/termios-c++-tests: New file.
13041         * modules/termios-tests: New file.
13042         * tests/test-termios-c++.cc: New file.
13043         * tests/test-termios.c: New file.
13044
13045         New module 'termios'.
13046         * modules/termios: New file.
13047         * lib/termios.in.h: New file.
13048         * m4/termios_h.m4: New file.
13049         * doc/posix-headers/termios.texi: Mention the new module.
13050
13051 2010-09-16  Eric Blake  <eblake@redhat.com>
13052
13053         fdutimensat: add an atflag parameter
13054         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13055         * lib/utimens.h (fdutimensat): Update prototype.
13056         * tests/test-fdutimensat.c: Adjust test to match.
13057         * NEWS: Document the change.
13058         Suggested by Paul Eggert.
13059
13060 2010-09-16  Bruno Haible  <bruno@clisp.org>
13061
13062         Fix typos in comments.
13063         * lib/striconveh.h: Fix typo in comment.
13064         * lib/login_tty.c (login_tty): Likewise.
13065
13066 2010-09-15  Bruno Haible  <bruno@clisp.org>
13067
13068         stdlib: clarify MirBSD WEXITSTATUS bug
13069         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13070         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13071
13072 2010-09-15  Eric Blake  <eblake@redhat.com>
13073
13074         stdlib: work around MirBSD WEXITSTATUS bug
13075         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13076         * modules/stdlib (Depends-on): Add sys_wait.
13077         * tests/test-sys_wait.c (main): Enhance test.
13078         * tests/test-stdlib.c (main): Likewise.
13079         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13080
13081         docs: mention MacOS issue with WEXITSTATUS(constant)
13082         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13083         issue.
13084         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13085
13086         strnlen: add tests
13087         * modules/strnlen-tests: New file.
13088         * tests/test-strnlen.c: Likewise.
13089
13090 2010-09-14  Bruno Haible  <bruno@clisp.org>
13091
13092         unistr/base: Avoid link errors when module 'libunistring' is also used.
13093         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13094         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13095         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13096         Declare also when HAVE_LIBUNISTRING is set.
13097         Reported by Pádraig Brady <P@draigbrady.com>.
13098
13099 2010-09-14  Eric Blake  <eblake@redhat.com>
13100
13101         test-rawmemchr: make more robust
13102         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13103         (Depends-on, configure.ac): Add needed prerequisites to use it.
13104         * modules/memchr-tests (Files, Depends-on, configure.ac):
13105         Likewise, to avoid implicit reliance on memchr module prereqs.
13106         * tests/test-memchr.c (main): Ensure proper masking.
13107         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13108         reads.
13109
13110         memchr: detect glibc Alpha bug
13111         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13112         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13113         Alpha.
13114         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13115         * tests/test-memchr.c (main): Enhance test.
13116         Reported by Nelson H. F. Beebe.
13117
13118 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13119
13120         fts, getcwd, glob: audit for dirfd returning -1
13121         * lib/fts.c (opendir): Remove #define; no longer used.
13122         (opendirat): New arg PDIR_FD.  All callers changed.
13123         (fts_build, _opendir2): Use new opendirat to avoid the need for
13124         dirfd, or for checking whether dirfd returns a negative value.
13125         Don't use opendir; always use openat followed by fdopendir.
13126         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13127         it.
13128         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13129         returns -1 here.
13130         * modules/fts (Depends-on): Remove dirfd.
13131         * modules/getcwd (Depends-on): Likewise.
13132
13133 2010-09-13  Eric Blake  <eblake@redhat.com>
13134
13135         float: fix broken MirBSD header
13136         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13137         * doc/posix-headers/float.texi (float.h): Document it.
13138
13139 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13140
13141         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13142         * lib/fts.c (opendirat): New arg extra_flags.
13143         (__opendir2): Use it to avoid following symlinks when opening
13144         a directory, if symlinks are not supposed to be followed.  See
13145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13146
13147         fdopendir: preserve argument fd before returning
13148         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13149         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13150         (fdopendir): Use them, arranging for FD to be open to the same
13151         directory that it was when it started.  (It might be temporarily
13152         closed while fdopendir is running, so this not thread- or
13153         signal-safe.)  Be careful to do the right thing even when file
13154         descriptors are scarce and dup fails with errno == EMFILE.  See
13155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13156
13157 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13158
13159         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13160         * NEWS: Document change.
13161         * m4/regex.m4: Disable test for regoff_t size.
13162
13163 2010-09-13  Jim Meyering  <meyering@redhat.com>
13164
13165         fts: don't operate on an invalid file descriptor after failed dup
13166         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13167         negative file descriptor.
13168
13169 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13170
13171         savedir: add streamsavedir, deprecate fdsavedir
13172         * NEWS: Mention deprecation of fdsavedir.
13173         * lib/savedir.c (streamsavedir): New extern function, whose name
13174         ends in "savedir" to be consistent with the others.  This differs
13175         from savedirstream in that it doesn't close its argument.  The
13176         next version of GNU tar will use this instead of fdsavedir, to
13177         avoid some race conditions and conserve file descriptors.
13178         (savedirstream): Reimplement as a wrapper around streamsavedir.
13179         (fdsavedir): Add a comment deprecating this function.  As far as
13180         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13181         * lib/savedir.h (streamsavedir): New decl.
13182         (fdsavedir): Add a comment deprecating this.
13183
13184 2010-09-10  Bruno Haible  <bruno@clisp.org>
13185
13186         langinfo: Fix last commit.
13187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13188         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13190
13191 2010-09-10  Bruno Haible  <bruno@clisp.org>
13192
13193         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13194         * lib/progreloc.c (O_EXEC): Define fallback.
13195
13196 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13199         * NEWS: Document recent changes to fcntl-h.
13200         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13201         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13202         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13203         Similarly for O_SEARCH; this last was already true, but not documented.
13204         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13205         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13206         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13207         Likewise.
13208         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13209         is zero, not whether it is defined.
13210         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13211         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13212         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13213
13214 2010-09-10  Bruno Haible  <bruno@clisp.org>
13215
13216         langinfo, nl_langinfo: Fix for IRIX 5.3.
13217         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13218         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13219         HAVE_LANGINFO_YESEXPR.
13220         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13221         HAVE_LANGINFO_YESEXPR.
13222         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13223         HAVE_LANGINFO_T_FMT_AMPM is 0.
13224         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13225         HAVE_LANGINFO_YESEXPR is 0.
13226         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13227         NOEXPR.
13228         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13229         * doc/posix-functions/nl_langinfo.texi: Likewise.
13230         Reported by Eric Blake.
13231
13232 2010-09-10  Bruno Haible  <bruno@clisp.org>
13233
13234         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13235         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13236         on FreeBSD 8.0 and OpenBSD 4.6.
13237         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13238         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13239         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13240         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13241         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13242         ac_includes_default.
13243         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13244
13245 2010-09-09  Eric Blake  <eblake@redhat.com>
13246
13247         strsignal: work around NetBSD bug
13248         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13249         * lib/string.in.h (includes): Likewise.
13250         * doc/posix-functions/strsignal.texi (strsignal): Document the
13251         bug.
13252         Reported by Nelson H. F. Beebe.
13253
13254         gnulib-tool: work with NetBSD /bin/sh
13255         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13256         (func_get_description, func_get_comment, func_get_status)
13257         (func_get_notice, func_get_applicability, func_get_filelist)
13258         (func_get_dependencies, func_get_autoconf_early_snippet)
13259         (func_get_autoconf_snippet, func_get_automake_snippet)
13260         (func_get_include_directive, func_get_link_directive)
13261         (func_get_license, func_get_maintainer, func_import): Avoid
13262         shell syntax errors from parsing syntax extensions.
13263
13264 2010-09-09  Bruno Haible  <bruno@clisp.org>
13265
13266         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13267         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13268         a reliable way to determine whether the 'alias' command works.
13269
13270 2010-09-08  Jim Meyering  <meyering@redhat.com>
13271
13272         init.sh: penalize a set-x-impaired shell; don't disqualify it
13273         * tests/init.sh: Too many shells corrupt application stderr when
13274         you set -x, so we can't afford to disqualify them, since at least
13275         on Irix-6.5, that would disqualify all bourne shells.
13276         Instead, use a two-pass approach.
13277         On the first pass, try to find a shell that meets the stricter
13278         condition that set -x does not corrupt stderr.
13279         If no shell meets the stricter condition, retest each candidate
13280         shell, but without that extra condition.  Finally, when
13281         VERBOSE=yes is requested and set -x might cause trouble, simply
13282         issue a warning and refrain from enabling debug output.
13283
13284 2010-09-08  Eric Blake  <eblake@redhat.com>
13285
13286         unsetenv: fix OpenBSD bug
13287         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13288         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13289         documentation.
13290         Reported by Jim Meyering.
13291
13292         strtod: work around IRIX 6.5 bug
13293         * lib/strtod.c (strtod): Reparse number on shorter string if
13294         exponent parse was invalid.
13295         * tests/test-strtod.c (main): Add check for "0x1p 2".
13296         Reported by Tom G. Christensen.
13297
13298         getopt: optimize previous patch
13299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13300         empty variable.  Speed up awk script.
13301         Reported by Paolo Bonzini.
13302
13303 2010-09-08  Jim Meyering  <meyering@redhat.com>
13304
13305         test.sh: disqualify shells for which set -x corrupts stderr
13306         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13307         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13308         appear in stderr output.  For example, this command:
13309             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13310         prints "P=1" on those two systems:
13311
13312 2010-09-08  Bruno Haible  <bruno@clisp.org>
13313
13314         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13315         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13316         commands, because some shells ignore redirections when there is an
13317         error in the command lookup.
13318         Reported by Eric Blake.
13319
13320 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13321
13322         * lib/regex.h: Fix a mention of `regex_compile' (should be
13323         `re_compile_pattern').
13324         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13325         (re_set_registers): Correct name of parameter in comment.
13326
13327         * doc/regex.texi: Add documentation for missing syntax flags.
13328         Remove commented-out documentation of defunct syntax option
13329         RE_NO_EMPTY_ALTS.
13330         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13331         Add documentation of re_set_registers.
13332         Document trick to re-use a pattern buffer by setting fastmap manually.
13333         Update documentation of struct re_pattern_buffer per public members.
13334         Uncomment documentation of equivalence class operators and
13335         collating symbol operators, since they are now implemented,
13336         Explain leftmost-longest matching in relation to alternatives.
13337         Tidy documentation of substring matching.
13338         Remove POSIX documentation, which is done better in
13339         glibc, and refer the reader there. Keep BSD API documentation, as
13340         that is not readily available elsewhere.
13341
13342 2010-09-07  Eric Blake  <eblake@redhat.com>
13343
13344         getopt: handle POSIXLY_CORRECT set but not exported
13345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13346         export state of POSIXLY_CORRECT, due to bash set -o posix.
13347         Reported by Dustin J. Mitchell.
13348
13349 2010-09-05  Bruno Haible  <bruno@clisp.org>
13350
13351         gnulib-tool: Highlight the changed options.
13352         * gnulib-tool (func_usage): Display the --import, --add-import,
13353         --remove-import explanations in bold font.
13354
13355 2010-09-06  Karl Berry  <karl@gnu.org>
13356
13357         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13358
13359 2010-09-05  Bruno Haible  <bruno@clisp.org>
13360
13361         uniwidth/width: Update comment.
13362         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13363         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13364
13365 2010-09-05  Bruno Haible  <bruno@clisp.org>
13366
13367         isinf, isnan: Relax license.
13368         * modules/isinf (License): Change from GPL to LGPL, with consent from
13369         Ben Pfaff.
13370         * modules/isnan (License): Likewise.
13371         Requested by Ludovic Courtès.
13372
13373 2010-09-04  Bruno Haible  <bruno@clisp.org>
13374
13375         gnulib-tool: Help migration from --import to --add-import or --update.
13376         * gnulib-tool: Emit a verbose error message when --import is used
13377         without any module name.
13378
13379 2010-09-04  Bruno Haible  <bruno@clisp.org>
13380
13381         Update doc about gnulib-tool.
13382         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13383         'gnulib-tool --update' in more detail.
13384         Reported by Eric Blake.
13385
13386 2010-09-04  Bruno Haible  <bruno@clisp.org>
13387
13388         gnulib-tool: Change --import. New options --add/remove-import.
13389         * gnulib-tool: New options --add-import, --remove-import.
13390         (func_usage): Document them.
13391         (have_associative): Define always.
13392         (func_import): In import mode, don't merge the specified settings with
13393         the cached settings. Implement remove-import mode.
13394         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13395         Explain when to use them versus --import.
13396         (Simple update): Use --add-import instead of --import.
13397         * NEWS: Mention the change.
13398
13399 2010-09-04  Bruno Haible  <bruno@clisp.org>
13400
13401         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13402         separate gnulib.mk.
13403
13404 2010-09-04  Bruno Haible  <bruno@clisp.org>
13405
13406         gnulib-tool: Don't talk about CVS any more.
13407         * gnulib-tool (func_usage, func_import): Write "version control"
13408         instead of CVS.
13409
13410 2010-09-04  Jim Meyering  <meyering@redhat.com>
13411
13412         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13413         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13414         false positives (whose names may be ill-chosen) when searching
13415         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13416         would cause a false-positive.
13417
13418         avoid coreutils "make distcheck" failure
13419         Coreutils tests with an absolute build directory name that contains
13420         a space.  Not quoting this directory name caused a failure.
13421         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13422         * tests/test-vc-list-files-cvs.sh: Likewise.
13423
13424 2010-09-04  Bruno Haible  <bruno@clisp.org>
13425
13426         gnulib-tool: Avoid error when run in a package without Makefile.am.
13427         * gnulib-tool: When collecting the m4dirs in a package that does not
13428         have a Makefile.am, eliminate those directories that contain no
13429         gnulib-cache.m4. Fix expression that counts these directories.
13430
13431 2010-09-04  Bruno Haible  <bruno@clisp.org>
13432
13433         update-copyright test: Improve output when perl is missing or too old.
13434         * tests/test-update-copyright.sh: Move test of Perl version down after
13435         the test whether Perl exists. Provide an explanation relating Perl's
13436         error message to Automake's SKIP: message.
13437
13438 2010-09-04  Bruno Haible  <bruno@clisp.org>
13439
13440         Don't augment PATH in TESTS_ENVIRONMENT.
13441         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13442         set abs_aux_dir instead of augmenting PATH.
13443         * modules/vc-list-files-tests (Makefile.am): Likewise.
13444         * tests/test-update-copyright.sh: Augment PATH here.
13445         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13446         path_prepend_.
13447         * tests/test-vc-list-files-git.sh: Likewise.
13448
13449 2010-09-04  Jim Meyering  <meyering@redhat.com>
13450
13451         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13452         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13453
13454 2010-09-04  Bruno Haible  <bruno@clisp.org>
13455
13456         strdup: Fix compilation error in C++ mode.
13457         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13458         the macro.
13459
13460 2010-09-04  Bruno Haible  <bruno@clisp.org>
13461
13462         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13463         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13464         macro into a function.
13465         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13466
13467 2010-09-04  Bruno Haible  <bruno@clisp.org>
13468
13469         Set PATH_SEPARATOR the same way autoconf does.
13470         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13471         the value of PATH_SEPARATOR the same way autoconf-generated configure
13472         scripts do.
13473         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13474         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13475
13476 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13477
13478         Set PATH_SEPARATOR the same way autoconf does.
13479         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13480         the same way autoconf-generated configure scripts do.
13481         * posix-modules: Likewise.
13482
13483 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         hash: fix safe_hasher const typo
13486         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13487         const; otherwise, there is a type error later.
13488
13489 2010-09-02  Jim Meyering  <meyering@redhat.com>
13490
13491         test-update-copyright.sh: require perl 5.8.0
13492         * tests/test-update-copyright.sh: Require 5.8.0,
13493         which Tom G. Christensen has confirmed is adequate,
13494         while 5.6.1 is not.
13495
13496 2010-09-02  Eric Blake  <eblake@redhat.com>
13497
13498         tests: init.sh improvements for re-exec'ing with zsh
13499         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13500         -vx through shell re-exec.
13501         Reported by Tom G. Christensen.
13502
13503         wctype: fix typo in previous commit
13504         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13505         Reported by Ludovic Courtès.
13506
13507 2010-09-02  Jim Meyering  <meyering@redhat.com>
13508
13509         test-update-copyright.sh: skip test if Perl is too old
13510         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13511         Reported by Tom G. Christensen.
13512
13513 2010-09-02  Bruno Haible  <bruno@clisp.org>
13514
13515         wctype: Avoid compilation error on IRIX 6.5.30.
13516         * lib/wctype.in.h (iswblank): Declare with a replacement if
13517         REPLACE_ISWBLANK is set.
13518         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13519         declared. Set REPLACE_ISWBLANK.
13520         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13521         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13522         * doc/posix-headers/wctype.texi: Likewise.
13523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13524
13525 2010-09-01  Bruno Haible  <bruno@clisp.org>
13526
13527         New module 'socketlib'.
13528         * modules/socketlib: New file.
13529         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13530         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13531         * modules/sockets (Depends-on): Add socketlib.
13532         Suggested by Sam Steingold <sds@gnu.org>.
13533
13534 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13535
13536         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13537
13538         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13539         when one needs search access to a directory but not read access.
13540         On systems where it is available, it works in some cases where
13541         O_RDONLY does not, namely on directories that are searchable but
13542         not readable, and which need only to be searchable.  If O_SEARCH
13543         is not available, fall back to the traditional method of using
13544         O_RDONLY.
13545
13546         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13547         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13548         when opening a directory that needs only to be searchable.
13549         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13550         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13551         * lib/openat-proc.c (openat_proc_name): Likewise.
13552         * lib/openat.c (openat_needs_fchdir): Likewise.
13553         * lib/save-cwd.c (save_cwd): Likewise.
13554         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13555
13556 2010-08-28  Bruno Haible  <bruno@clisp.org>
13557
13558         New module 'host-cpu-c-abi'.
13559         * modules/host-cpu-c-abi: New file.
13560         * m4/host-cpu-c-abi.m4: New file, based on part of
13561         clisp/src/m4/general.m4.
13562         Requested by Sam Steingold <sds@gnu.org>.
13563
13564 2010-08-31  Eric Blake  <eblake@redhat.com>
13565         and Jim Meyering  <meyering@redhat.com>
13566
13567         hash: factor, and guard against misbehaving hasher function
13568         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13569         of table->hasher's return value.  Also protect against a hash value
13570         so large that adding it to table->bucket results in a NULL pointer.
13571         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13572         Use it in place of open-coded check-and-abort.
13573
13574 2010-08-30  Bruno Haible  <bruno@clisp.org>
13575
13576         hash: silence spurious clang warning
13577         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13578         Reported by Eric Blake.
13579
13580 2010-08-30  Eric Blake  <eblake@redhat.com>
13581
13582         strstr, memmem, strcasestr: avoid leaked shell message
13583         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13584         FreeBSD.
13585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13587
13588         tests: silence clang warning
13589         * tests/test-malloca.c (do_allocation): Avoid dead store.
13590
13591 2010-08-29  Bruno Haible  <bruno@clisp.org>
13592
13593         gettext: Fix recent mistake.
13594         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13595
13596 2010-08-29  Bruno Haible  <bruno@clisp.org>
13597
13598         selinux-h: Offer a --without-selinux option.
13599         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13600         --without-selinux was specified, skip all tests and define
13601         HAVE_SELINUX_SELINUX_H to 0.
13602         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13603         set LIB_SELINUX to empty.
13604         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13605         gl_LIBSELINUX. If --without-selinux was specified, replace
13606         selinux/context.h.
13607         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13608
13609 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13610             Bruno Haible  <bruno@clisp.org>
13611
13612         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13613         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13614         of HAVE_REALLOC.
13615         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13616         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13617         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13618         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13619
13620 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13621             Bruno Haible  <bruno@clisp.org>
13622
13623         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13624         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13625         HAVE_CALLOC.
13626         * lib/xmalloc.c: Update accordingly.
13627         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13628         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13629         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13630
13631 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13632             Bruno Haible  <bruno@clisp.org>
13633
13634         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13635         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13636         HAVE_MALLOC.
13637         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13638         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13639         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13640
13641 2010-08-29  Bruno Haible  <bruno@clisp.org>
13642
13643         Update modules list.
13644         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13645         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13646         (String handling <string.h>): Add astrxfrm.
13647         (File system functions): Add readlinkat.
13648
13649 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13650
13651         Tests for module 'realloc-gnu'.
13652         * modules/realloc-gnu-tests: New file.
13653         * tests/test-realloc-gnu.c: New file.
13654
13655         Tests for module 'calloc-gnu'.
13656         * modules/calloc-gnu-tests: New file.
13657         * tests/test-calloc-gnu.c: New file.
13658
13659         Tests for module 'malloc-gnu'.
13660         * modules/malloc-gnu-tests: New file.
13661         * tests/test-malloc-gnu.c: New file.
13662
13663 2010-08-28  Bruno Haible  <bruno@clisp.org>
13664
13665         Rename module 'realloc' -> 'realloc-gnu'.
13666         * modules/realloc-gnu: New file, copied from modules/realloc.
13667         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13668         obsolete.
13669         * modules/mgetgroups (Depends-on): Update.
13670         * doc/posix-functions/realloc.texi: Update.
13671         * NEWS: Mention the change.
13672
13673         Rename module 'calloc' -> 'calloc-gnu'.
13674         * modules/calloc-gnu: New file, copied from modules/calloc.
13675         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13676         obsolete.
13677         * doc/posix-functions/calloc.texi: Update.
13678         * NEWS: Mention the change.
13679
13680         Rename module 'malloc' -> 'malloc-gnu'.
13681         * modules/malloc-gnu: New file, copied from modules/malloc.
13682         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13683         obsolete.
13684         * modules/argp (Depends-on): Update.
13685         * modules/regex (Depends-on): Update.
13686         * doc/posix-functions/malloc.texi: Update.
13687         * NEWS: Mention the change.
13688
13689 2010-08-28  Eric Blake  <eblake@redhat.com>
13690
13691         pread, pwrite: add missing dependency
13692         * modules/pread (Depends-on): Add extensions.
13693         * modules/pwrite (Depends-on): Likewise.
13694
13695 2010-08-28  Bruno Haible  <bruno@clisp.org>
13696
13697         unistr/u*-strchr: Fix tests dependencies.
13698         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13699         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13700         Reported by Ian Beckwith <ianb@erislabs.net>.
13701
13702 2010-08-28  Bruno Haible  <bruno@clisp.org>
13703
13704         read-file: Don't occupy too much unused memory.
13705         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13706
13707 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13708             Eric Blake  <eblake@redhat.com>
13709             Bruno Haible  <bruno@clisp.org>
13710
13711         read-file: Avoid memory reallocations with regular files.
13712         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13713         (fread_file): With regular files, use the remaining length as the
13714         initial buffer size.  Check against overflow.
13715         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13716         sys_stat.
13717
13718 2010-08-28  Bruno Haible  <bruno@clisp.org>
13719
13720         ftello: Relax license.
13721         * modules/ftello (License): Relax to LGPLv2+.
13722         Reported by Eric Blake.
13723
13724 2010-08-28  Bruno Haible  <bruno@clisp.org>
13725
13726         Avoid relocwrapper link errors due to gnulib replacement functions.
13727         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13728         function.
13729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13730
13731 2010-08-28  Bruno Haible  <bruno@clisp.org>
13732
13733         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13734         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13735         defined.
13736         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13737         Suggested by Eric Blake.
13738
13739 2010-08-28  Bruno Haible  <bruno@clisp.org>
13740
13741         sys_socket, netdb: Ensure socklen_t gets defined.
13742         * modules/sys_socket (Depends-on): Add socklen.
13743         * modules/netdb (Depends-on): Likewise.
13744         * modules/getaddrinfo (Depends-on): Remove socklen.
13745         * modules/getsockopt (Depends-on): Likewise.
13746         * modules/setsockopt (Depends-on): Likewise.
13747         * tests/test-sys_socket.c: Check that socklen_t is defined.
13748         * tests/test-netdb.c: Likewise.
13749         * m4/socklen.m4: Update comments.
13750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13751
13752 2010-08-27  Eric Blake  <eblake@redhat.com>
13753
13754         login_tty: add missing dependency
13755         * modules/login_tty (Depends-on): Add pty.
13756
13757 2010-08-26  Eric Blake  <eblake@redhat.com>
13758
13759         lib-symbol-versions: fix m4 quoting
13760         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13761         format for AC_LINK_IFELSE.
13762
13763         glob: fix compile test
13764         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13765
13766         btowc: fix missing file
13767         * modules/btowc (Files): Also ship locale-fr.m4.
13768
13769         lseek: fix link test
13770         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13771         AC_LINK_IFELSE.
13772
13773         include_next: silence autoconf 2.68 warning
13774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13775         AC_COMPILE_IFELSE as special.
13776         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13777         autoconf < 2.68.
13778
13779         acl: fix compilation test
13780         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13781         AC_COMPILE_IFELSE.
13782
13783 2010-08-26  Bruno Haible  <bruno@clisp.org>
13784
13785         Modernize AC_TRY_RUN invocations.
13786         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13787         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13788         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13789         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13790         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13791         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13794         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13795         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13797         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13798         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13801         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13802         gl_MBRLEN_NUL_RETVAL): Likewise.
13803         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13804         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13805         Likewise.
13806         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13807         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13808         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13809         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13810         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13811         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13812         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13813         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13814         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13815         Likewise.
13816         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13817         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13821         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13823         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13824         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13826
13827 2010-08-26  Bruno Haible  <bruno@clisp.org>
13828
13829         Modernize AC_TRY_LINK invocations.
13830         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13831         AC_TRY_LINK.
13832         * m4/argp.m4 (gl_ARGP): Likewise.
13833         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13834         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13835         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13836         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13837         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13838         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13839         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13840         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13841         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13842         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13843         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13844         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13845         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13846         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13847         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13848         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13849         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13850         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13851         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13852         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13853         Likewise.
13854         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13855         Likewise.
13856         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13857         Likewise.
13858         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13860         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13861         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13862         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13863         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13864         * m4/servent.m4 (gl_SERVENT): Likewise.
13865         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13866         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13867         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13868         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13869         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13870         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13873         * modules/tsearch-tests (configure.ac): Likewise.
13874
13875 2010-08-26  Bruno Haible  <bruno@clisp.org>
13876
13877         Modernize AC_TRY_COMPILE invocations.
13878         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13879         AC_TRY_COMPILE.
13880         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13881         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13882         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13883         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13884         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13885         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13886         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13887         * m4/lock.m4 (gl_LOCK): Likewise.
13888         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13889         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13890         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13891         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13892         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13893         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13894         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13896         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13897         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13898         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13899         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13900         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13901         extraneous semicolon.
13902
13903 2010-08-26  Jim Meyering  <meyering@redhat.com>
13904
13905         stat-time: relax license LGPL
13906         * modules/stat-time (License): Change from GPL to LGPL,
13907         with consent from all contributors, for use in libguile.
13908         Requested by Ludovic Courtès.
13909
13910 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13911
13912         poll: return immediately on POLLHUP.
13913         * lib/poll.c (poll): Always set timeout before wait_timeout is
13914         computed.
13915
13916 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13917
13918         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13919         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13920         rmdir ("dir/.//"), unlinkat.
13921
13922 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         stdbool: avoid spurious failure with modern xlc
13925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13926
13927 2010-08-24  Bruno Haible  <bruno@clisp.org>
13928
13929         getloadavg: simplify code
13930         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13931         gl_have_func. Update comments.
13932
13933 2010-08-24  Eric Blake  <eblake@redhat.com>
13934
13935         getloadavg: don't define SVR4 on cygwin
13936         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13937         only define SVR4 when -lkvm is required.
13938         Reported by Yaakov Selkowitz.
13939
13940 2010-08-24  Bruno Haible  <bruno@clisp.org>
13941
13942         priv-set: fix comment
13943         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13944
13945 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13946
13947         priv-set: fix comments
13948         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13949         to match code, as suggested by David Bartley in:
13950         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13951
13952 2010-08-23  Eric Blake  <eblake@redhat.com>
13953
13954         stdbool: avoid rejecting clang
13955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13956         * tests/test-stdbool.c: Enable more tests if using the system
13957         <stdbool.h> instead of the gnulib replacement.
13958         (main): Move xlc bug test to a runtime test for all compilers.
13959         Reported by Anders Kaseorg.
13960
13961         argz: fix shell quoting issue
13962         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13963         Reported by Charles Wilson.
13964
13965 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13966             Erik Faye-Lund <kusmabite@gmail.com>
13967
13968         poll, select: handle ERROR_BROKEN_PIPE.
13969         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13970         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13971         * lib/select.c (win32_compute_revents): Do not mark a pipe
13972         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13973
13974 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13975
13976         fts: allow compilation with C++
13977         * lib/fts_.h: Specify extern "C" linkage with C++.
13978
13979 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13980
13981         Fix gnulib-tool sed script de-commentation for AIX sed.
13982         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13983         sed.
13984
13985 2010-08-17  Eric Blake  <eblake@redhat.com>
13986
13987         test-stddef: test for (some) offsetof bugs
13988         * tests/test-stddef.c: Enhance test to ensure correct type of
13989         offsetof.
13990         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13991         that we are not fixing at this time.
13992
13993 2010-08-15  Bruno Haible  <bruno@clisp.org>
13994
13995         stpncpy: Allow stpncpy to be defined as a macro.
13996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13997         if it's already correctly declared.
13998         * lib/string.in.h (stpncpy): Undefine before redefining.
13999         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14000
14001 2010-08-14  Bruno Haible  <bruno@clisp.org>
14002
14003         Rename module 'memxfrm' to 'amemxfrm'.
14004         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14005         (amemxfrm): Renamed from memxfrm.
14006         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14007         (amemxfrm): Renamed from memxfrm.
14008         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14009         * NEWS: Mention the change.
14010         * MODULES.html.sh (String handling <string.h>): Update.
14011         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14012         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14013         * lib/unicase/u16-casexfrm.c: Likewise.
14014         * lib/unicase/u32-casexfrm.c: Likewise.
14015         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14016         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14017         * lib/uninorm/u16-normxfrm.c: Likewise.
14018         * lib/uninorm/u32-normxfrm.c: Likewise.
14019         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14020         memxfrm.
14021         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14022         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14023         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14024         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14025         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14026         Suggested by Paul Eggert.
14027
14028 2010-08-14  Bruno Haible  <bruno@clisp.org>
14029
14030         Tests for module 'astrxfrm'.
14031         * modules/astrxfrm-tests: New file.
14032         * tests/test-astrxfrm.c: New file.
14033
14034         New module 'astrxfrm'.
14035         * lib/astrxfrm.h: New file.
14036         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14037         * modules/astrxfrm: New file.
14038
14039 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14040
14041         regex: Tweak doc.
14042         * doc/regex.texi (Overview): Don't mention regex.c.
14043         (GNU Regular Expression Compiling): Likewise.
14044         (Match-end-of-line Operator): Mention 'not_eol'.
14045
14046 2010-08-14  Brian Gough  <bjg@gnu.org>
14047             Bruno Haible  <bruno@clisp.org>
14048
14049         git-merge-changelog: add doc relating to use with bzr and hg.
14050         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14051
14052 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14053
14054         pthread: fix pthread.h creation for srcdir != builddir
14055         * modules/pthread (Makefile.am): Fix the rule to work also in a
14056         non-srcdir build.
14057
14058 2010-08-13  Karl Berry  <karl@gnu.org>
14059
14060         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14061         * doc/posix-*/*: force line break before @url of POSIX
14062         specifications.
14063         Suggested by Werner Lemberg.
14064
14065 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14066
14067         strtod: fix const diagnostic
14068         * lib/strtod.c (strtod): Don't assign const char * to char *,
14069         as this elicits a warning from GCC when warnings are enabled.
14070
14071 2010-08-10  Pádraig Brady <P@draigbrady.com>
14072         and Eric Blake  <eblake@redhat.com>
14073
14074         copy-acl: ignore ENOTSUP on HP-UX
14075         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14076         so that it is available for HP-UX.
14077         * lib/copy-acl.c (qcopy_acl): Use it.
14078         Reported by Patrick M. Callahan.
14079
14080 2010-08-10  Eric Blake  <eblake@redhat.com>
14081
14082         open, chown: relax license
14083         * modules/open (License): Change to LGPLv2+, with consent by all
14084         authors, for use in augeas.
14085         * modules/chown (License): Likewise.
14086         * modules/lchown (Likewise): Likewise.
14087         Requested by Adam Stokes.
14088
14089 2010-08-09  Karl Berry  <karl@gnu.org>
14090
14091         * build-aux/ar-lib: new file, import from Automake.
14092         * config/srclist.txt: autocheck for updates.
14093
14094 2010-08-09  Eric Blake  <eblake@redhat.com>
14095
14096         readlinkat: adjust client modules
14097         * modules/areadlinkat (Depends-on): Use readlinkat, not
14098         symlinkat.
14099         * modules/areadlinkat-with-size (Depends-on): Likewise.
14100
14101         mknod: be more vocal about danger of running tests as root
14102         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14103         root, since that is just asking for problems.
14104         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14105
14106         readlinkat: split into its own module
14107         * modules/symlinkat: Split readlinkat...
14108         * modules/readlinkat: ...into separate module.
14109         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14110         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14111         * lib/symlinkat.c (readlinkat): Move...
14112         * lib/readlinkat.c: ...into new file.
14113         * modules/symlinkat-tests: Split readlinkat test...
14114         * modules/readlinkat-tests: ...into separate module.
14115         * tests/test-symlinkat.c: Split...
14116         * tests/test-readlinkat.c: ...into new file.
14117         * NEWS: Document the split.
14118         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14119         * lib/unistd.in.h (readlinkat): Likewise.
14120         Suggested by Bruno Haible.
14121
14122 2010-08-08  Bruno Haible  <bruno@clisp.org>
14123
14124         memxfrm: Speed up.
14125         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14126         that usually only one call to strxfrm is necessary for each string
14127         part.
14128         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14129
14130 2010-08-07  Karl Berry  <karl@gnu.org>
14131
14132         * doc/posix-headers/limits.texi,
14133         * doc/posix-functions/malloc.texi,
14134         * doc/posix-functions/strsignal.texi: missing @item.
14135         * doc/ld-version-script.texi: spurious leading i.
14136         * doc/regex.texi (Interval Operators): no commas inside @var.
14137
14138 2010-08-01  Bruno Haible  <bruno@clisp.org>
14139
14140         Integrate the regex documentation.
14141         * doc/gnulib.texi: Define 'cn' index.
14142         (Regular expressions): New a chapter that includes regex.texi and
14143         regexprops-generic.texi.
14144         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14145         syntax.
14146
14147         Whitespace cleanup.
14148         * doc/regex.texi: Remove trailing spaces.
14149
14150         Add regex documentation.
14151         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14152         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14153         Written by Kathy A. Hargreaves and Karl Berry.
14154
14155 2010-08-01  Bruno Haible  <bruno@clisp.org>
14156
14157         link: Update documentation.
14158         * doc/posix-functions/link.texi: Update regarding Solaris.
14159
14160 2010-07-31  Bruno Haible  <bruno@clisp.org>
14161
14162         Update modules list.
14163         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14164         (String handling <string.h>): Add memcmp2, memxfrm.
14165         (Container data structures): Add xlist, xsublist, xoset.
14166         (Core language properties): Add alignof, unused-parameter.
14167         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14168         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14169         (Unibyte characters <ctype.h>): New section.
14170         (String handling <string.h>): New section.
14171         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14172         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14173         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14174         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14175         tan, tanh, tanl, y0, y1, yn.
14176         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14177         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14178         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14179         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14180         unlockpt, vdprintf, vdprintf-posix.
14181         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14182         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14183         xconcat-filename.
14184         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14185         getdtablesize, pipe2, pipe2-safer.
14186         (Security): New section.
14187         (Networking functions): Add accept4.
14188         (Signal handling): Add sigpipe.
14189         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14190         mbmemcasecoll.
14191         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14192         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14193         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14194         pipe-filter-ii.
14195         (Misc): Add argp-version-etc, login_tty, parse-duration.
14196
14197 2010-07-31  Bruno Haible  <bruno@clisp.org>
14198
14199         Improve doc in MODULES.html.
14200         * modules/linkat (Description): Add the word "function".
14201         * modules/mkfifo (Description): Likewise.
14202         * modules/mknod (Description): Likewise.
14203         * modules/remove (Description): Likewise.
14204         * modules/renameat (Description): Likewise.
14205         * modules/stat (Description): Likewise.
14206         * modules/symlink (Description): Likewise.
14207         * modules/unlink (Description): Likewise.
14208
14209 2010-07-31  Bruno Haible  <bruno@clisp.org>
14210
14211         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14212         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14213         option --enable/disable-c++ instead of --enable/disable-cxx.
14214         * NEWS: Mention the change.
14215
14216 2010-07-31  Bruno Haible  <bruno@clisp.org>
14217
14218         readlink, areadlink: Relax test a bit.
14219         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14220         alternative to ENOTDIR.
14221         * tests/test-areadlink.h (test_areadlink): Likewise.
14222         Reported by Rainer Tammer.
14223
14224 2010-07-31  Bruno Haible  <bruno@clisp.org>
14225
14226         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14227         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14228         character, perform the search using U_STRCHR.
14229         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14230         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14231         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14232         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14233         Suggested by Paolo Bonzini.
14234
14235 2010-07-31  Bruno Haible  <bruno@clisp.org>
14236
14237         unistr/u*-strstr: Fix dependencies.
14238         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14239         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14240         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14241
14242 2010-07-31  Bruno Haible  <bruno@clisp.org>
14243
14244         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14245         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14246         the beginning of the loop.
14247         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14248         cases in 'switch' statement.
14249
14250         unistr/u8-strchr: Fix several bugs.
14251         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14252         the string. When not found, return NULL, not a pointer near the end.
14253
14254         More tests for unistr/u8-strchr.
14255         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14256         that the function does not read past the first occurrence of the byte
14257         being searched.
14258         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14259         * tests/unistr/test-u16-strchr.c (main): New function.
14260         * tests/unistr/test-u32-strchr.c (main): New function.
14261
14262 2010-07-31  Bruno Haible  <bruno@clisp.org>
14263
14264         posix-modules: Ignore backup files of documentation files.
14265         * posix-modules: grep only through files named *.texi.
14266
14267 2010-07-31  Bruno Haible  <bruno@clisp.org>
14268
14269         symlinkat: Fix documentation.
14270         * doc/posix-functions/readlinkat.texi: Fix module name.
14271
14272 2010-07-31  Bruno Haible  <bruno@clisp.org>
14273
14274         fchownat: Replace also when chown has the trailing slash bug.
14275         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14276         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14277         introduced on 2010-04-10.
14278         Reported by Rainer Tammer.
14279
14280 2010-07-31  Bruno Haible  <bruno@clisp.org>
14281
14282         linkat: Work around AIX 7.1 bug.
14283         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14284         whether linkat handles trailing slash correctly. If not, replace linkat
14285         and define LINKAT_TRAILING_SLASH_BUG.
14286         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14287         check whether (fd1,file1) points to a directory if file1 or file2 ends
14288         in a slash. Code taken from lib/link.c.
14289         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14290         Reported by Rainer Tammer.
14291
14292 2010-07-31  Bruno Haible  <bruno@clisp.org>
14293
14294         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14295         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14296         This disables an xlc optimization that was causing wrong test results.
14297         Reported by Rainer Tammer.
14298
14299 2010-07-31  Bruno Haible  <bruno@clisp.org>
14300
14301         iconv: Work around AIX 6.1..7.1 bug.
14302         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14303         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14304         cross-compiling, guess no on all versions of AIX.
14305         Reported by Rainer Tammer.
14306
14307 2010-07-31  Bruno Haible  <bruno@clisp.org>
14308
14309         readlink: Relax test a bit.
14310         * tests/test-readlink.h (test_readlink): Allow different errno value
14311         when readlink is called with a file name that ends in / and refers to
14312         a file.
14313         Suggested by Eric Blake.
14314         Reported by Rainer Tammer.
14315
14316 2010-07-31  Bruno Haible  <bruno@clisp.org>
14317
14318         copysign: Does not require -lm on glibc systems.
14319         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14320         gl_COMMON_DOUBLE_MATHFUNC.
14321         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14322
14323 2010-07-31  Bruno Haible  <bruno@clisp.org>
14324
14325         duplocale: Work around AIX 7.1 bug.
14326         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14327         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14328         * lib/duplocale.c (rpl_duplocale): Update comment.
14329         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14330         Reported by Rainer Tammer.
14331
14332 2010-07-30  Bruno Haible  <bruno@clisp.org>
14333
14334         dirfd: Avoid link error on AIX 7.1.
14335         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14336         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14337         exist, set REPLACE_DIRFD.
14338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14339         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14340         * doc/posix-functions/dirfd.texi: Update.
14341         Reported by Rainer Tammer.
14342
14343 2010-07-30  Eric Blake  <eblake@redhat.com>
14344
14345         strtod: next round of AIX fixes
14346         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14347         exponent.
14348         * tests/test-strtod.c (main): Enhance tests.
14349         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14350         Reported by Rainer Tammer.
14351
14352         futimens: fix configure check
14353         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14354         Reported by Bruno Haible.
14355
14356 2010-07-30  Bruno Haible  <bruno@clisp.org>
14357
14358         getline: Update regarding AIX.
14359         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14360         Reported by Rainer Tammer.
14361
14362 2010-07-30  Bruno Haible  <bruno@clisp.org>
14363
14364         wcwidth: Drop replacement on AIX 7.
14365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14366         AIX 7.
14367         Reported by Rainer Tammer.
14368
14369 2010-07-30  Bruno Haible  <bruno@clisp.org>
14370
14371         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14373         a 'char *'.
14374         Reported by Rainer Tammer.
14375
14376 2010-07-30  Bruno Haible  <bruno@clisp.org>
14377
14378         unlink: Update regarding AIX.
14379         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14380         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14381         Reported by Rainer Tammer.
14382
14383 2010-07-30  Bruno Haible  <bruno@clisp.org>
14384
14385         symlink: Update regarding AIX.
14386         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14387         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14388         Reported by Rainer Tammer.
14389
14390 2010-07-30  Bruno Haible  <bruno@clisp.org>
14391
14392         strndup: Update regarding AIX.
14393         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14394         AIX 7.
14395         Reported by Rainer Tammer.
14396
14397 2010-07-30  Bruno Haible  <bruno@clisp.org>
14398
14399         stat: Update regarding AIX.
14400         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14401         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14402         Reported by Rainer Tammer.
14403
14404 2010-07-30  Bruno Haible  <bruno@clisp.org>
14405
14406         truncl: Fix autoconf test.
14407         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14408         whether truncl works.
14409         Reported by Rainer Tammer.
14410
14411 2010-07-30  Bruno Haible  <bruno@clisp.org>
14412
14413         round: Update regarding AIX.
14414         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14415         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14416         Reported by Rainer Tammer.
14417
14418 2010-07-30  Bruno Haible  <bruno@clisp.org>
14419
14420         rename: Update regarding AIX.
14421         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14422         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14423         Reported by Rainer Tammer.
14424
14425 2010-07-30  Bruno Haible  <bruno@clisp.org>
14426
14427         printf.m4: Update regarding AIX.
14428         * m4/printf.m4: Update comments regarding AIX.
14429         Reported by Rainer Tammer.
14430
14431 2010-07-30  Bruno Haible  <bruno@clisp.org>
14432
14433         iconv: Update regarding AIX.
14434         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14435         AIX 7.
14436         Reported by Rainer Tammer.
14437
14438 2010-07-30  Bruno Haible  <bruno@clisp.org>
14439
14440         getopt: Update regarding AIX.
14441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14442         no on AIX.
14443         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14444         Reported by Rainer Tammer.
14445
14446 2010-07-30  Bruno Haible  <bruno@clisp.org>
14447
14448         ldexpl; Update regarding AIX.
14449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14450         on AIX 7.
14451         Reported by Rainer Tammer.
14452
14453 2010-07-30  Bruno Haible  <bruno@clisp.org>
14454
14455         frexpl: Update regarding AIX.
14456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14457         on AIX 7.
14458         Reported by Rainer Tammer.
14459
14460 2010-07-30  Bruno Haible  <bruno@clisp.org>
14461
14462         open, fopen: Update regarding AIX.
14463         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14464         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14465         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14466         * doc/posix-functions/fopen.texi: Likewise.
14467         Reported by Rainer Tammer.
14468
14469 2010-07-30  Bruno Haible  <bruno@clisp.org>
14470
14471         chown: Update doc regarding AIX.
14472         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14473         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14474         Reported by Rainer Tammer.
14475
14476 2010-07-30  Eric Blake  <eblake@redhat.com>
14477
14478         strtod: fix bug in replacement function on AIX
14479         * lib/strtod.c (strtod): Special case broken "0x" parse in
14480         underlying strtod.
14481         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14482         * doc/posix-functions/strtod.texi (strtod): Likewise.
14483         Reported by Rainer Tammer.
14484
14485 2010-07-30  Bruno Haible  <bruno@clisp.org>
14486
14487         mbrlen: Fix cross-compilation guess for AIX.
14488         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14489         guess. Leftover from 2008-12-22.
14490
14491 2010-07-30  Bruno Haible  <bruno@clisp.org>
14492
14493         mbrtowc: Fix cross-compilation guess for AIX.
14494         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14495         guess. Leftover from 2008-12-21.
14496
14497 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14498
14499         init.sh: work around trap limitation of some shells
14500         * tests/init.sh (setup_): Move exit trap outside of shell function.
14501
14502 2010-07-29  Eric Blake  <eblake@redhat.com>
14503
14504         strtod: aid debugging
14505         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14506         understanding why strtod is rejected.
14507
14508 2010-07-28  Bruno Haible  <bruno@clisp.org>
14509
14510         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14511         * lib/unistr/u8-chr.c: Include <string.h>.
14512         * tests/unistr/test-u8-chr.c: Likewise.
14513         * tests/unistr/test-u16-chr.c: Likewise.
14514         * tests/unistr/test-u32-chr.c: Likewise.
14515         * tests/unistr/test-u8-strchr.c: Likewise.
14516         * tests/unistr/test-u16-strchr.c: Likewise.
14517         * tests/unistr/test-u32-strchr.c: Likewise.
14518         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14519         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14520         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14521         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14522
14523 2010-07-28  Bruno Haible  <bruno@clisp.org>
14524
14525         Use spaces for indentation, not tabs.
14526         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14527
14528 2010-07-27  Bruno Haible  <bruno@clisp.org>
14529
14530         mbspcasecmp: Fix function specification.
14531         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14532         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14533         Reported by Eric Blake <eblake@redhat.com>.
14534
14535 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14536
14537         timespec: use cast and not conditional, as truncation isn't possible
14538         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14539         instead of a conditional.  Comment about the situation in more detail.
14540         This undoes most of the 2009-10-29 patch.
14541
14542 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14543
14544         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14545         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14546         * lib/unistr/u8-strchr.c: Likewise.
14547         * modules/unistr/u8-chr: Depend on memchr.
14548
14549         unistr/u*-strchr: add tests
14550         * modules/unistr/u8-strchr-tests: New file.
14551         * modules/unistr/u16-strchr-tests: New file.
14552         * modules/unistr/u32-strchr-tests: New file.
14553         * tests/unistr/test-strchr.h: New file.
14554         * tests/unistr/test-u8-strchr.c: New file.
14555         * tests/unistr/test-u16-strchr.c: New file.
14556         * tests/unistr/test-u32-strchr.c: New file.
14557
14558         unistr/u*-chr: test multibyte sequences more
14559         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14560         test vector.
14561         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14562         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14563         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14564
14565         unistr/u*-chr: test multibyte sequences
14566         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14567
14568         unistr/u*-chr: prepare for multibyte tests
14569         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14570         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14571         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14572         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14573         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14574         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14575
14576 2010-07-18  Bruno Haible  <bruno@clisp.org>
14577
14578         unistr/u8-strchr: Optimize non-ASCII argument case.
14579         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14580         because the first byte often matches anyway.
14581         Reported by Pádraig Brady <P@draigbrady.com>.
14582
14583 2010-07-15  Karl Berry  <karl@gnu.org>
14584
14585         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14586
14587 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14588
14589         getcwd: on Solaris, work better if ancestors are inaccessible
14590         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14591         buffer and size, try again with a large buffer.  This works better
14592         on Solaris, since its getcwd succeeds even if the path to the root
14593         is inaccessible, and this is helpful in common cases such as .zfs
14594         hidden directories.  Problem reported by J Chapman Flack in
14595         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14596         Use system getcwd if it's declared, not merely if it's partly
14597         working; use the partly-working test only to avoid needless effort
14598         if the system getcwd fails.
14599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14600         comment that was already obsolete and is now even more obsolete.
14601         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14602         now might call strdup.
14603
14604 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14605
14606         pthread: Add enough so that coreutils/src/sort.c compiles.
14607         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14608         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14609         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14610         Include <sys/types.h>, in case it defines pthread_t.
14611         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14612         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14613         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14614         (pthread_rwlockattr_t, pthread_spinlock_t):
14615         New typedefs, if HAVE_PTHREAD_T is not defined.
14616         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14617         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14618         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14619         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14620         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14621         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14622         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14623         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14624         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14625         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14626         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14627         New macros.
14628         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14629         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14630         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14631         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14632         (pthread_spin_unlock): New dummy functions.
14633         (pthread_create): Return EAGAIN; don't set errno.
14634         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14635         require AC_C_INLINE.
14636         * modules/pthread (Depends-on): Add sched, time.
14637         (pthread.h): Use AM_V_GEN.
14638
14639 2010-07-13  Bruno Haible  <bruno@clisp.org>
14640
14641         striconveh: Don't malloc memory if the result buffer is sufficient.
14642         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14643         buffer if its size is sufficient.
14644         Reported by Ludovic Courtès <ludo@gnu.org>.
14645
14646 2010-07-13  Bruno Haible  <bruno@clisp.org>
14647
14648         strtod: Add safety check.
14649         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14650
14651 2010-07-12  Bruno Haible  <bruno@clisp.org>
14652
14653         Unify tests that set gl_cv_func_ldexpl_no_libm.
14654         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14655         gl_FUNC_LDEXPL.
14656         (gl_FUNC_LDEXPL): Invoke it.
14657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14658
14659 2010-07-12  Bruno Haible  <bruno@clisp.org>
14660
14661         Unify tests that set gl_cv_func_ldexp_no_libm.
14662         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14663         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14664         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14665         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14666         * modules/strtod (Files): Add m4/ldexp.m4.
14667
14668 2010-07-12  Bruno Haible  <bruno@clisp.org>
14669
14670         Unify tests that set gl_cv_func_frexpl_no_libm.
14671         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14672         gl_FUNC_FREXPL_NO_LIBM.
14673         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14674         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14675
14676 2010-07-12  Bruno Haible  <bruno@clisp.org>
14677
14678         Unify tests that set gl_cv_func_frexp_no_libm.
14679         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14680         gl_FUNC_FREXP_NO_LIBM.
14681         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14682         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14683
14684 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14685
14686         memcoll: clarify sizes versus lengths, document better, and tweak perf
14687         * lib/memcoll.c (strcoll_loop, memcoll0):
14688         Improve quality of descriptive comments.  Name variables
14689         consistently as to whether they are lengths (which do not include
14690         terminating null) versus sizes (which do).
14691         * lib/xmemcoll.c (xmemcoll0): Likewise.
14692         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14693         returned when s1size == 0; this is easier to compile and saves
14694         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14695
14696 2010-07-12  Bruno Haible  <bruno@clisp.org>
14697
14698         Tests for module '_Exit'.
14699         * modules/_Exit-tests: New file.
14700         * tests/test-_Exit.sh: New file.
14701         * tests/test-_Exit.c: New file.
14702
14703         New module '_Exit'.
14704         * lib/stdlib.in.h (__attribute__): New macro.
14705         (_Exit): New declaration.
14706         * lib/_Exit.c: New file.
14707         * m4/_Exit.m4: New file.
14708         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14709         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14710         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14711         * modules/_Exit: New file.
14712         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14713         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14714
14715 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14716
14717         strtod: make it more-accurate typically, and don't require libm
14718         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14719         Include limits.h.  Don't include string.h.
14720         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14721         (locale_isspace): New function, so that no casts are needed to
14722         check whether *s is a space.
14723         (ldexp): Provide an unused dummy if not available.
14724         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14725         (strtod): Use them.  This implementation prefers to use the
14726         underlying strtod if available, falling back on our own code
14727         only to fix known bugs.  This is more likely to produce an
14728         accurate result.  Also, it avoids the use of libm functions.
14729         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14730         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14731         was absent, but it caused a test failure with coreutils.
14732         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14733         with libm.
14734         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14735         * modules/strtod-tests (Makefile.am): Likewise.
14736
14737 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14738             Bruno Haible  <bruno@clisp.org>
14739
14740         unistr/u8-strchr: Optimize ASCII argument case.
14741         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14742
14743 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         (x)memcoll: minor tweaks
14746         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14747         is after the type that it qualifies.
14748         (memcoll0): Likewise.
14749         * lib/memcoll.h (memcoll0): Likewise.
14750         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14751         * lib/xmemcoll.h (xmemcoll0): Likewise.
14752         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14753         differs from memcoll in that the NUL byte is part of the argument.
14754         Omit the abort-checks, as performance is a real issue here.  Plus,
14755         the checks were wrong anyway (an off-by-one error).  Omit local
14756         variable 'diff', as it's a bit clearer that way.
14757         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14758         no longer needed.
14759
14760 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14761
14762         (x)memcoll: speedup when input is known to be NUL delimited
14763         * lib/memcoll.c: Include stdlib.
14764         (memcoll0): New function.
14765         (strcoll_loop): New function, refactored for use in both memcoll
14766         and memcoll0.
14767         * lib/memcoll.h (memcoll0): Add prototype.
14768         * lib/xmemcoll.c (xmemcoll0): New function.
14769         (collate_error): New function, refactored for use in both xmemcoll
14770         and xmemcoll0.
14771         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14772         * m4/memcoll.m4: add inline invocation.
14773
14774 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14775
14776         * build-aux/bootstrap: Remove any local translations
14777         from the translation project synchronization directory,
14778         so that local only translations are not distributed.
14779
14780 2010-07-04  Bruno Haible  <bruno@clisp.org>
14781
14782         fsusage: Clarify which code applies to which platforms.
14783         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14784         platform.
14785         * lib/fsusage.c (get_fs_usage): Likewise.
14786
14787 2010-07-04  Bruno Haible  <bruno@clisp.org>
14788
14789         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14790         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14791         Reported by Martin Lambers <marlam@marlam.de>.
14792
14793 2010-07-04  Jim Meyering  <meyering@redhat.com>
14794
14795         hash: once again explicitly disallow insertion of NULL
14796         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14797         inserting a NULL pointer cannot work with these functions.
14798         Add a comment with details.
14799         This reverts part of the 2010-07-01 commit, 5bef1a35
14800         "hash: extend module to deal with non-pointer keys".
14801
14802 2010-07-01  Bruno Haible  <bruno@clisp.org>
14803
14804         stdbool: Update doc.
14805         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14806         Info from Christian Weisgerber <naddy@mips.inka.de>.
14807
14808 2010-07-01  Jim Meyering  <meyering@redhat.com>
14809
14810         hash: extend module to deal with non-pointer keys
14811         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14812         but that allows insertion of non-pointer entries.
14813         Do not disallow an ENTRY value of NULL.
14814         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14815         * lib/hash.h (hash_insert0): Declare.
14816
14817 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14818
14819         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14820         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14821         not present (i.e. with autoconf 2.59 and when using gettextize, not
14822         gnulib), require AC_GNU_SOURCE instead.
14823
14824 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14825
14826         idpriv-drop: Fix tests.
14827         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14828         not to the test-idpriv-droptemp program.
14829
14830 2010-06-29  Bruno Haible  <bruno@clisp.org>
14831
14832         string: Fix syntax error with g++ 2.96.
14833         * lib/string.in.h (__pure__): Remove definition.
14834         (_GL_ATTRIBUTE_PURE): New macro.
14835         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14836         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14837         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14838
14839 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14840
14841         unitypes: Fix bug introduced on 2010-05-18.
14842         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14843
14844 2010-06-22  Eric Blake  <eblake@redhat.com>
14845
14846         memmem: slight optimization
14847         * lib/str-two-way.h (critical_factorization): Update comments.
14848         Reduce work during factorization phase.
14849         Reported by Carlos Bueno <carlos@bueno.org>.
14850
14851 2010-06-21  Bruno Haible  <bruno@clisp.org>
14852
14853         Fix HAVE_CALLOC_POSIX misnomer.
14854         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14855         !HAVE_CALLOC_POSIX.
14856         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14857         HAVE_CALLOC_POSIX.
14858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14859         instead of HAVE_CALLOC_POSIX.
14860         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14861         HAVE_CALLOC_POSIX.
14862
14863         Use modern idiom for calloc() replacement.
14864         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14865         AC_FUNC_CALLOC.
14866         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14867         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14868         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14869         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14870         (gl_REPLACE_CALLOC): New macro.
14871
14872 2010-06-21  Bruno Haible  <bruno@clisp.org>
14873
14874         Fix HAVE_REALLOC_POSIX misnomer.
14875         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14876         !HAVE_REALLOC_POSIX.
14877         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14878         HAVE_REALLOC_POSIX.
14879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14880         instead of HAVE_REALLOC_POSIX.
14881         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14882         HAVE_REALLOC_POSIX.
14883
14884         Use modern idiom for realloc() replacement.
14885         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14886         AC_FUNC_REALLOC.
14887         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14888         Autoconf's AC_FUNC_REALLOC.
14889         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14890         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14891         (gl_REPLACE_REALLOC): New macro.
14892         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14893
14894 2010-06-21  Bruno Haible  <bruno@clisp.org>
14895
14896         Fix HAVE_MALLOC_POSIX misnomer.
14897         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14898         !HAVE_MALLOC_POSIX.
14899         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14900         HAVE_MALLOC_POSIX.
14901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14902         instead of HAVE_MALLOC_POSIX.
14903         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14904         HAVE_MALLOC_POSIX.
14905
14906         Use modern idiom for malloc() replacement.
14907         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14908         AC_FUNC_MALLOC.
14909         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14910         Autoconf's AC_FUNC_MALLOC.
14911         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14912         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14913         (gl_REPLACE_MALLOC): New macro.
14914         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14915
14916 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14917
14918         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14919         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14920         This macro takes 3 arguments, not 4.
14921
14922 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14923
14924         ipv6: fix detection under mingw
14925         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14926         in6_addr.
14927
14928 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14929
14930         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14931         that strtod() works when cross-compiling to a glibc version known
14932         to work.
14933
14934 2010-06-15  Bruno Haible  <bruno@clisp.org>
14935
14936         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14937
14938 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14939
14940         select: Correct timeout.
14941         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14942
14943 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14944
14945         git-version-gen: init shell var to avoid env var influence
14946         * build-aux/git-version-gen (v): Init shell var to empty.
14947
14948 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14949
14950         priv-set: Don't assume that priv.h exists merely because getppriv does.
14951         See Jan Andersen's bug report about AIX 5L in
14952         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14953         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14954         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14955         * lib/priv-set.h: Likewise.
14956         * tests/test-priv-set.c: Likewise.
14957
14958 2010-06-13  Bruno Haible  <bruno@clisp.org>
14959
14960         relocatable: Make it easier to test whether to install wrappers.
14961         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14962         RELOCATABLE_VIA_WRAPPER.
14963
14964 2010-06-13  Bruno Haible  <bruno@clisp.org>
14965
14966         gnulib-tool: Display specified modules and dependencies differently.
14967         * gnulib-tool (func_show_module_list): New function.
14968         (func_import, func_create_testdir): Invoke it.
14969         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14970
14971 2010-06-13  Bruno Haible  <bruno@clisp.org>
14972
14973         gnulib-tool: Align code of func_import and func_create_testdir.
14974         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14975         specified_modules.
14976
14977 2010-06-12  Jim Meyering  <meyering@redhat.com>
14978
14979         test-inttostr: avoid spurious failure on Solaris 9
14980         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14981         to accept "%ju".  Reported by Bruno Haible.
14982
14983 2010-06-11  Jim Meyering  <meyering@redhat.com>
14984
14985         test-sys_socket: mark variables as used more readably
14986         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14987         as "used" explicitly via (void) statement casts.  This is more
14988         readable than using them in an artificial return expression.
14989         Suggestion from Bruno Haible.
14990
14991 2010-06-11  Bruno Haible  <bruno@clisp.org>
14992
14993         Avoid some more warnings from "gcc -Wwrite-strings".
14994         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14995         to 'const char *'.
14996         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14997         * tests/test-c-strcasestr.c (main): Likewise.
14998         * tests/test-mbscasestr1.c (main): Likewise.
14999         * tests/test-mbscasestr2.c (main): Likewise.
15000         * tests/test-memmem.c (main): Likewise.
15001         * tests/test-strstr.c (main): Likewise.
15002         * tests/test-strcasestr.c (main): Likewise.
15003
15004 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15005
15006         init.sh: change framework_failure_ to fail with status 99, not 1
15007         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15008         automake's parallel-tests rule that this is an unexpected failure,
15009         even if the test is listed in XFAIL_TESTS.
15010
15011 2010-06-11  Jim Meyering  <meyering@redhat.com>
15012
15013         test-inttostr: avoid warnings about 4-6KB literal strings
15014         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15015         Include "macros.h", for its definition of ASSERT.
15016         (CK): s/assert/ASSERT/
15017         * modules/inttostr-tests (Files): Add macros.h.
15018
15019         init.sh: don't use $ME_ or skip_ before they are defined
15020         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15021         their first uses.  Also hoist their companions: warn_, fail_,
15022         framework_failure_, $stderr_fileno.  Prompted by a patch from
15023         Stefano Lattarini.
15024
15025         test-sys_socket: avoid set-but-not-used warnings from gcc
15026         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15027         avoid warning about set-but-not-used variables.
15028
15029         test-xvasprintf: avoid 'const' discard warnings
15030         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15031         "const" when assigning from literal strings.
15032         (test_xasprintf): Add "void" in function argument list to placate
15033         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15034
15035         tests: avoid compilation warnings in argmatch and exclude tests...
15036         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15037         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15038         Since it always exits, declare with the "noreturn" attribute.
15039         * tests/test-argmatch.c: Likewise.
15040
15041         tests: avoid 'const' discard warnings in mbsstr tests
15042         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15043         * tests/test-mbsstr2.c (main): Likewise.
15044
15045         test-verify: avoid warning from gcc's -Wmissing-declarations
15046         * tests/test-verify.c (function): Declare to be static.
15047
15048         test-inttostr.c: include <string.h> for use of strcmp
15049         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15050
15051         test-linkat: avoid failed assertion on "other" architectures
15052         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15053         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15054         sparc: https://bugs.launchpad.net/bugs/591968
15055
15056 2010-06-11  Jim Meyering  <meyering@redhat.com>
15057
15058         printf.m4: avoid autoconf's "Expanded Before Required" warning
15059         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15060         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15061         autoconf warning.
15062
15063 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15064
15065         Replacement header templates are now named with ".in", not "_".
15066         * doc/gnulib-intro.texi: Correct.
15067
15068 2010-06-10  Jim Meyering  <meyering@redhat.com>
15069
15070         inttostr-tests: depend on snprintf, not snprintf-posix
15071         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15072         snprintf-posix, to avoid this aclocal failure:
15073           missing file gnulib-tests/vasnprintf.c
15074           configure.ac:45: error: expected source file, required through \
15075           AC_LIBSOURCES, not found
15076
15077 2010-06-10  Jim Meyering  <meyering@redhat.com>
15078
15079         inttostr: add a new function, inttostr, and tests
15080         The namesake function was not available.  The existence of the
15081         template file, inttostr.c makes its addition nontrivial.
15082         * lib/anytostr.c: Rename from inttostr.c.
15083         (anytostr): Rename from inttostr.
15084         * lib/inttostr.c: New file.
15085         * modules/inttostr (Files): Add anytostr.c.
15086         (Makefile.am): Set lib_SOURCES instead of ...
15087         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15088         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15089         * lib/offtostr.c: Likewise.
15090         * lib/uinttostr.c: Likewise.
15091         * lib/umaxtostr.c: Likewise.
15092         * modules/inttostr-tests: New file.
15093         * tests/test-inttostr.c: New file.  Test these functions.
15094
15095 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15096             Bruno Haible  <bruno@clisp.org>
15097
15098         Add "Extending Gnulib" chapter to manual.
15099         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15100         chapter.
15101         (Extending Gnulib): New chapter.
15102         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15103         chapter.
15104
15105 2010-06-09  Bruno Haible  <bruno@clisp.org>
15106
15107         Avoid relocwrapper link errors due to gnulib replacement functions.
15108         * lib/areadlink.c: Use the system's malloc, realloc functions.
15109         (areadlink): Set errno to ENOMEM explicitly.
15110         * modules/areadlink (Depends-on): Remove malloc-posix.
15111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15112
15113 2010-06-09  Bruno Haible  <bruno@clisp.org>
15114
15115         Avoid relocwrapper link errors due to gnulib replacement functions.
15116         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15117         * lib/malloca.c: Likewise.
15118         * lib/relocatable.c: Likewise.
15119         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15120         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15121         * lib/setenv.c: Use the system's malloc, realloc functions.
15122         * lib/strerror.c: Use the system's sprintf function.
15123         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15124
15125 2010-06-04  Bruno Haible  <bruno@clisp.org>
15126
15127         Prefer documented low-level autoconf macro names.
15128         * m4/lib-link.m4: Use m4_translit instead of translit.
15129         * m4/environ.m4: Likewise.
15130         * m4/mathfunc.m4: Likewise.
15131         * m4/onceonly.m4: Likewise.
15132         * m4/stdint.m4: Likewise.
15133         Suggested by Eric Blake.
15134
15135 2010-06-04  Martin Lambers  <marlam@marlam.de>
15136             Bruno Haible  <bruno@clisp.org>
15137
15138         havelib: Allow library names with '+' characters.
15139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15140         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15141
15142 2010-06-09  Bruno Haible  <bruno@clisp.org>
15143
15144         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15145         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15146         realloc failed.
15147
15148 2010-06-08  Peter Simons  <simons@cryp.to>
15149
15150         maint.mk: make the news-check rule more configurable
15151         * top/maint.mk (news-check-lines-spec): New variable.
15152         (news-check): Use "sed -n 1,10p" in place of "head".
15153
15154 2010-06-07  Jim Meyering  <meyering@redhat.com>
15155
15156         do-release-commit-and-tag: fix typo in --help
15157         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15158
15159         regex: avoid new dead-code warning with gcc-4.6.0
15160         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15161         if-block containing a while-loop.  It's been unused for at least
15162         5 years.
15163
15164 2010-06-05  Bruno Haible  <bruno@clisp.org>
15165
15166         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15167         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15168
15169 2010-06-04  Bruno Haible  <bruno@clisp.org>
15170
15171         Update to GNU gettext 0.18.1.
15172         * modules/gettext (configure.ac): Require gettext infrastructure from
15173         version 0.18.1.
15174
15175 2010-06-03  Bruno Haible  <bruno@clisp.org>
15176
15177         Don't use AC_LIBOBJ with file names in subdirectories.
15178         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15179         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15180         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15181         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15182         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15183         gl_LIBUNISTRING_LIBSOURCE.
15184         (Makefile.am): Augment lib_SOURCES here, conditionally.
15185         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15186
15187 2010-06-03  Bruno Haible  <bruno@clisp.org>
15188
15189         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15190         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15191         expansion does not end with a newline.
15192         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15193         unnecessary newline.
15194
15195 2010-06-03  Bruno Haible  <bruno@clisp.org>
15196
15197         Reduce dependencies.
15198         * tests/test-quotearg.h: New file, extracted from
15199         tests/test-quotearg.c.
15200         * tests/test-quotearg-simple.c: New file, extracted from
15201         tests/test-quotearg.c.
15202         * tests/test-quotearg.c: Don't include <ctype.h>.
15203         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15204         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15205         use_quote_double_quotes, use_quotearg_colon): Moved to
15206         tests/test-quotearg.h.
15207         (results_g, flag_results, custom_quotes, custom_results): Moved
15208         to tests/test-quotearg-simple.c.
15209         (main): Moved the part that does not depend on gettext to
15210         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15211         performed.
15212         * modules/quotearg-simple: New file.
15213         * modules/quotearg-simple-tests: New file.
15214         * modules/quotearg (Depends-on): Add quotearg-simple.
15215         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15216         (Files): Add tests/test-quotearg.h.
15217         Reported by Paolo Bonzini.
15218
15219 2010-06-03  Bruno Haible  <bruno@clisp.org>
15220
15221         Reduce dependencies.
15222         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15223
15224 2010-06-03  Bruno Haible  <bruno@clisp.org>
15225
15226         time: Undefine more broken macros.
15227         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15228         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15229         Reported by Eric Blake.
15230
15231 2010-06-03  Bruno Haible  <bruno@clisp.org>
15232
15233         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15234         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15235         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15236         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15237         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15238         Reported by Ludovic Courtès <ludo@gnu.org>.
15239
15240 2010-06-02  Eric Blake  <eblake@redhat.com>
15241
15242         time: work with mingw + pthreads-win32 library
15243         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15244         if timespec is defined only in pthread.h.
15245         * modules/time (Makefile.am): Substitute it.
15246         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15247         <pthread.h>, when needed.
15248         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15249         from the library.
15250
15251 2010-05-31  Bruno Haible  <bruno@clisp.org>
15252
15253         Avoid expanding two macros in the wrong order.
15254         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15255         gl_LIBUNISTRING if it is defined.
15256         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15257         autoconf >= 2.64.
15258         Reported by Ludovic Courtès <ludo@gnu.org>.
15259
15260 2010-05-27  Jim Meyering  <meyering@redhat.com>
15261
15262         maint.mk: also prohibit "#undef" of always-defined symbols
15263         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15264         Allow more than one space before the symbol name.
15265         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15266         the regexp uses alternation.
15267
15268 2010-05-26  Eric Blake  <eblake@redhat.com>
15269
15270         maint.mk: avoid echo -e
15271         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15272         Convert all uses of echo -* to printf.
15273         Reported by Matthias Bolte.
15274
15275 2010-05-25  Bruno Haible  <bruno@clisp.org>
15276
15277         Update to GNU gettext 0.18, part 2.
15278         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15279         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15280
15281 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15282
15283         Add missing include in test-pwrite.c.
15284         * tests/test-pwrite.c: Include string.h, for strcmp.
15285
15286 2010-05-24  Bruno Haible  <bruno@clisp.org>
15287
15288         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15289
15290 2010-05-24  Bruno Haible  <bruno@clisp.org>
15291
15292         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15293         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15294         iconveh_error argument.
15295         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15296         U_STRCONV_TO_LOCALE.
15297         * lib/unistr/u16-strcoll.c: Likewise.
15298         * lib/unistr/u32-strcoll.c: Likewise.
15299         * modules/unistr/u8-strcoll (Depends-on): Add
15300         uniconv/u8-strconv-to-enc, localcharset. Remove
15301         uniconv/u8-strconv-to-locale.
15302         (configure.ac): Bump version number.
15303         * modules/unistr/u16-strcoll (Depends-on): Add
15304         uniconv/u16-strconv-to-enc, localcharset. Remove
15305         uniconv/u16-strconv-to-locale.
15306         (configure.ac): Bump version number.
15307         * modules/unistr/u32-strcoll (Depends-on): Add
15308         uniconv/u32-strconv-to-enc, localcharset. Remove
15309         uniconv/u32-strconv-to-locale.
15310         (configure.ac): Bump version number.
15311
15312 2010-05-24  Bruno Haible  <bruno@clisp.org>
15313
15314         Avoid a test failure on NetBSD 5.0.
15315         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15316         an iconv() bug.
15317
15318 2010-05-24  Bruno Haible  <bruno@clisp.org>
15319
15320         Adjust #include directive style.
15321         * modules/regex (Includes): Recommend to write <regex.h>.
15322
15323 2010-05-24  Bruno Haible  <bruno@clisp.org>
15324
15325         regex: Don't require alloca.
15326         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15327         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15328         only inside if (0).
15329
15330 2010-05-23  Jim Meyering  <meyering@redhat.com>
15331
15332         test-renameat.c: include <sys/stat.h>
15333         * tests/test-renameat.c: Include <sys/stat.h>; required for
15334         definition of S_IS* macros.
15335
15336 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15337
15338         Update maintainer documentation for 'relocatable-prog' module.
15339         * doc/relocatable-maint.texi: Update.
15340         Comments by Bruno Haible.
15341
15342 2010-05-23  Bruno Haible  <bruno@clisp.org>
15343
15344         git-merge-changelog: Enable --split-merged-entry by default.
15345         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15346         (usage): Don't mention this option any more.
15347         Reported by Ralf Wildenhues.
15348
15349 2010-05-23  Jim Meyering  <meyering@redhat.com>
15350
15351         test-pwrite: do not leave behind a test file named "out"
15352         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15353         The trivial-looking use of init.sh is really necessary.
15354         It ensures that the temporary file, "out", is created in
15355         a temporary directory, and removed upon termination.
15356         * tests/test-pwrite.sh: Re-add file.
15357         * modules/pwrite-tests: Reference it.
15358
15359 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15360
15361         Fix output redirection buglet in init.sh.
15362         * tests/init.sh: Fix redirection of stderr.
15363
15364 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15365
15366         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15367
15368 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15369
15370         * modules/valgrind-tests: New file.
15371         * m4/valgrind-tests.m4: New file.
15372         * doc/valgrind-tests.texi: New file.
15373         * doc/gnulib.texi (Running self-tests under valgrind): New
15374         section.
15375
15376 2010-05-19  Bruno Haible  <bruno@clisp.org>
15377
15378         Clean up dead code in recent commit.
15379         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15380         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15381         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15382         Suggested by Paolo Bonzini.
15383
15384 2010-05-19  Bruno Haible  <bruno@clisp.org>
15385
15386         Avoid valgrind error reports from libunistring.
15387         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15388         * modules/libunistring (Files): Add it.
15389         * modules/libunistring-optional (Files): Likewise.
15390
15391 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15392             Bruno Haible  <bruno@clisp.org>
15393
15394         New module 'libunistring-optional'.
15395         * modules/libunistring-optional: New file.
15396         * m4/libunistring-base.m4: New file.
15397         * m4/libunistring-optional.m4: New file.
15398         * lib/unicase.in.h: Renamed from lib/unicase.h.
15399         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15400         * lib/unictype.in.h: Renamed from lib/unictype.h.
15401         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15402         * lib/uniname.in.h: Renamed from lib/uniname.h.
15403         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15404         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15405         * lib/unistr.in.h: Renamed from lib/unistr.h.
15406         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15407         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15408         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15409         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15410         gl_LIBUNISTRING. If the library was found, determine the installed
15411         version and set LIBUNISTRING_VERSION.
15412         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15413         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15414         handle a configuration option --with-included-libunistring.
15415         * modules/libunistring (Files): Add m4/absolute-header.m4.
15416         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15417         Add m4/libunistring-base.m4.
15418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15419         (Makefile.am): Build unicase.h from unicase.in.h.
15420         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15421         Add m4/libunistring-base.m4.
15422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15423         (Makefile.am): Build uniconv.h from uniconv.in.h.
15424         * modules/unictype/base (Files): Use unictype.in.h instead of
15425         unictype.h. Add m4/libunistring-base.m4.
15426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15427         (Makefile.am): Build unictype.h from unictype.in.h.
15428         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15429         Add m4/libunistring-base.m4.
15430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15431         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15432         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15433         Add m4/libunistring-base.m4.
15434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15435         (Makefile.am): Build uniname.h from uniname.in.h.
15436         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15437         Add m4/libunistring-base.m4.
15438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15439         (Makefile.am): Build uninorm.h from uninorm.in.h.
15440         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15441         unistdio.h. Add m4/libunistring-base.m4.
15442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15443         (Makefile.am): Build unistdio.h from unistdio.in.h.
15444         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15445         Add m4/libunistring-base.m4.
15446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15447         (Makefile.am): Build unistr.h from unistr.in.h.
15448         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15449         Add m4/libunistring-base.m4.
15450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15451         (Makefile.am): Build unitypes.h from unitypes.in.h.
15452         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15453         Add m4/libunistring-base.m4.
15454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15455         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15456         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15457         uniwidth.h. Add m4/libunistring-base.m4.
15458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15459         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15460         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15461         instead of augmenting lib_SOURCES.
15462         * modules/unicase/empty-suffix-context: Likewise.
15463         * modules/unicase/locale-language: Likewise.
15464         * modules/unicase/tolower: Likewise.
15465         * modules/unicase/totitle: Likewise.
15466         * modules/unicase/toupper: Likewise.
15467         * modules/unicase/u8-casecmp: Likewise.
15468         * modules/unicase/u8-casecoll: Likewise.
15469         * modules/unicase/u8-casefold: Likewise.
15470         * modules/unicase/u8-casexfrm: Likewise.
15471         * modules/unicase/u8-ct-casefold: Likewise.
15472         * modules/unicase/u8-ct-tolower: Likewise.
15473         * modules/unicase/u8-ct-totitle: Likewise.
15474         * modules/unicase/u8-ct-toupper: Likewise.
15475         * modules/unicase/u8-is-cased: Likewise.
15476         * modules/unicase/u8-is-casefolded: Likewise.
15477         * modules/unicase/u8-is-lowercase: Likewise.
15478         * modules/unicase/u8-is-titlecase: Likewise.
15479         * modules/unicase/u8-is-uppercase: Likewise.
15480         * modules/unicase/u8-prefix-context: Likewise.
15481         * modules/unicase/u8-suffix-context: Likewise.
15482         * modules/unicase/u8-tolower: Likewise.
15483         * modules/unicase/u8-totitle: Likewise.
15484         * modules/unicase/u8-toupper: Likewise.
15485         * modules/unicase/u16-casecmp: Likewise.
15486         * modules/unicase/u16-casecoll: Likewise.
15487         * modules/unicase/u16-casefold: Likewise.
15488         * modules/unicase/u16-casexfrm: Likewise.
15489         * modules/unicase/u16-ct-casefold: Likewise.
15490         * modules/unicase/u16-ct-tolower: Likewise.
15491         * modules/unicase/u16-ct-totitle: Likewise.
15492         * modules/unicase/u16-ct-toupper: Likewise.
15493         * modules/unicase/u16-is-cased: Likewise.
15494         * modules/unicase/u16-is-casefolded: Likewise.
15495         * modules/unicase/u16-is-lowercase: Likewise.
15496         * modules/unicase/u16-is-titlecase: Likewise.
15497         * modules/unicase/u16-is-uppercase: Likewise.
15498         * modules/unicase/u16-prefix-context: Likewise.
15499         * modules/unicase/u16-suffix-context: Likewise.
15500         * modules/unicase/u16-tolower: Likewise.
15501         * modules/unicase/u16-totitle: Likewise.
15502         * modules/unicase/u16-toupper: Likewise.
15503         * modules/unicase/u32-casecmp: Likewise.
15504         * modules/unicase/u32-casecoll: Likewise.
15505         * modules/unicase/u32-casefold: Likewise.
15506         * modules/unicase/u32-casexfrm: Likewise.
15507         * modules/unicase/u32-ct-casefold: Likewise.
15508         * modules/unicase/u32-ct-tolower: Likewise.
15509         * modules/unicase/u32-ct-totitle: Likewise.
15510         * modules/unicase/u32-ct-toupper: Likewise.
15511         * modules/unicase/u32-is-cased: Likewise.
15512         * modules/unicase/u32-is-casefolded: Likewise.
15513         * modules/unicase/u32-is-lowercase: Likewise.
15514         * modules/unicase/u32-is-titlecase: Likewise.
15515         * modules/unicase/u32-is-uppercase: Likewise.
15516         * modules/unicase/u32-prefix-context: Likewise.
15517         * modules/unicase/u32-suffix-context: Likewise.
15518         * modules/unicase/u32-tolower: Likewise.
15519         * modules/unicase/u32-totitle: Likewise.
15520         * modules/unicase/u32-toupper: Likewise.
15521         * modules/unicase/ulc-casecmp: Likewise.
15522         * modules/unicase/ulc-casecoll: Likewise.
15523         * modules/unicase/ulc-casexfrm: Likewise.
15524         * modules/uniconv/u8-conv-from-enc: Likewise.
15525         * modules/uniconv/u8-conv-to-enc: Likewise.
15526         * modules/uniconv/u8-strconv-from-enc: Likewise.
15527         * modules/uniconv/u8-strconv-from-locale: Likewise.
15528         * modules/uniconv/u8-strconv-to-enc: Likewise.
15529         * modules/uniconv/u8-strconv-to-locale: Likewise.
15530         * modules/uniconv/u16-conv-from-enc: Likewise.
15531         * modules/uniconv/u16-conv-to-enc: Likewise.
15532         * modules/uniconv/u16-strconv-from-enc: Likewise.
15533         * modules/uniconv/u16-strconv-from-locale: Likewise.
15534         * modules/uniconv/u16-strconv-to-enc: Likewise.
15535         * modules/uniconv/u16-strconv-to-locale: Likewise.
15536         * modules/uniconv/u32-conv-from-enc: Likewise.
15537         * modules/uniconv/u32-conv-to-enc: Likewise.
15538         * modules/uniconv/u32-strconv-from-enc: Likewise.
15539         * modules/uniconv/u32-strconv-from-locale: Likewise.
15540         * modules/uniconv/u32-strconv-to-enc: Likewise.
15541         * modules/uniconv/u32-strconv-to-locale: Likewise.
15542         * modules/unictype/bidicategory-byname: Likewise.
15543         * modules/unictype/bidicategory-name: Likewise.
15544         * modules/unictype/bidicategory-of: Likewise.
15545         * modules/unictype/bidicategory-test: Likewise.
15546         * modules/unictype/block-list: Likewise.
15547         * modules/unictype/block-test: Likewise.
15548         * modules/unictype/category-C: Likewise.
15549         * modules/unictype/category-Cc: Likewise.
15550         * modules/unictype/category-Cf: Likewise.
15551         * modules/unictype/category-Cn: Likewise.
15552         * modules/unictype/category-Co: Likewise.
15553         * modules/unictype/category-Cs: Likewise.
15554         * modules/unictype/category-L: Likewise.
15555         * modules/unictype/category-Ll: Likewise.
15556         * modules/unictype/category-Lm: Likewise.
15557         * modules/unictype/category-Lo: Likewise.
15558         * modules/unictype/category-Lt: Likewise.
15559         * modules/unictype/category-Lu: Likewise.
15560         * modules/unictype/category-M: Likewise.
15561         * modules/unictype/category-Mc: Likewise.
15562         * modules/unictype/category-Me: Likewise.
15563         * modules/unictype/category-Mn: Likewise.
15564         * modules/unictype/category-N: Likewise.
15565         * modules/unictype/category-Nd: Likewise.
15566         * modules/unictype/category-Nl: Likewise.
15567         * modules/unictype/category-No: Likewise.
15568         * modules/unictype/category-P: Likewise.
15569         * modules/unictype/category-Pc: Likewise.
15570         * modules/unictype/category-Pd: Likewise.
15571         * modules/unictype/category-Pe: Likewise.
15572         * modules/unictype/category-Pf: Likewise.
15573         * modules/unictype/category-Pi: Likewise.
15574         * modules/unictype/category-Po: Likewise.
15575         * modules/unictype/category-Ps: Likewise.
15576         * modules/unictype/category-S: Likewise.
15577         * modules/unictype/category-Sc: Likewise.
15578         * modules/unictype/category-Sk: Likewise.
15579         * modules/unictype/category-Sm: Likewise.
15580         * modules/unictype/category-So: Likewise.
15581         * modules/unictype/category-Z: Likewise.
15582         * modules/unictype/category-Zl: Likewise.
15583         * modules/unictype/category-Zp: Likewise.
15584         * modules/unictype/category-Zs: Likewise.
15585         * modules/unictype/category-and: Likewise.
15586         * modules/unictype/category-and-not: Likewise.
15587         * modules/unictype/category-byname: Likewise.
15588         * modules/unictype/category-name: Likewise.
15589         * modules/unictype/category-none: Likewise.
15590         * modules/unictype/category-of: Likewise.
15591         * modules/unictype/category-or: Likewise.
15592         * modules/unictype/category-test: Likewise.
15593         * modules/unictype/combining-class: Likewise.
15594         * modules/unictype/ctype-alnum: Likewise.
15595         * modules/unictype/ctype-alpha: Likewise.
15596         * modules/unictype/ctype-blank: Likewise.
15597         * modules/unictype/ctype-cntrl: Likewise.
15598         * modules/unictype/ctype-digit: Likewise.
15599         * modules/unictype/ctype-graph: Likewise.
15600         * modules/unictype/ctype-lower: Likewise.
15601         * modules/unictype/ctype-print: Likewise.
15602         * modules/unictype/ctype-punct: Likewise.
15603         * modules/unictype/ctype-space: Likewise.
15604         * modules/unictype/ctype-upper: Likewise.
15605         * modules/unictype/ctype-xdigit: Likewise.
15606         * modules/unictype/decimal-digit: Likewise.
15607         * modules/unictype/digit: Likewise.
15608         * modules/unictype/mirror: Likewise.
15609         * modules/unictype/numeric: Likewise.
15610         * modules/unictype/property-alphabetic: Likewise.
15611         * modules/unictype/property-ascii-hex-digit: Likewise.
15612         * modules/unictype/property-bidi-arabic-digit: Likewise.
15613         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15614         * modules/unictype/property-bidi-block-separator: Likewise.
15615         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15616         * modules/unictype/property-bidi-common-separator: Likewise.
15617         * modules/unictype/property-bidi-control: Likewise.
15618         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15619         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15620         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15621         * modules/unictype/property-bidi-european-digit: Likewise.
15622         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15623         * modules/unictype/property-bidi-left-to-right: Likewise.
15624         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15625         * modules/unictype/property-bidi-other-neutral: Likewise.
15626         * modules/unictype/property-bidi-pdf: Likewise.
15627         * modules/unictype/property-bidi-segment-separator: Likewise.
15628         * modules/unictype/property-bidi-whitespace: Likewise.
15629         * modules/unictype/property-byname: Likewise.
15630         * modules/unictype/property-combining: Likewise.
15631         * modules/unictype/property-composite: Likewise.
15632         * modules/unictype/property-currency-symbol: Likewise.
15633         * modules/unictype/property-dash: Likewise.
15634         * modules/unictype/property-decimal-digit: Likewise.
15635         * modules/unictype/property-default-ignorable-code-point: Likewise.
15636         * modules/unictype/property-deprecated: Likewise.
15637         * modules/unictype/property-diacritic: Likewise.
15638         * modules/unictype/property-extender: Likewise.
15639         * modules/unictype/property-format-control: Likewise.
15640         * modules/unictype/property-grapheme-base: Likewise.
15641         * modules/unictype/property-grapheme-extend: Likewise.
15642         * modules/unictype/property-grapheme-link: Likewise.
15643         * modules/unictype/property-hex-digit: Likewise.
15644         * modules/unictype/property-hyphen: Likewise.
15645         * modules/unictype/property-id-continue: Likewise.
15646         * modules/unictype/property-id-start: Likewise.
15647         * modules/unictype/property-ideographic: Likewise.
15648         * modules/unictype/property-ids-binary-operator: Likewise.
15649         * modules/unictype/property-ids-trinary-operator: Likewise.
15650         * modules/unictype/property-ignorable-control: Likewise.
15651         * modules/unictype/property-iso-control: Likewise.
15652         * modules/unictype/property-join-control: Likewise.
15653         * modules/unictype/property-left-of-pair: Likewise.
15654         * modules/unictype/property-line-separator: Likewise.
15655         * modules/unictype/property-logical-order-exception: Likewise.
15656         * modules/unictype/property-lowercase: Likewise.
15657         * modules/unictype/property-math: Likewise.
15658         * modules/unictype/property-non-break: Likewise.
15659         * modules/unictype/property-not-a-character: Likewise.
15660         * modules/unictype/property-numeric: Likewise.
15661         * modules/unictype/property-other-alphabetic: Likewise.
15662         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15663         * modules/unictype/property-other-grapheme-extend: Likewise.
15664         * modules/unictype/property-other-id-continue: Likewise.
15665         * modules/unictype/property-other-id-start: Likewise.
15666         * modules/unictype/property-other-lowercase: Likewise.
15667         * modules/unictype/property-other-math: Likewise.
15668         * modules/unictype/property-other-uppercase: Likewise.
15669         * modules/unictype/property-paired-punctuation: Likewise.
15670         * modules/unictype/property-paragraph-separator: Likewise.
15671         * modules/unictype/property-pattern-syntax: Likewise.
15672         * modules/unictype/property-pattern-white-space: Likewise.
15673         * modules/unictype/property-private-use: Likewise.
15674         * modules/unictype/property-punctuation: Likewise.
15675         * modules/unictype/property-quotation-mark: Likewise.
15676         * modules/unictype/property-radical: Likewise.
15677         * modules/unictype/property-sentence-terminal: Likewise.
15678         * modules/unictype/property-soft-dotted: Likewise.
15679         * modules/unictype/property-space: Likewise.
15680         * modules/unictype/property-terminal-punctuation: Likewise.
15681         * modules/unictype/property-test: Likewise.
15682         * modules/unictype/property-titlecase: Likewise.
15683         * modules/unictype/property-unassigned-code-value: Likewise.
15684         * modules/unictype/property-unified-ideograph: Likewise.
15685         * modules/unictype/property-uppercase: Likewise.
15686         * modules/unictype/property-variation-selector: Likewise.
15687         * modules/unictype/property-white-space: Likewise.
15688         * modules/unictype/property-xid-continue: Likewise.
15689         * modules/unictype/property-xid-start: Likewise.
15690         * modules/unictype/property-zero-width: Likewise.
15691         * modules/unictype/scripts: Likewise.
15692         * modules/unictype/syntax-c-ident: Likewise.
15693         * modules/unictype/syntax-c-whitespace: Likewise.
15694         * modules/unictype/syntax-java-ident: Likewise.
15695         * modules/unictype/syntax-java-whitespace: Likewise.
15696         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15697         * modules/unilbrk/u8-width-linebreaks: Likewise.
15698         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15699         * modules/unilbrk/u16-width-linebreaks: Likewise.
15700         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15701         * modules/unilbrk/u32-width-linebreaks: Likewise.
15702         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15703         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15704         * modules/uniname/uniname: Likewise.
15705         * modules/uninorm/canonical-decomposition: Likewise.
15706         * modules/uninorm/composition: Likewise.
15707         * modules/uninorm/decomposing-form: Likewise.
15708         * modules/uninorm/decomposition: Likewise.
15709         * modules/uninorm/filter: Likewise.
15710         * modules/uninorm/nfc: Likewise.
15711         * modules/uninorm/nfd: Likewise.
15712         * modules/uninorm/nfkc: Likewise.
15713         * modules/uninorm/nfkd: Likewise.
15714         * modules/uninorm/u8-normalize: Likewise.
15715         * modules/uninorm/u8-normcmp: Likewise.
15716         * modules/uninorm/u8-normcoll: Likewise.
15717         * modules/uninorm/u8-normxfrm: Likewise.
15718         * modules/uninorm/u16-normalize: Likewise.
15719         * modules/uninorm/u16-normcmp: Likewise.
15720         * modules/uninorm/u16-normcoll: Likewise.
15721         * modules/uninorm/u16-normxfrm: Likewise.
15722         * modules/uninorm/u32-normalize: Likewise.
15723         * modules/uninorm/u32-normcmp: Likewise.
15724         * modules/uninorm/u32-normcoll: Likewise.
15725         * modules/uninorm/u32-normxfrm: Likewise.
15726         * modules/unistdio/u8-asnprintf: Likewise.
15727         * modules/unistdio/u8-asprintf: Likewise.
15728         * modules/unistdio/u8-snprintf: Likewise.
15729         * modules/unistdio/u8-sprintf: Likewise.
15730         * modules/unistdio/u8-u8-asnprintf: Likewise.
15731         * modules/unistdio/u8-u8-asprintf: Likewise.
15732         * modules/unistdio/u8-u8-snprintf: Likewise.
15733         * modules/unistdio/u8-u8-sprintf: Likewise.
15734         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15735         * modules/unistdio/u8-u8-vasprintf: Likewise.
15736         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15737         * modules/unistdio/u8-u8-vsprintf: Likewise.
15738         * modules/unistdio/u8-vasnprintf: Likewise.
15739         * modules/unistdio/u8-vasprintf: Likewise.
15740         * modules/unistdio/u8-vsnprintf: Likewise.
15741         * modules/unistdio/u8-vsprintf: Likewise.
15742         * modules/unistdio/u16-asnprintf: Likewise.
15743         * modules/unistdio/u16-asprintf: Likewise.
15744         * modules/unistdio/u16-snprintf: Likewise.
15745         * modules/unistdio/u16-sprintf: Likewise.
15746         * modules/unistdio/u16-u16-asnprintf: Likewise.
15747         * modules/unistdio/u16-u16-asprintf: Likewise.
15748         * modules/unistdio/u16-u16-snprintf: Likewise.
15749         * modules/unistdio/u16-u16-sprintf: Likewise.
15750         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15751         * modules/unistdio/u16-u16-vasprintf: Likewise.
15752         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15753         * modules/unistdio/u16-u16-vsprintf: Likewise.
15754         * modules/unistdio/u16-vasnprintf: Likewise.
15755         * modules/unistdio/u16-vasprintf: Likewise.
15756         * modules/unistdio/u16-vsnprintf: Likewise.
15757         * modules/unistdio/u16-vsprintf: Likewise.
15758         * modules/unistdio/u32-asnprintf: Likewise.
15759         * modules/unistdio/u32-asprintf: Likewise.
15760         * modules/unistdio/u32-snprintf: Likewise.
15761         * modules/unistdio/u32-sprintf: Likewise.
15762         * modules/unistdio/u32-u32-asnprintf: Likewise.
15763         * modules/unistdio/u32-u32-asprintf: Likewise.
15764         * modules/unistdio/u32-u32-snprintf: Likewise.
15765         * modules/unistdio/u32-u32-sprintf: Likewise.
15766         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15767         * modules/unistdio/u32-u32-vasprintf: Likewise.
15768         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15769         * modules/unistdio/u32-u32-vsprintf: Likewise.
15770         * modules/unistdio/u32-vasnprintf: Likewise.
15771         * modules/unistdio/u32-vasprintf: Likewise.
15772         * modules/unistdio/u32-vsnprintf: Likewise.
15773         * modules/unistdio/u32-vsprintf: Likewise.
15774         * modules/unistdio/ulc-asnprintf: Likewise.
15775         * modules/unistdio/ulc-asprintf: Likewise.
15776         * modules/unistdio/ulc-fprintf: Likewise.
15777         * modules/unistdio/ulc-snprintf: Likewise.
15778         * modules/unistdio/ulc-sprintf: Likewise.
15779         * modules/unistdio/ulc-vasnprintf: Likewise.
15780         * modules/unistdio/ulc-vasprintf: Likewise.
15781         * modules/unistdio/ulc-vfprintf: Likewise.
15782         * modules/unistdio/ulc-vsnprintf: Likewise.
15783         * modules/unistdio/ulc-vsprintf: Likewise.
15784         * modules/unistr/u8-check: Likewise.
15785         * modules/unistr/u8-chr: Likewise.
15786         * modules/unistr/u8-cmp: Likewise.
15787         * modules/unistr/u8-cmp2: Likewise.
15788         * modules/unistr/u8-cpy: Likewise.
15789         * modules/unistr/u8-cpy-alloc: Likewise.
15790         * modules/unistr/u8-endswith: Likewise.
15791         * modules/unistr/u8-mblen: Likewise.
15792         * modules/unistr/u8-mbsnlen: Likewise.
15793         * modules/unistr/u8-mbtouc: Likewise.
15794         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15795         * modules/unistr/u8-mbtoucr: Likewise.
15796         * modules/unistr/u8-move: Likewise.
15797         * modules/unistr/u8-next: Likewise.
15798         * modules/unistr/u8-prev: Likewise.
15799         * modules/unistr/u8-set: Likewise.
15800         * modules/unistr/u8-startswith: Likewise.
15801         * modules/unistr/u8-stpcpy: Likewise.
15802         * modules/unistr/u8-stpncpy: Likewise.
15803         * modules/unistr/u8-strcat: Likewise.
15804         * modules/unistr/u8-strchr: Likewise.
15805         * modules/unistr/u8-strcmp: Likewise.
15806         * modules/unistr/u8-strcoll: Likewise.
15807         * modules/unistr/u8-strcpy: Likewise.
15808         * modules/unistr/u8-strcspn: Likewise.
15809         * modules/unistr/u8-strdup: Likewise.
15810         * modules/unistr/u8-strlen: Likewise.
15811         * modules/unistr/u8-strmblen: Likewise.
15812         * modules/unistr/u8-strmbtouc: Likewise.
15813         * modules/unistr/u8-strncat: Likewise.
15814         * modules/unistr/u8-strncmp: Likewise.
15815         * modules/unistr/u8-strncpy: Likewise.
15816         * modules/unistr/u8-strnlen: Likewise.
15817         * modules/unistr/u8-strpbrk: Likewise.
15818         * modules/unistr/u8-strrchr: Likewise.
15819         * modules/unistr/u8-strspn: Likewise.
15820         * modules/unistr/u8-strstr: Likewise.
15821         * modules/unistr/u8-strtok: Likewise.
15822         * modules/unistr/u8-to-u16: Likewise.
15823         * modules/unistr/u8-to-u32: Likewise.
15824         * modules/unistr/u8-uctomb: Likewise.
15825         * modules/unistr/u16-check: Likewise.
15826         * modules/unistr/u16-chr: Likewise.
15827         * modules/unistr/u16-cmp: Likewise.
15828         * modules/unistr/u16-cmp2: Likewise.
15829         * modules/unistr/u16-cpy: Likewise.
15830         * modules/unistr/u16-cpy-alloc: Likewise.
15831         * modules/unistr/u16-endswith: Likewise.
15832         * modules/unistr/u16-mblen: Likewise.
15833         * modules/unistr/u16-mbsnlen: Likewise.
15834         * modules/unistr/u16-mbtouc: Likewise.
15835         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15836         * modules/unistr/u16-mbtoucr: Likewise.
15837         * modules/unistr/u16-move: Likewise.
15838         * modules/unistr/u16-next: Likewise.
15839         * modules/unistr/u16-prev: Likewise.
15840         * modules/unistr/u16-set: Likewise.
15841         * modules/unistr/u16-startswith: Likewise.
15842         * modules/unistr/u16-stpcpy: Likewise.
15843         * modules/unistr/u16-stpncpy: Likewise.
15844         * modules/unistr/u16-strcat: Likewise.
15845         * modules/unistr/u16-strchr: Likewise.
15846         * modules/unistr/u16-strcmp: Likewise.
15847         * modules/unistr/u16-strcoll: Likewise.
15848         * modules/unistr/u16-strcpy: Likewise.
15849         * modules/unistr/u16-strcspn: Likewise.
15850         * modules/unistr/u16-strdup: Likewise.
15851         * modules/unistr/u16-strlen: Likewise.
15852         * modules/unistr/u16-strmblen: Likewise.
15853         * modules/unistr/u16-strmbtouc: Likewise.
15854         * modules/unistr/u16-strncat: Likewise.
15855         * modules/unistr/u16-strncmp: Likewise.
15856         * modules/unistr/u16-strncpy: Likewise.
15857         * modules/unistr/u16-strnlen: Likewise.
15858         * modules/unistr/u16-strpbrk: Likewise.
15859         * modules/unistr/u16-strrchr: Likewise.
15860         * modules/unistr/u16-strspn: Likewise.
15861         * modules/unistr/u16-strstr: Likewise.
15862         * modules/unistr/u16-strtok: Likewise.
15863         * modules/unistr/u16-to-u32: Likewise.
15864         * modules/unistr/u16-to-u8: Likewise.
15865         * modules/unistr/u16-uctomb: Likewise.
15866         * modules/unistr/u32-check: Likewise.
15867         * modules/unistr/u32-chr: Likewise.
15868         * modules/unistr/u32-cmp: Likewise.
15869         * modules/unistr/u32-cmp2: Likewise.
15870         * modules/unistr/u32-cpy: Likewise.
15871         * modules/unistr/u32-cpy-alloc: Likewise.
15872         * modules/unistr/u32-endswith: Likewise.
15873         * modules/unistr/u32-mblen: Likewise.
15874         * modules/unistr/u32-mbsnlen: Likewise.
15875         * modules/unistr/u32-mbtouc: Likewise.
15876         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15877         * modules/unistr/u32-mbtoucr: Likewise.
15878         * modules/unistr/u32-move: Likewise.
15879         * modules/unistr/u32-next: Likewise.
15880         * modules/unistr/u32-prev: Likewise.
15881         * modules/unistr/u32-set: Likewise.
15882         * modules/unistr/u32-startswith: Likewise.
15883         * modules/unistr/u32-stpcpy: Likewise.
15884         * modules/unistr/u32-stpncpy: Likewise.
15885         * modules/unistr/u32-strcat: Likewise.
15886         * modules/unistr/u32-strchr: Likewise.
15887         * modules/unistr/u32-strcmp: Likewise.
15888         * modules/unistr/u32-strcoll: Likewise.
15889         * modules/unistr/u32-strcpy: Likewise.
15890         * modules/unistr/u32-strcspn: Likewise.
15891         * modules/unistr/u32-strdup: Likewise.
15892         * modules/unistr/u32-strlen: Likewise.
15893         * modules/unistr/u32-strmblen: Likewise.
15894         * modules/unistr/u32-strmbtouc: Likewise.
15895         * modules/unistr/u32-strncat: Likewise.
15896         * modules/unistr/u32-strncmp: Likewise.
15897         * modules/unistr/u32-strncpy: Likewise.
15898         * modules/unistr/u32-strnlen: Likewise.
15899         * modules/unistr/u32-strpbrk: Likewise.
15900         * modules/unistr/u32-strrchr: Likewise.
15901         * modules/unistr/u32-strspn: Likewise.
15902         * modules/unistr/u32-strstr: Likewise.
15903         * modules/unistr/u32-strtok: Likewise.
15904         * modules/unistr/u32-to-u16: Likewise.
15905         * modules/unistr/u32-to-u8: Likewise.
15906         * modules/unistr/u32-uctomb: Likewise.
15907         * modules/uniwbrk/u8-wordbreaks: Likewise.
15908         * modules/uniwbrk/u16-wordbreaks: Likewise.
15909         * modules/uniwbrk/u32-wordbreaks: Likewise.
15910         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15911         * modules/uniwbrk/wordbreak-property: Likewise.
15912         * modules/uniwidth/u8-strwidth: Likewise.
15913         * modules/uniwidth/u8-width: Likewise.
15914         * modules/uniwidth/u16-strwidth: Likewise.
15915         * modules/uniwidth/u16-width: Likewise.
15916         * modules/uniwidth/u32-strwidth: Likewise.
15917         * modules/uniwidth/u32-width: Likewise.
15918         * modules/uniwidth/width: Likewise.
15919         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15920         with $(LIBUNISTRING).
15921         * modules/unicase/ignorable-tests: Likewise.
15922         * modules/unicase/locale-language-tests: Likewise.
15923         * modules/unicase/tolower-tests: Likewise.
15924         * modules/unicase/totitle-tests: Likewise.
15925         * modules/unicase/toupper-tests: Likewise.
15926         * modules/unicase/u8-casecmp-tests: Likewise.
15927         * modules/unicase/u8-casecoll-tests: Likewise.
15928         * modules/unicase/u8-casefold-tests: Likewise.
15929         * modules/unicase/u8-is-cased-tests: Likewise.
15930         * modules/unicase/u8-is-casefolded-tests: Likewise.
15931         * modules/unicase/u8-is-lowercase-tests: Likewise.
15932         * modules/unicase/u8-is-titlecase-tests: Likewise.
15933         * modules/unicase/u8-is-uppercase-tests: Likewise.
15934         * modules/unicase/u8-tolower-tests: Likewise.
15935         * modules/unicase/u8-totitle-tests: Likewise.
15936         * modules/unicase/u8-toupper-tests: Likewise.
15937         * modules/unicase/u16-casecmp-tests: Likewise.
15938         * modules/unicase/u16-casecoll-tests: Likewise.
15939         * modules/unicase/u16-casefold-tests: Likewise.
15940         * modules/unicase/u16-is-cased-tests: Likewise.
15941         * modules/unicase/u16-is-casefolded-tests: Likewise.
15942         * modules/unicase/u16-is-lowercase-tests: Likewise.
15943         * modules/unicase/u16-is-titlecase-tests: Likewise.
15944         * modules/unicase/u16-is-uppercase-tests: Likewise.
15945         * modules/unicase/u16-tolower-tests: Likewise.
15946         * modules/unicase/u16-totitle-tests: Likewise.
15947         * modules/unicase/u16-toupper-tests: Likewise.
15948         * modules/unicase/u32-casecmp-tests: Likewise.
15949         * modules/unicase/u32-casecoll-tests: Likewise.
15950         * modules/unicase/u32-casefold-tests: Likewise.
15951         * modules/unicase/u32-is-cased-tests: Likewise.
15952         * modules/unicase/u32-is-casefolded-tests: Likewise.
15953         * modules/unicase/u32-is-lowercase-tests: Likewise.
15954         * modules/unicase/u32-is-titlecase-tests: Likewise.
15955         * modules/unicase/u32-is-uppercase-tests: Likewise.
15956         * modules/unicase/u32-tolower-tests: Likewise.
15957         * modules/unicase/u32-totitle-tests: Likewise.
15958         * modules/unicase/u32-toupper-tests: Likewise.
15959         * modules/unicase/ulc-casecmp-tests: Likewise.
15960         * modules/unicase/ulc-casecoll-tests: Likewise.
15961         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15962         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15963         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15964         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15965         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15966         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15967         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15968         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15969         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15970         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15971         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15972         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15973         * modules/unictype/bidicategory-byname-tests: Likewise.
15974         * modules/unictype/bidicategory-name-tests: Likewise.
15975         * modules/unictype/bidicategory-of-tests: Likewise.
15976         * modules/unictype/bidicategory-test-tests: Likewise.
15977         * modules/unictype/block-list-tests: Likewise.
15978         * modules/unictype/block-of-tests: Likewise.
15979         * modules/unictype/block-test-tests: Likewise.
15980         * modules/unictype/category-C-tests: Likewise.
15981         * modules/unictype/category-Cc-tests: Likewise.
15982         * modules/unictype/category-Cf-tests: Likewise.
15983         * modules/unictype/category-Cn-tests: Likewise.
15984         * modules/unictype/category-Co-tests: Likewise.
15985         * modules/unictype/category-Cs-tests: Likewise.
15986         * modules/unictype/category-L-tests: Likewise.
15987         * modules/unictype/category-Ll-tests: Likewise.
15988         * modules/unictype/category-Lm-tests: Likewise.
15989         * modules/unictype/category-Lo-tests: Likewise.
15990         * modules/unictype/category-Lt-tests: Likewise.
15991         * modules/unictype/category-Lu-tests: Likewise.
15992         * modules/unictype/category-M-tests: Likewise.
15993         * modules/unictype/category-Mc-tests: Likewise.
15994         * modules/unictype/category-Me-tests: Likewise.
15995         * modules/unictype/category-Mn-tests: Likewise.
15996         * modules/unictype/category-N-tests: Likewise.
15997         * modules/unictype/category-Nd-tests: Likewise.
15998         * modules/unictype/category-Nl-tests: Likewise.
15999         * modules/unictype/category-No-tests: Likewise.
16000         * modules/unictype/category-P-tests: Likewise.
16001         * modules/unictype/category-Pc-tests: Likewise.
16002         * modules/unictype/category-Pd-tests: Likewise.
16003         * modules/unictype/category-Pe-tests: Likewise.
16004         * modules/unictype/category-Pf-tests: Likewise.
16005         * modules/unictype/category-Pi-tests: Likewise.
16006         * modules/unictype/category-Po-tests: Likewise.
16007         * modules/unictype/category-Ps-tests: Likewise.
16008         * modules/unictype/category-S-tests: Likewise.
16009         * modules/unictype/category-Sc-tests: Likewise.
16010         * modules/unictype/category-Sk-tests: Likewise.
16011         * modules/unictype/category-Sm-tests: Likewise.
16012         * modules/unictype/category-So-tests: Likewise.
16013         * modules/unictype/category-Z-tests: Likewise.
16014         * modules/unictype/category-Zl-tests: Likewise.
16015         * modules/unictype/category-Zp-tests: Likewise.
16016         * modules/unictype/category-Zs-tests: Likewise.
16017         * modules/unictype/category-and-not-tests: Likewise.
16018         * modules/unictype/category-and-tests: Likewise.
16019         * modules/unictype/category-byname-tests: Likewise.
16020         * modules/unictype/category-name-tests: Likewise.
16021         * modules/unictype/category-none-tests: Likewise.
16022         * modules/unictype/category-of-tests: Likewise.
16023         * modules/unictype/category-or-tests: Likewise.
16024         * modules/unictype/category-test-withtable-tests: Likewise.
16025         * modules/unictype/combining-class-tests: Likewise.
16026         * modules/unictype/ctype-alnum-tests: Likewise.
16027         * modules/unictype/ctype-alpha-tests: Likewise.
16028         * modules/unictype/ctype-blank-tests: Likewise.
16029         * modules/unictype/ctype-cntrl-tests: Likewise.
16030         * modules/unictype/ctype-digit-tests: Likewise.
16031         * modules/unictype/ctype-graph-tests: Likewise.
16032         * modules/unictype/ctype-lower-tests: Likewise.
16033         * modules/unictype/ctype-print-tests: Likewise.
16034         * modules/unictype/ctype-punct-tests: Likewise.
16035         * modules/unictype/ctype-space-tests: Likewise.
16036         * modules/unictype/ctype-upper-tests: Likewise.
16037         * modules/unictype/ctype-xdigit-tests: Likewise.
16038         * modules/unictype/decimal-digit-tests: Likewise.
16039         * modules/unictype/digit-tests: Likewise.
16040         * modules/unictype/mirror-tests: Likewise.
16041         * modules/unictype/numeric-tests: Likewise.
16042         * modules/unictype/property-alphabetic-tests: Likewise.
16043         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16044         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16045         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16046         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16047         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16048         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16049         * modules/unictype/property-bidi-control-tests: Likewise.
16050         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16051         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16052         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16053         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16054         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16055         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16056         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16057         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16058         * modules/unictype/property-bidi-pdf-tests: Likewise.
16059         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16060         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16061         * modules/unictype/property-byname-tests: Likewise.
16062         * modules/unictype/property-combining-tests: Likewise.
16063         * modules/unictype/property-composite-tests: Likewise.
16064         * modules/unictype/property-currency-symbol-tests: Likewise.
16065         * modules/unictype/property-dash-tests: Likewise.
16066         * modules/unictype/property-decimal-digit-tests: Likewise.
16067         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16068         * modules/unictype/property-deprecated-tests: Likewise.
16069         * modules/unictype/property-diacritic-tests: Likewise.
16070         * modules/unictype/property-extender-tests: Likewise.
16071         * modules/unictype/property-format-control-tests: Likewise.
16072         * modules/unictype/property-grapheme-base-tests: Likewise.
16073         * modules/unictype/property-grapheme-extend-tests: Likewise.
16074         * modules/unictype/property-grapheme-link-tests: Likewise.
16075         * modules/unictype/property-hex-digit-tests: Likewise.
16076         * modules/unictype/property-hyphen-tests: Likewise.
16077         * modules/unictype/property-id-continue-tests: Likewise.
16078         * modules/unictype/property-id-start-tests: Likewise.
16079         * modules/unictype/property-ideographic-tests: Likewise.
16080         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16081         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16082         * modules/unictype/property-ignorable-control-tests: Likewise.
16083         * modules/unictype/property-iso-control-tests: Likewise.
16084         * modules/unictype/property-join-control-tests: Likewise.
16085         * modules/unictype/property-left-of-pair-tests: Likewise.
16086         * modules/unictype/property-line-separator-tests: Likewise.
16087         * modules/unictype/property-logical-order-exception-tests: Likewise.
16088         * modules/unictype/property-lowercase-tests: Likewise.
16089         * modules/unictype/property-math-tests: Likewise.
16090         * modules/unictype/property-non-break-tests: Likewise.
16091         * modules/unictype/property-not-a-character-tests: Likewise.
16092         * modules/unictype/property-numeric-tests: Likewise.
16093         * modules/unictype/property-other-alphabetic-tests: Likewise.
16094         * modules/unictype/property-other-default-ignorable-code-point-tests:
16095         Likewise.
16096         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16097         * modules/unictype/property-other-id-continue-tests: Likewise.
16098         * modules/unictype/property-other-id-start-tests: Likewise.
16099         * modules/unictype/property-other-lowercase-tests: Likewise.
16100         * modules/unictype/property-other-math-tests: Likewise.
16101         * modules/unictype/property-other-uppercase-tests: Likewise.
16102         * modules/unictype/property-paired-punctuation-tests: Likewise.
16103         * modules/unictype/property-paragraph-separator-tests: Likewise.
16104         * modules/unictype/property-pattern-syntax-tests: Likewise.
16105         * modules/unictype/property-pattern-white-space-tests: Likewise.
16106         * modules/unictype/property-private-use-tests: Likewise.
16107         * modules/unictype/property-punctuation-tests: Likewise.
16108         * modules/unictype/property-quotation-mark-tests: Likewise.
16109         * modules/unictype/property-radical-tests: Likewise.
16110         * modules/unictype/property-sentence-terminal-tests: Likewise.
16111         * modules/unictype/property-soft-dotted-tests: Likewise.
16112         * modules/unictype/property-space-tests: Likewise.
16113         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16114         * modules/unictype/property-test-tests: Likewise.
16115         * modules/unictype/property-titlecase-tests: Likewise.
16116         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16117         * modules/unictype/property-unified-ideograph-tests: Likewise.
16118         * modules/unictype/property-uppercase-tests: Likewise.
16119         * modules/unictype/property-variation-selector-tests: Likewise.
16120         * modules/unictype/property-white-space-tests: Likewise.
16121         * modules/unictype/property-xid-continue-tests: Likewise.
16122         * modules/unictype/property-xid-start-tests: Likewise.
16123         * modules/unictype/property-zero-width-tests: Likewise.
16124         * modules/unictype/scripts-tests: Likewise.
16125         * modules/unictype/syntax-c-ident-tests: Likewise.
16126         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16127         * modules/unictype/syntax-java-ident-tests: Likewise.
16128         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16129         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16130         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16131         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16132         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16133         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16134         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16135         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16136         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16137         * modules/uniname/uniname-tests: Likewise.
16138         * modules/uninorm/canonical-decomposition-tests: Likewise.
16139         * modules/uninorm/compat-decomposition-tests: Likewise.
16140         * modules/uninorm/composition-tests: Likewise.
16141         * modules/uninorm/decomposing-form-tests: Likewise.
16142         * modules/uninorm/decomposition-tests: Likewise.
16143         * modules/uninorm/filter-tests: Likewise.
16144         * modules/uninorm/nfc-tests: Likewise.
16145         * modules/uninorm/nfd-tests: Likewise.
16146         * modules/uninorm/nfkc-tests: Likewise.
16147         * modules/uninorm/nfkd-tests: Likewise.
16148         * modules/uninorm/u8-normcmp-tests: Likewise.
16149         * modules/uninorm/u8-normcoll-tests: Likewise.
16150         * modules/uninorm/u16-normcmp-tests: Likewise.
16151         * modules/uninorm/u16-normcoll-tests: Likewise.
16152         * modules/uninorm/u32-normcmp-tests: Likewise.
16153         * modules/uninorm/u32-normcoll-tests: Likewise.
16154         * modules/unistdio/u8-asnprintf-tests: Likewise.
16155         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16156         * modules/unistdio/u8-vasprintf-tests: Likewise.
16157         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16158         * modules/unistdio/u8-vsprintf-tests: Likewise.
16159         * modules/unistdio/u16-asnprintf-tests: Likewise.
16160         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16161         * modules/unistdio/u16-vasprintf-tests: Likewise.
16162         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16163         * modules/unistdio/u16-vsprintf-tests: Likewise.
16164         * modules/unistdio/u32-asnprintf-tests: Likewise.
16165         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16166         * modules/unistdio/u32-vasprintf-tests: Likewise.
16167         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16168         * modules/unistdio/u32-vsprintf-tests: Likewise.
16169         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16170         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16171         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16172         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16173         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16174         * modules/unistr/u8-check-tests: Likewise.
16175         * modules/unistr/u8-chr-tests: Likewise.
16176         * modules/unistr/u8-cmp-tests: Likewise.
16177         * modules/unistr/u8-cmp2-tests: Likewise.
16178         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16179         * modules/unistr/u8-cpy-tests: Likewise.
16180         * modules/unistr/u8-mblen-tests: Likewise.
16181         * modules/unistr/u8-mbsnlen-tests: Likewise.
16182         * modules/unistr/u8-mbtouc-tests: Likewise.
16183         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16184         * modules/unistr/u8-mbtoucr-tests: Likewise.
16185         * modules/unistr/u8-move-tests: Likewise.
16186         * modules/unistr/u8-next-tests: Likewise.
16187         * modules/unistr/u8-prev-tests: Likewise.
16188         * modules/unistr/u8-set-tests: Likewise.
16189         * modules/unistr/u8-stpcpy-tests: Likewise.
16190         * modules/unistr/u8-stpncpy-tests: Likewise.
16191         * modules/unistr/u8-strcat-tests: Likewise.
16192         * modules/unistr/u8-strcmp-tests: Likewise.
16193         * modules/unistr/u8-strcoll-tests: Likewise.
16194         * modules/unistr/u8-strcpy-tests: Likewise.
16195         * modules/unistr/u8-strdup-tests: Likewise.
16196         * modules/unistr/u8-strlen-tests: Likewise.
16197         * modules/unistr/u8-strmblen-tests: Likewise.
16198         * modules/unistr/u8-strmbtouc-tests: Likewise.
16199         * modules/unistr/u8-strncat-tests: Likewise.
16200         * modules/unistr/u8-strncmp-tests: Likewise.
16201         * modules/unistr/u8-strncpy-tests: Likewise.
16202         * modules/unistr/u8-strnlen-tests: Likewise.
16203         * modules/unistr/u8-to-u16-tests: Likewise.
16204         * modules/unistr/u8-to-u32-tests: Likewise.
16205         * modules/unistr/u8-uctomb-tests: Likewise.
16206         * modules/unistr/u16-check-tests: Likewise.
16207         * modules/unistr/u16-chr-tests: Likewise.
16208         * modules/unistr/u16-cmp-tests: Likewise.
16209         * modules/unistr/u16-cmp2-tests: Likewise.
16210         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16211         * modules/unistr/u16-cpy-tests: Likewise.
16212         * modules/unistr/u16-mblen-tests: Likewise.
16213         * modules/unistr/u16-mbsnlen-tests: Likewise.
16214         * modules/unistr/u16-mbtouc-tests: Likewise.
16215         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16216         * modules/unistr/u16-mbtoucr-tests: Likewise.
16217         * modules/unistr/u16-move-tests: Likewise.
16218         * modules/unistr/u16-next-tests: Likewise.
16219         * modules/unistr/u16-prev-tests: Likewise.
16220         * modules/unistr/u16-set-tests: Likewise.
16221         * modules/unistr/u16-stpcpy-tests: Likewise.
16222         * modules/unistr/u16-stpncpy-tests: Likewise.
16223         * modules/unistr/u16-strcat-tests: Likewise.
16224         * modules/unistr/u16-strcmp-tests: Likewise.
16225         * modules/unistr/u16-strcoll-tests: Likewise.
16226         * modules/unistr/u16-strcpy-tests: Likewise.
16227         * modules/unistr/u16-strdup-tests: Likewise.
16228         * modules/unistr/u16-strlen-tests: Likewise.
16229         * modules/unistr/u16-strmblen-tests: Likewise.
16230         * modules/unistr/u16-strmbtouc-tests: Likewise.
16231         * modules/unistr/u16-strncat-tests: Likewise.
16232         * modules/unistr/u16-strncmp-tests: Likewise.
16233         * modules/unistr/u16-strncpy-tests: Likewise.
16234         * modules/unistr/u16-strnlen-tests: Likewise.
16235         * modules/unistr/u16-to-u32-tests: Likewise.
16236         * modules/unistr/u16-to-u8-tests: Likewise.
16237         * modules/unistr/u16-uctomb-tests: Likewise.
16238         * modules/unistr/u32-check-tests: Likewise.
16239         * modules/unistr/u32-chr-tests: Likewise.
16240         * modules/unistr/u32-cmp-tests: Likewise.
16241         * modules/unistr/u32-cmp2-tests: Likewise.
16242         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16243         * modules/unistr/u32-cpy-tests: Likewise.
16244         * modules/unistr/u32-mblen-tests: Likewise.
16245         * modules/unistr/u32-mbsnlen-tests: Likewise.
16246         * modules/unistr/u32-mbtouc-tests: Likewise.
16247         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16248         * modules/unistr/u32-mbtoucr-tests: Likewise.
16249         * modules/unistr/u32-move-tests: Likewise.
16250         * modules/unistr/u32-next-tests: Likewise.
16251         * modules/unistr/u32-prev-tests: Likewise.
16252         * modules/unistr/u32-set-tests: Likewise.
16253         * modules/unistr/u32-stpcpy-tests: Likewise.
16254         * modules/unistr/u32-stpncpy-tests: Likewise.
16255         * modules/unistr/u32-strcat-tests: Likewise.
16256         * modules/unistr/u32-strcmp-tests: Likewise.
16257         * modules/unistr/u32-strcoll-tests: Likewise.
16258         * modules/unistr/u32-strcpy-tests: Likewise.
16259         * modules/unistr/u32-strdup-tests: Likewise.
16260         * modules/unistr/u32-strlen-tests: Likewise.
16261         * modules/unistr/u32-strmblen-tests: Likewise.
16262         * modules/unistr/u32-strmbtouc-tests: Likewise.
16263         * modules/unistr/u32-strncat-tests: Likewise.
16264         * modules/unistr/u32-strncmp-tests: Likewise.
16265         * modules/unistr/u32-strncpy-tests: Likewise.
16266         * modules/unistr/u32-strnlen-tests: Likewise.
16267         * modules/unistr/u32-to-u16-tests: Likewise.
16268         * modules/unistr/u32-to-u8-tests: Likewise.
16269         * modules/unistr/u32-uctomb-tests: Likewise.
16270         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16271         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16272         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16273         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16274         * modules/uniwidth/u8-strwidth-tests: Likewise.
16275         * modules/uniwidth/u8-width-tests: Likewise.
16276         * modules/uniwidth/u16-strwidth-tests: Likewise.
16277         * modules/uniwidth/u16-width-tests: Likewise.
16278         * modules/uniwidth/u32-strwidth-tests: Likewise.
16279         * modules/uniwidth/u32-width-tests: Likewise.
16280         * modules/uniwidth/width-tests: Likewise.
16281
16282 2010-05-18  Richard Jones  <rjones@redhat.com>
16283
16284         doc: users.txt: list hivex
16285         * users.txt: Add hivex.
16286
16287 2010-05-18  Richard Jones  <rjones@redhat.com>
16288
16289         doc: users.txt: list febootstrap
16290         * users.txt: Add febootstrap.
16291
16292 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16293
16294         bootstrap: fix an error when gnulib is not used as a git submodule
16295         * build-aux/bootstrap (gnulib_path): If its length is zero then
16296         assign "gnulib" to it.
16297         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16298
16299 2010-05-16  Bruno Haible  <bruno@clisp.org>
16300
16301         Avoid autoconf warnings about AM_ICONV.
16302         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16303         2.64.
16304
16305 2010-05-16  Bruno Haible  <bruno@clisp.org>
16306
16307         absolute-header: Make the macro usable in more situations.
16308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16309         from gl_ABSOLUTE_HEADER.
16310         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16311
16312 2010-05-16  James Youngman  <jay@gnu.org>
16313
16314         doc: update users.txt
16315         * users.txt: Add CSSC.
16316
16317 2010-05-16  Jim Meyering  <meyering@redhat.com>
16318
16319         init.sh: fix an error in the previous change; add more comments
16320         * tests/init.sh: Compare exit code in loop against 9, not 2.
16321         Patch by Bruno Haible.
16322         Make the two tests more similar by adding an empty "then" clause.
16323         Add comments.
16324
16325         init.sh: avoid unnecessary shell re-exec
16326         * tests/init.sh: Improve the re-exec-required check to first test the
16327         current shell.  If it passes the test, do not search for a shell that
16328         does pass, and do not re-exec.  This test is particularly contorted to
16329         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16330         of $(...) evokes a syntax error and causes immediate shell exit with
16331         status 2.  Bruno Haible reported that the re-exec made it impossible
16332         to single-step through any init.sh-using script.
16333
16334 2010-05-16  Bruno Haible  <bruno@clisp.org>
16335
16336         Fix collision between gnulib's and libintl's printf replacements.
16337         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16338         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16339         (printf): When using GNU C, map the __printf__ function to rpl_printf
16340         via __asm__. When not using GNU C, define rpl_printf instead of
16341         __printf__.
16342         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16343         commit.
16344         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16345         commit.
16346         * m4/asm-underscore.m4: New file.
16347         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16348         * modules/stdio (Files): Add m4/asm-underscore.m4.
16349         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16350         Reported by Ben Pfaff.
16351
16352 2010-05-16  Bruno Haible  <bruno@clisp.org>
16353
16354         verify: Avoid skipping the test on openSUSE 11.0.
16355         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16356
16357 2010-05-13  Bruno Haible  <bruno@clisp.org>
16358
16359         Avoid useless warnings from G++.
16360         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16361         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16363
16364 2010-05-11  Jim Meyering  <meyering@redhat.com>
16365
16366         maint.mk: tweak preceding change
16367         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16368         regexps tighter by anchoring at EOL, and make the new group "shy"
16369         for slightly decreased overhead.
16370
16371 2010-05-11  Eric Blake  <eblake@redhat.com>
16372
16373         maint.mk: gnulib doesn't guarantee NSIG
16374         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16375
16376 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16377
16378         test-pwrite.c: Remove unused variable declaration.
16379         * tests/test-pwrite.c (main): Remove read_buf declaration.
16380
16381         Remove useless test-pwrite.sh file.
16382         * tests/test-pwrite.sh: Delete file.
16383         * modules/pwrite-tests: Remove references.
16384         Reported by Bruno Haible.
16385
16386 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16387
16388         init.sh: fix a typo
16389         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16390
16391 2010-05-10  Jim Meyering  <meyering@redhat.com>
16392
16393         maint.mk: avoid using a temporary file in the always-defined-macros check
16394         * top/maint.mk (.re-defmac): Remove rule.
16395         (gl_trap_): Remove definition.
16396         (sc_prohibit_always-defined_macros): Rewrite not to create and
16397         depend on a temporary file.  Instead, depend on GNU grep's ability
16398         to read a list of regular expressions from stdin when given "-f -".
16399
16400 2010-05-09  Bruno Haible  <bruno@clisp.org>
16401
16402         Update to GNU gettext 0.18, part 1.
16403         * m4/gettext.m4: Update to GNU gettext 0.18.
16404         * m4/intl.m4: Likewise.
16405         * m4/po.m4: Likewise.
16406         * modules/gettext (Files): Add m4/fcntl-o.m4.
16407         (configure.ac): Require gettext infrastructure from version 0.18.
16408
16409 2010-05-09  Jim Meyering  <meyering@redhat.com>
16410
16411         init.sh: enable MALLOC_PERTURB_
16412         * tests/init.sh: Enable glibc's malloc-perturbing option.
16413
16414         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16415         With my recent change in init.sh from the two-line form:
16416             -#   : ${srcdir=.}
16417             -#   . "$srcdir/init.sh"; path_prepend_ .
16418             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16419         I noticed that using the one-line form would cause this test
16420         to fail with a false-positive, or to stop working altogether,
16421         depending on whether help-version changed or all the tests did.
16422         * top/maint.mk (_hv_regex): Remove this definition.
16423         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16424         (_hv_regex_strong): Use a stronger regex to check for conformance.
16425         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16426         Give a separate diagnostic for lack of conforming use.
16427
16428         maint.mk: prohibit definition of symbols defined by gnulib
16429         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16430         definition of symbols defined by gnulib.
16431
16432 2010-05-09  Bruno Haible  <bruno@clisp.org>
16433
16434         acl: Avoid test failure on Cygwin-hosted mingw.
16435         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16436
16437 2010-05-09  Bruno Haible  <bruno@clisp.org>
16438
16439         error: Use system's fcntl function.
16440         * lib/error.c (fcntl): Undefine.
16441
16442 2010-05-09  Jim Meyering  <meyering@redhat.com>
16443
16444         verify: adjust formatting to be more consistent
16445         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16446         argument-list '('s, and after one comma.
16447
16448 2010-05-09  Bruno Haible  <bruno@clisp.org>
16449
16450         error: More reliable output on mingw.
16451         * lib/error.c: Include <windows.h>.
16452         (is_open): New function.
16453         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16454         defined.
16455
16456 2010-05-09  Bruno Haible  <bruno@clisp.org>
16457
16458         vasnprintf: Fix syntax errors in libintl build on mingw.
16459         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16460         pad_ourselves and prec_ourselves after use.
16461
16462 2010-05-08  Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/config.charset: Update comments for Cygwin 1.7.
16465         * lib/localcharset.c: Likewise.
16466
16467 2010-05-07  Jim Meyering  <meyering@redhat.com>
16468
16469         init.sh: improve comments
16470         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16471         . "${srcdir=.}/init.sh"; path_prepend_ .
16472         Add a note about path_prepend_ and the alternative of using
16473         TESTS_ENVIRONMENT.
16474
16475 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16476
16477         exclude: Unescape hashed patterns in wildcard mode.
16478         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16479         to the hash list.
16480         * tests/test-exclude8.sh: New test case.
16481         * modules/exclude-tests: Add new test.
16482
16483 2010-05-05  Eric Blake  <eblake@redhat.com>
16484
16485         verify: automate tests
16486         * modules/verify-tests: New module.
16487         * tests/test-verify.sh: New file.
16488         * tests/test-verify.c: Guard each negative test with a unique id.
16489         Also avoid warning about unused left hand of comma expressions.
16490
16491 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16492
16493         Further improvements to verify.h, suggested by Eric Blake.
16494         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16495         the GL_* versions, to avoid collision with OpenGL.
16496         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16497         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16498         than testing merely whether it's defined.
16499
16500         Modify verify.h to pacify gcc -Wredundant_decls.
16501         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16502         These use the prefix "GL_" since they're likely to be useful elsewhere.
16503         We may need to break them out into a different .h file.
16504         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16505         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16506         of verify_function__.
16507
16508 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16509
16510         Tests for module pwrite.
16511         * modules/pwrite-tests: New file.
16512         * tests/test-pwrite.sh: New file.
16513         * tests/test-pwrite.c: New file.
16514
16515         New module pwrite.
16516         * lib/unistd.in.h (pwrite): New declaration.
16517         * lib/pwrite.c: New file, from glibc with modifications.
16518         * m4/pwrite.m4: New file.
16519         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16520         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16521         REPLACE_PWRITE.
16522         * modules/pwrite: New file.
16523         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16524         REPLACE_PWRITE.
16525         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16526         * doc/posix-functions/pwrite.texi: Mention the new module.
16527
16528 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16529
16530         pread: Update documentation.
16531         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16532
16533 2010-05-04  Eric Blake  <eblake@redhat.com>
16534
16535         docs: update cygwin progress
16536         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16537         this bug.
16538         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16539         Added in cygwin 1.7.2.
16540         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16541         Likewise.
16542         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16543         Likewise.
16544         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16545         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16546         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16547         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16548         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16549         Mention nproc module.
16550         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16551         bug in cygwin 1.7.5 addition.
16552         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16553         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16554         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16555         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16556         1.7.5.
16557         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16558         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16559         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16560         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16561         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16562         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16563         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16564         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16565         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16566         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16567         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16568         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16569         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16570         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16571         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16572         Likewise.
16573         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16574         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16575         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16576         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16577         Likewise.
16578         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16579         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16580         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16581         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16582         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16583         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16584         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16585         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16586         Likewise.
16587         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16588         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16589         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16590         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16591         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16592         Likewise.
16593         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16594         Likewise.
16595         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16596         Likewise.
16597         * doc/glibc-functions/xdrrec_endofrecord.texi
16598         (xdrrec_endofrecord): Likewise.
16599         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16600         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16601         Likewise.
16602         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16603         Likewise.
16604
16605 2010-05-04  Jim Meyering  <meyering@redhat.com>
16606
16607         gendocs.sh: make its "-s FILE" option more useful
16608         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16609         $PACKAGE to reflect the probably-different basename of "FILE".
16610
16611 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16612
16613         bootstrap: don't ignore download_po_files failure
16614         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16615         failure.
16616
16617 2010-05-03  Jim Meyering  <meyering@redhat.com>
16618
16619         maint.mk: allow to pass options to gendocs.sh
16620         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16621         (gendocs_options_): New overridable variable.
16622
16623         gnu-web-doc-update: don't ignore configure or build failure
16624         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16625
16626         announce-gen: backslash-escape '@'s in --help output
16627         * build-aux/announce-gen: Fix syntax errors.
16628
16629         maint.mk, announce-gen: allow project-specific announcement mail headers
16630         * top/maint.mk (translation_project_): Define default.
16631         (announcement_Cc_, announcement_mail_headers_): Likewise.
16632         (announcement): Invoke announce-gen with new --mail-headers option.
16633         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16634
16635         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16636         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16637         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16638         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16639         line in the "err2" output file when running "make check" in verbose
16640         mode (i.e., with set -x enabled).
16641
16642 2010-05-03  Bruno Haible  <bruno@clisp.org>
16643
16644         wctob: Fix for weird platforms.
16645         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16646         argument value.
16647
16648 2010-05-03  Jim Meyering  <meyering@redhat.com>
16649
16650         maint.mk: prohibit unwarranted use of <strings.h>
16651         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16652         strings.h in a file that does not also use strcasecmp, strncasecmp,
16653         ffs or ffsll.
16654
16655         maint.mk: remove obsolete comments
16656         * top/maint.mk: Remove stale, commented-out rules.
16657
16658 2010-05-02  Bruno Haible  <bruno@clisp.org>
16659
16660         wcwidth: Declare also when it's aliased.
16661         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16662         macro.
16663
16664 2010-05-02  Bruno Haible  <bruno@clisp.org>
16665
16666         Fix regression from 2010-04-25.
16667         * gnulib-tool (func_modules_transitive_closure): Check the status of
16668         all modules, not only of the tests that are of the form foo-tests where
16669         foo is a module.
16670
16671 2010-05-02  Bruno Haible  <bruno@clisp.org>
16672
16673         wctob: Work around nasty Cygwin 1.7.2 bug.
16674         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16675         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16676
16677 2010-05-01  Bruno Haible  <bruno@clisp.org>
16678
16679         fpurge: Sharper test.
16680         * tests/test-fpurge.c (main): Add one more ftell check.
16681         * modules/fpurge-tests (Depends-on): Add ftell.
16682         Suggested by Eric Blake.
16683
16684 2010-05-01  Bruno Haible  <bruno@clisp.org>
16685
16686         ftello: Another test.
16687         * tests/test-ftello3.c: New file.
16688         * modules/ftello-tests (Files): Add it.
16689         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16690         MOSTLYCLEANFILES.
16691
16692         ftell: Another test.
16693         * tests/test-ftell3.c: New file.
16694         * modules/ftell-tests (Files): Add it.
16695         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16696         MOSTLYCLEANFILES.
16697
16698 2010-05-01  Bruno Haible  <bruno@clisp.org>
16699
16700         ftell, ftello: Work around Solaris bug.
16701         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16702         * lib/ftello.c: Include stdio-impl.h.
16703         (ftello): On Solaris, when _IOWRT is set, compute the result without
16704         looking at _IOREAD.
16705         * modules/ftello (Files): Add lib/stdio-impl.h.
16706         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16707         * doc/posix-functions/ftello.texi: Likewise.
16708         Reported by Eric Blake.
16709
16710 2010-05-01  Bruno Haible  <bruno@clisp.org>
16711
16712         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16713         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16714         the _IOWRT flag is also set.
16715
16716 2010-05-01  Bruno Haible  <bruno@clisp.org>
16717
16718         Fix doc about a HP-UX stdio bug.
16719         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16720         * doc/posix-functions/ftello.texi: Likewise.
16721
16722 2010-05-01  Bruno Haible  <bruno@clisp.org>
16723
16724         lseek test: Fix failure on Solaris.
16725         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16726         output.
16727
16728 2010-04-30  Jim Meyering  <meyering@redhat.com>
16729
16730         bootstrap: don't ignore failure to generate po*/Makevars
16731         * build-aux/bootstrap (with_gettext): Don't ignore failure
16732         to create po/Makevars or runtime-po/Makevars.
16733
16734 2010-04-29  Eric Blake  <eblake@redhat.com>
16735
16736         headers: relax license to LGPLv2+
16737         * modules/fcntl-h (License): Relax license.
16738         * modules/getopt-posix (License): Likewise.
16739         * modules/locale (License): Likewise.
16740         * modules/math (License): Likewise.
16741         * modules/pty (License): Likewise.
16742         * modules/sched (License): Likewise.
16743         * modules/search (License): Likewise.
16744         * modules/spawn (License): Likewise.
16745         * modules/stdarg (License): Likewise.
16746         * modules/sysexits (License): Likewise.
16747
16748 2010-04-29  Jim Meyering  <meyering@redhat.com>
16749
16750         inttypes: relax license to LGPLv2+
16751         * modules/inttypes (License): Relax license.
16752
16753 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16754
16755         * top/maint.mk (indent): Run twice to produce idempotent results.
16756
16757 2010-04-28  Bruno Haible  <bruno@clisp.org>
16758
16759         getdate: Generate getdate.c in the source directory.
16760         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16761         MOSTLYCLEANFILES.
16762         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16763
16764 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16765
16766         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16767         is not declared as a const *; avoid warnings in that case.
16768
16769 2010-04-28  Eric Blake  <eblake@redhat.com>
16770
16771         canonicalize-lgpl: avoid compiler warning
16772         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16773         declaration' / 'extraneous semicolon' warning with some compilers.
16774         Reported by Andreas Gruenbacher.
16775
16776 2010-04-28  Jim Meyering  <meyering@redhat.com>
16777
16778         init.sh: ensure a more reliable exit status when exiting via trap
16779         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16780         Inspired by patches from Dmitry V. Levin.
16781         Also trap on signal 3 (SIGQUIT).
16782
16783 2010-04-27  Bruno Haible  <bruno@clisp.org>
16784
16785         Update doc about utimes().
16786         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16787         'utimens' module.
16788         Reported by Andreas Gruenbacher <agruen@suse.de>.
16789
16790 2010-04-27  Eric Blake  <eblake@redhat.com>
16791
16792         full-read, full-write: relax license
16793         * modules/full-read (License): Drop to LGPLv2+.
16794         * modules/full-write (License): Likewise.
16795         * modules/safe-read (License): Likewise.
16796         * modules/safe-write (License): Likewise.
16797
16798         pthread: mention library for linking
16799         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16800
16801 2010-04-27  Jim Meyering  <meyering@redhat.com>
16802
16803         maint.mk: fix a bug introduced in last change
16804         * top/maint.mk (gl_assured_headers_): Now that all names are on
16805         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16806         is not anchored to end of word, it should be adequate.
16807
16808         maint.mk: avoid side-effect in latest syntax-check
16809         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16810         to run commands via $(shell...), and hence to incur cost only when
16811         the new rule is actually run.
16812
16813         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16814         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16815         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16816         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16817         (gl_assured_headers_, az_, AZ_): Define.
16818         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16819
16820 2010-04-26  Jim Meyering  <jim@meyering.net>
16821             Bruno Haible  <bruno@clisp.org>
16822
16823         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16824         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16825         Prompted by an exchange with Gilles Espinasse.
16826
16827 2010-04-26  Jim Meyering  <meyering@redhat.com>
16828
16829         git-version-gen: aesthetic tweak
16830         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16831         so that the command remains on a single line.
16832
16833 2010-04-26  Eric Blake  <eblake@redhat.com>
16834
16835         git-version-gen: allow use on EBCDIC hosts
16836         * build-aux/git-version-gen (dirty): Use literal rather than tying
16837         ourselves to ascii.
16838         Reported by Steve Goetze.
16839
16840 2010-04-25  Bruno Haible  <bruno@clisp.org>
16841
16842         netdb: Add support for GNULIB_POSIXCHECK.
16843         * lib/netdb.in.h: Include warn-on-use.h.
16844         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16845         functions are used when GNULIB_POSIXCHECK is defined and the
16846         getaddrinfo module is not in use.
16847         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16848         freeaddrinfo, gai_strerror, getnameinfo are declared.
16849         * modules/netdb (Depends-on): Add warn-on-use.
16850         (Makefile.am): Include warn-on-use.h in netdb.h.
16851
16852 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16853
16854         build: avoid "make check" failure without .git/ directory
16855         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16856         there is no .git/ directory.
16857
16858 2010-04-25  Bruno Haible  <bruno@clisp.org>
16859
16860         ptsname: Fix misuse of ttyname_r.
16861         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16862         of errno.
16863
16864 2010-04-25  Bruno Haible  <bruno@clisp.org>
16865
16866         ttyname_r: Make it work on Solaris 10.
16867         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16868         if the system function has the POSIX declaration. Test whether the
16869         function fails if the buffer is less than 128 bytes large.
16870         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16871         system's ttyname_r function. Provide a reasonably large buffer.
16872         * modules/ttyname_r (Depends-on): Add extensions.
16873         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16874
16875 2010-04-25  Bruno Haible  <bruno@clisp.org>
16876
16877         Use the 'extensions' module for some more functions on Solaris.
16878         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16879         module.
16880         * doc/posix-functions/ctime_r.texi: Likewise.
16881         * doc/posix-functions/getgrgid_r.texi: Likewise.
16882         * doc/posix-functions/getgrnam_r.texi: Likewise.
16883         * doc/posix-functions/getpwnam_r.texi: Likewise.
16884         * doc/posix-functions/getpwuid_r.texi: Likewise.
16885         * doc/posix-functions/readdir_r.texi: Likewise.
16886         * doc/posix-functions/sigwait.texi: Likewise.
16887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16888         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16889
16890 2010-04-25  Bruno Haible  <bruno@clisp.org>
16891
16892         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16893         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16894         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16895         * lib/ttyname_r.c: Include <limits.h>.
16896         (ttyname_r): Define using the system's ttyname_r function, if it exists
16897         and not on Solaris.
16898         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16899         set.
16900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16901         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16902         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16903         Reported by Simon Josefsson.
16904
16905 2010-04-25  Bruno Haible  <bruno@clisp.org>
16906
16907         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16908         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16909         * doc/posix-functions/ctime_r.texi: Likewise.
16910         * doc/posix-functions/getgrgid_r.texi: Likewise.
16911         * doc/posix-functions/getgrnam_r.texi: Likewise.
16912         * doc/posix-functions/getlogin_r.texi: Likewise.
16913         * doc/posix-functions/getpwnam_r.texi: Likewise.
16914         * doc/posix-functions/getpwuid_r.texi: Likewise.
16915         * doc/posix-functions/readdir_r.texi: Likewise.
16916         * doc/posix-functions/sigwait.texi: Likewise.
16917         * doc/posix-functions/ttyname_r.texi: Likewise.
16918         Reported by Simon Josefsson.
16919
16920 2010-04-25  Bruno Haible  <bruno@clisp.org>
16921
16922         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16923         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16924         also to --create-testdir.
16925         (func_acceptable): Don't consider the status of *-tests modules here.
16926         (func_modules_transitive_closure): Consider it here, before including a
16927         test module.
16928         (func_import, func_create_testdir): Set inc_all_direct_tests,
16929         inc_all_indirect_tests.
16930         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16931         --create-testdir and --create-megatestdir.
16932
16933 2010-04-25  Bruno Haible  <bruno@clisp.org>
16934
16935         gnulib-tool: Add --without-*-tests options.
16936         * gnulib-tool (func_usage): Document the --without-*-tests options.
16937         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16938         excl_unportable_tests): New variables.
16939         Fail if they are specified with --import or --update.
16940         (func_acceptable): Respect the excl_*_tests variables.
16941         (func_import): Set the excl_*_tests variables to empty.
16942
16943 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16944             Bruno Haible  <bruno@clisp.org>
16945
16946         Work around a MacOS X 10.4 bug with openpty.
16947         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16948         * tests/test-openpty.c (main): Close the master side explicitly.
16949
16950 2010-04-25  Bruno Haible  <bruno@clisp.org>
16951
16952         strnlen: Fix a C++ test error on MacOS X and Solaris.
16953         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16954         the function is not declared.
16955         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16956         Simon Josefsson.
16957
16958 2010-04-24  Bruno Haible  <bruno@clisp.org>
16959
16960         Avoid a gcc warning.
16961         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16962         of correct type for %08lx directive.
16963         Reported by Eric Blake.
16964
16965 2010-04-24  Bruno Haible  <bruno@clisp.org>
16966
16967         vasnprintf: Correct errno value in case of out-of-memory.
16968         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16969         or sprintf. Use the errno value from SNPRINTF or sprintf.
16970         Reported by Ian Beckwith <ianb@erislabs.net>.
16971
16972 2010-04-24  Bruno Haible  <bruno@clisp.org>
16973
16974         ansi-c++-opt: Find correct compiler when cross-compiling.
16975         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16976         AC_CHECK_PROGS.
16977         Reported by Simon Josefsson.
16978
16979 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16980
16981         vc-list-files: Add support for subversion
16982         * build-aux/vc-list-files: Use "svn list" to generate the list of
16983         files controlled by subversion.
16984
16985 2010-04-23  Jim Meyering  <meyering@redhat.com>
16986
16987         vc-list-files tests: convert to use init.sh
16988         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16989         path_prepend_.
16990         Use Exit, not exit.
16991         Use skip_ rather than open coding it.
16992         Remove trap set-up and compare definitions.
16993         * tests/test-vc-list-files-git.sh: Likewise.
16994         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16995
16996 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16997
16998         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16999         backup files.
17000
17001 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17002
17003         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17004
17005 2010-04-20  Eric Blake  <eblake@redhat.com>
17006
17007         tests: be robust to ignored SIGPIPE
17008         * tests/test-select-in.sh: Consume all output.
17009         * tests/test-lseek.sh: Check correct exit status, while avoiding
17010         EPIPE.
17011
17012 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17013             Bruno Haible  <bruno@clisp.org>
17014
17015         visibility: Don't use -fvisibility if it leads to a warning.
17016         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17017         yes, don't pretend that visibility works if it leads to a warning.
17018         Reported by Mike Gran <spk121@yahoo.com>.
17019
17020 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17021
17022         * build-aux/bootstrap: Use "git -h" for testing for supported options
17023         instead of "git --help".  The short-form option only shows a summary,
17024         and doesn't layout the full man page.  Grep for the full option name
17025         in the summary, too.
17026
17027 2010-04-19  Bruno Haible  <bruno@clisp.org>
17028
17029         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17030         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17031         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17032         mention of RELOCATABLE_STRIP.
17033         Reported by Sylvain Beucler <beuc@beuc.net>.
17034
17035 2010-04-19  Bruno Haible  <bruno@clisp.org>
17036
17037         * lib/diffseq.h: Fix typo in comment.
17038         Reported by Eric Blake.
17039
17040 2010-04-19  Bruno Haible  <bruno@clisp.org>
17041
17042         ioctl: Move autoconf macro to a .m4 file.
17043         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17044         * modules/ioctl (Files): Add it.
17045         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17046         Reported by Ian Beckwith <ianb@erislabs.net>.
17047
17048 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17049             Bruno Haible  <bruno@clisp.org>
17050
17051         diffseq: Accommodate use-case with abstract arrays.
17052         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17053         is not defined.
17054         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17055         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17056
17057 2010-04-18  Bruno Haible  <bruno@clisp.org>
17058
17059         * doc/posix-headers/stdbool.texi: More precise wording.
17060
17061 2010-04-17  Jim Meyering  <meyering@redhat.com>
17062
17063         maint.mk: use gnu-style indentation in an embedded perl script
17064         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17065         Rename variable: s/two/last_two_bytes/
17066
17067 2010-04-16  Eric Blake  <eblake@redhat.com>
17068
17069         test-stdbool: skip test that fails with Solaris CC
17070         * tests/test-stdbool.c (f): Skip test that causes compilation
17071         error under buggy C++ compiler.
17072         * lib/stdbool.in.h: Document the limitation.
17073         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17074
17075         setenv: allow compilation with C++
17076         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17077         register keyword.
17078
17079         stdint: allow test to pass with C++
17080         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17081
17082         getopt: allow compilation with C++
17083         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17084         struct.
17085         * lib/getopt.c (_getopt_internal_r): Use correct type.
17086         Reported by Dagobert Michelson, via Joel E. Denny.
17087
17088 2010-04-16  Bruno Haible  <bruno@clisp.org>
17089
17090         Override netdb.h always.
17091         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17092         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17093         Reported by Ludovic Courtès <ludo@gnu.org>.
17094
17095 2010-04-15  Bruno Haible  <bruno@clisp.org>
17096
17097         openpty: Fix mistake from 2010-03-21.
17098         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17099         Reported by Simon Josefsson.
17100
17101 2010-04-15  Eric Blake  <eblake@redhat.com>
17102
17103         test-forkpty: fix expected signature
17104         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17105         Reported by Simon Josefsson.
17106
17107 2010-04-15  Jim Meyering  <meyering@redhat.com>
17108
17109         maint.mk: texinfo_suffix_re_: correct the default regexp
17110         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17111
17112         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17113         make it configurable via texinfo_suffix_re_.
17114
17115 2010-04-14  Eric Blake  <eblake@redhat.com>
17116
17117         strtok_r: relax license to LGPLv2+
17118         * modules/strtok_r (License): Relax license.
17119         Reported by Matthias Bolte.
17120
17121 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17122
17123         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17124         version 1.4.4 by default instead of requiring the libgcrypt
17125         version used during build.  This makes it possible to use the
17126         application with older but still binary compatible libgcrypt
17127         versions.
17128
17129 2010-04-13  Eric Blake  <eblake@redhat.com>
17130
17131         getopt-gnu: match recent glibc fixes and posix ruling
17132         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17133         '+' handling, when requesting extensions.
17134         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17135         'W;' handling.
17136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17137         * doc/posix-functions/getopt.texi (getopt): Document this.
17138         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17140         Likewise.
17141
17142         getopt: merge bug fixes from glibc
17143         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17144         diagnostics.  Honor '+:' correctly.  Reject ';'.
17145
17146         getopt-posix: detect MacOS bug
17147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17148         optind when missing a required argument.
17149         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17150         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17151         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17152         Likewise.
17153
17154         getopt-posix: avoid spurious failure on Solaris
17155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17156         an indicator that setting optind=1 is sufficient for reset.
17157
17158         getopt-posix: avoid spurious failure on FreeBSD
17159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17160         in POSIX mode, since the m4 test uses it.
17161
17162         gnulib-tool: silence warning on BSD sh
17163         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17164
17165 2010-04-13  Jim Meyering  <meyering@redhat.com>
17166
17167         doc: users.txt: GNU patch now uses gnulib
17168         * users.txt: Add patch.
17169
17170 2010-04-12  Jim Meyering  <meyering@redhat.com>
17171
17172         maint.mk: generate more concise timing data for syntax-check rules
17173         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17174         " done" from each line that reports a syntax-check test duration.
17175
17176 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17177
17178         git-version-gen: use "git update-index..." rather than "git status"
17179         * build-aux/git-version-gen: Use git update-index --refresh, not
17180         "git status".  With some versions of git, "git status" would fail
17181         to update the index and result in an unwarranted "-dirty" suffix.
17182
17183 2010-04-11  Jim Meyering  <meyering@redhat.com>
17184
17185         openat: correct formatting (no semantic change)
17186         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17187         Suggested by Bruno Haible.
17188
17189 2010-04-11  Bruno Haible  <bruno@clisp.org>
17190
17191         Stricter declaration checking in testdirs.
17192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17193         If for_tests is true, augment AM_CPPFLAGS to define
17194         GNULIB_STRICT_CHECKING.
17195         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17196         GNULIB_STRICT_CHECKING is defined, verify that the function is
17197         declared.
17198
17199 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17200             Bruno Haible  <bruno@clisp.org>
17201
17202         libunistring: Improve configure output.
17203         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17204         Don't say "consider installing GNU libunistring" when checking again
17205         with libiconv.
17206
17207 2010-04-11  Bruno Haible  <bruno@clisp.org>
17208
17209         libunistring: Correct value of $LTLIBUNISTRING.
17210         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17211         correct the value of $LTLIBUNISTRING.
17212
17213 2010-04-11  Bruno Haible  <bruno@clisp.org>
17214
17215         havelib: Add static libraries to LIBS in the right order.
17216         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17217         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17218
17219 2010-04-11  Bruno Haible  <bruno@clisp.org>
17220
17221         libunistring: Detect libunistring also when it depends on libiconv.
17222         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17223         the second AC_LIB_HAVE_LINKFLAGS invocation.
17224
17225 2010-04-11  James Youngman  <jay@gnu.org>
17226
17227         close-stream: declare local scalars to be "const"
17228         * lib/close-stream.c (close_stream): Make boolean variables const
17229         to document the fact that we set but do not change them.
17230
17231 2010-04-11  Bruno Haible  <bruno@clisp.org>
17232
17233         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17234
17235 2010-04-11  Jim Meyering  <meyering@redhat.com>
17236
17237         maint.mk: don't include dist-check.mk
17238         * top/maint.mk: Remove bogus include directive.
17239
17240         maint.mk: improve empty-line-at-EOF check
17241         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17242         solution, rather than tail+Perl-based one.  The latter would read
17243         a few kilobytes from the end of each file, and did not handle empty
17244         files properly.
17245
17246         maint.mk: print the elapsed time for each syntax-check rule
17247         * top/maint.mk (sc_m_rules_): Save start time in a file.
17248         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17249         (local-check): Interpose the .z rules
17250
17251 2010-04-11  Jim Meyering  <meyering@redhat.com>
17252
17253         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17254         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17255         empty file with one that ends in an empty line.
17256
17257 2010-04-10  Bruno Haible  <bruno@clisp.org>
17258
17259         mkdir: Make it work on mingw64.
17260         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17261         * lib/mkdir.c: Update comment.
17262         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17263
17264 2010-04-10  Bruno Haible  <bruno@clisp.org>
17265
17266         Don't override improved macro from newer autoconf.
17267         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17268         autoconf >= 2.62.
17269         Reported by Joel E. Denny <jdenny@clemson.edu>.
17270
17271 2010-04-10  Jim Meyering  <meyering@redhat.com>
17272
17273         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17274         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17275
17276         maint.mk: correct a diagnostic
17277         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17278         in diagnostic; now use $prohibit.
17279
17280 2010-04-10  Bruno Haible  <address@hidden>
17281
17282         fchownat: Fix a C++ test error on Solaris 8.
17283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17284         the function does not exist.
17285
17286 2010-04-10  Bruno Haible  <bruno@clisp.org>
17287
17288         vasnprintf: Add more tests.
17289         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17290         (test_function): Test converting an invalid wide string.
17291
17292         vasnprintf: Correct handling of unconvertible wide string arguments.
17293         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17294         VASNPRINTF.
17295         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17296         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17297         smaller than the expected maximum need for the directive. Set errno to
17298         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17299         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17301         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17302         * modules/vasnprintf (Files): Add m4/printf.m4.
17303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17304
17305 2010-04-10  Bruno Haible  <bruno@clisp.org>
17306
17307         vasnprintf: Fix crash in %ls directive.
17308         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17309         string is passed as argument to %ls, with no precision and no width.
17310         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17311
17312 2010-04-10  Bruno Haible  <bruno@clisp.org>
17313
17314         vasnprintf: Fix multiple test failures on mingw.
17315         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17316         _snprintf, or snwprintf, not _snwprintf.
17317
17318 2010-04-10  Bruno Haible  <bruno@clisp.org>
17319
17320         write: Fix a C++ test error on mingw.
17321         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17322
17323 2010-04-10  Bruno Haible  <bruno@clisp.org>
17324
17325         vasnprintf test: Reduce code duplication.
17326         * tests/test-vasnprintf.c (test_function): New function, extracted from
17327         test_vasnprintf.
17328         (test_vasnprintf, test_asnprintf): Invoke it.
17329
17330 2010-04-10  Bruno Haible  <bruno@clisp.org>
17331
17332         strnlen: Fix warning in C++ mode on MacOS X.
17333         * lib/string.in.h (strnlen): Use the modern idiom.
17334         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17335         defining strnlen as a macro already in <config.h>.
17336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17337         REPLACE_STRNLEN.
17338         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17340
17341 2010-04-08  James Youngman  <jay@gnu.org>
17342
17343         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17344         the example.
17345
17346 2010-04-09  Jim Meyering  <meyering@redhat.com>
17347
17348         maint.mk: print better diagnostic when there is no $(_hv_file)
17349         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17350         announce that when $(_hv_file) (aka help-version) does not exist.
17351
17352         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17353         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17354         not try to interpret its random input bytes.  Jarno Rajahalme reported
17355         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17356         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17357         (mktempd_): Likewise, just in case.
17358
17359         ftruncate: add two years to projected module removal date: 2012
17360         * m4/ftruncate.m4: Adjust comments.
17361
17362         ftruncate: mark module as obsolete; even MinGW provides it, now
17363         * modules/ftruncate (Status): Obsolete.
17364         (Notice): Say that.
17365         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17366         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17367
17368 2010-04-08  Bruno Haible  <bruno@clisp.org>
17369
17370         Fix side effects from tests-related modules.
17371         * modules/dprintf-posix (Comment): New section.
17372         * modules/fprintf-posix (Comment): Likewise.
17373         * modules/obstack-printf-posix (Comment): Likewise.
17374         * modules/printf-posix (Comment): Likewise.
17375         * modules/snprintf-posix (Comment): Likewise.
17376         * modules/sprintf-posix (Comment): Likewise.
17377         * modules/vasnprintf-posix (Comment): Likewise.
17378         * modules/vasprintf-posix (Comment): Likewise.
17379         * modules/vdprintf-posix (Comment): Likewise.
17380         * modules/vfprintf-posix (Comment): Likewise.
17381         * modules/vprintf-posix (Comment): Likewise.
17382         * modules/vsnprintf-posix (Comment): Likewise.
17383         * modules/vsprintf-posix (Comment): Likewise.
17384         * modules/xprintf-posix (Comment): Likewise.
17385         * modules/xvasprintf-posix (Comment): Likewise.
17386         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17387         * modules/floorf-tests (Depends-on): Likewise.
17388         * modules/round-tests (Depends-on): Likewise.
17389         * modules/roundf-tests (Depends-on): Likewise.
17390         * modules/trunc-tests (Depends-on): Likewise.
17391         * modules/truncf-tests (Depends-on): Likewise.
17392         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17393         'fprintf-posix' module is not present.
17394         * tests/test-floorf2.c (check): Likewise.
17395         * tests/test-trunc2.c (check): Likewise.
17396         * tests/test-truncf2.c (check): Likewise.
17397         * tests/test-round2.c (equal): Likewise.
17398         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17399
17400 2010-04-07  Karl Berry  <karl@gnu.org>
17401
17402         * config/srclist.txt,
17403         * config/srclistvars.sh,
17404         * config/srclist-update: doc fixes.
17405
17406 2010-04-07  Jim Meyering  <meyering@redhat.com>
17407
17408         maint.mk: add a PATH crosschecking syntax-check rule
17409         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17410         Useful if you use a test like the one in help-version (coreutils,
17411         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17412         printed by prog --version.
17413
17414 2010-04-06  Bruno Haible  <bruno@clisp.org>
17415
17416         Fix link error on mingw.
17417         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17418         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17419
17420 2010-04-06  Bruno Haible  <bruno@clisp.org>
17421
17422         Assume rmdir exists.
17423         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17424
17425 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17426
17427         doc: update users.txt
17428         * users.txt: Add gcal.
17429
17430 2010-04-06  Jim Meyering  <meyering@redhat.com>
17431
17432         init.sh: simply unset TMPDIR rather than risking env -i
17433         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17434         although it probably works fine on all Unix-based systems, some
17435         systems (Cygwin?) cannot tolerate a totally cleared environment.
17436         Suggestion from Eric Blake.
17437
17438 2010-04-06  Jim Meyering  <meyering@redhat.com>
17439
17440         init.sh: portability fix: use env's POSIX-specified -i option not -u
17441         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17442         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17443
17444 2010-04-05  Bruno Haible  <bruno@clisp.org>
17445
17446         btowc: Work around Cygwin 1.7.2 bug.
17447         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17448         does not map NUL to 0.
17449         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17450
17451 2010-04-05  Bruno Haible  <bruno@clisp.org>
17452
17453         Make the multithread modules work on Cygwin 1.7.2.
17454         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17455         imported symbols can be declared weak, so that it returns "no" on
17456         Cygwin 1.7.2.
17457
17458 2010-04-05  Bruno Haible  <bruno@clisp.org>
17459
17460         Use the module 'strncat'.
17461         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17462
17463         Tests for module 'strncat'.
17464         * modules/strncat-tests: New file.
17465         * tests/test-strncat.c: New file.
17466
17467         New module 'strncat'.
17468         * lib/string.in.h (strncat): New declaration.
17469         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17470         * m4/strncat.m4: New file, based on m4/memchr.m4.
17471         * modules/strncat: New file.
17472         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17473         is declared.
17474         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17475         REPLACE_STRNCAT.
17476         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17477         REPLACE_STRNCAT.
17478         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17479         module.
17480         * tests/test-string-c++.cc: Check signature of strncat.
17481
17482 2010-04-05  Jim Meyering  <meyering@redhat.com>
17483
17484         xstrtoumax-tests: convert to use init.sh
17485         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17486         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
17491         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17492         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
17497
17498         sys_socket: Avoid #define replacements in C++ mode.
17499         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17500         warning to the function if possible, rather than #defining the symbol
17501         to a dysfunctional alias.
17502
17503 2010-04-05  Bruno Haible  <bruno@clisp.org>
17504
17505         fseeko: Fix C++ test error on mingw.
17506         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17507         gl_FUNC_FSEEKO.
17508         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17509         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17510         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17511         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17512
17513 2010-04-05  Bruno Haible  <bruno@clisp.org>
17514
17515         duplocale: Improve test output.
17516         * tests/test-duplocale.c (main): Print reason for skipped test.
17517
17518 2010-04-05  Bruno Haible  <bruno@clisp.org>
17519
17520         Assume rmdir exists.
17521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17522         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17523
17524 2010-04-05  Bruno Haible  <bruno@clisp.org>
17525
17526         Fix link error on Solaris 8 with cc.
17527         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17528
17529 2010-04-05  Bruno Haible  <bruno@clisp.org>
17530
17531         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17532         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17533
17534 2010-04-05  Bruno Haible  <bruno@clisp.org>
17535
17536         vasprintf: Update documentation.
17537         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17538
17539 2010-04-05  Bruno Haible  <bruno@clisp.org>
17540
17541         ptsname: Improve test.
17542         * tests/test-ptsname.c (main): Also try the various master names of BSD
17543         systems.
17544
17545 2010-04-05  Bruno Haible  <bruno@clisp.org>
17546
17547         memchr: Avoid a possible C++ test error.
17548         * lib/string.in.h (memchr): Provide declaration if function is missing.
17549         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17550         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17552         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17553
17554 2010-04-05  Bruno Haible  <bruno@clisp.org>
17555
17556         strtok_r: Improve idiom.
17557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17558         AC_LIBOBJ is used.
17559
17560 2010-04-05  Bruno Haible  <bruno@clisp.org>
17561
17562         strdup: Improve idiom.
17563         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17564         AC_LIBOBJ is used.
17565         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17566         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17567         when AC_LIBOBJ is used.
17568
17569 2010-04-05  Bruno Haible  <bruno@clisp.org>
17570
17571         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17573         don't set REPLACE_MBSINIT to 1.
17574         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17575         don't set REPLACE_MBRTOWC to 1.
17576         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17577         exist, don't set REPLACE_MBSRTOWCS to 1.
17578         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17579         exist, don't set REPLACE_MBSNRTOWCS to 1.
17580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17581         don't set REPLACE_WCRTOMB to 1.
17582         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17583         exist, don't set REPLACE_WCSRTOMBS to 1.
17584         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17585         exist, don't set REPLACE_WCSNRTOMBS to 1.
17586
17587 2010-04-05  Bruno Haible  <bruno@clisp.org>
17588
17589         ldexpl: Improve idiom.
17590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17591         make sure to set HAVE_DECL_LDEXPL to 0.
17592
17593 2010-04-05  Jim Meyering  <meyering@redhat.com>
17594
17595         xstrtol-tests: convert to use init.sh
17596         * modules/xstrtol-tests (Files): Add tests/init.sh.
17597         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17598         Use Exit, not exit.
17599         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17600
17601         atexit-tests: convert to use init.sh
17602         * modules/atexit-tests (Files): Add tests/init.sh.
17603         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17604         Use Exit, not exit.
17605         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17606
17607         init.sh: fix typo
17608         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17609
17610         init.sh: make it easier for a test script to write to the tty, ...
17611         when using automake's parallel-tests mode.
17612         * tests/init.sh (stderr_fileno_): Define overridable variable.
17613         (warn_): New function, to use it.
17614         (fail_, skip_, framework_failure_): Use warn_.
17615
17616 2010-04-04  Bruno Haible  <bruno@clisp.org>
17617
17618         btowc: Avoid warning.
17619         * lib/btowc.c: Include <stdlib.h>.
17620         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17621
17622 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17623             Bruno Haible  <bruno@clisp.org>
17624
17625         wchar: Port to NetBSD 1.5.
17626         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17627         * lib/wctype.in.h (WEOF): Likewise.
17628
17629 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17630             Bruno Haible  <bruno@clisp.org>
17631
17632         Port extended stdio to NetBSD 1.5.
17633         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17634         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17635         older.
17636
17637 2010-04-04  Bruno Haible  <bruno@clisp.org>
17638
17639         string: Remove unused substitution.
17640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17641         HAVE_DECL_STRERROR.
17642         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17643
17644 2010-04-04  Bruno Haible  <bruno@clisp.org>
17645
17646         strtod: Avoid a possible C++ test error.
17647         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17648         set REPLACE_STRTOD.
17649
17650 2010-04-04  Bruno Haible  <bruno@clisp.org>
17651
17652         strerror: Update documentation.
17653         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17654
17655 2010-04-04  Bruno Haible  <bruno@clisp.org>
17656
17657         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17658         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17659         _GL_CXXALIAS_SYS_CAST.
17660
17661 2010-04-04  Bruno Haible  <bruno@clisp.org>
17662
17663         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17664         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17665         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17666         REPLACE_FREXPL to 1.
17667         * doc/posix-functions/frexpl.texi: Update documentation.
17668
17669 2010-04-04  Bruno Haible  <bruno@clisp.org>
17670
17671         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17672         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17673
17674 2010-04-04  Bruno Haible  <bruno@clisp.org>
17675
17676         Implement nanosleep for native Windows.
17677         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17678
17679 2010-04-04  Bruno Haible  <bruno@clisp.org>
17680
17681         math: Fix some C++ test errors on Solaris 8.
17682         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17683
17684 2010-04-04  Bruno Haible  <bruno@clisp.org>
17685
17686         math: Fix some C++ test errors on Cygwin.
17687         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17688         truncl): Provide declaration if the system does not have it.
17689         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17690         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17691         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17692         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17693         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17694         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17695         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17696         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17697         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17698         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17699         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17700         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17701         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17702         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17703         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17704         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17706         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17707         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17708         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17709         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17710         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17711
17712 2010-04-04  Bruno Haible  <bruno@clisp.org>
17713
17714         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17715         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17716         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17717         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17718         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17719         * m4/isinf.m4 (gl_ISINF): Likewise.
17720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17721
17722 2010-04-04  Bruno Haible  <bruno@clisp.org>
17723
17724         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17725         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17726
17727 2010-04-04  Bruno Haible  <bruno@clisp.org>
17728
17729         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17730         * modules/tmpfile (configure.ac): Update.
17731
17732         tmpfile: Fix C++ test error on mingw.
17733         * lib/stdio.in.h (tmpfile): New declaration.
17734         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17735         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17736         * modules/tmpfile (Depends-on): Add stdio.
17737         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17738         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17739         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17740         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17741         REPLACE_TMPFILE.
17742         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17743
17744 2010-04-04  Bruno Haible  <bruno@clisp.org>
17745
17746         ioctl: Fix C++ test error on mingw.
17747         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17748         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17749         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17750
17751 2010-04-03  Bruno Haible  <bruno@clisp.org>
17752
17753         wcwidth: Fix C++ test error on mingw.
17754         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17756         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17757
17758 2010-04-03  Bruno Haible  <bruno@clisp.org>
17759
17760         nanosleep: Fix C++ test error on mingw.
17761         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17762         * lib/time.in.h (nanosleep): Use modern idiom.
17763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17764         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17765         REPLACE_NANOSLEEP to 1.
17766         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17767         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17768
17769 2010-04-03  Bruno Haible  <bruno@clisp.org>
17770
17771         strptime: Fix C++ test error on mingw.
17772         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17773         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17774         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17775         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17777         not REPLACE_STRPTIME.
17778         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17779         REPLACE_STRPTIME.
17780
17781 2010-04-03  Bruno Haible  <bruno@clisp.org>
17782
17783         timegm: Fix C++ test error on mingw.
17784         * lib/time.in.h (timegm): Use modern idiom.
17785         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17786         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17788         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17789
17790 2010-04-03  Bruno Haible  <bruno@clisp.org>
17791
17792         timegm: Assume declaration if function exists.
17793         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17794         if it exists. Don't clobber ac_cv_func_timegm.
17795
17796 2010-04-03  Bruno Haible  <bruno@clisp.org>
17797
17798         time_r: Fix C++ test error on mingw.
17799         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17800         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17801         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17803         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17804
17805 2010-04-03  Bruno Haible  <bruno@clisp.org>
17806
17807         time_r: Minor updates.
17808         * modules/time_r (Description): Mention the provided functions.
17809         * lib/time_r.c: Don't include <string.h>.
17810         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17811         * doc/posix-functions/localtime_r.texi: Likewise.
17812
17813 2010-04-03  Bruno Haible  <bruno@clisp.org>
17814
17815         time: Fix regression introduced on 2010-03-08.
17816         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17817         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17818
17819 2010-04-03  Jim Meyering  <meyering@redhat.com>
17820
17821         maint.mk: don't silently disable project-specific syntax-check rules
17822         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17823         that they need to convert their project-specific syntax-check rules
17824         to use the new _sc_search_regexp.
17825
17826 2010-04-03  Bruno Haible  <bruno@clisp.org>
17827
17828         fchdir: Fix regression introduced on 2010-03-08.
17829         * lib/unistd.in.h (fchdir): Fix declaration.
17830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17832         REPLACE_FCHDIR.
17833         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17834         REPLACE_FCHDIR.
17835
17836 2010-04-03  Bruno Haible  <bruno@clisp.org>
17837
17838         getpagesize: Fix C++ test error on mingw.
17839         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17840         system does not declare the function.
17841         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17842         declared.
17843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17844         HAVE_DECL_GETPAGESIZE.
17845         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17846
17847 2010-04-03  Bruno Haible  <bruno@clisp.org>
17848
17849         stdio: Make C++ tests work on mingw.
17850         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17851         does not declare the function.
17852
17853 2010-04-03  Bruno Haible  <bruno@clisp.org>
17854
17855         ftello: Fix C++ test error on mingw.
17856         * lib/stdio.in.h (ftello): Use modern idiom.
17857         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17858         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17859         is missing and that it needs to be replaced.
17860         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17862         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17863
17864 2010-04-03  Bruno Haible  <bruno@clisp.org>
17865
17866         fseeko: Fix C++ test error on mingw.
17867         * lib/stdio.in.h (fseeko): Use modern idiom.
17868         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17870         is missing and that it needs to be replaced.
17871         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17873         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17874
17875 2010-04-03  Bruno Haible  <bruno@clisp.org>
17876
17877         mkstemp: Fix C++ test error on mingw.
17878         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17880         function is missing and that it needs to be replaced.
17881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17882         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17883
17884 2010-04-03  Bruno Haible  <bruno@clisp.org>
17885
17886         stpncpy: Fix C++ test error on mingw.
17887         * lib/string.in.h (stpncpy): Use modern idiom.
17888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17889         function is missing and that it needs to be replaced.
17890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17891         REPLACE_STPNCPY.
17892         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17893
17894 2010-04-03  Bruno Haible  <bruno@clisp.org>
17895
17896         sys_stat: Fix C++ test error on mingw.
17897         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17898         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17899
17900 2010-04-03  Bruno Haible  <bruno@clisp.org>
17901
17902         pty: Update doc.
17903         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17904
17905 2010-04-03  Bruno Haible  <bruno@clisp.org>
17906
17907         unistd: Fix C++ test error on mingw.
17908         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17909
17910 2010-04-03  Bruno Haible  <bruno@clisp.org>
17911
17912         Update doc regarding mingw.
17913         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17914         * doc/glibc-functions/login_tty.texi: Likewise.
17915         * doc/glibc-functions/forkpty.texi: Likewise.
17916
17917 2010-04-03  Bruno Haible  <bruno@clisp.org>
17918
17919         stdlib: Avoid compilation failure of c-strtold on mingw.
17920         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17921
17922 2010-04-03  Bruno Haible  <bruno@clisp.org>
17923
17924         locale: Make C++ tests work on Cygwin and mingw.
17925         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17926         cannot provide the function.
17927         Reported by Simon Josefsson.
17928
17929 2010-04-03  Bruno Haible  <bruno@clisp.org>
17930
17931         localename: Port to MacOS X 10.6.
17932         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17933         memory layout of the locales in MacOS X 10.6 as well.
17934         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17935
17936 2010-04-02  Bruno Haible  <bruno@clisp.org>
17937
17938         gnulib-tool: Ensure that long-running tests are executed last.
17939         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17940         running tests after the one for the other tests.
17941
17942 2010-04-02  Bruno Haible  <bruno@clisp.org>
17943
17944         gnulib-tool: Ensure the tests in the main directory are executed first.
17945         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17946         start with the current directory.
17947
17948 2010-04-02  Bruno Haible  <bruno@clisp.org>
17949
17950         Tests for module 'havelib', moved here from GNU gettext.
17951         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17952         modifications.
17953         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17954         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17955         with modifications.
17956         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17957         modifications.
17958         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17959         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17960         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17961         with modifications.
17962         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17963         with modifications.
17964         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17965         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17966         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17967         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17968         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17969         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17970         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17971         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17972         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17973         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17974         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17975         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17976         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17977         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17978         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17979         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17980         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17981         with modifications.
17982         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17983         with modifications.
17984         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17985         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17986         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17987         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17988         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17989         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17990         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17991         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17992         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17993         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17994         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17995         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17996         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17997         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17998         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17999         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18000         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18001         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18002         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18003         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18004         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18005         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18006         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18007         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18008         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18009         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18010         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18011         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18012         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18013         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18014         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18015         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18016         * tests/havelib/rpathx/rpathx.c: New file, from
18017         gettext/autoconf-lib-link.
18018         * tests/havelib/rpathx/Makefile.am: New file, from
18019         gettext/autoconf-lib-link.
18020         * tests/havelib/rpathx/configure.ac: New file, from
18021         gettext/autoconf-lib-link with modifications.
18022         * tests/havelib/rpathy/rpathy.c: New file, from
18023         gettext/autoconf-lib-link.
18024         * tests/havelib/rpathy/Makefile.am: New file, from
18025         gettext/autoconf-lib-link.
18026         * tests/havelib/rpathy/configure.ac: New file, from
18027         gettext/autoconf-lib-link with modifications.
18028         * tests/havelib/rpathz/rpathz.c: New file, from
18029         gettext/autoconf-lib-link.
18030         * tests/havelib/rpathz/Makefile.am: New file, from
18031         gettext/autoconf-lib-link.
18032         * tests/havelib/rpathz/configure.ac: New file, from
18033         gettext/autoconf-lib-link with modifications.
18034         * tests/havelib/rpathlx/usex.c: New file, from
18035         gettext/autoconf-lib-link.
18036         * tests/havelib/rpathlx/Makefile.am: New file, from
18037         gettext/autoconf-lib-link.
18038         * tests/havelib/rpathlx/configure.ac: New file, from
18039         gettext/autoconf-lib-link with modifications.
18040         * tests/havelib/rpathly/usey.c: New file, from
18041         gettext/autoconf-lib-link.
18042         * tests/havelib/rpathly/Makefile.am: New file, from
18043         gettext/autoconf-lib-link.
18044         * tests/havelib/rpathly/configure.ac: New file, from
18045         gettext/autoconf-lib-link with modifications.
18046         * tests/havelib/rpathlz/usez.c: New file, from
18047         gettext/autoconf-lib-link.
18048         * tests/havelib/rpathlz/Makefile.am: New file, from
18049         gettext/autoconf-lib-link.
18050         * tests/havelib/rpathlz/configure.ac: New file, from
18051         gettext/autoconf-lib-link with modifications.
18052         * tests/havelib/rpathlyx/usey.c: New file, from
18053         gettext/autoconf-lib-link.
18054         * tests/havelib/rpathlyx/Makefile.am: New file, from
18055         gettext/autoconf-lib-link.
18056         * tests/havelib/rpathlyx/configure.ac: New file, from
18057         gettext/autoconf-lib-link with modifications.
18058         * tests/havelib/rpathlzyx/usez.c: New file, from
18059         gettext/autoconf-lib-link.
18060         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18061         gettext/autoconf-lib-link.
18062         * tests/havelib/rpathlzyx/configure.ac: New file, from
18063         gettext/autoconf-lib-link with modifications.
18064         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18065         with modifications.
18066
18067 2010-04-02  Bruno Haible  <bruno@clisp.org>
18068
18069         gnulib-tool: Create distributed built sources also for the tests.
18070         * gnulib-tool (func_create_testdir): Also generate distributed built
18071         sources in the tests directory.
18072
18073 2010-04-02  Bruno Haible  <bruno@clisp.org>
18074
18075         gnulib-tool: Obey user's environment variables.
18076         * gnulib-tool (func_create_testdir): When creating built sources,
18077         respect the environment variables for autoconf, automake, etc. given by
18078         the user.
18079
18080 2010-04-02  Bruno Haible  <bruno@clisp.org>
18081
18082         gnulib-tool: Provide the value of --m4-base to modules.
18083         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18084         of gl_m4_base.
18085
18086 2010-04-02  Eric Blake  <eblake@redhat.com>
18087
18088         maint.mk: fix some fallout
18089         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18090         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18091
18092 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18093
18094         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18095         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18096         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18097         (sc_cast_of_x_alloc_return_value): Likewise.
18098         (sc_cast_of_alloca_return_value): Likewise.
18099         (sc_space_tab): Likewise.
18100         (sc_prohibit_atoi_atof): Likewise.
18101         (sc_prohibit_magic_number_exit): Likewise.
18102         (sc_error_exit_success): Likewise.
18103         (sc_file_system): Likewise.
18104         (sc_prohibit_have_config_h): Likewise.
18105         (sc_require_config_h): Likewise.
18106         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18107         (sc_obsolete_symbols): Likewise.
18108         (sc_changelog): Likewise.
18109         (sc_program_name): Likewise.
18110         (sc_the_the): Likewise.
18111         (sc_trailing_blank): Likewise.
18112         (sc_two_space_separator_in_usage): Likewise.
18113         (sc_useless_cpp_parens): Likewise.
18114         (sc_GPL_version): Likewise.
18115         (sc_GFDL_version): Likewise.
18116         (sc_texinfo_acronym): Likewise.
18117         (sc_prohibit_cvs_keyword): Likewise.
18118         (sc_prohibit_stat_st_blocks): Likewise.
18119         (sc_prohibit_S_IS_definition): Likewise.
18120         (sc_redundant_const): Likewise.
18121         (sc_makefile_TAB_only_indentation): Likewise.
18122         (sc_m4_quote_check): Likewise.
18123         (sc_makefile_path_separator_check): Likewise.
18124         (sc_copyright_check): Likewise.
18125         (sc_Wundef_boolean): Likewise.
18126         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18127
18128         maint.mk: match 0 or more whitespace-before-function-call '('
18129         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18130         that have zero or two-and-more spaces between the function name
18131         and the open parenthesis.
18132         (sc_error_message_warn_fatal): Likewise.
18133         (sc_error_message_uppercase): Likewise.
18134         (sc_error_message_period): Likewise.
18135
18136 2010-03-31  Eric Blake  <eblake@redhat.com>
18137
18138         maint.mk: check for [ as well as test
18139         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18140         Based on a libvirt report by Matthias Bolte.
18141
18142         gnumakefile: don't squelch _version output
18143         * top/GNUmakefile (_version): Create one-shot dependency rather
18144         than using $(shell) when version must be regenerated.
18145         (_autoreconf): Run verbosely, by default.
18146
18147         sys_time: avoid compiler warnings
18148         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18149         unconditional, fixing regression from 2010-03-29.
18150         Reported by Simon Josefsson.
18151
18152 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18153
18154         maint.mk: s/_header_without_use/_sc_header_without_use/
18155         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18156         (sc_prohibit_assert_without_use): Use the new name.
18157         (sc_prohibit_close_stream_without_use): Likewise.
18158         (sc_prohibit_getopt_without_use): Likewise.
18159         (sc_prohibit_quotearg_without_use): Likewise.
18160         (sc_prohibit_quote_without_use): Likewise.
18161         (sc_prohibit_long_options_without_use): Likewise.
18162         (sc_prohibit_inttostr_without_use): Likewise.
18163         (sc_prohibit_ignore_value_without_use): Likewise.
18164         (sc_prohibit_error_without_use): Likewise.
18165         (sc_prohibit_xalloc_without_use): Likewise.
18166         (sc_prohibit_hash_without_use): Likewise.
18167         (sc_prohibit_hash_pjw_without_use): Likewise.
18168         (sc_prohibit_safe_read_without_use): Likewise.
18169         (sc_prohibit_argmatch_without_use): Likewise.
18170         (sc_prohibit_canonicalize_without_use): Likewise.
18171         (sc_prohibit_root_dev_ino_without_use): Likewise.
18172         (sc_prohibit_openat_without_use): Likewise.
18173         (sc_prohibit_c_ctype_without_use): Likewise.
18174         (sc_prohibit_signal_without_use): Likewise.
18175         (sc_prohibit_intprops_without_use): Likewise.
18176
18177 2010-03-30  Eric Blake  <eblake@redhat.com>
18178
18179         maint: improve module indicators
18180         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18181         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18182         columns, and avoid extra macro expansion.
18183
18184         fdopendir: work around FreeBSD bug
18185         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18186         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18187         * modules/dirent (Makefile.am): Substitute it.
18188         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18189         declaration.
18190         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18191         fix.
18192         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18193
18194 2010-03-29  Bruno Haible  <bruno@clisp.org>
18195
18196         Emit #pragma system_header after the inclusion guard, not before.
18197         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18198         guard that spans the entire file, not before. This enables an
18199         optimization in GCC's preprocessor.
18200         * lib/ctype.in.h: Likewise.
18201         * lib/dirent.in.h: Likewise.
18202         * lib/errno.in.h: Likewise.
18203         * lib/float.in.h: Likewise.
18204         * lib/getopt.in.h: Likewise.
18205         * lib/iconv.in.h: Likewise.
18206         * lib/langinfo.in.h: Likewise.
18207         * lib/locale.in.h: Likewise.
18208         * lib/math.in.h: Likewise.
18209         * lib/netdb.in.h: Likewise.
18210         * lib/netinet_in.in.h: Likewise.
18211         * lib/pty.in.h: Likewise.
18212         * lib/sched.in.h: Likewise.
18213         * lib/se-selinux.in.h: Likewise.
18214         * lib/search.in.h: Likewise.
18215         * lib/spawn.in.h: Likewise.
18216         * lib/stdarg.in.h: Likewise.
18217         * lib/stdint.in.h: Likewise.
18218         * lib/string.in.h: Likewise.
18219         * lib/strings.in.h: Likewise.
18220         * lib/sys_file.in.h: Likewise.
18221         * lib/sys_ioctl.in.h: Likewise.
18222         * lib/sys_time.in.h: Likewise.
18223         * lib/sys_times.in.h: Likewise.
18224         * lib/sys_utsname.in.h: Likewise.
18225         * lib/sys_wait.in.h: Likewise.
18226         * lib/sysexits.in.h: Likewise.
18227         * lib/wctype.in.h: Likewise.
18228
18229 2010-03-28  James Youngman  <jay@gnu.org>
18230
18231         save-cwd: don't leak a file descriptor when the caller execs.
18232         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18233         saved file descriptor.
18234         * modules/save-cwd (Depends-on): Depend on cloexec.
18235
18236 2010-03-29  Bruno Haible  <bruno@clisp.org>
18237
18238         Remove vestiges of fts-lgpl module.
18239         * lib/fts_.h: Assume GNULIB_FTS is 1.
18240         * lib/fts.c: Likewise.
18241         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18242
18243 2010-03-28  Bruno Haible  <bruno@clisp.org>
18244
18245         Fix definition of tests witness macro.
18246         * gnulib-tool (func_import): Fix definition of witness macro.
18247
18248 2010-03-28  Bruno Haible  <bruno@clisp.org>
18249
18250         Fix ioctl's protoype on glibc systems.
18251         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18252         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18253         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18254         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18255         signature. If not, arrange to replace the ioctl function.
18256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18257         REPLACE_IOCTL.
18258         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18259         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18260         Reported by Ludovic Courtès <ludo@gnu.org>.
18261
18262 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18263
18264         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18265         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18266         made it so grep -r --include=GLOB* ... did not work.
18267
18268 2010-03-26  Jim Meyering  <meyering@redhat.com>
18269             Eric Blake  <eblake@redhat.com>
18270
18271         maint.mk: prohibit use of test's -o and -a operators
18272         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18273
18274 2010-03-28  Bruno Haible  <bruno@clisp.org>
18275
18276         Remove unused GNULIB_XYZ macro definitions.
18277         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18278         invocation.
18279
18280 2010-03-28  Bruno Haible  <bruno@clisp.org>
18281
18282         Mark privileged tests modules.
18283         * modules/idpriv-drop-tests (Status): New section.
18284         * modules/idpriv-droptemp-tests (Status): New section.
18285
18286 2010-03-28  Bruno Haible  <bruno@clisp.org>
18287
18288         Split C++ tests into separate tests modules.
18289         * modules/dirent-c++-tests: New file, extracted from
18290         modules/dirent-tests.
18291         * modules/dirent-tests: Depend on it.
18292         * modules/fcntl-h-c++-tests: New file, extracted from
18293         modules/fcntl-h-tests.
18294         * modules/fcntl-h-tests: Depend on it.
18295         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18296         * modules/glob-tests: Depend on it.
18297         * modules/iconv-h-c++-tests: New file, extracted from
18298         modules/iconv-h-tests.
18299         * modules/iconv-h-tests: Depend on it.
18300         * modules/langinfo-c++-tests: New file, extracted from
18301         modules/langinfo-tests.
18302         * modules/langinfo-tests: Depend on it.
18303         * modules/locale-c++-tests: New file, extracted from
18304         modules/locale-tests.
18305         * modules/locale-tests: Depend on it.
18306         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18307         * modules/math-tests: Depend on it.
18308         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18309         * modules/pty-tests: Depend on it.
18310         * modules/search-c++-tests: New file, extracted from
18311         modules/search-tests.
18312         * modules/search-tests: Depend on it.
18313         * modules/signal-c++-tests: New file, extracted from
18314         modules/signal-tests.
18315         * modules/signal-tests: Depend on it.
18316         * modules/spawn-c++-tests: New file, extracted from
18317         modules/spawn-tests.
18318         * modules/spawn-tests: Depend on it.
18319         * modules/stdio-c++-tests: New file, extracted from
18320         modules/stdio-tests.
18321         * modules/stdio-tests: Depend on it.
18322         * modules/stdlib-c++-tests: New file, extracted from
18323         modules/stdlib-tests.
18324         * modules/stdlib-tests: Depend on it.
18325         * modules/string-c++-tests: New file, extracted from
18326         modules/string-tests.
18327         * modules/string-tests: Depend on it.
18328         * modules/sys_ioctl-c++-tests: New file, extracted from
18329         modules/sys_ioctl-tests.
18330         * modules/sys_ioctl-tests: Depend on it.
18331         * modules/sys_select-c++-tests: New file, extracted from
18332         modules/sys_select-tests.
18333         * modules/sys_select-tests: Depend on it.
18334         * modules/sys_socket-c++-tests: New file, extracted from
18335         modules/sys_socket-tests.
18336         * modules/sys_socket-tests: Depend on it.
18337         * modules/sys_stat-c++-tests: New file, extracted from
18338         modules/sys_stat-tests.
18339         * modules/sys_stat-tests: Depend on it.
18340         * modules/sys_time-c++-tests: New file, extracted from
18341         modules/sys_time-tests.
18342         * modules/sys_time-tests: Depend on it.
18343         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18344         * modules/time-tests: Depend on it.
18345         * modules/unistd-c++-tests: New file, extracted from
18346         modules/unistd-tests.
18347         * modules/unistd-tests: Depend on it.
18348         * modules/wchar-c++-tests: New file, extracted from
18349         modules/wchar-tests.
18350         * modules/wchar-tests: Depend on it.
18351         * modules/wctype-c++-tests: New file, extracted from
18352         modules/wctype-tests.
18353         * modules/wctype-tests: Depend on it.
18354         Reported by Simon Josefsson.
18355
18356 2010-03-28  Bruno Haible  <bruno@clisp.org>
18357
18358         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18359         * gnulib-tool (func_exists_module): New function, extracted from
18360         func_verify_module.
18361         (func_verify_module): Use it.
18362         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18363         'foo' only if 'foo' exists.
18364         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18365         module.
18366
18367 2010-03-28  Bruno Haible  <bruno@clisp.org>
18368
18369         gnulib-tool: Add support for special categories of tests.
18370         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18371         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18372         (func_usage): Document them.
18373         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18374         inc_unportable_tests, inc_all_tests): New variables.
18375         (func_acceptable): Consider these variables.
18376         (func_modules_transitive_closure): Make it work when the 'Status' field
18377         consists of multiple words.
18378         (func_import): Store and restore the values of inc_cxx_tests,
18379         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18380         inc_all_tests in gnulib-comp.m4.
18381         (func_create_testdir): Set inc_all_tests to true.
18382         * doc/gnulib.texi (Extra tests modules): New section.
18383         Suggested by Jim Meyering.
18384
18385 2010-03-28  Bruno Haible  <bruno@clisp.org>
18386
18387         ansi-c++-opt: Allow turning off the C++ build by default.
18388         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18389         gl_CXX_CHOICE_DEFAULT_NO is defined.
18390         Requested by Eric Blake.
18391
18392 2010-03-28  Bruno Haible  <bruno@clisp.org>
18393
18394         unistd: Avoid #define replacements in C++ mode.
18395         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18396         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18397         setsockopt, shutdown, select): In C++, attach a warning to the function
18398         if possible, rather than #defining the symbol to a dysfunctional alias.
18399         Reported by John W. Eaton <jwe@gnu.org>.
18400
18401 2010-03-28  Bruno Haible  <bruno@clisp.org>
18402
18403         Fix link errors on mingw.
18404         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18405         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18406         $(LIBSOCKET).
18407         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18408         $(LIBSOCKET).
18409
18410 2010-03-28  Bruno Haible  <bruno@clisp.org>
18411             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18412
18413         lib-ignore: Determine different options for different compilers.
18414         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18415         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18416         Add comments.
18417         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18418         * NEWS: Mention the change.
18419
18420 2010-03-27  Bruno Haible  <bruno@clisp.org>
18421
18422         Remove unused GNULIB_XYZ macro definitions.
18423         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18424         * modules/fseek (configure.ac): Likewise.
18425         * modules/ioctl (configure.ac): Likewise.
18426         * modules/open (configure.ac): Likewise.
18427         * modules/stdlib-safer (configure.ac): Likewise.
18428
18429 2010-03-27  Bruno Haible  <bruno@clisp.org>
18430
18431         Add a remark about certain modules.
18432         * modules/malloc (Comment): New section.
18433         * modules/realloc (Comment): Likewise.
18434         * modules/sigpipe (Comment): Likewise.
18435
18436 2010-03-27  Bruno Haible  <bruno@clisp.org>
18437
18438         Resolve conflict between the two kinds of module indicators.
18439         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18440         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18441         * modules/canonicalize (configure.ac): Invoke
18442         gl_MODULE_INDICATOR_FOR_TESTS.
18443         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18444         GNULIB_XYZ.
18445         * tests/test-dirent-c++.cc: Likewise.
18446         * tests/test-dirent-safer.c: Likewise.
18447         * tests/test-dup2.c: Likewise.
18448         * tests/test-fchdir.c: Likewise.
18449         * tests/test-fcntl-h-c++.cc: Likewise.
18450         * tests/test-getopt.c: Likewise.
18451         * tests/test-getopt.h: Likewise.
18452         * tests/test-langinfo-c++.cc: Likewise.
18453         * tests/test-locale-c++.cc: Likewise.
18454         * tests/test-math-c++.cc: Likewise.
18455         * tests/test-pty-c++.cc: Likewise.
18456         * tests/test-search-c++.cc: Likewise.
18457         * tests/test-signal-c++.cc: Likewise.
18458         * tests/test-spawn-c++.cc: Likewise.
18459         * tests/test-stdio-c++.cc: Likewise.
18460         * tests/test-stdlib-c++.cc: Likewise.
18461         * tests/test-string-c++.cc: Likewise.
18462         * tests/test-sys_ioctl-c++.cc: Likewise.
18463         * tests/test-sys_select-c++.cc: Likewise.
18464         * tests/test-sys_socket-c++.cc: Likewise.
18465         * tests/test-sys_stat-c++.cc: Likewise.
18466         * tests/test-sys_time-c++.cc: Likewise.
18467         * tests/test-time-c++.cc: Likewise.
18468         * tests/test-unistd-c++.cc: Likewise.
18469         * tests/test-wchar-c++.cc: Likewise.
18470         * tests/uninorm/test-u8-nfc.c: Likewise.
18471         * tests/uninorm/test-u8-nfd.c: Likewise.
18472         * tests/uninorm/test-u8-nfkc.c: Likewise.
18473         * tests/uninorm/test-u8-nfkd.c: Likewise.
18474         * tests/uninorm/test-u16-nfc.c: Likewise.
18475         * tests/uninorm/test-u16-nfd.c: Likewise.
18476         * tests/uninorm/test-u16-nfkc.c: Likewise.
18477         * tests/uninorm/test-u16-nfkd.c: Likewise.
18478         * tests/uninorm/test-u32-nfc.c: Likewise.
18479         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18480         * tests/uninorm/test-u32-nfd.c: Likewise.
18481         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18482         * tests/uninorm/test-u32-nfkc.c: Likewise.
18483         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18484         * tests/uninorm/test-u32-nfkd.c: Likewise.
18485         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18486         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18487
18488 2010-03-27  Bruno Haible  <bruno@clisp.org>
18489
18490         Distinguish two kinds of module indicators.
18491         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18492         gl_MODULE_INDICATOR.
18493         (gl_MODULE_INDICATOR): New macro.
18494         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18495         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18496         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18497         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18498         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18499         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18500         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18501         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18502         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18503         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18504         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18505         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18507         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18508         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18509         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18510         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18511         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18513         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18514         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18515         * modules/cloexec (configure.ac): Likewise.
18516         * modules/getopt-gnu (configure.ac): Likewise.
18517         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18518         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18519         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18520         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18521
18522 2010-03-27  Bruno Haible  <bruno@clisp.org>
18523
18524         New module description field 'Comment'.
18525         * gnulib-tool: New option --extract-comment.
18526         (func_usage): Document it.
18527         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18528         (func_get_comment): New function.
18529         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18530
18531 2010-03-27  Bruno Haible  <bruno@clisp.org>
18532
18533         Addendum to 2010-02-07 commit.
18534         * gnulib-tool (func_usage): Document --extract-applicability option.
18535
18536 2010-03-27  Bruno Haible  <bruno@clisp.org>
18537
18538         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18539         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18540         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18541         rather than link errors.
18542
18543 2010-03-27  Bruno Haible  <bruno@clisp.org>
18544
18545         Avoid side effects from tests-related modules on the compilation of lib.
18546         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18547         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18548         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18549         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18550         macro.
18551         (func_import): Define a witness macro. Assign it a value that depends
18552         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18553         tests-related modules.
18554         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18555         Reported by Jim Meyering.
18556
18557 2010-03-27  Bruno Haible  <bruno@clisp.org>
18558
18559         Factorize common .m4 code.
18560         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18561         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18562         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18563         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18564         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18565         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18566         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18567         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18568         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18569         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18570         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18571         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18572         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18573         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18574         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18575         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18576         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18577         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18579         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18580         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18581         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18582         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18583         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18584         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18585         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18586         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18587         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18588         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18590         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18591         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18592
18593 2010-03-27  Bruno Haible  <bruno@clisp.org>
18594
18595         Fix a compilation error on Cygwin with g++ >= 4.3.
18596         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18597         if it is undefined or if we alias it to chmod.
18598         (lstat): Don't warn about the use of this function if it is undefined
18599         or if we alias it to stat.
18600         Reported by Simon Josefsson.
18601
18602 2010-03-27  Bruno Haible  <bruno@clisp.org>
18603
18604         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18605         * modules/getlogin (configure.ac): Update.
18606
18607         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18608         * modules/getlogin_r (configure.ac): Update.
18609
18610         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18611         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18612         * modules/inet_ntop (configure.ac): Update.
18613
18614         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18615         * modules/inet_pton (configure.ac): Update.
18616
18617         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18618         * modules/mbslen (configure.ac): Update.
18619
18620         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18621         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18622         * modules/forkpty (configure.ac): Update.
18623         * modules/openpty (configure.ac): Update.
18624
18625 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18626
18627         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18628         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18629
18630 2010-03-25  Eric Blake  <eblake@redhat.com>
18631
18632         maint: use pragma consistently across replacement headers
18633         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18634         * lib/dirent.in.h (system_header): Likewise.
18635         * lib/errno.in.h (system_header): Likewise.
18636         * lib/float.in.h (system_header): Likewise.
18637         * lib/getopt.in.h (system_header): Likewise.
18638         * lib/iconv.in.h (system_header): Likewise.
18639         * lib/inttypes.in.h (system_header): Likewise.
18640         * lib/langinfo.in.h (system_header): Likewise.
18641         * lib/locale.in.h (system_header): Likewise.
18642         * lib/math.in.h (system_header): Likewise.
18643         * lib/netdb.in.h (system_header): Likewise.
18644         * lib/netinet_in.in.h (system_header): Likewise.
18645         * lib/pty.in.h (system_header): Likewise.
18646         * lib/sched.in.h (system_header): Likewise.
18647         * lib/se-selinux.in.h (system_header): Likewise.
18648         * lib/search.in.h (system_header): Likewise.
18649         * lib/spawn.in.h (system_header): Likewise.
18650         * lib/stdarg.in.h (system_header): Likewise.
18651         * lib/stdint.in.h (system_header): Likewise.
18652         * lib/string.in.h (system_header): Likewise.
18653         * lib/strings.in.h (system_header): Likewise.
18654         * lib/sys_file.in.h (system_header): Likewise.
18655         * lib/sys_ioctl.in.h (system_header): Likewise.
18656         * lib/sys_socket.in.h (system_header): Likewise.
18657         * lib/sys_times.in.h (system_header): Likewise.
18658         * lib/sys_utsname.in.h (system_header): Likewise.
18659         * lib/sys_wait.in.h (system_header): Likewise.
18660         * lib/sysexits.in.h (system_header): Likewise.
18661         * lib/unistd.in.h (system_header): Likewise.
18662         * lib/wctype.in.h (system_header): Likewise.
18663
18664         arpa/inet: fix mingw compilation warning
18665         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18666         Reported by Matthew Bolte.
18667
18668 2010-03-25  Bruno Haible  <bruno@clisp.org>
18669
18670         Avoid collision between gnulib wrapper and libintl wrapper.
18671         * lib/printf.c (printf): Don't define if a printf wrapper is already
18672         defined in intl/printf.c.
18673         Reported by Michel Boaventura <michel@michelboaventura.com>.
18674
18675 2010-03-25  Bruno Haible  <bruno@clisp.org>
18676
18677         Use ANSI C.
18678         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18679
18680 2010-03-25  Bruno Haible  <bruno@clisp.org>
18681
18682         Minor formatting changes.
18683         * lib/acosl.c: Insert space before function argument list.
18684         * lib/argz.c: Likewise.
18685         * lib/asinl.c: Likewise.
18686         * lib/expl.c: Likewise.
18687         * lib/gen-uni-tables.c: Likewise.
18688         * lib/gettext.h: Likewise.
18689         * lib/glthread/lock.h: Likewise.
18690         * lib/tanl.c: Likewise.
18691         * lib/uniname/uniname.c: Likewise.
18692         * tests/test-idpriv-drop.c: Likewise.
18693         * tests/test-idpriv-droptemp.c: Likewise.
18694         * tests/test-lock.c: Likewise.
18695         * tests/test-tls.c: Likewise.
18696         * lib/argp-help.c: Insert space before function-like macro argument
18697         list.
18698         * lib/memcmp.c: Likewise.
18699         * tests/test-base64.c: Likewise.
18700         * lib/localename.c: Insert space before sizeof's argument list.
18701         * lib/safe-alloc.h: Likewise.
18702         * lib/file-set.h: Insert space before macro argument list.
18703         * tests/test-argp.c: Likewise.
18704         * lib/argp-namefrob.h: Insert space before function parameter list.
18705         * lib/getaddrinfo.c: Likewise.
18706         * lib/netdb.in.h: Likewise.
18707         * lib/parse-duration.h: Likewise.
18708         * lib/parse-duration.c: Likewise.
18709         * lib/poll.c: Likewise.
18710         * lib/select.c: Likewise.
18711         * lib/trim.h: Likewise.
18712         * tests/test-usleep.c: Likewise.
18713         * lib/ldexpl.c: Insert space before function parameter list and before
18714         function argument list.
18715         * lib/logl.c: Likewise.
18716         * lib/sqrtl.c: Likewise.
18717         * lib/trim.c: Likewise.
18718         * lib/cosl.c: Use GNU style indentation. Insert space before function
18719         argument list.
18720         * lib/sinl.c: Likewise.
18721         * lib/tsearch.c: Insert space after 'for'.
18722         Reported by Jim Meyering.
18723
18724 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18725
18726         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18727         config header before grepping, as it's not present before
18728         autoreconf/configure are run.  Reported by Simon Josefsson.
18729
18730 2010-03-23  Bruno Haible  <bruno@clisp.org>
18731
18732         pt_chown: Make it work with automake < 1.11.
18733         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18734         Reported by Simon Josefsson.
18735
18736 2010-03-23  Bruno Haible  <bruno@clisp.org>
18737
18738         pt_chown: Don't depend on GPLed modules.
18739         * lib/pt_chown.c: Don't include idpriv.h.
18740         (main): Don't drop privileges.
18741         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18742         Reported by Simon Josefsson.
18743
18744 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18745
18746         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18747         suggestions from karl@freefriends.org (Karl Berry).
18748
18749 2010-03-22  Eric Blake  <eblake@redhat.com>
18750
18751         gethostname: further tweaks
18752         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18753         are overriding gethostname.
18754         Suggested by Bruno Haible.
18755
18756 2010-03-21  Bruno Haible  <bruno@clisp.org>
18757
18758         Fix comments.
18759         * lib/forkpty.c (rpl_forkpty): Fix comment.
18760         * lib/openpty.c (rpl_openpty): Likewise.
18761         Reported by Eric Blake.
18762
18763 2010-03-22  Eric Blake  <eblake@redhat.com>
18764
18765         gethostname: fix build on mingw
18766         * lib/unistd.in.h (includes): Work around fact that mingw
18767         <winsock2.h> re-includes <unistd.h>, by avoiding any
18768         redeclarations if we are being included by <winsock2.h>.
18769         Reported by Matthias Bolte.
18770
18771 2010-03-21  Bruno Haible  <bruno@clisp.org>
18772
18773         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18774         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18775         modifications.
18776         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18777         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18778         provide the replacement.
18779         * modules/forkpty (Depends-on): Add openpty, login_tty.
18780         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18781         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18782         * doc/glibc-functions/forkpty.texi: More supported platforms.
18783         * config/srclist.txt: Add forkpty.c (commented).
18784
18785 2010-03-21  Bruno Haible  <bruno@clisp.org>
18786
18787         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18788         (Makefile.am): Verify that PTY_LIB is defined.
18789
18790         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18791
18792 2010-03-21  Bruno Haible  <bruno@clisp.org>
18793
18794         Tests for module 'login_tty'.
18795         * modules/login_tty-tests: New file.
18796         * tests/test-login_tty.c: New file.
18797
18798         New module 'login_tty'.
18799         * lib/login_tty.c: New file.
18800         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18801         * modules/login_tty: New file.
18802         * doc/glibc-functions/login_tty.texi: Mention the new module.
18803
18804 2010-03-21  Bruno Haible  <bruno@clisp.org>
18805
18806         login_tty: Documentation.
18807         * doc/glibc-functions/login_tty.texi: New file.
18808         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18809
18810 2010-03-21  Bruno Haible  <bruno@clisp.org>
18811
18812         pty: Consistent macro naming.
18813         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18814         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18815         * modules/pty (configure.ac): Update.
18816
18817 2010-03-21  Bruno Haible  <bruno@clisp.org>
18818
18819         Tests for openpty: Make stricter.
18820         * tests/test-openpty.c (main): Add test of canonical processing and
18821         erase.
18822         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18823
18824         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18825         * lib/openpty.c (openpty): New replacement function.
18826         * lib/pty.in.h: Include <termios.h>.
18827         (openpty): Update declaration. Add comments.
18828         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18829         is not declared, arrange to provide the replacement. Check for _getpty
18830         and posix_openpt.
18831         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18832         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18833         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18834         * modules/pty-tests (test_pty_c___LDADD): New variable.
18835         * doc/glibc-functions/openpty.texi: More supported platforms.
18836
18837 2010-03-21  Bruno Haible  <bruno@clisp.org>
18838
18839         setenv: Tweaks.
18840         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18841         the test program.
18842         * doc/posix-functions/setenv.texi: Update platforms list.
18843
18844 2010-03-21  Bruno Haible  <bruno@clisp.org>
18845
18846         New module 'unlockpt'.
18847         * lib/unlockpt.c: New file, from glibc with modifications.
18848         * m4/unlockpt.m4: New file.
18849         * modules/unlockpt: New file.
18850         * lib/stdlib.in.h (unlockpt): New declaration.
18851         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18852         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18853         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18854         HAVE_UNLOCKPT.
18855         * doc/posix-functions/unlockpt.texi: Mention the new module.
18856         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18857         * config/srclist.txt: Add unlockpt.c (commented).
18858
18859 2010-03-21  Jim Meyering  <meyering@redhat.com>
18860
18861         maint.mk: prohibit inclusion of "intprops.h" without use
18862         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18863
18864 2010-03-21  Bruno Haible  <bruno@clisp.org>
18865
18866         New module 'grantpt'.
18867         * lib/grantpt.c: New file, from glibc with modifications.
18868         * m4/grantpt.m4: New file.
18869         * modules/grantpt: New file.
18870         * lib/stdlib.in.h (grantpt): New declaration.
18871         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18872         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18873         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18874         HAVE_GRANTPT.
18875         * doc/posix-functions/grantpt.texi: Mention the new module.
18876         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18877         * config/srclist.txt: Add grantpt.c (commented).
18878
18879 2010-03-21  Bruno Haible  <bruno@clisp.org>
18880
18881         New module 'pt_chown'.
18882         * lib/pt_chown.c: New file, from glibc with modifications.
18883         * lib/pty-private.h: New file, from glibc with modifications.
18884         * modules/pt_chown: New file.
18885         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18886
18887 2010-03-21  Bruno Haible  <bruno@clisp.org>
18888
18889         Tests for module 'ptsname'.
18890         * modules/ptsname-tests: New file.
18891         * tests/test-ptsname.c: New file.
18892
18893         New module 'ptsname'.
18894         * lib/ptsname.c: New file, from glibc with modifications.
18895         * m4/ptsname.m4: New file.
18896         * modules/ptsname: New file.
18897         * lib/stdlib.in.h (ptsname): New declaration.
18898         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18899         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18900         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18901         HAVE_PTSNAME.
18902         * doc/posix-functions/ptsname.texi: Mention the new module.
18903         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18904         * config/srclist.txt: Add ptsname.c (commented).
18905
18906 2010-03-21  Bruno Haible  <bruno@clisp.org>
18907
18908         Tests for module 'ttyname_r'.
18909         * modules/ttyname_r-tests: New file.
18910         * tests/test-ttyname_r.c: New file.
18911
18912         New module 'ttyname_r'.
18913         * lib/ttyname_r.c: New file.
18914         * m4/ttyname_r.m4: New file.
18915         * modules/ttyname_r: New file.
18916         * lib/unistd.in.h (ttyname_r): New declaration.
18917         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18918         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18919         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18920         HAVE_TTYNAME_R.
18921         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18922         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18923
18924 2010-03-20  Bruno Haible  <bruno@clisp.org>
18925
18926         signal: Undefine macro definitions in C++ mode.
18927         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18928         sigfillset): Undefine macro definitions from the system header in C++
18929         mode.
18930         Reported by John W. Eaton <jwe@gnu.org>.
18931
18932 2010-03-20  Bruno Haible  <bruno@clisp.org>
18933
18934         Ensure no #include statements inside extern "C" { ... }.
18935         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18936         contain #include statements.
18937         * lib/time.in.h: Likewise.
18938
18939 2010-03-20  Bruno Haible  <bruno@clisp.org>
18940
18941         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18942         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18943         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18944         Reported by John W. Eaton <jwe@gnu.org>.
18945
18946 2010-03-20  Bruno Haible  <bruno@clisp.org>
18947
18948         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18949         Reported by Jim Meyering.
18950
18951 2010-03-20  Bruno Haible  <bruno@clisp.org>
18952
18953         pipe: Set errno upon failure.
18954         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18955         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18956         errno value in error message.
18957
18958 2010-03-20  Bruno Haible  <bruno@clisp.org>
18959             Jim Meyering  <meyering@redhat.com>
18960
18961         lchown: Avoid "unused variable" warning.
18962         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18963
18964 2010-03-20  Bruno Haible  <bruno@clisp.org>
18965
18966         Work around unlink() bug on MacOS X 10.5.6.
18967         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18968         attempting to unlink a parent directory.
18969         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18970         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18971         activate for the replacement function.
18972         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18973
18974 2010-03-20  Bruno Haible  <bruno@clisp.org>
18975
18976         Fix link errors on Solaris 8.
18977         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18978         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18979
18980 2010-03-19  Jim Meyering  <meyering@redhat.com>
18981
18982         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18983         The _LIBC implementation of build_range_exp correctly honors the
18984         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18985         However, the non-_LIBC implementation would ignore that syntax-bit
18986         flag and return REG_ERANGE unconditionally.
18987         This change makes it honor that flag.
18988         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18989         Make two pointer parameters "const".
18990         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18991         (parse_bracket_exp): Update caller.
18992
18993         regex.m4: correct the reversed range endpoint ([b-a]) test
18994         * m4/regex.m4: When requiring that [b-a] evoke failure,
18995         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18996         test pass once again for x86-based systems.
18997
18998 2010-03-19  Bruno Haible  <bruno@clisp.org>
18999
19000         scandir: Fix link error on Solaris 8.
19001         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19002         macros.
19003
19004 2010-03-19  Bruno Haible  <bruno@clisp.org>
19005
19006         getusershell: Fix documentation.
19007         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19008         module.
19009         * doc/glibc-functions/setusershell.texi: Likewise.
19010
19011         getusershell: Provide declaration, missing on Solaris 9.
19012         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19013         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19014         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19015         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19017         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19018         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19019         HAVE_GETUSERSHELL.
19020         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19021
19022 2010-03-19  Bruno Haible  <bruno@clisp.org>
19023
19024         wctype: Provide iswblank function.
19025         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19026         exists and is fine.
19027         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19028         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19029         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19030         * doc/posix-functions/iswblank.texi: Update.
19031
19032 2010-03-19  Bruno Haible  <bruno@clisp.org>
19033
19034         Tests of module 'pty' in C++ mode.
19035         * modules/pty-tests: New file.
19036         * tests/test-pty-c++.cc: New file.
19037         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19038
19039 2010-03-19  Eric Blake  <eblake@redhat.com>
19040
19041         logb: fix documentation
19042         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19043         1.5 declaration bug.
19044
19045         forkpty, openpty: prefer glibc's const-safe prototype
19046         * lib/forkpty.c (rpl_forkpty): New file.
19047         * lib/openpty.c (rpl_openpty): Likewise.
19048         * modules/forkpty (Files): Distribute it.
19049         * modules/openpty (Files): Likewise.
19050         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19051         check...
19052         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19053         replacement for for non-const BSD signature.
19054         * modules/pty (Makefile.am): Substitute witnesses.
19055         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19056         * tests/test-forkpty.c: Update signature check.
19057         * tests/test-openpty.c: Likewise.
19058         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19059         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19060
19061         forkpty, openpty: split functions into new modules
19062         * modules/pty (Makefile.am): Substitute new witnesses.
19063         (Libraries): Move library detection...
19064         * modules/forkpty: ...into new module.
19065         * modules/openpty: Another new module.
19066         * modules/pty-tests: Rename and split...
19067         * modules/forkpty-tests: ...to this...
19068         * modules/openpty-tests: ...and this.
19069         * tests/test-pty.c: Rename and split...
19070         * tests/test-forkpty.c: ...to this...
19071         * tests/test-openpty.c: ...and this.
19072         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19073         (gl_PTY): Split library searching...
19074         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19075         (gl_FORKPTY, gl_OPENPTY): New macros.
19076         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19077         * NEWS: Mention the split.
19078         * MODULES.html.sh (Misc): Document the modules.
19079         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19080         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19081
19082         pty: improve replacement header
19083         * lib/pty.in.h: New file.
19084         * modules/pty (Files): Ship it.
19085         (Makefile.am): Always build replacement.
19086         * m4/pty.m4: Rename...
19087         * m4/pty_h.m4: ...to this.
19088         (gl_PTY): Modernize setting of witness macros; update check of
19089         forkpty to take proper advantage of cache.
19090         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19091
19092         getopt: avoid compiler warning
19093         * lib/getopt.c (attribute_hidden): Remove unused macro.
19094
19095 2010-03-18  Bruno Haible  <bruno@clisp.org>
19096
19097         Fix link errors on Solaris 8.
19098         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19099         * modules/search-tests (test_search_c___LDADD): Likewise.
19100         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19101         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19102         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19103         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19104         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19105         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19106         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19107
19108 2010-03-18  Bruno Haible  <bruno@clisp.org>
19109
19110         Fix bug introduced on 2010-03-14.
19111         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19112         (gl_SPAWN_H): Require it.
19113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19114         Reported by Simon Josefsson.
19115
19116 2010-03-18  Bruno Haible  <bruno@clisp.org>
19117
19118         Fix typo introduced on 2009-12-31.
19119         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19120         posix_spawn_file_actions_adddup2.
19121
19122 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19123         and Eric Blake  <eblake@redhat.com>
19124
19125         test-vc-list-files-git: make more robust
19126         * tests/test-vc-list-files-git.sh: Unset problematic environment
19127         variables.  Chain commands together.
19128
19129 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19130
19131         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19132         `AC_CHECK_DECL' invocation.
19133
19134 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19135
19136         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19137         appears before executable statements. Suggested by Petr Sumbera
19138         <Petr.Sumbera@Sun.COM>.
19139
19140 2010-03-14  Bruno Haible  <bruno@clisp.org>
19141
19142         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19143         portability problems. Instead use a simpler test.
19144         (main): Check that invalid arguments are rejected only on Linux.
19145
19146 2010-03-14  Bruno Haible  <bruno@clisp.org>
19147
19148         Fix bug introduced on 2009-12-31.
19149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19150         gl_PREREQ_SYS_H_WINSOCK2 always.
19151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19152         SYS_SOCKET_H variable.
19153         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19154         Update comments.
19155         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19156         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19159         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19160
19161 2010-03-14  Bruno Haible  <bruno@clisp.org>
19162
19163         Fix values returned by sinl, cosl.
19164         * lib/trigl.h: Add specification comments.
19165         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19166         that combines the values from the precomputed table with the values of
19167         the Chebyshev polynomials.
19168
19169 2010-03-14  Bruno Haible  <bruno@clisp.org>
19170
19171         Fix compilation error when modules 'posix_spawn[p]' are not used.
19172         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19174
19175 2010-03-14  Bruno Haible  <bruno@clisp.org>
19176
19177         Fix compilation error on mingw when module 'time_r' is not used.
19178         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19179         is 1.
19180         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19181         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19182         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19184
19185 2010-03-14  Bruno Haible  <bruno@clisp.org>
19186
19187         Fix compilation error with Sun C.
19188         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19189         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19190         instead of GCC specific ULONG_LONG_MAX.
19191         * lib/xstrtoll.c: Likewise.
19192         * lib/xstrtoull.c: Likewise.
19193
19194 2010-03-13  Bruno Haible  <bruno@clisp.org>
19195
19196         Allow the user to disable C++ code and tests.
19197         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19198         (gl_PROG_ANSI_CXX): Require it.
19199
19200 2010-03-13  Bruno Haible  <bruno@clisp.org>
19201
19202         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19203         cases.
19204
19205 2010-03-13  Bruno Haible  <bruno@clisp.org>
19206
19207         Test that gnulib does not break the standard C++ headers.
19208         * tests/test-locale-c++2.cc: New file.
19209         * modules/locale-tests (Files): Add it.
19210         (Makefile.am): Compile it for test-locale-c++.
19211         * tests/test-math-c++2.cc: New file.
19212         * modules/math-tests (Files): Add it.
19213         (Makefile.am): Compile it for test-math-c++.
19214         * tests/test-signal-c++2.cc: New file.
19215         * modules/signal-tests (Files): Add it.
19216         (Makefile.am): Compile it for test-signal-c++.
19217         * tests/test-stdio-c++2.cc: New file.
19218         * modules/stdio-tests (Files): Add it.
19219         (Makefile.am): Compile it for test-stdio-c++.
19220         * tests/test-stdlib-c++2.cc: New file.
19221         * modules/stdlib-tests (Files): Add it.
19222         (Makefile.am): Compile it for test-stdlib-c++.
19223         * tests/test-string-c++2.cc: New file.
19224         * modules/string-tests (Files): Add it.
19225         (Makefile.am): Compile it for test-string-c++.
19226         * tests/test-time-c++2.cc: New file.
19227         * modules/time-tests (Files): Add it.
19228         (Makefile.am): Compile it for test-time-c++.
19229         Reported by John W. Eaton <jwe@gnu.org>.
19230
19231 2010-03-13  Bruno Haible  <bruno@clisp.org>
19232
19233         * gnulib-tool (func_usage): Clarify which options are available for
19234         --create-testdir and --create-megatestdir.
19235
19236 2010-03-13  Bruno Haible  <bruno@clisp.org>
19237
19238         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19239         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19240         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19241         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19242         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19243         when appropriate.
19244         Reported by Jim Meyering.
19245
19246 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19247
19248         * gnulib-tool (func_import): Explain origin of code.
19249
19250 2010-03-12  Bruno Haible  <bruno@clisp.org>
19251
19252         Fix problem with automake's definition of CXXLINK.
19253         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19254         Reported by Simon Josefsson and Ludovic Courtès.
19255
19256 2010-03-12  Bruno Haible  <bruno@clisp.org>
19257
19258         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19259         stable releases.
19260
19261 2010-03-11  Bruno Haible  <bruno@clisp.org>
19262
19263         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19264         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19265         whether the system provides one variant or multiple variants of the
19266         function.
19267         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19268         C++ compilers.
19269         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19270         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19271         Reported by Jim Meyering.
19272
19273 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19274
19275         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19276
19277 2010-03-08  Bruno Haible  <bruno@clisp.org>
19278
19279         gnulib-tool: Add support for --libtool in --create-testdir.
19280         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19281         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19282
19283 2010-03-08  Eric Blake  <eblake@redhat.com>
19284
19285         gnulib-tool.texi: mention possibility of git submodule
19286         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19287         submodules.
19288         * doc/.gitignore: Ignore another generated file.
19289
19290 2010-03-08  Karl Berry  <karl@gnu.org>
19291
19292         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19293         of committing gnulib files while skipping others.
19294
19295 2010-03-07  Bruno Haible  <bruno@clisp.org>
19296
19297         Tests of module 'wctype' in C++ mode.
19298         * tests/test-wctype-c++.cc: New file.
19299         * modules/wctype-tests (Files): Add it and tests/signature.h.
19300         (Depends-on): Add ansi-c++-opt.
19301         (Makefile.am): Arrange to compile and run test-wctype-c++.
19302
19303         Tests of module 'wchar' in C++ mode.
19304         * tests/test-wchar-c++.cc: New file.
19305         * modules/wchar-tests (Files): Add it and tests/signature.h.
19306         (Depends-on): Add ansi-c++-opt.
19307         (Makefile.am): Arrange to compile and run test-wchar-c++.
19308         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19309         gl_MODULE_INDICATOR.
19310
19311         Tests of module 'unistd' in C++ mode.
19312         * tests/test-unistd-c++.cc: New file.
19313         * modules/unistd-tests (Files): Add it and tests/signature.h.
19314         (Depends-on): Add ansi-c++-opt.
19315         (Makefile.am): Arrange to compile and run test-unistd-c++.
19316         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19317         gl_MODULE_INDICATOR.
19318
19319         Tests of module 'time' in C++ mode.
19320         * tests/test-time-c++.cc: New file.
19321         * modules/time-tests (Files): Add it and tests/signature.h.
19322         (Depends-on): Add ansi-c++-opt.
19323         (Makefile.am): Arrange to compile and run test-time-c++.
19324         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19325
19326         Tests of module 'sys_time' in C++ mode.
19327         * tests/test-sys_time-c++.cc: New file.
19328         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19329         (Depends-on): Add ansi-c++-opt.
19330         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19331         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19332         gl_MODULE_INDICATOR.
19333
19334         Tests of module 'sys_stat' in C++ mode.
19335         * tests/test-sys_stat-c++.cc: New file.
19336         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19337         (Depends-on): Add ansi-c++-opt.
19338         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19339         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19340         gl_MODULE_INDICATOR.
19341
19342         Tests of module 'sys_socket' in C++ mode.
19343         * tests/test-sys_socket-c++.cc: New file.
19344         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19345         (Depends-on): Add ansi-c++-opt.
19346         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19348         gl_MODULE_INDICATOR.
19349
19350         Tests of module 'sys_select' in C++ mode.
19351         * tests/test-sys_select-c++.cc: New file.
19352         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19353         (Depends-on): Add ansi-c++-opt.
19354         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19355         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19356         gl_MODULE_INDICATOR.
19357
19358         Tests of module 'sys_ioctl' in C++ mode.
19359         * tests/test-sys_ioctl-c++.cc: New file.
19360         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19361         (Depends-on): Add ansi-c++-opt.
19362         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19364         gl_MODULE_INDICATOR.
19365
19366         Tests of module 'string' in C++ mode.
19367         * tests/test-string-c++.cc: New file.
19368         * modules/string-tests (Files): Add it and tests/signature.h.
19369         (Depends-on): Add ansi-c++-opt.
19370         (Makefile.am): Arrange to compile and run test-string-c++.
19371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19372         gl_MODULE_INDICATOR.
19373
19374         Tests of module 'stdlib' in C++ mode.
19375         * tests/test-stdlib-c++.cc: New file.
19376         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19377         (Depends-on): Add ansi-c++-opt.
19378         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19379         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19380         gl_MODULE_INDICATOR.
19381
19382         Tests of module 'stdio' in C++ mode.
19383         * tests/test-stdio-c++.cc: New file.
19384         * modules/stdio-tests (Files): Add it and tests/signature.h.
19385         (Depends-on): Add ansi-c++-opt.
19386         (Makefile.am): Arrange to compile and run test-stdio-c++.
19387         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19388         gl_MODULE_INDICATOR.
19389
19390         Tests of module 'spawn' in C++ mode.
19391         * tests/test-spawn-c++.cc: New file.
19392         * modules/spawn-tests (Files): Add it and tests/signature.h.
19393         (Depends-on): Add ansi-c++-opt.
19394         (Makefile.am): Arrange to compile and run test-spawn-c++.
19395         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19396         gl_MODULE_INDICATOR.
19397
19398         Tests of module 'signal' in C++ mode.
19399         * tests/test-signal-c++.cc: New file.
19400         * modules/signal-tests (Files): Add it and tests/signature.h.
19401         (Depends-on): Add ansi-c++-opt.
19402         (Makefile.am): Arrange to compile and run test-signal-c++.
19403         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19404         gl_MODULE_INDICATOR.
19405
19406         Tests of module 'search' in C++ mode.
19407         * tests/test-search-c++.cc: New file.
19408         * modules/search-tests (Files): Add it and tests/signature.h.
19409         (Depends-on): Add ansi-c++-opt.
19410         (Makefile.am): Arrange to compile and run test-search-c++.
19411         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19412         gl_MODULE_INDICATOR.
19413
19414         Tests of module 'math' in C++ mode.
19415         * tests/test-math-c++.cc: New file.
19416         * modules/math-tests (Files): Add it and tests/signature.h.
19417         (Depends-on): Add ansi-c++-opt.
19418         (Makefile.am): Arrange to compile and run test-math-c++.
19419         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19420
19421         Tests of module 'locale' in C++ mode.
19422         * tests/test-locale-c++.cc: New file.
19423         * modules/locale-tests (Files): Add it and tests/signature.h.
19424         (Depends-on): Add ansi-c++-opt.
19425         (Makefile.am): Arrange to compile and run test-locale-c++.
19426         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19427         gl_MODULE_INDICATOR.
19428
19429         Tests of module 'langinfo' in C++ mode.
19430         * tests/test-langinfo-c++.cc: New file.
19431         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19432         (Depends-on): Add ansi-c++-opt.
19433         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19434         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19435         gl_MODULE_INDICATOR.
19436
19437         Tests of module 'iconv-h' in C++ mode.
19438         * tests/test-iconv-h-c++.cc: New file.
19439         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19440         (Depends-on): Add ansi-c++-opt.
19441         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19442
19443         Tests of module 'glob' in C++ mode.
19444         * tests/test-glob-c++.cc: New file.
19445         * modules/glob-tests (Files): Add it.
19446         (Depends-on): Add ansi-c++-opt.
19447         (Makefile.am): Arrange to compile and run test-glob-c++.
19448
19449         Tests of module 'fcntl-h' in C++ mode.
19450         * tests/test-fcntl-h-c++.cc: New file.
19451         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19452         (Depends-on): Add ansi-c++-opt.
19453         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19455         gl_MODULE_INDICATOR.
19456
19457         Tests of module 'dirent' in C++ mode.
19458         * tests/test-dirent-c++.cc: New file.
19459         * modules/dirent-tests (Files): Add it and tests/signature.h.
19460         (Depends-on): Add ansi-c++-opt.
19461         (Makefile.am): Arrange to compile and run test-dirent-c++.
19462         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19463         gl_MODULE_INDICATOR.
19464
19465         New module 'ansi-c++-opt'.
19466         * modules/ansi-c++-opt: New file.
19467         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19468
19469         Document C++ namespace mode.
19470         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19471
19472         wctype: Avoid #define replacements in C++ mode.
19473         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19474         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19475         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19476         In C++, define a namespaced alias symbol.
19477         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19478         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19479         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19480         rule.
19481
19482         wchar: Avoid #define replacements in C++ mode.
19483         * lib/wchar.in.h: Include c++defs.h.
19484         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19485         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19486         symbol.
19487         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19488         * modules/wchar (Depends-on): Add c++defs.
19489         (Makefile.am): Update wchar.h rule.
19490
19491         unistd: Avoid #define replacements in C++ mode.
19492         * lib/unistd.in.h: Include c++defs.h.
19493         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19494         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19495         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19496         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19497         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19498         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19499         symbol.
19500         (environ): Update.
19501         * modules/unistd (Depends-on): Add c++defs.
19502         (Makefile.am): Update unistd.h rule.
19503
19504         time: Avoid #define replacements in C++ mode.
19505         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19506         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19507         define a namespaced alias symbol.
19508         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19509         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19510         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19511         * modules/time (Depends-on): Add c++defs, warn-on-use.
19512         (Makefile.am): Update time.h rule.
19513         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19514         * modules/nanosleep (configure.ac): Likewise.
19515         * modules/strptime (configure.ac): Likewise.
19516         * modules/timegm (configure.ac): Likewise.
19517
19518         sys_time: Avoid #define replacements in C++ mode.
19519         * lib/sys_time.in.h: Include c++defs.h.
19520         (gettimeofday): In C++, define a namespaced alias symbol.
19521         * modules/sys_time (Depends-on): Add c++defs.
19522         (Makefile.am): Update sys/time.h rule.
19523
19524         sys_stat: Avoid #define replacements in C++ mode.
19525         * lib/sys_stat.in.h: Include c++defs.h.
19526         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19527         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19528         namespaced alias symbol.
19529         In C++, define a namespaced alias symbol.
19530         * modules/sys_stat (Depends-on): Add c++defs.
19531         (Makefile.am): Update sys/stat.h rule.
19532
19533         sys_socket: Avoid #define replacements in C++ mode.
19534         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19535         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19536         definitions also when the system has a <sys/socket.h>.
19537         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19538         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19539         In C++, define a namespaced alias symbol.
19540         * modules/sys_socket (Depends-on): Add c++defs.
19541         (Makefile.am): Update sys/socket.h rule.
19542
19543         sys_select: Avoid #define replacements in C++ mode.
19544         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19545         definitions also when the system has a <sys/select.h>.
19546         (select): In C++, define a namespaced alias symbol.
19547         * modules/sys_select (Depends-on): Add c++defs.
19548         (Makefile.am): Update sys/select.h rule.
19549
19550         sys_ioctl: Avoid #define replacements in C++ mode.
19551         * lib/sys_ioctl.in.h: Include c++defs.h.
19552         (ioctl): In C++, define a namespaced alias symbol.
19553         * modules/sys_ioctl (Depends-on): Add c++defs.
19554         (Makefile.am): Update sys/ioctl.h rule.
19555
19556         string: Avoid #define replacements in C++ mode.
19557         * lib/string.in.h: Include c++defs.h.
19558         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19559         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19560         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19561         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19562         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19563         * modules/string (Depends-on): Add c++defs.
19564         (Makefile.am): Update string.h rule.
19565
19566         stdlib: Avoid #define replacements in C++ mode.
19567         * lib/stdlib.in.h: Include c++defs.h.
19568         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19569         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19570         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19571         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19572         symbol.
19573         * modules/stdlib (Depends-on): Add c++defs.
19574         (Makefile.am): Update stdlib.h rule.
19575
19576         stdio: Avoid #define replacements in C++ mode.
19577         * lib/stdio.in.h: Include c++defs.h.
19578         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19579         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19580         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19581         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19582         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19583         namespaced alias symbol.
19584         * modules/stdio (Depends-on): Add c++defs.
19585         (Makefile.am): Update stdio.h rule.
19586
19587         spawn: Avoid #define replacements in C++ mode.
19588         * lib/spawn.in.h: Include c++defs.h.
19589         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19590         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19591         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19592         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19593         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19594         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19595         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19596         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19597         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19598         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19599         In C++, define a namespaced alias symbol.
19600         * modules/spawn (Depends-on): Add c++defs.
19601         (Makefile.am): Update spawn.h rule.
19602
19603         signal: Avoid #define replacements in C++ mode.
19604         * lib/signal.in.h: Include c++defs.h.
19605         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19606         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19607         namespaced alias symbol.
19608         * modules/signal (Depends-on): Add c++defs.
19609         (Makefile.am): Update signal.h rule.
19610
19611         search: Avoid #define replacements in C++ mode.
19612         * lib/search.in.h: Include c++defs.h.
19613         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19614         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19615         symbol.
19616         * modules/search (Depends-on): Add c++defs.
19617         (Makefile.am): Update search.h rule.
19618
19619         math: Avoid #define replacements in C++ mode.
19620         * lib/math.in.h: Include c++defs.h.
19621         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19622         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19623         trunc, truncl): In C++, define a namespaced alias symbol.
19624         * modules/math (Depends-on): Add c++defs.
19625         (Makefile.am): Update math.h rule.
19626
19627         locale: Avoid #define replacements in C++ mode.
19628         * lib/locale.in.h: Include c++defs.h.
19629         (duplocale): In C++, define a namespaced alias symbol.
19630         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19632         * modules/locale (Depends-on): Add c++defs.
19633         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19634
19635         langinfo: Avoid #define replacements in C++ mode.
19636         * lib/langinfo.in.h: Include c++defs.h.
19637         (nl_langinfo): In C++, define a namespaced alias symbol.
19638         * modules/langinfo (Depends-on): Add c++defs.
19639         (Makefile.am): Update langinfo.h rule.
19640
19641         iconv-h: Avoid #define replacements in C++ mode.
19642         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19643         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19644         symbol.
19645         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19646         whenever iconv is present.
19647         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19648         (Makefile.am): Update iconv.h rule.
19649
19650         glob: Avoid #define replacements in C++ mode.
19651         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19652         (_gl_glob_errfunc_fn): New type.
19653         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19654         symbol.
19655         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19656         (Makefile.am): Update glob.h rule.
19657
19658         fcntl-h: Avoid #define replacements in C++ mode.
19659         * lib/fcntl.in.h: Include c++defs.h.
19660         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19661         * modules/fcntl-h (Depends-on): Add c++defs.
19662         (Makefile.am): Update fcntl.h rule.
19663
19664         dirent: Avoid #define replacements in C++ mode.
19665         * lib/dirent.in.h: Include c++defs.h.
19666         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19667         namespaced alias symbol.
19668         (dirfd): Update declaration.
19669         * modules/dirent (Depends-on): Add c++defs.
19670         (Makefile.am): Update dirent.h rule.
19671
19672         ctype: Make it usable in C++ code.
19673         * lib/ctype.in.h: Include c++defs.h.
19674         (isblank): Declare as extern "C".
19675         * modules/ctype (Depends-on): Add c++defs.
19676         (Makefile.am): Update ctype.h rule.
19677
19678         New module 'c++defs'.
19679         * modules/c++defs: New file.
19680         * build-aux/c++defs.h: New file.
19681         Reported by John W. Eaton <jwe@gnu.org>.
19682
19683 2010-03-07  Bruno Haible  <bruno@clisp.org>
19684
19685         logb: Provide missing declaration for Cygwin.
19686         * lib/math.in.h (logb): New declaration.
19687         * m4/logb.m4: New file.
19688         * modules/logb (Files): Add m4/logb.m4.
19689         (Depends-on): Add math.
19690         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19691         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19693         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19694         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19695
19696 2010-03-07  Bruno Haible  <bruno@clisp.org>
19697
19698         Fix test-cond link error.
19699         * tests/test-cond.c: Include <stdio.h>.
19700
19701 2010-03-07  Bruno Haible  <bruno@clisp.org>
19702
19703         Fix test-dirent-safer link error.
19704         * modules/dirent-safer-tests (Makefile.am): Define
19705         test_dirent_safer_LDADD.
19706
19707 2010-03-07  Bruno Haible  <bruno@clisp.org>
19708
19709         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19710         among default module list.
19711
19712 2010-03-07  Bruno Haible  <bruno@clisp.org>
19713
19714         Fix link error on platforms with GNU libiconv.
19715         * modules/unistr/u8-strcoll-tests (Makefile): Define
19716         test_u8_strcoll_LDADD.
19717         * modules/unistr/u16-strcoll-tests (Makefile): Define
19718         test_u16_strcoll_LDADD.
19719         * modules/unistr/u32-strcoll-tests (Makefile): Define
19720         test_u32_strcoll_LDADD.
19721
19722 2010-03-07  Bruno Haible  <bruno@clisp.org>
19723
19724         Use POSIX declarations for socket functions.
19725         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19726         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19727         rpl_sendto): Change declaration to match POSIX.
19728         * lib/connect.c (rpl_connect): Likewise.
19729         * lib/accept.c (rpl_accept): Likewise.
19730         * lib/bind.c (rpl_bind): Likewise.
19731         * lib/getpeername.c (rpl_getpeername): Likewise.
19732         * lib/getsockname.c (rpl_getsockname): Likewise.
19733         * lib/recv.c (rpl_recv): Likewise.
19734         * lib/send.c (rpl_send): Likewise.
19735         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19736         * lib/sendto.c (rpl_sendto): Likewise.
19737
19738 2010-03-06  Bruno Haible  <bruno@clisp.org>
19739
19740         Clarify access, euidaccess, faccessat.
19741         * doc/posix-functions/faccessat.texi: Mention security problem under
19742         "Other problems", not "Portability problems".
19743         * doc/posix-functions/access.texi: Likewise. Mention a related security
19744         problem.
19745         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19746         * lib/euidaccess.c: Add comments about platforms.
19747         * lib/unistd.in.h (access, euidaccess): Add warnings.
19748
19749 2010-03-07  Bruno Haible  <bruno@clisp.org>
19750
19751         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19752         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19753         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19754         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19755         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19756         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19757         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19758         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19759         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19760         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19761         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19762         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19763         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19764         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19765         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19766         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19767         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19768         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19769         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19770         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19771         Likewise.
19772         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19773         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19774         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19775         Likewise.
19776         * tests/test-spawn.c (main): Make it work when
19777         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19778
19779 2010-03-07  Bruno Haible  <bruno@clisp.org>
19780
19781         Fix incorrect Makefile.am generation in German locale.
19782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19783         Execute sed command with character range in C locale.
19784
19785 2010-03-06  Bruno Haible  <bruno@clisp.org>
19786
19787         Tests for module 'iconv-h'.
19788         * modules/iconv-h-tests: New file.
19789         * tests/test-iconv-h.c: New file.
19790
19791         New module 'iconv-h'.
19792         * modules/iconv-h: New file.
19793         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19794         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19795         (configure.ac): Remove gl_ICONV_H.
19796         (Makefile.am): Remove rule for iconv.h.
19797
19798 2010-03-06  Bruno Haible  <bruno@clisp.org>
19799
19800         More consistent naming of *.m4 files.
19801         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19802         * modules/wctype (Files): Update.
19803
19804         More consistent naming of *.m4 files.
19805         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19806         * modules/wchar (Files): Update.
19807
19808 2010-03-06  Jim Meyering  <meyering@redhat.com>
19809
19810         euidaccess: relax license to LGPLv2+
19811         * modules/euidaccess (License): Relax to LGPLv2+.
19812
19813 2010-03-06  Bruno Haible  <bruno@clisp.org>
19814
19815         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19816         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19817         (Makefile.am): Augment lib_SOURCES instead.
19818
19819 2010-03-04  Jim Meyering  <meyering@redhat.com>
19820
19821         utime: remove obsolete module
19822         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19823         unnecessary for years, and has been marked as obsolete for 10 months.
19824         * modules/utime: Remove file.
19825         * lib/utime.c: Remove file.
19826         * m4/utime.m4: Remove file.
19827         * m4/utimes-null.m4: Remove file.
19828         * doc/posix-functions/utime.texi (utime): Remove reference to
19829         the module.  Move the sole "fixed by gnulib" item into the
19830         "problems not fixed by Gnulib" list.
19831         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19832
19833 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19834
19835         * modules/exit (License): Relax license to LGPLv2+.
19836         (Status): Mark as obsolete.
19837         * NEWS: Mention deprecated 'exit' module.
19838         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19839         of now obsolete 'exit'.
19840
19841 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19842
19843         fts-lgpl: remove unused module
19844         * modules/fts-lgpl: Remove.
19845         * MODULES.html.sh (func_all_modules): Adjust.
19846         * check-module (find_included_lib_files): Adjust.
19847         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19848
19849 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19850
19851         copy-acl: enhance Solaris ACL error handling
19852         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19853         * lib/set-mode-acl.c (qset_acl): Likewise.
19854
19855 2010-03-02  Bruno Haible  <bruno@clisp.org>
19856
19857         spawn: Don't override the system defined values on FreeBSD 8.
19858         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19859         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19860         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19861         if HAVE_POSIX_SPAWN is 1.
19862         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19863
19864 2010-03-01  Bruno Haible  <bruno@clisp.org>
19865
19866         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19867         regarding Automake.
19868
19869 2010-02-25  Bruno Haible  <bruno@clisp.org>
19870
19871         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19872         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19873         setting, not afterwards.
19874         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19875
19876 2010-02-24  Eric Blake  <eblake@redhat.com>
19877
19878         bootstrap, git-version-gen: use timestamp
19879         * build-aux/git-version-gen (scriptversion): Force UTC.
19880         * build-aux/bootstrap (scriptversion): New variable.
19881
19882         bootstrap: allow older git
19883         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19884         older than 1.6.4.  Requested by the libvirt project.
19885
19886 2010-02-23  Eric Blake  <eblake@redhat.com>
19887
19888         warn-on-use: work with old autoconf
19889         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19890         AS_VAR semantics of autoconf 2.60.
19891         Reported by Bruno Haible.
19892
19893         bootstrap: improve some comments
19894         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19895         clarification comments.
19896
19897         gettimeofday: provide correct function
19898         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19899         when replacement is declared, otherwise provide gettimeofday.
19900         Reported by Michael Goffioul.
19901
19902 2010-02-23  Jim Meyering  <meyering@redhat.com>
19903
19904         lib-ignore: relax license to "unlimited", not LGPLv2+
19905         * modules/lib-ignore (License): Relax to "unlimited".
19906
19907 2010-02-23  Jim Meyering  <meyering@redhat.com>
19908
19909         lib-ignore: relax license to LGPLv2+
19910         * modules/lib-ignore (License): Relax to LGPLv2+.
19911
19912 2010-02-22  Eric Blake  <eblake@redhat.com>
19913
19914         lseek: avoid bash 3.2 broken pipe bug
19915         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19916         warning from bash 3.2.
19917         Reported by Ben Pfaff, with analysis from Bruno Haible.
19918
19919         bootstrap: support non-FSF copyright holder
19920         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19921         bootstrap.conf override of COPYRIGHT_HOLDER.
19922         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19923
19924         bootstrap: interoperate with gettext 0.14.1
19925         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19926
19927         bootstrap: allow for alternate submodule location
19928         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19929         hardcoding submodule location.
19930         (gnulib_mk): Allow direct use of Makefile.am.
19931
19932         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19933         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19934         rather than reconfiguring where the submodule points.
19935
19936         gettimeofday: restore support for platforms that lack function
19937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19938         replacement if function is missing.
19939         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19940         * modules/sys_time (Makefile.am): Substitute it.
19941         * lib/sys_time.in.h (gettimeofday): Check it.
19942         Reported by Michael Goffioul.
19943
19944 2010-02-21  Bruno Haible  <bruno@clisp.org>
19945
19946         * lib/stdio.in.h (obstack_printf): Fix typo.
19947
19948 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19949
19950         vc-list-files: use bzr ls's -R option
19951         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19952         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19953
19954 2010-02-21  Jim Meyering  <meyering@redhat.com>
19955
19956         init.sh: fix EXEEXT shims to work also for names like test-prog
19957         * tests/init.sh: Re-exec a better shell, when needed.
19958         If the current shell lacks support for posix $(...), an init.sh-using
19959         test will now try to find a shell that supports that.  If EXEEXT is
19960         nonempty, we also require support for hyphen-in-alias-name and shell
19961         substitutions like ${var#glob}.  Failure to find such a shell results
19962         in a skipped test.
19963
19964 2010-02-21  Bruno Haible  <bruno@clisp.org>
19965
19966         Really work around around "broken pipe" error message from bash 3.2.
19967         * gnulib-tool (func_reset_sigpipe): Remove function.
19968         (echo): In bash 3.2, define to a function that uses printf.
19969         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19970
19971 2010-02-20  Bruno Haible  <bruno@clisp.org>
19972
19973         Restore support for automake 1.9.6 with autoconf 2.61.
19974         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19975         Reported by James Youngman <jay@gnu.org>.
19976
19977 2010-02-20  Bruno Haible  <bruno@clisp.org>
19978
19979         Improve *printf warning condition.
19980         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19981         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19982         and the function is overridden due to SIGPIPE emulation.
19983
19984 2010-02-20  Bruno Haible  <bruno@clisp.org>
19985
19986         * lib/stdio.in.h: Tweak comments.
19987
19988 2010-02-19  Bruno Haible  <bruno@clisp.org>
19989
19990         Make it easier to find modules. New gnulib-tool option '--find'.
19991         * gnulib-tool: New option --find.
19992         (func_usage): Document it.
19993         (func_sanitize_modulelist): New function, extracted from
19994         func_all_modules.
19995         (func_all_modules): Invoke it.
19996         * doc/gnulib-tool.texi (Which modules?): New node.
19997
19998 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19999
20000         * lib/sys_select.in.h: Provide select replacement even if
20001         sys/select.h exists on a system, for Interix.
20002
20003 2010-02-18  Jim Meyering  <meyering@redhat.com>
20004
20005         init.sh: don't use $(...) just yet
20006         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20007         to accommodate e.g., Solaris' /bin/sh.
20008
20009 2010-02-17  Bruno Haible  <bruno@clisp.org>
20010
20011         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20012         Reported by Ludovic Courtès <ludo@gnu.org>.
20013
20014 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20015
20016         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20017         linking with -lintl.
20018
20019 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20020
20021         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20022         if not provided by the system's netdb.h.  Reported by
20023         ludo@gnu.org (Ludovic Courtès).
20024
20025 2010-02-15  Jim Meyering  <meyering@redhat.com>
20026
20027         init.sh: improve portability and efficiency
20028         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20029         "dummy" in a for loop.
20030         Use '!', not '^' to select the complement of a character set used
20031         in a "case" statement.
20032         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20033         Suggestions from Eric Blake.
20034
20035         init.sh: automatically accommodate programs with the .exe suffix
20036         Automatically arrange for an invocation of "prog" to execute the
20037         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20038         may use the simpler "prog", yet still work when built on a system
20039         that requires specifying the added suffix.
20040         Do this by constructing a function named "prog" that invokes
20041         "prog.exe" for each .exe file in selected directories.
20042         * tests/init.sh (find_exe_basenames_): New function.
20043         (create_exe_shim_functions_): New function.
20044         (path_prepend_): Use it.
20045
20046         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20047         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20048         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20049
20050 2010-02-14  Jim Meyering  <meyering@redhat.com>
20051
20052         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20053         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20054         (sc_prohibit_hash_pjw_without_use): New rule.
20055
20056         maint.mk: allow the default upload destination dir to be overridden
20057         * top/maint.mk (upload_dest_dir_): Define with a default that
20058         preserves the status quo.
20059         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20060         Reported by Peter Simons.
20061
20062         maint.mk: prohibit inclusion of "hash.h" without_use
20063         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20064
20065 2010-02-10  Jim Meyering  <meyering@redhat.com>
20066
20067         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20068         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20069
20070 2010-02-09  Eric Blake  <ebb9@byu.net>
20071         and Bruno Haible  <bruno@clisp.org>
20072
20073         obstack-printf-posix: ensure declaration
20074         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20075         extracted from gl_FUNC_OBSTACK_PRINTF.
20076         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20077         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20078         Likewise.
20079         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20080         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20081         0.
20082
20083 2010-02-08  Bruno Haible  <bruno@clisp.org>
20084
20085         gnulib-tool: Fix typo in 2010-02-07 commit.
20086         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20087         Reported by Eric Blake.
20088
20089 2010-02-07  Bruno Haible  <bruno@clisp.org>
20090
20091         gnulib-tool: Fix up caching patches.
20092         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20093         option --no-cache. Use associative arrays when supported by the shell.
20094         (sed_comments): New variable.
20095         (modcache): Renamed from do_cache.
20096         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20097         abbreviate unnecessarily.
20098         (have_associative): New variable.
20099         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20100         way also for ksh and zsh.
20101         (func_init_sed_convert_to_cache_statements): New function, extracted
20102         from func_cache_lookup_module. Add support for associative arrays.
20103         Don't set the c_MODULE_cached variable here. Ignore all lines before
20104         the first field header. Remove only the final newline, not all trailing
20105         newlines. Support empty fields correctly. Limit the use of 'eval' to
20106         assignments.
20107         (func_get_description, func_get_status, func_get_notice,
20108         func_get_applicability, func_get_filelist, func_get_dependencies,
20109         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20110         func_get_automake_snippet, func_get_include_directive,
20111         func_get_link_directive, func_get_license, func_get_maintainer):
20112         Update documentation. List the unoptimized code first. Add support for
20113         associative arrays. Limit the use of 'eval' to assignments.
20114         (func_get_applicability): Undo stylistic pessimisations.
20115         (func_get_automake_snippet, func_get_include_directive): Reduce code
20116         duplication.
20117         (func_modules_transitive_closure, func_modules_add_dummy,
20118         func_modules_notice, func_modules_to_filelist, func_add_file,
20119         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20120         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20121         func_create_testdir, func_create_megatestdir): Update documentation.
20122
20123 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20124
20125         * gnulib-tool (func_cache_lookup_module): Store the module name
20126         belonging to the cache variable; error out if two different
20127         module names map to the same cache variable name.
20128
20129 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20130
20131         gnulib-tool: Make caching optional.
20132         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20133         Update matching short versions of --no-changelog.
20134         (func_usage): Update.
20135         (sed_extract_cache_prog): Renamed from ...
20136         (sed_extract_prog): ... this; revert to old extraction script.
20137         (func_get_description, func_get_status)
20138         (func_get_notice, func_get_applicability, func_get_filelist)
20139         (func_get_dependencies, func_get_autoconf_early_snippet)
20140         (func_get_autoconf_snippet, func_get_automake_snippet)
20141         (func_get_include_directive, func_get_link_directive)
20142         (func_get_license, func_get_maintainer): If $do_cache is false,
20143         use old, non-caching extraction scripts.
20144         Suggestion by Bruno Haible.
20145
20146 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20147
20148         gnulib-tool: cache module metainformation.
20149         * gnulib-tool (sed_extract_prog): Match newline before each
20150         header, and rewrite header to a shell variable suffix.
20151         (func_cache_var, func_cache_lookup_module): New functions,
20152         to turn a module name into a cache variable prefix, and to
20153         look up and cache module metainformation.
20154         (func_get_description, func_get_status)
20155         (func_get_notice, func_get_applicability, func_get_filelist)
20156         (func_get_dependencies, func_get_autoconf_early_snippet)
20157         (func_get_autoconf_snippet, func_get_automake_snippet)
20158         (func_get_include_directive, func_get_link_directive)
20159         (func_get_license, func_get_maintainer): Use
20160         func_cache_lookup_module.
20161
20162 2010-02-07  Bruno Haible  <bruno@clisp.org>
20163
20164         fnctl: Fix missing dependency.
20165         * modules/fcntl (Depends-on): Add getdtablesize.
20166         Reported by John W. Eaton <jwe@gnu.org>.
20167
20168 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20169
20170         Argp: fix recognition of short alias options.
20171
20172         * lib/argp-parse.c (convert_options): Fix improper use of
20173         `|' between character values.
20174         * tests/test-argp.c (group1_option): New alias option
20175         --read (-r).
20176         (group1_parser): Special handling for 'r'.
20177         (test15): New test case.
20178         (test_fun): Add test15.
20179         * tests/test-argp-2.sh: Update expected --help and --usage
20180         outputs.
20181
20182 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20183
20184         * tests/test-argp.c: Fix indentation.
20185
20186 2010-02-04  Eric Blake  <ebb9@byu.net>
20187
20188         gettimeofday: expose type of second argument
20189         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20190         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20191         * tests/test-gettimeofday.c: Use it to silence warning.
20192         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20193         the issue.
20194
20195 2010-02-03  Jim Meyering  <meyering@redhat.com>
20196
20197         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20198         * lib/regcomp.c (TYPE_SIGNED): Define.
20199         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20200
20201         regcomp.c: avoid a new -Wshadow warning
20202         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20203
20204 2010-02-01  Jim Meyering  <meyering@redhat.com>
20205
20206         removing useless parentheses in cpp #define directives
20207         For motivation, see commit c0221df4, "define STREQ(a,b)
20208         consistently, removing useless parentheses"
20209         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20210         * lib/mountlist.c (MNT_IGNORE): Likewise.
20211         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20212
20213 2010-02-01  Eric Blake  <ebb9@byu.net>
20214
20215         sys_time: use link-warning
20216         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20217         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20218         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20219         * modules/sys_time (Depends-on): Add warn-on-use.
20220         (Makefile.am): Always build replacement.
20221         (configure.ac): Update substitutions.
20222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20223         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20224         bother with SYS_TIME_H.
20225         * modules/gettimeofday (configure.ac): Declare indicator.
20226         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20227         in use.
20228
20229         closein-tests: silence compiler warning
20230         * tests/test-closein.c (main): Ignore fread result.
20231         * modules/closein-tests (Depends-on): Add ignore-value.
20232
20233         tests: silence warning about system return
20234         * tests/test-areadlink-with-size.c (main): Ignore system result.
20235         * tests/test-areadlink.c (main): Likewise.
20236         * tests/test-areadlinkat-with-size.c (main): Likewise.
20237         * tests/test-areadlinkat.c (main): Likewise.
20238         * tests/test-canonicalize-lgpl.c (main): Likewise.
20239         * tests/test-canonicalize.c (main): Likewise.
20240         * tests/test-chown.c (main): Likewise.
20241         * tests/test-fchownat.c (main): Likewise.
20242         * tests/test-fdutimensat.c (main): Likewise.
20243         * tests/test-fstatat.c (main): Likewise.
20244         * tests/test-futimens.c (main): Likewise.
20245         * tests/test-lchown.c (main): Likewise.
20246         * tests/test-link.c (main): Likewise.
20247         * tests/test-linkat.c (main): Likewise.
20248         * tests/test-lstat.c (main): Likewise.
20249         * tests/test-mkdir.c (main): Likewise.
20250         * tests/test-mkdirat.c (main): Likewise.
20251         * tests/test-mkfifo.c (main): Likewise.
20252         * tests/test-mkfifoat.c (main): Likewise.
20253         * tests/test-mknod.c (main): Likewise.
20254         * tests/test-readlink.c (main): Likewise.
20255         * tests/test-remove.c (main): Likewise.
20256         * tests/test-rename.c (main): Likewise.
20257         * tests/test-renameat.c (main): Likewise.
20258         * tests/test-rmdir.c (main): Likewise.
20259         * tests/test-symlink.c (main): Likewise.
20260         * tests/test-symlinkat.c (main): Likewise.
20261         * tests/test-unlink.c (main): Likewise.
20262         * tests/test-unlinkat.c (main): Likewise.
20263         * tests/test-utimens.c (main): Likewise.
20264         * tests/test-utimensat.c (main): Likewise.
20265         * modules/areadlink-tests (Depends-on): Add ignore-value.
20266         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20267         * modules/areadlinkat-tests (Depends-on): Likewise.
20268         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20269         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20270         * modules/canonicalize-tests (Depends-on): Likewise.
20271         * modules/chown-tests (Depends-on): Likewise.
20272         * modules/fdutimensat-tests (Depends-on): Likewise.
20273         * modules/futimens-tests (Depends-on): Likewise.
20274         * modules/lchown-tests (Depends-on): Likewise.
20275         * modules/link-tests (Depends-on): Likewise.
20276         * modules/linkat-tests (Depends-on): Likewise.
20277         * modules/lstat-tests (Depends-on): Likewise.
20278         * modules/mkdir-tests (Depends-on): Likewise.
20279         * modules/mkfifo-tests (Depends-on): Likewise.
20280         * modules/mkfifoat-tests (Depends-on): Likewise.
20281         * modules/mknod-tests (Depends-on): Likewise.
20282         * modules/openat-tests (Depends-on): Likewise.
20283         * modules/readlink-tests (Depends-on): Likewise.
20284         * modules/remove-tests (Depends-on): Likewise.
20285         * modules/rename-tests (Depends-on): Likewise.
20286         * modules/renameat-tests (Depends-on): Likewise.
20287         * modules/rmdir-tests (Depends-on): Likewise.
20288         * modules/symlink-tests (Depends-on): Likewise.
20289         * modules/symlinkat-tests (Depends-on): Likewise.
20290         * modules/unlink-tests (Depends-on): Likewise.
20291         * modules/utimens-tests (Depends-on): Likewise.
20292         * modules/utimensat-tests (Depends-on): Likewise.
20293
20294 2010-01-31  Bruno Haible  <bruno@clisp.org>
20295
20296         Perform the same test for many <math.h> functions.
20297         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20298         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20299         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20300         of gl_MATHFUNC.
20301         * modules/acos (configure.ac): Likewise.
20302         * modules/asin (configure.ac): Likewise.
20303         * modules/atan (configure.ac): Likewise.
20304         * modules/atan2 (configure.ac): Likewise.
20305         * modules/cbrt (configure.ac): Likewise.
20306         * modules/copysign (configure.ac): Likewise.
20307         * modules/cos (configure.ac): Likewise.
20308         * modules/cosh (configure.ac): Likewise.
20309         * modules/erf (configure.ac): Likewise.
20310         * modules/erfc (configure.ac): Likewise.
20311         * modules/exp (configure.ac): Likewise.
20312         * modules/fmod (configure.ac): Likewise.
20313         * modules/hypot (configure.ac): Likewise.
20314         * modules/j0 (configure.ac): Likewise.
20315         * modules/j1 (configure.ac): Likewise.
20316         * modules/jn (configure.ac): Likewise.
20317         * modules/lgamma (configure.ac): Likewise.
20318         * modules/log (configure.ac): Likewise.
20319         * modules/log10 (configure.ac): Likewise.
20320         * modules/log1p (configure.ac): Likewise.
20321         * modules/pow (configure.ac): Likewise.
20322         * modules/remainder (configure.ac): Likewise.
20323         * modules/sin (configure.ac): Likewise.
20324         * modules/sinh (configure.ac): Likewise.
20325         * modules/tan (configure.ac): Likewise.
20326         * modules/tanh (configure.ac): Likewise.
20327         * modules/y0 (configure.ac): Likewise.
20328         * modules/y1 (configure.ac): Likewise.
20329         * modules/yn (configure.ac): Likewise.
20330         Suggested by Paolo Bonzini.
20331
20332 2010-01-31  Bruno Haible  <bruno@clisp.org>
20333
20334         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20335
20336 2010-01-31  Bruno Haible  <bruno@clisp.org>
20337
20338         Work around getdelim() bug on FreeBSD 8.0.
20339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20340         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20341         not work.
20342         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20343         is 1.
20344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20345         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20346         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20347         a non-zero size.
20348         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20349
20350 2010-01-31  Bruno Haible  <bruno@clisp.org>
20351
20352         Work around getline() bug on FreeBSD 8.0.
20353         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20354         and a non-zero size.
20355         * tests/test-getline.c (main): Likewise.
20356         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20357         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20358
20359 2010-01-28  Eric Blake  <ebb9@byu.net>
20360
20361         regex: fix build failure
20362         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20363         platforms.
20364
20365 2010-01-28  Jim Meyering  <meyering@redhat.com>
20366
20367         regex: do not ignore memory allocation failure
20368         * lib/regex_internal.c (create_cd_newstate): Detect
20369         re_node_set_init_copy failure.   Extracted from glibc commit
20370         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20371
20372         regex: sync more white-space changes from libc
20373         * lib/regex_internal.c: White-space only changes.
20374         * lib/regexec.c: Likewise.
20375
20376         regex: add many uses of __attribute_warn_unused_result__
20377         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20378         * lib/regexec.c: Likewise.
20379         Extracted from a messy glibc commit.
20380
20381         regcomp.c: spelling and merge-artifact from glibc
20382         * lib/regcomp.c: Merge remainder of glibc's
20383         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20384
20385         regcomp.c: sync white-space changes from glibc
20386         * lib/regcomp.c: Merge to accommodate white space
20387         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20388
20389         regcomp.c: do not ignore internal return values
20390         * lib/regcomp.c: Do not ignore internal return values.
20391         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20392         but without its white-space changes and spelling fixes.
20393
20394         regex_internal.h: define __attribute_warn_unused_result__
20395         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20396
20397         maint: add a syntax-check rule to check for vulnerable Makefile.in
20398         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20399
20400 2010-01-27  Jim Meyering  <meyering@redhat.com>
20401
20402         ncftpput-ftp: clean up spaces
20403         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20404         Remove trailing blanks.
20405
20406 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20407
20408         * build-aux/git-version-gen: Fix copyright statement.
20409         * build-aux/gnupload: Likewise.
20410         * tests/test-arcfour.c: Likewise.
20411         * tests/test-arctwo.c: Likewise.
20412         * tests/test-count-one-bits.c: Likewise.
20413         * tests/test-crc.c: Likewise.
20414         * tests/test-des.c: Likewise.
20415         * tests/test-gc-arcfour.c: Likewise.
20416         * tests/test-gc-arctwo.c: Likewise.
20417         * tests/test-gc-des.c: Likewise.
20418         * tests/test-gc-hmac-md5.c: Likewise.
20419         * tests/test-gc-hmac-sha1.c: Likewise.
20420         * tests/test-gc-md2.c: Likewise.
20421         * tests/test-gc-md4.c: Likewise.
20422         * tests/test-gc-md5.c: Likewise.
20423         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20424         * tests/test-gc-rijndael.c: Likewise.
20425         * tests/test-gc-sha1.c: Likewise.
20426         * tests/test-gc.c: Likewise.
20427         * tests/test-gethostname.c: Likewise.
20428         * tests/test-gettimeofday.c: Likewise.
20429         * tests/test-hash.c: Likewise.
20430         * tests/test-hmac-md5.c: Likewise.
20431         * tests/test-hmac-sha1.c: Likewise.
20432         * tests/test-md2.c: Likewise.
20433         * tests/test-md4.c: Likewise.
20434         * tests/test-md5.c: Likewise.
20435         * tests/test-memchr.c: Likewise.
20436         * tests/test-memchr2.c: Likewise.
20437         * tests/test-memcmp.c: Likewise.
20438         * tests/test-memmem.c: Likewise.
20439         * tests/test-memrchr.c: Likewise.
20440         * tests/test-rawmemchr.c: Likewise.
20441         * tests/test-read-file.c: Likewise.
20442         * tests/test-rijndael.c: Likewise.
20443         * tests/test-sockets.c: Likewise.
20444         * tests/test-strchrnul.c: Likewise.
20445         * tests/test-strstr.c: Likewise.
20446         * tests/test-strtod.c: Likewise.
20447         * build-aux/ncftpput-ftp: Likewise.
20448
20449 2010-01-26  Eric Blake  <ebb9@byu.net>
20450
20451         ignore-value: update recommended header name
20452         * modules/ignore-value (Include): Only use <> for headers that
20453         exist in glibc.
20454
20455 2010-01-26  Jim Meyering  <meyering@redhat.com>
20456
20457         test-userspec.c: avoid compiler warnings
20458         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20459         and "initialization discards qualifiers..." warnings.
20460         Put the first "uid" in its own scope, and make char* members "const".
20461
20462 2010-01-25  Bruno Haible  <bruno@clisp.org>
20463
20464         gnulib-tool: Make warning diagnostics consistent.
20465         * gnulib-tool (func_warning): New function.
20466         Use it everywhere where gnulib-tool produces output to stderr and it is
20467         not a fatal error.
20468
20469 2010-01-25  Bruno Haible  <bruno@clisp.org>
20470
20471         Fix test dependencies.
20472         * modules/xstrtol-tests (Depends-on): Add inttypes.
20473         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20474
20475 2010-01-25 Pádraig Brady <P@draigBrady.com>
20476
20477         syntax-check: detect incorrect boolean macro values in config.h
20478         * modules/maintainer-makefile (configure.ac): Parameterize the location
20479         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20480         The logic is from Eric Blake and the location indicated by Jim Meyering.
20481         Note the more natural CONFIG_HEADER name is prohibited by automake
20482         for backwards compatibility reasons.
20483         * top/maint.mk (sc_Wundef_boolean): New rule.
20484
20485 2010-01-25  Jim Meyering  <meyering@redhat.com>
20486
20487         bootstrap: detect MacOS 10.6's shasum, too
20488         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20489         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20490
20491 2010-01-23  Jim Meyering  <meyering@redhat.com>
20492
20493         xstrtoll: new module
20494         * modules/xstrtoll: New file.
20495         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20496         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20497         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20498         ./configure fails if you use this module and lack "long long".
20499         * modules/xstrtoll-tests: New module.
20500         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20501         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20502         new init.sh-based test framework.
20503
20504 2010-01-24  Bruno Haible  <bruno@clisp.org>
20505
20506         Tests for module 'yn'.
20507         * modules/yn-tests: New file.
20508         * tests/test-yn.c: New file.
20509
20510         Tests for module 'y1'.
20511         * modules/y1-tests: New file.
20512         * tests/test-y1.c: New file.
20513
20514         Tests for module 'y0'.
20515         * modules/y0-tests: New file.
20516         * tests/test-y0.c: New file.
20517
20518         Tests for module 'tanh'.
20519         * modules/tanh-tests: New file.
20520         * tests/test-tanh.c: New file.
20521
20522         Tests for module 'tan'.
20523         * modules/tan-tests: New file.
20524         * tests/test-tan.c: New file.
20525
20526         Tests for module 'sqrt'.
20527         * modules/sqrt-tests: New file.
20528         * tests/test-sqrt.c: New file.
20529
20530         Tests for module 'sinh'.
20531         * modules/sinh-tests: New file.
20532         * tests/test-sinh.c: New file.
20533
20534         Tests for module 'sin'.
20535         * modules/sin-tests: New file.
20536         * tests/test-sin.c: New file.
20537
20538         Tests for module 'rint'.
20539         * modules/rint-tests: New file.
20540         * tests/test-rint.c: New file.
20541
20542         Tests for module 'remainder'.
20543         * modules/remainder-tests: New file.
20544         * tests/test-remainder.c: New file.
20545
20546         Tests for module 'pow'.
20547         * modules/pow-tests: New file.
20548         * tests/test-pow.c: New file.
20549
20550         Tests for module 'nextafter'.
20551         * modules/nextafter-tests: New file.
20552         * tests/test-nextafter.c: New file.
20553
20554         Tests for module 'modf'.
20555         * modules/modf-tests: New file.
20556         * tests/test-modf.c: New file.
20557
20558         Tests for module 'logb'.
20559         * modules/logb-tests: New file.
20560         * tests/test-logb.c: New file.
20561
20562         Tests for module 'log1p'.
20563         * modules/log1p-tests: New file.
20564         * tests/test-log1p.c: New file.
20565
20566         Tests for module 'log10'.
20567         * modules/log10-tests: New file.
20568         * tests/test-log10.c: New file.
20569
20570         Tests for module 'log'.
20571         * modules/log-tests: New file.
20572         * tests/test-log.c: New file.
20573
20574         Tests for module 'lgamma'.
20575         * modules/lgamma-tests: New file.
20576         * tests/test-lgamma.c: New file.
20577
20578         Tests for module 'ldexp'.
20579         * modules/ldexp-tests: New file.
20580         * tests/test-ldexp.c: New file.
20581
20582         Tests for module 'jn'.
20583         * modules/jn-tests: New file.
20584         * tests/test-jn.c: New file.
20585
20586         Tests for module 'j1'.
20587         * modules/j1-tests: New file.
20588         * tests/test-j1.c: New file.
20589
20590         Tests for module 'j0'.
20591         * modules/j0-tests: New file.
20592         * tests/test-j0.c: New file.
20593
20594         Tests for module 'hypot'.
20595         * modules/hypot-tests: New file.
20596         * tests/test-hypot.c: New file.
20597
20598         Tests for module 'fmod'.
20599         * modules/fmod-tests: New file.
20600         * tests/test-fmod.c: New file.
20601
20602         Tests for module 'fabs'.
20603         * modules/fabs-tests: New file.
20604         * tests/test-fabs.c: New file.
20605
20606         Tests for module 'exp'.
20607         * modules/exp-tests: New file.
20608         * tests/test-exp.c: New file.
20609
20610         Tests for module 'erfc'.
20611         * modules/erfc-tests: New file.
20612         * tests/test-erfc.c: New file.
20613
20614         Tests for module 'erf'.
20615         * modules/erf-tests: New file.
20616         * tests/test-erf.c: New file.
20617
20618         Tests for module 'cosh'.
20619         * modules/cosh-tests: New file.
20620         * tests/test-cosh.c: New file.
20621
20622         Tests for module 'cos'.
20623         * modules/cos-tests: New file.
20624         * tests/test-cos.c: New file.
20625
20626         Tests for module 'copysign'.
20627         * modules/copysign-tests: New file.
20628         * tests/test-copysign.c: New file.
20629
20630         Tests for module 'cbrt'.
20631         * modules/cbrt-tests: New file.
20632         * tests/test-cbrt.c: New file.
20633
20634         Tests for module 'atan2'.
20635         * modules/atan2-tests: New file.
20636         * tests/test-atan2.c: New file.
20637
20638         Tests for module 'atan'.
20639         * modules/atan-tests: New file.
20640         * tests/test-atan.c: New file.
20641
20642         Tests for module 'asin'.
20643         * modules/asin-tests: New file.
20644         * tests/test-asin.c: New file.
20645
20646         Tests for module 'acos'.
20647         * modules/acos-tests: New file.
20648         * tests/test-acos.c: New file.
20649
20650 2010-01-24  Bruno Haible  <bruno@clisp.org>
20651
20652         Fix tests for common <math.h> functions.
20653         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20654         code snippet that references the function pointer, rather than merely
20655         calling the function. Substitute the FUNC_LIBM variable.
20656         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20657         * modules/acos (configure.ac): Likewise.
20658         * modules/asin (configure.ac): Likewise.
20659         * modules/atan (configure.ac): Likewise.
20660         * modules/atan2 (configure.ac): Likewise.
20661         * modules/cbrt (configure.ac): Likewise.
20662         * modules/copysign (configure.ac): Likewise.
20663         * modules/cos (configure.ac): Likewise.
20664         * modules/cosh (configure.ac): Likewise.
20665         * modules/erf (configure.ac): Likewise.
20666         * modules/erfc (configure.ac): Likewise.
20667         * modules/exp (configure.ac): Likewise.
20668         * modules/fabs (configure.ac): Likewise.
20669         * modules/fmod (configure.ac): Likewise.
20670         * modules/hypot (configure.ac): Likewise.
20671         * modules/j0 (configure.ac): Likewise.
20672         * modules/j1 (configure.ac): Likewise.
20673         * modules/jn (configure.ac): Likewise.
20674         * modules/ldexp (configure.ac): Likewise.
20675         * modules/lgamma (configure.ac): Likewise.
20676         * modules/log (configure.ac): Likewise.
20677         * modules/log10 (configure.ac): Likewise.
20678         * modules/log1p (configure.ac): Likewise.
20679         * modules/logb (configure.ac): Likewise.
20680         * modules/modf (configure.ac): Likewise.
20681         * modules/nextafter (configure.ac): Likewise.
20682         * modules/pow (configure.ac): Likewise.
20683         * modules/remainder (configure.ac): Likewise.
20684         * modules/rint (configure.ac): Likewise.
20685         * modules/sin (configure.ac): Likewise.
20686         * modules/sinh (configure.ac): Likewise.
20687         * modules/tan (configure.ac): Likewise.
20688         * modules/tanh (configure.ac): Likewise.
20689         * modules/y0 (configure.ac): Likewise.
20690         * modules/y1 (configure.ac): Likewise.
20691         * modules/yn (configure.ac): Likewise.
20692
20693 2010-01-24  Bruno Haible  <bruno@clisp.org>
20694
20695         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20696         * tests/test-acosl.c (x): New variable.
20697         (main): Store argument in x and fetch it from x.
20698         * tests/test-asinl.c (x): New variable.
20699         (main): Store argument in x and fetch it from x.
20700         * tests/test-atanl.c (x): New variable.
20701         (main): Store argument in x and fetch it from x.
20702         * tests/test-cosl.c (x): New variable.
20703         (main): Store argument in x and fetch it from x.
20704         * tests/test-expl.c (x): New variable.
20705         (main): Store argument in x and fetch it from x.
20706         * tests/test-logl.c (x): New variable.
20707         (main): Store argument in x and fetch it from x.
20708         * tests/test-sinl.c (x): New variable.
20709         (main): Store argument in x and fetch it from x.
20710         * tests/test-sqrtl.c (x): New variable.
20711         (main): Store argument in x and fetch it from x.
20712         * tests/test-tanl.c (x): New variable.
20713         (main): Store argument in x and fetch it from x.
20714
20715 2010-01-24  Bruno Haible  <bruno@clisp.org>
20716
20717         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20718         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20719         assignments to the initial TESTS_ENVIRONMENT.
20720         * doc/gnulib.texi (Unit test modules): Document it.
20721         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20722         TESTS_ENVIRONMENT.
20723         * modules/btowc-tests (Makefile.am): Likewise.
20724         * modules/c-stack-tests (Makefile.am): Likewise.
20725         * modules/c-strcase-tests (Makefile.am): Likewise.
20726         * modules/copy-file-tests (Makefile.am): Likewise.
20727         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20728         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20729         * modules/mbrtowc-tests (Makefile.am): Likewise.
20730         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20731         * modules/mbscasestr-tests (Makefile.am): Likewise.
20732         * modules/mbschr-tests (Makefile.am): Likewise.
20733         * modules/mbscspn-tests (Makefile.am): Likewise.
20734         * modules/mbsinit-tests (Makefile.am): Likewise.
20735         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20736         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20737         * modules/mbspbrk-tests (Makefile.am): Likewise.
20738         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20739         * modules/mbsrchr-tests (Makefile.am): Likewise.
20740         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20741         * modules/mbsspn-tests (Makefile.am): Likewise.
20742         * modules/mbsstr-tests (Makefile.am): Likewise.
20743         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20744         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20745         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20746         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20747         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20748         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20749         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20750         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20751         * modules/wcrtomb-tests (Makefile.am): Likewise.
20752         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20753         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20754         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20755         assignments from TESTS_ENVIRONMENT.
20756         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20757         augmentation.
20758         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20759         * modules/atexit-tests (Makefile.am): Likewise.
20760         * modules/binary-io-tests (Makefile.am): Likewise.
20761         * modules/closein-tests (Makefile.am): Likewise.
20762         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20763         * modules/exclude-tests (Makefile.am): Likewise.
20764         * modules/fflush-tests (Makefile.am): Likewise.
20765         * modules/fpending-tests (Makefile.am): Likewise.
20766         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20767         * modules/freadahead-tests (Makefile.am): Likewise.
20768         * modules/freadptr-tests (Makefile.am): Likewise.
20769         * modules/freadseek-tests (Makefile.am): Likewise.
20770         * modules/fseek-tests (Makefile.am): Likewise.
20771         * modules/fseeko-tests (Makefile.am): Likewise.
20772         * modules/ftell-tests (Makefile.am): Likewise.
20773         * modules/ftello-tests (Makefile.am): Likewise.
20774         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20775         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20776         * modules/lseek-tests (Makefile.am): Likewise.
20777         * modules/parse-duration-tests (Makefile.am): Likewise.
20778         * modules/perror-tests (Makefile.am): Likewise.
20779         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20780         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20781         * modules/pipe-tests (Makefile.am): Likewise.
20782         * modules/pread-tests (Makefile.am): Likewise.
20783         * modules/printf-posix-tests (Makefile.am): Likewise.
20784         * modules/select-tests (Makefile.am): Likewise.
20785         * modules/sigpipe-tests (Makefile.am): Likewise.
20786         * modules/tsearch-tests (Makefile.am): Likewise.
20787         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20788         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20789         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20790         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20791         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20792         * modules/version-etc-tests (Makefile.am): Likewise.
20793         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20794         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20795         * modules/xalloc-die-tests (Makefile.am): Likewise.
20796         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20797         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20798         * modules/xstrtol-tests (Makefile.am): Likewise.
20799         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20800         * modules/yesno-tests (Makefile.am): Likewise.
20801         Suggested by Jim Meyering.
20802
20803 2010-01-24  Bruno Haible  <bruno@clisp.org>
20804
20805         More documentation.
20806         * doc/gnulib.texi (Writing modules): New chapter.
20807         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20808         the new chapter.
20809
20810 2010-01-24  Jim Meyering  <meyering@redhat.com>
20811
20812         maint.mk: do not prepend "./" after filtering
20813         * top/maint.mk (_prepend_srcdir_prefix): New variable
20814         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20815         "./" when $(srcdir) is ".".
20816
20817         define STREQ(a,b) consistently, removing useless parentheses
20818         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20819         since the only risk is that "a" or "b" contains an unparenthesized
20820         comma, but if either did that, STREQ would have 3 or more arguments.
20821         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20822         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20823         * lib/hash-triple.c (STREQ): Likewise.
20824         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20825         * lib/getugroups.c (STREQ): Likewise.
20826
20827 2010-01-23  Jim Meyering  <meyering@redhat.com>
20828
20829         maint.mk: fix syntax-check in a non-srcdir build directory
20830         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20831         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20832
20833 2010-01-22  Jim Meyering  <meyering@redhat.com>
20834
20835         userspec: add unit tests
20836         * tests/test-userspec.c: New file.
20837         * modules/userspec-tests: Likewise.
20838
20839 2010-01-21  Jim Meyering  <meyering@redhat.com>
20840
20841         maint.mk: handle source file names containing "." robustly
20842         * top/maint.mk (_dot_escaped_srcdir): Define.
20843         (VC_LIST): Use it in LHS of sed substitution.
20844
20845 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20846
20847         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20848         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20849         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20850         from a non-srcdir build.
20851
20852 2010-01-20  Eric Blake  <ebb9@byu.net>
20853
20854         warn-on-use: use instead of link-warning
20855         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20856         * modules/unistd (Depends-on, Makefile.am): Likewise.
20857         * modules/arpa_inet (Depends-on): Replace link-warning with
20858         warn-on-use.
20859         (Makefile.am): Update rules accordingly.
20860         * modules/ctype (Depends-on, Makefile.am): Likewise.
20861         * modules/dirent (Depends-on, Makefile.am): Likewise.
20862         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20863         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20864         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20865         * modules/locale (Depends-on, Makefile.am): Likewise.
20866         * modules/math (Depends-on, Makefile.am): Likewise.
20867         * modules/search (Depends-on, Makefile.am): Likewise.
20868         * modules/signal (Depends-on, Makefile.am): Likewise.
20869         * modules/spawn (Depends-on, Makefile.am): Likewise.
20870         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20871         * modules/string (Depends-on, Makefile.am): Likewise.
20872         * modules/strings (Depends-on, Makefile.am): Likewise.
20873         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20874         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20875         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20876         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20877         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20878         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20879         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20880         * modules/wchar (Depends-on, Makefile.am): Likewise.
20881         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20882         should be poisoned.
20883         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20884         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20885         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20886         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20887         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20888         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20889         * m4/math_h.m4 (gl_MATH_H): Likewise.
20890         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20891         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20892         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20893         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20894         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20895         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20896         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20897         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20898         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20902         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20904         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20905         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20906         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20907         GL_LINK_WARNING.
20908         * lib/ctype.in.h: Likewise.
20909         * lib/dirent.in.h: Likewise.
20910         * lib/fcntl.in.h: Likewise.
20911         * lib/inttypes.in.h: Likewise.
20912         * lib/langinfo.in.h: Likewise.
20913         * lib/locale.in.h: Likewise.
20914         * lib/math.in.h: Likewise.
20915         * lib/search.in.h: Likewise.
20916         * lib/signal.in.h: Likewise.
20917         * lib/spawn.in.h: Likewise.
20918         * lib/stdio.in.h: Likewise.
20919         * lib/stdlib.in.h: Likewise.
20920         * lib/string.in.h: Likewise.
20921         * lib/strings.in.h: Likewise.
20922         * lib/sys_file.in.h: Likewise.
20923         * lib/sys_ioctl.in.h: Likewise.
20924         * lib/sys_select.in.h: Likewise.
20925         * lib/sys_socket.in.h: Likewise.
20926         * lib/sys_stat.in.h: Likewise.
20927         * lib/sys_times.in.h: Likewise.
20928         * lib/sys_utsname.in.h: Likewise.
20929         * lib/unistd.in.h: Likewise.
20930         * lib/wchar.in.h: Likewise.
20931
20932 2010-01-20  Bruno Haible  <bruno@clisp.org>
20933
20934         Avoid duplicate -lm.
20935         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20936         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20938         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20939         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20940         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20941         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20942         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20943         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20944         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20945         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20946         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20947         Reported by Paolo Bonzini.
20948
20949 2010-01-19  Bruno Haible  <bruno@clisp.org>
20950
20951         langinfo, nl_langinfo: Relicense under LGPLv2+.
20952         * modules/langinfo (License): Change to LGPLv2+.
20953         * modules/nl_langinfo (License): Likewise.
20954         Patch by David Lutterkort <lutter@redhat.com>.
20955
20956 2010-01-19  Bruno Haible  <bruno@clisp.org>
20957
20958         Avoid compilation error with cc on OSF/1 5.1.
20959         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20960         statement, not before.
20961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20962
20963 2010-01-18  Bruno Haible  <bruno@clisp.org>
20964
20965         Avoid a link error due to the __printf__ symbol.
20966         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20967         and 2.6.x.
20968         (__format__, __printf__): Remove definitions.
20969         * lib/argp-fmtstream.h: Likewise.
20970         * lib/argp.h: Likewise.
20971         * lib/error.h: Likewise.
20972         * lib/vasnprintf.h: Likewise.
20973         * lib/xprintf.h: Likewise.
20974         * lib/xvasprintf.h: Likewise.
20975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20976
20977 2010-01-18  Bruno Haible  <bruno@clisp.org>
20978
20979         Tests for module 'tanl'.
20980         * modules/tanl-tests: New file.
20981         * tests/test-tanl.c: New file.
20982
20983         Tests for module 'sqrtl'.
20984         * modules/sqrtl-tests: New file.
20985         * tests/test-sqrtl.c: New file.
20986
20987         Tests for module 'sinl'.
20988         * modules/sinl-tests: New file.
20989         * tests/test-sinl.c: New file.
20990
20991         Tests for module 'logl'.
20992         * modules/logl-tests: New file.
20993         * tests/test-logl.c: New file.
20994
20995         Tests for module 'expl'.
20996         * modules/expl-tests: New file.
20997         * tests/test-expl.c: New file.
20998
20999         Tests for module 'cosl'.
21000         * modules/cosl-tests: New file.
21001         * tests/test-cosl.c: New file.
21002
21003         Tests for module 'atanl'.
21004         * modules/atanl-tests: New file.
21005         * tests/test-atanl.c: New file.
21006
21007         Tests for module 'asinl'.
21008         * modules/asinl-tests: New file.
21009         * tests/test-asinl.c: New file.
21010
21011         Tests for module 'acosl'.
21012         * modules/acosl-tests: New file.
21013         * tests/test-acosl.c: New file.
21014
21015         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21016         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21017         tanl): Use the standard gnulib idiom.
21018         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21019         * lib/sinl.c: Likewise.
21020         * lib/tanl.c: Don't include trigl.c.
21021         (kernel_tanl): Make static.
21022         * lib/sincosl.c: Include trigl.h first.
21023         * lib/trigl.c: Likewise.
21024         * m4/acosl.m4: New file.
21025         * m4/asinl.m4: New file.
21026         * m4/atanl.m4: New file.
21027         * m4/cosl.m4: New file.
21028         * m4/expl.m4: New file.
21029         * m4/logl.m4: New file.
21030         * m4/sinl.m4: New file.
21031         * m4/sqrtl.m4: New file.
21032         * m4/tanl.m4: New file.
21033         * m4/mathl.m4: Remove file.
21034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21035         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21036         Don't initialize GNULIB_MATHL.
21037         * modules/acosl: New file.
21038         * modules/asinl: New file.
21039         * modules/atanl: New file.
21040         * modules/cosl: New file.
21041         * modules/expl: New file.
21042         * modules/logl: New file.
21043         * modules/sinl: New file.
21044         * modules/sqrtl: New file.
21045         * modules/tanl: New file.
21046         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21047         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21048         substitute GNULIB_MATHL.
21049         * modules/mathl: Rewritten.
21050         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21051         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21052         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21053         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21054         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21055         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21056         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21057         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21058         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21059
21060 2010-01-18  Bruno Haible  <bruno@clisp.org>
21061
21062         sqrt: Make gl_FUNC_SQRT requirable.
21063         * m4/sqrt.m4: New file.
21064         * modules/sqrt (Files): Add it.
21065         (configure.ac): Invoke gl_FUNC_SQRT.
21066
21067 2010-01-18  Bruno Haible  <bruno@clisp.org>
21068
21069         New modules for common <math.h> functions.
21070         * m4/mathfunc.m4: New file.
21071         * modules/acos: New file.
21072         * modules/asin: New file.
21073         * modules/atan: New file.
21074         * modules/atan2: New file.
21075         * modules/cbrt: New file.
21076         * modules/copysign: New file.
21077         * modules/cos: New file.
21078         * modules/cosh: New file.
21079         * modules/erf: New file.
21080         * modules/erfc: New file.
21081         * modules/exp: New file.
21082         * modules/fabs: New file.
21083         * modules/fmod: New file.
21084         * modules/hypot: New file.
21085         * modules/j0: New file.
21086         * modules/j1: New file.
21087         * modules/jn: New file.
21088         * modules/ldexp: New file.
21089         * modules/lgamma: New file.
21090         * modules/log: New file.
21091         * modules/log10: New file.
21092         * modules/log1p: New file.
21093         * modules/logb: New file.
21094         * modules/modf: New file.
21095         * modules/nextafter: New file.
21096         * modules/pow: New file.
21097         * modules/remainder: New file.
21098         * modules/rint: New file.
21099         * modules/sin: New file.
21100         * modules/sinh: New file.
21101         * modules/sqrt: New file.
21102         * modules/tan: New file.
21103         * modules/tanh: New file.
21104         * modules/y0: New file.
21105         * modules/y1: New file.
21106         * modules/yn: New file.
21107         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21108         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21109         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21110         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21111         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21112         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21113         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21114         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21115         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21116         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21117         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21118         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21119         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21120         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21121         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21122         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21123         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21124         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21125         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21126         * doc/posix-functions/log.texi: Mention the 'log' module.
21127         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21128         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21129         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21130         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21131         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21132         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21133         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21134         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21135         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21136         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21137         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21138         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21139         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21140         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21141         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21142         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21143
21144 2010-01-18  Jim Meyering  <meyering@redhat.com>
21145
21146         ignore-value: relax license to LGPLv2+
21147         * modules/ignore-value (License): Relax to LGPLv2+.
21148
21149         getdate: don't leak when TZ contains two or more '"'s
21150         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21151         double quote in TZ after the first one.
21152
21153         readtokens: do not leak internal token_lengths buffer
21154         * lib/readtokens.c (readtokens): Free the local, lengths,
21155         when the supplied "token_lengths" parameter is NULL.
21156
21157 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21158
21159         Fix a couple of missing LIBTHREAD link failures on AIX.
21160         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21161         $(LIBTHREAD).
21162         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21163
21164         Link test-poll against INET_PTON_LIB.
21165         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21166         for inet_pton on Solaris 10.
21167
21168 2010-01-17  Bruno Haible  <bruno@clisp.org>
21169
21170         unistdio/*-sprintf: Fix typo in module description.
21171         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21172         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21173         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21174         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21175         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21176         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21177         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21179
21180 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21181
21182         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21183         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21184         variables in shell case patterns, for AIX and HP-UX ksh.
21185
21186         Split large sed scripts, for HP-UX sed.
21187         * modules/stdio: Split sed scripts around 50 sed commands,
21188         to avoid HP-UX limit of 99 commands, in the near future.
21189         * modules/string: Likewise.
21190         * modules/unistd: Likewise.
21191
21192         gnulib-tool: avoid writing in the current directory.
21193         * gnulib-tool (func_emit_lib_Makefile_am)
21194         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21195         not in the current directory, so concurrent gnulib-tool
21196         instances do not interfere.
21197
21198 2010-01-16  Jim Meyering  <meyering@redhat.com>
21199
21200         doc: update users.txt
21201         * users.txt: Add grep.
21202         (diffutils, gzip): Update URLs.
21203
21204 2010-01-12  Bruno Haible  <bruno@clisp.org>
21205
21206         posix_spawn: Avoid test failure on Cygwin.
21207         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21208         characters.
21209         Reported by Simon Josefsson.
21210
21211 2010-01-12  Bruno Haible  <bruno@clisp.org>
21212
21213         * tests/test-cond.c (main): When skipping the test, show the reason.
21214
21215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21216
21217         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21218
21219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21220
21221         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21222         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21223
21224 2010-01-12  Eric Blake  <ebb9@byu.net>
21225
21226         build: guarantee AS_VAR_IF
21227         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21228         (gl_AS_VAR_IF): Move...
21229         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21230         Reported by Simon Josefsson.
21231
21232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21233
21234         * lib/stdio.in.h: Fix typo.
21235
21236 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21237
21238         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21239         libgpg-error.
21240
21241 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21242
21243         * tests/test-xalloc-die.sh: Use $EXEEXT.
21244
21245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21246             Bruno Haible  <bruno@clisp.org>
21247
21248         getlogin, getlogin_r: Avoid test failure.
21249         * tests/test-getlogin.c: Include <stdio.h>.
21250         (main): Skip the test when the function fails because stdin is not a
21251         tty.
21252         * tests/test-getlogin_r.c: Include <stdio.h>.
21253         (main): Skip the test when the function fails because stdin is not a
21254         tty.
21255
21256 2010-01-11  Eric Blake  <ebb9@byu.net>
21257
21258         tests: avoid more large file warnings
21259         * tests/test-fflush.c: Avoid warning about ftell use.
21260         * tests/test-fseek.c: Avoid warning about fseek use.
21261
21262 2010-01-10  Bruno Haible  <bruno@clisp.org>
21263
21264         nproc: Work better on Linux when /proc and /sys are not mounted.
21265         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21266         as lower bound when, on glibc/Linux systems,
21267         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21268         Suggested by Pádraig Brady <P@draigbrady.com>.
21269         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21270
21271         nproc: Refactor.
21272         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21273         extracted from num_processors.
21274         (num_processors): Call it.
21275
21276 2010-01-11  Jim Meyering  <meyering@redhat.com>
21277
21278         utimecmp: avoid new warning from upcoming gcc-4.5.0
21279         * lib/utimecmp.c (BILLION): Define using #define rather than an
21280         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21281
21282 2010-01-11  Eric Blake  <ebb9@byu.net>
21283
21284         math: add portability warnings for classification macros
21285         * modules/math (Depends-on): Add warn-on-use.
21286         (Makefile.am): Provide new substitutions.
21287         * m4/math_h.m4 (gl_MATH_H): Require inline.
21288         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21289         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21290         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21291         implement warnings.
21292
21293         unistd: warn on use of environ without module
21294         * modules/unistd (Depends-on): Add warn-on-use.
21295         (Makefile.am): Provide new substitutions.
21296         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21297         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21298
21299         stdio: warn on suspicious uses
21300         * modules/stdio (Depends-on): Add warn-on-use.
21301         (Makefile.am): Provide new substitutions.
21302         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21303         fseeko.
21304         * lib/stdio.in.h (gets): Always warn on use.
21305         (fseek, ftell): Adjust when warnings are issued, and honor
21306         _GL_NO_LARGE_FILES as a way to silence the warning.
21307         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21308         any warning about large file offsets.
21309         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21310         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21311         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21312         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21313         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21314         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21315         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21316         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21317
21318         warn-on-use: new module
21319         * modules/warn-on-use: New file.
21320         * build-aux/warn-on-use.h: Likewise.
21321         * m4/warn-on-use.m4: Likewise.
21322         * MODULES.html.sh (Support for building): Mention it.
21323
21324 2010-01-10  Bruno Haible  <bruno@clisp.org>
21325
21326         Tests for module 'unistr/u32-strdup'.
21327         * modules/unistr/u32-strdup-tests: New file.
21328         * tests/unistr/test-u32-strdup.c: New file.
21329
21330         Tests for module 'unistr/u16-strdup'.
21331         * modules/unistr/u16-strdup-tests: New file.
21332         * tests/unistr/test-u16-strdup.c: New file.
21333
21334         Tests for module 'unistr/u8-strdup'.
21335         * modules/unistr/u8-strdup-tests: New file.
21336         * tests/unistr/test-u8-strdup.c: New file.
21337         * tests/unistr/test-strdup.h: New file.
21338
21339         Tests for module 'unistr/u32-strncmp'.
21340         * modules/unistr/u32-strncmp-tests: New file.
21341         * tests/unistr/test-u32-strncmp.c: New file.
21342
21343         Tests for module 'unistr/u16-strncmp'.
21344         * modules/unistr/u16-strncmp-tests: New file.
21345         * tests/unistr/test-u16-strncmp.c: New file.
21346
21347         Tests for module 'unistr/u8-strncmp'.
21348         * modules/unistr/u8-strncmp-tests: New file.
21349         * tests/unistr/test-u8-strncmp.c: New file.
21350         * tests/unistr/test-strncmp.h: New file.
21351
21352         Tests for module 'unistr/u32-strcoll'.
21353         * modules/unistr/u32-strcoll-tests: New file.
21354         * tests/unistr/test-u32-strcoll.c: New file.
21355
21356         Tests for module 'unistr/u16-strcoll'.
21357         * modules/unistr/u16-strcoll-tests: New file.
21358         * tests/unistr/test-u16-strcoll.c: New file.
21359
21360         Tests for module 'unistr/u8-strcoll'.
21361         * modules/unistr/u8-strcoll-tests: New file.
21362         * tests/unistr/test-u8-strcoll.c: New file.
21363
21364         Tests for module 'unistr/u32-strcmp'.
21365         * modules/unistr/u32-strcmp-tests: New file.
21366         * tests/unistr/test-u32-strcmp.c: New file.
21367         * tests/unistr/test-u32-strcmp.h: New file.
21368
21369         Tests for module 'unistr/u16-strcmp'.
21370         * modules/unistr/u16-strcmp-tests: New file.
21371         * tests/unistr/test-u16-strcmp.c: New file.
21372         * tests/unistr/test-u16-strcmp.h: New file.
21373
21374         Tests for module 'unistr/u8-strcmp'.
21375         * modules/unistr/u8-strcmp-tests: New file.
21376         * tests/unistr/test-u8-strcmp.c: New file.
21377         * tests/unistr/test-u8-strcmp.h: New file.
21378         * tests/unistr/test-strcmp.h: New file.
21379
21380         Tests for module 'unistr/u32-strncat'.
21381         * modules/unistr/u32-strncat-tests: New file.
21382         * tests/unistr/test-u32-strncat.c: New file.
21383
21384         Tests for module 'unistr/u16-strncat'.
21385         * modules/unistr/u16-strncat-tests: New file.
21386         * tests/unistr/test-u16-strncat.c: New file.
21387
21388         Tests for module 'unistr/u8-strncat'.
21389         * modules/unistr/u8-strncat-tests: New file.
21390         * tests/unistr/test-u8-strncat.c: New file.
21391         * tests/unistr/test-strncat.h: New file.
21392
21393         Tests for module 'unistr/u32-strcat'.
21394         * modules/unistr/u32-strcat-tests: New file.
21395         * tests/unistr/test-u32-strcat.c: New file.
21396
21397         Tests for module 'unistr/u16-strcat'.
21398         * modules/unistr/u16-strcat-tests: New file.
21399         * tests/unistr/test-u16-strcat.c: New file.
21400
21401         Tests for module 'unistr/u8-strcat'.
21402         * modules/unistr/u8-strcat-tests: New file.
21403         * tests/unistr/test-u8-strcat.c: New file.
21404         * tests/unistr/test-strcat.h: New file.
21405
21406         Tests for module 'unistr/u32-stpncpy'.
21407         * modules/unistr/u32-stpncpy-tests: New file.
21408         * tests/unistr/test-u32-stpncpy.c: New file.
21409
21410         Tests for module 'unistr/u16-stpncpy'.
21411         * modules/unistr/u16-stpncpy-tests: New file.
21412         * tests/unistr/test-u16-stpncpy.c: New file.
21413
21414         Tests for module 'unistr/u8-stpncpy'.
21415         * modules/unistr/u8-stpncpy-tests: New file.
21416         * tests/unistr/test-u8-stpncpy.c: New file.
21417         * tests/unistr/test-stpncpy.h: New file.
21418
21419         Tests for module 'unistr/u32-strncpy'.
21420         * modules/unistr/u32-strncpy-tests: New file.
21421         * tests/unistr/test-u32-strncpy.c: New file.
21422
21423         Tests for module 'unistr/u16-strncpy'.
21424         * modules/unistr/u16-strncpy-tests: New file.
21425         * tests/unistr/test-u16-strncpy.c: New file.
21426
21427         Tests for module 'unistr/u8-strncpy'.
21428         * modules/unistr/u8-strncpy-tests: New file.
21429         * tests/unistr/test-u8-strncpy.c: New file.
21430         * tests/unistr/test-strncpy.h: New file.
21431
21432         Tests for module 'unistr/u32-stpcpy'.
21433         * modules/unistr/u32-stpcpy-tests: New file.
21434         * tests/unistr/test-u32-stpcpy.c: New file.
21435
21436         Tests for module 'unistr/u16-stpcpy'.
21437         * modules/unistr/u16-stpcpy-tests: New file.
21438         * tests/unistr/test-u16-stpcpy.c: New file.
21439
21440         Tests for module 'unistr/u8-stpcpy'.
21441         * modules/unistr/u8-stpcpy-tests: New file.
21442         * tests/unistr/test-u8-stpcpy.c: New file.
21443         * tests/unistr/test-stpcpy.h: New file.
21444
21445         Tests for module 'unistr/u32-strcpy'.
21446         * modules/unistr/u32-strcpy-tests: New file.
21447         * tests/unistr/test-u32-strcpy.c: New file.
21448
21449         Tests for module 'unistr/u16-strcpy'.
21450         * modules/unistr/u16-strcpy-tests: New file.
21451         * tests/unistr/test-u16-strcpy.c: New file.
21452
21453         Tests for module 'unistr/u8-strcpy'.
21454         * modules/unistr/u8-strcpy-tests: New file.
21455         * tests/unistr/test-u8-strcpy.c: New file.
21456         * tests/unistr/test-strcpy.h: New file.
21457
21458         Tests for module 'unistr/u32-strnlen'.
21459         * modules/unistr/u32-strnlen-tests: New file.
21460         * tests/unistr/test-u32-strnlen.c: New file.
21461
21462         Tests for module 'unistr/u16-strnlen'.
21463         * modules/unistr/u16-strnlen-tests: New file.
21464         * tests/unistr/test-u16-strnlen.c: New file.
21465
21466         Tests for module 'unistr/u8-strnlen'.
21467         * modules/unistr/u8-strnlen-tests: New file.
21468         * tests/unistr/test-u8-strnlen.c: New file.
21469         * tests/unistr/test-strnlen.h: New file.
21470
21471         Tests for module 'unistr/u32-strlen'.
21472         * modules/unistr/u32-strlen-tests: New file.
21473         * tests/unistr/test-u32-strlen.c: New file.
21474
21475         Tests for module 'unistr/u16-strlen'.
21476         * modules/unistr/u16-strlen-tests: New file.
21477         * tests/unistr/test-u16-strlen.c: New file.
21478
21479         Tests for module 'unistr/u8-strlen'.
21480         * modules/unistr/u8-strlen-tests: New file.
21481         * tests/unistr/test-u8-strlen.c: New file.
21482
21483         Tests for module 'unistr/u32-prev'.
21484         * modules/unistr/u32-prev-tests: New file.
21485         * tests/unistr/test-u32-prev.c: New file.
21486
21487         Tests for module 'unistr/u16-prev'.
21488         * modules/unistr/u16-prev-tests: New file.
21489         * tests/unistr/test-u16-prev.c: New file.
21490
21491         Tests for module 'unistr/u8-prev'.
21492         * modules/unistr/u8-prev-tests: New file.
21493         * tests/unistr/test-u8-prev.c: New file.
21494
21495         Tests for module 'unistr/u32-next'.
21496         * modules/unistr/u32-next-tests: New file.
21497         * tests/unistr/test-u32-next.c: New file.
21498
21499         Tests for module 'unistr/u16-next'.
21500         * modules/unistr/u16-next-tests: New file.
21501         * tests/unistr/test-u16-next.c: New file.
21502
21503         Tests for module 'unistr/u8-next'.
21504         * modules/unistr/u8-next-tests: New file.
21505         * tests/unistr/test-u8-next.c: New file.
21506
21507         Tests for module 'unistr/u32-strmbtouc'.
21508         * modules/unistr/u32-strmbtouc-tests: New file.
21509         * tests/unistr/test-u32-strmbtouc.c: New file.
21510
21511         Tests for module 'unistr/u16-strmbtouc'.
21512         * modules/unistr/u16-strmbtouc-tests: New file.
21513         * tests/unistr/test-u16-strmbtouc.c: New file.
21514
21515         Tests for module 'unistr/u8-strmbtouc'.
21516         * modules/unistr/u8-strmbtouc-tests: New file.
21517         * tests/unistr/test-u8-strmbtouc.c: New file.
21518
21519         Tests for module 'unistr/u32-strmblen'.
21520         * modules/unistr/u32-strmblen-tests: New file.
21521         * tests/unistr/test-u32-strmblen.c: New file.
21522
21523         Tests for module 'unistr/u16-strmblen'.
21524         * modules/unistr/u16-strmblen-tests: New file.
21525         * tests/unistr/test-u16-strmblen.c: New file.
21526
21527         Tests for module 'unistr/u8-strmblen'.
21528         * modules/unistr/u8-strmblen-tests: New file.
21529         * tests/unistr/test-u8-strmblen.c: New file.
21530
21531         Tests for module 'unistr/u32-cpy-alloc'.
21532         * modules/unistr/u32-cpy-alloc-tests: New file.
21533         * tests/unistr/test-u32-cpy-alloc.c: New file.
21534
21535         Tests for module 'unistr/u16-cpy-alloc'.
21536         * modules/unistr/u16-cpy-alloc-tests: New file.
21537         * tests/unistr/test-u16-cpy-alloc.c: New file.
21538
21539         Tests for module 'unistr/u8-cpy-alloc'.
21540         * modules/unistr/u8-cpy-alloc-tests: New file.
21541         * tests/unistr/test-u8-cpy-alloc.c: New file.
21542         * tests/unistr/test-cpy-alloc.h: New file.
21543
21544         Tests for module 'unistr/u32-mbsnlen'.
21545         * modules/unistr/u32-mbsnlen-tests: New file.
21546         * tests/unistr/test-u32-mbsnlen.c: New file.
21547
21548         Tests for module 'unistr/u16-mbsnlen'.
21549         * modules/unistr/u16-mbsnlen-tests: New file.
21550         * tests/unistr/test-u16-mbsnlen.c: New file.
21551
21552         Tests for module 'unistr/u8-mbsnlen'.
21553         * modules/unistr/u8-mbsnlen-tests: New file.
21554         * tests/unistr/test-u8-mbsnlen.c: New file.
21555
21556         Tests for module 'unistr/u32-chr'.
21557         * modules/unistr/u32-chr-tests: New file.
21558         * tests/unistr/test-u32-chr.c: New file.
21559
21560         Tests for module 'unistr/u16-chr'.
21561         * modules/unistr/u16-chr-tests: New file.
21562         * tests/unistr/test-u16-chr.c: New file.
21563
21564         Tests for module 'unistr/u8-chr'.
21565         * modules/unistr/u8-chr-tests: New file.
21566         * tests/unistr/test-u8-chr.c: New file.
21567         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21568
21569         Tests for module 'unistr/u32-cmp2'.
21570         * modules/unistr/u32-cmp2-tests: New file.
21571         * tests/unistr/test-u32-cmp2.c: New file.
21572
21573         Tests for module 'unistr/u16-cmp2'.
21574         * modules/unistr/u16-cmp2-tests: New file.
21575         * tests/unistr/test-u16-cmp2.c: New file.
21576
21577         Tests for module 'unistr/u8-cmp2'.
21578         * modules/unistr/u8-cmp2-tests: New file.
21579         * tests/unistr/test-u8-cmp2.c: New file.
21580         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21581
21582         Tests for module 'unistr/u32-cmp'.
21583         * modules/unistr/u32-cmp-tests: New file.
21584         * tests/unistr/test-u32-cmp.c: New file.
21585
21586         Tests for module 'unistr/u16-cmp'.
21587         * modules/unistr/u16-cmp-tests: New file.
21588         * tests/unistr/test-u16-cmp.c: New file.
21589
21590         Tests for module 'unistr/u8-cmp'.
21591         * modules/unistr/u8-cmp-tests: New file.
21592         * tests/unistr/test-u8-cmp.c: New file.
21593         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21594
21595         Tests for module 'unistr/u32-set'.
21596         * modules/unistr/u32-set-tests: New file.
21597         * tests/unistr/test-u32-set.c: New file.
21598
21599         Tests for module 'unistr/u16-set'.
21600         * modules/unistr/u16-set-tests: New file.
21601         * tests/unistr/test-u16-set.c: New file.
21602
21603         Tests for module 'unistr/u8-set'.
21604         * modules/unistr/u8-set-tests: New file.
21605         * tests/unistr/test-u8-set.c: New file.
21606         * tests/unistr/test-set.h: New file.
21607
21608         Tests for module 'unistr/u32-move'.
21609         * modules/unistr/u32-move-tests: New file.
21610         * tests/unistr/test-u32-move.c: New file.
21611
21612         Tests for module 'unistr/u16-move'.
21613         * modules/unistr/u16-move-tests: New file.
21614         * tests/unistr/test-u16-move.c: New file.
21615
21616         Tests for module 'unistr/u8-move'.
21617         * modules/unistr/u8-move-tests: New file.
21618         * tests/unistr/test-u8-move.c: New file.
21619         * tests/unistr/test-move.h: New file.
21620
21621         Tests for module 'unistr/u32-cpy'.
21622         * modules/unistr/u32-cpy-tests: New file.
21623         * tests/unistr/test-u32-cpy.c: New file.
21624
21625         Tests for module 'unistr/u16-cpy'.
21626         * modules/unistr/u16-cpy-tests: New file.
21627         * tests/unistr/test-u16-cpy.c: New file.
21628
21629         Tests for module 'unistr/u8-cpy'.
21630         * modules/unistr/u8-cpy-tests: New file.
21631         * tests/unistr/test-u8-cpy.c: New file.
21632         * tests/unistr/test-cpy.h: New file.
21633
21634 2010-01-09  Bruno Haible  <bruno@clisp.org>
21635
21636         Tests for module 'unistr/u32-uctomb'.
21637         * modules/unistr/u32-uctomb-tests: New file.
21638         * tests/unistr/test-u32-uctomb.c: New file.
21639
21640         Tests for module 'unistr/u16-uctomb'.
21641         * modules/unistr/u16-uctomb-tests: New file.
21642         * tests/unistr/test-u16-uctomb.c: New file.
21643
21644         Tests for module 'unistr/u8-uctomb'.
21645         * modules/unistr/u8-uctomb-tests: New file.
21646         * tests/unistr/test-u8-uctomb.c: New file.
21647
21648         Tests for module 'unistr/u32-mbtoucr'.
21649         * modules/unistr/u32-mbtoucr-tests: New file.
21650         * tests/unistr/test-u32-mbtoucr.c: New file.
21651
21652         Tests for module 'unistr/u16-mbtoucr'.
21653         * modules/unistr/u16-mbtoucr-tests: New file.
21654         * tests/unistr/test-u16-mbtoucr.c: New file.
21655
21656         Tests for module 'unistr/u8-mbtoucr'.
21657         * modules/unistr/u8-mbtoucr-tests: New file.
21658         * tests/unistr/test-u8-mbtoucr.c: New file.
21659
21660         Tests for module 'unistr/u32-mbtouc'.
21661         * modules/unistr/u32-mbtouc-tests: New file.
21662         * tests/unistr/test-u32-mbtouc.c: New file.
21663
21664         Tests for module 'unistr/u16-mbtouc'.
21665         * modules/unistr/u16-mbtouc-tests: New file.
21666         * tests/unistr/test-u16-mbtouc.c: New file.
21667
21668         Tests for module 'unistr/u8-mbtouc'.
21669         * modules/unistr/u8-mbtouc-tests: New file.
21670         * tests/unistr/test-u8-mbtouc.c: New file.
21671
21672         Tests for module 'unistr/u32-mbtouc-unsafe'.
21673         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21674         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21675         * tests/unistr/test-u32-mbtouc.h: New file.
21676
21677         Tests for module 'unistr/u16-mbtouc-unsafe'.
21678         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21679         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21680         * tests/unistr/test-u16-mbtouc.h: New file.
21681
21682         Tests for module 'unistr/u8-mbtouc-unsafe'.
21683         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21684         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21685         * tests/unistr/test-u8-mbtouc.h: New file.
21686
21687         Tests for module 'unistr/u32-mblen'.
21688         * modules/unistr/u32-mblen-tests: New file.
21689         * tests/unistr/test-u32-mblen.c: New file.
21690
21691         Tests for module 'unistr/u16-mblen'.
21692         * modules/unistr/u16-mblen-tests: New file.
21693         * tests/unistr/test-u16-mblen.c: New file.
21694
21695         Tests for module 'unistr/u8-mblen'.
21696         * modules/unistr/u8-mblen-tests: New file.
21697         * tests/unistr/test-u8-mblen.c: New file.
21698
21699         Tests for module 'unistr/u32-to-u16'.
21700         * modules/unistr/u32-to-u16-tests: New file.
21701         * tests/unistr/test-u32-to-u16.c: New file.
21702
21703         Tests for module 'unistr/u32-to-u8'.
21704         * modules/unistr/u32-to-u8-tests: New file.
21705         * tests/unistr/test-u32-to-u8.c: New file.
21706
21707         Tests for module 'unistr/u16-to-u32'.
21708         * modules/unistr/u16-to-u32-tests: New file.
21709         * tests/unistr/test-u16-to-u32.c: New file.
21710
21711         Tests for module 'unistr/u16-to-u8'.
21712         * modules/unistr/u16-to-u8-tests: New file.
21713         * tests/unistr/test-u16-to-u8.c: New file.
21714
21715         Tests for module 'unistr/u8-to-u32'.
21716         * modules/unistr/u8-to-u32-tests: New file.
21717         * tests/unistr/test-u8-to-u32.c: New file.
21718
21719         Tests for module 'unistr/u8-to-u16'.
21720         * modules/unistr/u8-to-u16-tests: New file.
21721         * tests/unistr/test-u8-to-u16.c: New file.
21722
21723         Tests for module 'unistr/u32-check'.
21724         * modules/unistr/u32-check-tests: New file.
21725         * tests/unistr/test-u32-check.c: New file.
21726
21727         Tests for module 'unistr/u16-check'.
21728         * modules/unistr/u16-check-tests: New file.
21729         * tests/unistr/test-u16-check.c: New file.
21730
21731         Tests for module 'unistr/u8-check'.
21732         * modules/unistr/u8-check-tests: New file.
21733         * tests/unistr/test-u8-check.c: New file.
21734
21735         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21736         (category_equals): New function.
21737         (main): Add more tests.
21738         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21739
21740         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21741
21742 2010-01-10  Bruno Haible  <bruno@clisp.org>
21743
21744         unistr/u*-strcoll: Try harder to distinguish different strings.
21745         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21746         compare s1 and s2 to see if they are different.
21747
21748 2010-01-10  Bruno Haible  <bruno@clisp.org>
21749
21750         unistr/u*-stpncpy: Fix the return value.
21751         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21752         description of the return value consistent with stpncpy in glibc.
21753         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21754         written non-NUL unit.
21755
21756 2010-01-10  Bruno Haible  <bruno@clisp.org>
21757
21758         unistr/u*-next: Add missing dependencies.
21759         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21760         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21761         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21762
21763 2010-01-10  Bruno Haible  <bruno@clisp.org>
21764
21765         unistr/u8-mbsnlen: Fix return value for incomplete character.
21766         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21767         u8_mblen.
21768         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21769         Remove unistr/u8-mblen.
21770         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21771         u16_mblen.
21772         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21773         Remove unistr/u16-mblen.
21774
21775 2010-01-10  Bruno Haible  <bruno@clisp.org>
21776
21777         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21778         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21779         Reported by Brian Gough <bjg@gnu.org> and
21780         Chris Clayton <chris2553@googlemail.com> via
21781         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21782
21783 2010-01-09  Bruno Haible  <bruno@clisp.org>
21784
21785         unistr/u16-to-u32: Reject invalid input.
21786         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21787         u16_mbtouc.
21788         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21789         Remove unistr/u16-mbtouc.
21790
21791         unistr/u16-to-u8: Reject invalid input.
21792         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21793         u16_mbtouc.
21794         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21795         Remove unistr/u16-mbtouc.
21796
21797         unistr/u8-to-u32: Reject invalid input.
21798         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21799         u8_mbtouc.
21800         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21801         Remove unistr/u8-mbtouc.
21802
21803         unistr/u8-to-u16: Reject invalid input.
21804         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21805         u8_mbtouc.
21806         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21807         Remove unistr/u8-mbtouc.
21808
21809 2010-01-09  Bruno Haible  <bruno@clisp.org>
21810
21811         Tests for module 'getlogin'.
21812         * modules/getlogin-tests: New file.
21813         * tests/test-getlogin.c: New file.
21814
21815         New module 'getlogin'.
21816         * lib/unistd.in.h (getlogin): New declaration.
21817         * lib/getlogin.c: New file.
21818         * m4/getlogin.m4: New file.
21819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21820         HAVE_GETLOGIN.
21821         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21822         HAVE_GETLOGIN.
21823         * modules/getlogin: New file.
21824         * doc/posix-functions/getlogin.texi: Mention the new module.
21825         Reported by John W. Eaton <jwe@gnu.org>.
21826
21827 2010-01-09  Bruno Haible  <bruno@clisp.org>
21828
21829         getlogin_r: Support for native Windows.
21830         * lib/getlogin_r.c: Include <windows.h>
21831         (getlogin_r): Implement for native Windows.
21832         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21833         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21834         via John W. Eaton <jwe@gnu.org>.
21835
21836 2010-01-09  Bruno Haible  <bruno@clisp.org>
21837
21838         getlogin_r: Small fixes.
21839         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21840         succeeds.
21841         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21842         before testing whether getlogin_r is declared. No need to set
21843         HAVE_DECL_GETLOGIN_R to 1.
21844         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21845
21846 2010-01-09  Bruno Haible  <bruno@clisp.org>
21847
21848         * lib/unistd.in.h (getlogin_r): Add comment.
21849
21850 2010-01-09  Bruno Haible  <bruno@clisp.org>
21851
21852         Tests for module 'getlogin_r'.
21853         * modules/getlogin_r-tests: New file.
21854         * tests/test-getlogin_r.c: New file.
21855
21856 2010-01-09  Jim Meyering  <meyering@redhat.com>
21857
21858         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21859         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21860         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21861
21862 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21863
21864         * lib/dup2.c (rpl_dup2): Improve comment.
21865
21866 2010-01-08  Eric Blake  <ebb9@byu.net>
21867
21868         maint.mk: allow packages to add makefile @@ exceptions
21869         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21870         (sc_makefile_check): Rename...
21871         (sc_makefile_at_at_check): ...to this, and use hook.
21872
21873         dup2: work around mingw bug
21874         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21875         Reported by Simon Josefsson.
21876
21877 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21878
21879         glob: Fix C++ compilation.
21880         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21881         C++.
21882
21883 2010-01-07  Bruno Haible  <bruno@clisp.org>
21884
21885         Fix indentation of wctype.in.h, broken since 2007-01-06.
21886         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21887
21888 2010-01-07  Bruno Haible  <bruno@clisp.org>
21889
21890         mbslen: Avoid collision with system function.
21891         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21892         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21893         * m4/mbslen.m4: New file.
21894         * modules/mbslen (Files): Add it.
21895         (configure.ac): Invoke gl_MBSLEN.
21896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21897         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21898         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21899         via Ian Beckwith <ianb@erislabs.net>.
21900
21901 2010-01-07  Bruno Haible  <bruno@clisp.org>
21902
21903         dirent: Document the last fix.
21904         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21905
21906 2010-01-07  Bruno Haible  <bruno@clisp.org>
21907
21908         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21909         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21910         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21911         va_list are defined.
21912         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21913         Reported by Eric Blake.
21914
21915 2010-01-07  Bruno Haible  <bruno@clisp.org>
21916
21917         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21918         * modules/xlist (Depends-on): Add 'list',
21919         * modules/xoset (Depends-on): Add 'oset'.
21920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21921
21922 2010-01-07  Bruno Haible  <bruno@clisp.org>
21923
21924         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21925         * doc/posix-functions/strncasecmp.texi: Likewise.
21926
21927 2010-01-07  Bruno Haible  <bruno@clisp.org>
21928
21929         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21930
21931 2010-01-07  John W. Eaton  <jwe@octave.org>
21932
21933         wctype: allow C++ use
21934         * lib/wctype.in.h: Add extern "C" block for C++.
21935
21936 2010-01-06  Eric Blake  <ebb9@byu.net>
21937
21938         maint.mk: detect incorrect GFDL usage
21939         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21940
21941 2010-01-06  Jim Meyering  <meyering@redhat.com>
21942         and Eric Blake  <ebb9@byu.net>
21943
21944         maint.mk: ignore multi-line copyright in NEWS
21945         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21946
21947 2010-01-06  Eric Blake  <ebb9@byu.net>
21948
21949         select: add missing dependency
21950         * modules/select-tests (Depends-on): Move sockets dependency...
21951         * modules/select (Depends-on): ...here.
21952         Reported by Ian Beckwith.
21953
21954         doc: regenerate INSTALL
21955         * doc/INSTALL: Reflect recent autoconf update.
21956         * doc/INSTALL.ISO: Likewise.
21957         * doc/INSTALL.UTF-8: Likewise.
21958
21959         pread: fix compilation on glibc
21960         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21961         Reported by Ralf Wildenhues.
21962
21963         dirent: fix test failure
21964         * lib/dirent.in.h (includes): Guarantee ino_t.
21965         Reported by Ralf Wildenhues.
21966
21967 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21968
21969         linkat, renameat: avoid bad free
21970         * lib/at-func2.c (at_func2): Fix typo.
21971         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21972
21973 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21974
21975         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21976         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21977         to avoid failure of symlink test later.
21978
21979 2010-01-06  Eric Blake  <ebb9@byu.net>
21980
21981         stdio, unistd: guarantee ssize_t
21982         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21983         2008 are exposed when needed.
21984         * lib/stdio.in.h (includes): Likewise.
21985         Reported by Ralf Wildenhues.
21986
21987 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21988
21989         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21990         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21991         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21992
21993 2010-01-06  Jim Meyering  <meyering@redhat.com>
21994
21995         readtokens: this module *does* require xalloc.h
21996         It uses only functions that were omitted by the old syntax-check rule.
21997         * lib/readtokens.c: Include "xalloc.h" once again.
21998         * modules/readtokens (Depends-on): Add xalloc.
21999         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22000
22001 2010-01-05  Eric Blake  <ebb9@byu.net>
22002
22003         maint: support 'make announcement' from a VPATH build
22004         * top/maint.mk (announcement): Look for correct NEWS file.
22005
22006 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22007
22008         utimens (fdutimens): ignore a negative FD, per contract
22009         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22010         when we have a valid file descriptor.  Otherwise, using a brand
22011         new glibc (with just-patched futimens that now fails with EBADF)
22012         would cause this function to fail with ENOSYS.
22013         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22014         See also http://bugzilla.redhat.com/552320.
22015
22016 2010-01-05  Eric Blake  <ebb9@byu.net>
22017
22018         strcase: document what it provides
22019         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22020         gnulib module.
22021         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22022         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22023
22024 2010-01-05  Jim Meyering  <meyering@redhat.com>
22025
22026         maint: remove useless inclusions of "xalloc.h"
22027         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22028         * lib/readtokens.c: Likewise.
22029         * lib/same.c: Likewise.
22030         * modules/getloadavg (Depends-on): Remove xalloc.
22031         * modules/readtokens: Likewise.
22032         * modules/same: Likewise.
22033
22034         maint.mk: include 4 more function names in alloca.h-checking regexp
22035         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22036         regexp.  Before, we would give a false-positive (saying alloca.h
22037         is included unnecessarily) when the only uses involved omitted symbols.
22038
22039         xalloc.h: use consistent formatting
22040         * lib/xalloc.h: Move declarations to start in the first column.
22041
22042 2010-01-05  Eric Blake  <ebb9@byu.net>
22043
22044         mkdir: avoid xalloc
22045         * lib/mkdir.c (includes): Drop unused header.
22046         Reported by John W. Eaton.
22047
22048 2010-01-04  Jim Meyering  <meyering@redhat.com>
22049
22050         nl_langinfo: avoid configure-time syntax error
22051         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22052         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22053         the empty string.  Don't let that provoke a shell syntax error.
22054
22055         regcomp, regexec, fnmatch: avoid array bounds read error
22056         * lib/regcomp.c (build_equiv_class): From glibc:
22057         Use only the low 24 bits of a findidx return value as an index
22058         into the weights array.  Patch by Ulrich Drepper:
22059         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22060         * lib/regexec.c (check_node_accept_bytes): Likewise.
22061         * lib/fnmatch_loop.c (FCT): Likewise.
22062
22063         regcomp: skip collseq lookup when there are no rules
22064         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22065         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22066
22067         regcomp: recognize ill-formed { } expressions
22068         * lib/regcomp.c (parse_dup_op): From glibc:
22069         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22070
22071         regcomp: fix typo in comment
22072         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22073         s/satisfy/satisfies/.
22074
22075         regcomp: sync from glibc: remove dead store
22076         * lib/regcomp.c (duplicate_node_closure): Remove useless
22077         search_duplicated_node call and dead store.
22078
22079         regcomp: sync from glibc; always use nl_langinfo
22080         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22081         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22082         * modules/regex (Depends-on): Add nl_langinfo.
22083
22084 2010-01-04  Eric Blake  <ebb9@byu.net>
22085
22086         fdopendir: fix configure test
22087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22088
22089 2010-01-01  Bruno Haible  <bruno@clisp.org>
22090
22091         wchar: Remove unused configure check.
22092         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22093
22094 2010-01-01  Eric Blake  <ebb9@byu.net>
22095
22096         headers: make check of system header explicit
22097         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22098         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22099         ourselves.
22100         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22103         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22104         internals.
22105         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22106         missing.
22107         Suggested by Bruno Haible.
22108
22109 2010-01-01  Jim Meyering  <meyering@redhat.com>
22110
22111         ChangeLog: tweak to eliminate unnecessary copyright line
22112         * ChangeLog: Remove a copyright line that was mistakenly updated
22113         by today's update-copyright run.  Reported by Eric Blake.
22114
22115         test-update-copyright: don't let envvar setting cause test failure
22116         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22117
22118 2010-01-01  Bruno Haible  <bruno@clisp.org>
22119
22120         localename: Avoid gcc warning.
22121         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22122         function if it is not used.
22123
22124 2010-01-01  Jim Meyering  <meyering@redhat.com>
22125
22126         update nearly all FSF copyright year lists to include 2010
22127         Use the same procedure as for 2009, outlined in
22128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22129
22130         version-etc: set COPYRIGHT_YEAR to 2010
22131         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22132
22133 2009-12-31  Eric Blake  <ebb9@byu.net>
22134
22135         doc: correct availability of cygwin 1.5.x getopt
22136         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22137         variables.
22138         * doc/posix-functions/opterr.texi (opterr): Likewise.
22139         * doc/posix-functions/optind.texi (optind): Likewise.
22140         * doc/posix-functions/optopt.texi (optopt): Likewise.
22141         * doc/posix-functions/tzname.texi (tzname): Likewise.
22142
22143         openat: update maintainer
22144         * modules/openat (Maintainer): Add myself.
22145
22146         utimens: avoid shadowing warning
22147         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22148         buffers into one, to avoid shadowing, as well as avoiding a
22149         redundant stat.
22150         Reported by Jim Meyering.
22151
22152         test-dup2: avoid compiler warning
22153         * tests/test-dup2.c (is_inheritable): Only define if used.
22154
22155 2010-01-01  Bruno Haible  <bruno@clisp.org>
22156
22157         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22158         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22159         defined, use wctomb instead of wcrtomb.
22160
22161 2010-01-01  Bruno Haible  <bruno@clisp.org>
22162
22163         iconv: Reject native Solaris iconv.
22164         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22165         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22166
22167 2009-12-31  Bruno Haible  <bruno@clisp.org>
22168
22169         * tests/test-signal.c (main): Remove test of 'SIG'.
22170
22171 2009-12-31  Bruno Haible  <bruno@clisp.org>
22172
22173         spawn: Fix incomplete fix.
22174         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22175         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22176         warnings for GNULIB_POSIXCHECK again.
22177         Reported by Eric Blake.
22178
22179 2009-12-31  Bruno Haible  <bruno@clisp.org>
22180
22181         Avoid namespace pollution on glibc systems.
22182         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22183         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22184         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22185         glibc systems.
22186
22187 2009-12-31  Bruno Haible  <bruno@clisp.org>
22188
22189         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22190         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22191         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22192         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22193         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22194         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22195         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22196
22197 2009-12-31  Bruno Haible  <bruno@clisp.org>
22198
22199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22200         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22201         afterwards.
22202
22203 2009-12-31  Bruno Haible  <bruno@clisp.org>
22204
22205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22206         SYS_UTSNAME_H.
22207
22208 2009-12-31  Bruno Haible  <bruno@clisp.org>
22209
22210         spawn: Fix misapplied patch.
22211         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22212         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22213         warnings for GNULIB_POSIXCHECK.
22214
22215 2009-12-31  Bruno Haible  <bruno@clisp.org>
22216
22217         times: Update after sys_times changed.
22218         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22219         * modules/times (Files): Add it.
22220         (configure.ac): Invoke gl_FUNC_TIMES.
22221
22222 2009-12-31  Bruno Haible  <bruno@clisp.org>
22223
22224         Use AC_C_INLINE where necessary.
22225         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22226         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22228         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22229         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22230         * m4/mbiter.m4 (gl_MBITER): Likewise.
22231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22232         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22233         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22234         * modules/u64 (configure.ac): Likewise.
22235
22236 2009-12-31  Bruno Haible  <bruno@clisp.org>
22237
22238         Use AC_C_INLINE instead of module 'inline' where possible.
22239         * modules/inline (Description): Clarify purpose.
22240         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22241         * modules/count-one-bits (Depends-on): Remove inline.
22242         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22243         * modules/openat (Depends-on): Remove inline.
22244         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22245         instead of depending on module 'inline'.
22246         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22247         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22248         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22249         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22250         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22251         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22252         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22253         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22254         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22255         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22256         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22257         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22258         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22259         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22260         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22261         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22262         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22263         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22264         Likewise.
22265         * modules/unictype/property-ascii-hex-digit (Depends-on,
22266         configure.ac): Likewise.
22267         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22268         configure.ac): Likewise.
22269         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22270         configure.ac): Likewise.
22271         * modules/unictype/property-bidi-block-separator (Depends-on,
22272         configure.ac): Likewise.
22273         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22274         configure.ac): Likewise.
22275         * modules/unictype/property-bidi-common-separator (Depends-on,
22276         configure.ac): Likewise.
22277         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22278         Likewise.
22279         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22280         configure.ac): Likewise.
22281         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22282         configure.ac): Likewise.
22283         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22284         configure.ac): Likewise.
22285         * modules/unictype/property-bidi-european-digit (Depends-on,
22286         configure.ac): Likewise.
22287         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22288         configure.ac): Likewise.
22289         * modules/unictype/property-bidi-left-to-right (Depends-on,
22290         configure.ac): Likewise.
22291         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22292         configure.ac): Likewise.
22293         * modules/unictype/property-bidi-other-neutral (Depends-on,
22294         configure.ac): Likewise.
22295         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22296         Likewise.
22297         * modules/unictype/property-bidi-segment-separator (Depends-on,
22298         configure.ac): Likewise.
22299         * modules/unictype/property-bidi-whitespace (Depends-on,
22300         configure.ac): Likewise.
22301         * modules/unictype/property-combining (Depends-on, configure.ac):
22302         Likewise.
22303         * modules/unictype/property-composite (Depends-on, configure.ac):
22304         Likewise.
22305         * modules/unictype/property-currency-symbol (Depends-on,
22306         configure.ac): Likewise.
22307         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22308         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22309         Likewise.
22310         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22311         configure.ac): Likewise.
22312         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22313         Likewise.
22314         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22315         Likewise.
22316         * modules/unictype/property-extender (Depends-on, configure.ac):
22317         Likewise.
22318         * modules/unictype/property-format-control (Depends-on, configure.ac):
22319         Likewise.
22320         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22321         Likewise.
22322         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22323         Likewise.
22324         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22325         Likewise.
22326         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22327         Likewise.
22328         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22329         Likewise.
22330         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22331         Likewise.
22332         * modules/unictype/property-id-start (Depends-on, configure.ac):
22333         Likewise.
22334         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22335         Likewise.
22336         * modules/unictype/property-ids-binary-operator (Depends-on,
22337         configure.ac): Likewise.
22338         * modules/unictype/property-ids-trinary-operator (Depends-on,
22339         configure.ac): Likewise.
22340         * modules/unictype/property-ignorable-control (Depends-on,
22341         configure.ac): Likewise.
22342         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22343         Likewise.
22344         * modules/unictype/property-join-control (Depends-on, configure.ac):
22345         Likewise.
22346         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22347         Likewise.
22348         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22349         Likewise.
22350         * modules/unictype/property-logical-order-exception (Depends-on,
22351         configure.ac): Likewise.
22352         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22353         Likewise.
22354         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22355         * modules/unictype/property-non-break (Depends-on, configure.ac):
22356         Likewise.
22357         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22358         Likewise.
22359         * modules/unictype/property-numeric (Depends-on, configure.ac):
22360         Likewise.
22361         * modules/unictype/property-other-alphabetic (Depends-on,
22362         configure.ac): Likewise.
22363         * modules/unictype/property-other-default-ignorable-code-point
22364         (Depends-on, configure.ac): Likewise.
22365         * modules/unictype/property-other-grapheme-extend (Depends-on,
22366         configure.ac): Likewise.
22367         * modules/unictype/property-other-id-continue (Depends-on,
22368         configure.ac): Likewise.
22369         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22370         Likewise.
22371         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22372         Likewise.
22373         * modules/unictype/property-other-math (Depends-on, configure.ac):
22374         Likewise.
22375         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22376         Likewise.
22377         * modules/unictype/property-paired-punctuation (Depends-on,
22378         configure.ac): Likewise.
22379         * modules/unictype/property-paragraph-separator (Depends-on,
22380         configure.ac): Likewise.
22381         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22382         Likewise.
22383         * modules/unictype/property-pattern-white-space (Depends-on,
22384         configure.ac): Likewise.
22385         * modules/unictype/property-private-use (Depends-on, configure.ac):
22386         Likewise.
22387         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22388         Likewise.
22389         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22390         Likewise.
22391         * modules/unictype/property-radical (Depends-on, configure.ac):
22392         Likewise.
22393         * modules/unictype/property-sentence-terminal (Depends-on,
22394         configure.ac): Likewise.
22395         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22396         Likewise.
22397         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22398         * modules/unictype/property-terminal-punctuation (Depends-on,
22399         configure.ac): Likewise.
22400         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22401         Likewise.
22402         * modules/unictype/property-unassigned-code-value (Depends-on,
22403         configure.ac): Likewise.
22404         * modules/unictype/property-unified-ideograph (Depends-on,
22405         configure.ac): Likewise.
22406         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22407         Likewise.
22408         * modules/unictype/property-variation-selector (Depends-on,
22409         configure.ac): Likewise.
22410         * modules/unictype/property-white-space (Depends-on, configure.ac):
22411         Likewise.
22412         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22413         Likewise.
22414         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22415         Likewise.
22416         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22417         Likewise.
22418         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22419         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22420         Likewise.
22421
22422 2009-12-31  Bruno Haible  <bruno@clisp.org>
22423
22424         Remove unnecessary AC_C_INLINE invocation.
22425         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22426         since 2009-08-21.
22427
22428 2009-12-31  Jim Meyering  <meyering@redhat.com>
22429
22430         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22431         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22432         With this change, we can all remove the gpg_key_ID = ... definition
22433         from our respective cfg.mk files.
22434
22435         maint.mk: create announcement template in ~/, not in /tmp
22436         * top/maint.mk (emit_upload_commands): Adjust.
22437         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22438         Remove temporary file, .ci-msg.
22439
22440 2009-12-31  Eric Blake  <ebb9@byu.net>
22441
22442         link-warning: always build headers with link warnings
22443         * modules/arpa_inet (Makefile.am): Always build replacement
22444         header.
22445         * modules/ctype (Makefile.am): Likewise.
22446         * modules/dirent (Makefile.am): Likewise.
22447         * modules/inttypes (Makefile.am): Likewise.
22448         * modules/langinfo (Makefile.am): Likewise.
22449         * modules/locale (Makefile.am): Likewise.
22450         * modules/spawn (Makefile.am): Likewise.
22451         * modules/sys_file (Makefile.am): Likewise.
22452         * modules/sys_ioctl (Makefile.am): Likewise.
22453         * modules/sys_select (Makefile.am): Likewise.
22454         * modules/sys_socket (Makefile.am): Likewise.
22455         * modules/sys_times (Makefile.am): Likewise.
22456         * modules/sys_utsname (Makefile.am): Likewise.
22457         * modules/sys_wait (Makefile.am): Likewise.
22458         * modules/wchar (Makefile.am): Likewise.
22459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22460         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22461         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22462         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22463         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22464         Likewise.
22465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22466         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22467         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22468         Likewise.
22469         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22470         Likewise.
22471         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22473         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22475         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22476         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22477         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22478         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22479         (gl_WCHAR_H_DEFAULTS): Likewise.
22480
22481 2009-12-31  Eric Blake  <ebb9@byu.net>
22482
22483         signal, spawn: use link warnings
22484         * lib/signal.in.h (sigset_t): Make unconditional.
22485         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22486         (sigpending, sigprocmask, sigaction): Add link warnings.
22487         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22488         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22489         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22490         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22491         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22492         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22493         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22494         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22495         (posix_spawn_file_actions_destroy)
22496         (posix_spawn_file_actions_addopen)
22497         (posix_spawn_file_actions_addclose)
22498         (posix_spawn_file_actions_adddup2): Likewise.
22499         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22500         * tests/test-signal.c (main): Enhance test.
22501
22502         spawn: improve wrapper support
22503         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22504         (gl_SPAWN_H_DEFAULTS): New defaults.
22505         * modules/spawn (Makefile.am): Substitute them.
22506         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22507         Only declare if missing or broken.
22508
22509         sys_times, sys_utsname: use include_next
22510         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22511         header.
22512         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22513         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22514         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22515         * modules/sys_times (Depends-on): Add include_next.
22516         (Makefile.am): Substitute additional values.
22517         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22518         * lib/sys_times.in.h (includes): Include native header, if
22519         available.
22520         * lib/sys_utsname.in.h (includes): Likewise.
22521         * tests/test-sys_times.c (main): Enhance test.
22522
22523         fdutimensat: revert prior patch
22524         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22525         utimens.h.
22526         Reported by Bruno Haible.
22527
22528 2009-12-30  Eric Blake  <ebb9@byu.net>
22529
22530         sys_wait: drop link-warning dependency
22531         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22532         link-warning efforts.
22533         * lib/sys_wait.in.h: Likewise.
22534
22535         fdutimensat: remove bogus dependency
22536         * modules/fdutimensat (Depends-on): Drop inline.
22537
22538         unistd: fix typo
22539         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22540
22541 2009-12-30  Bruno Haible  <bruno@clisp.org>
22542
22543         Fix compilation error with Solaris cc.
22544         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22545         * lib/unicase/u16-is-invariant.c: Likewise.
22546         * lib/unicase/u32-is-invariant.c: Likewise.
22547         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22548
22549 2009-12-30  Bruno Haible  <bruno@clisp.org>
22550
22551         Fix test crash.
22552         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22553         locales.
22554         Reported by Simon Josefsson <simon@josefsson.org>.
22555
22556 2009-12-30  Bruno Haible  <bruno@clisp.org>
22557
22558         Fix compilation error on most platforms.
22559         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22560         Reported by Simon Josefsson <simon@josefsson.org>
22561         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22562
22563 2009-12-30  Eric Blake  <ebb9@byu.net>
22564
22565         futimens, utimensat: work around ntfs-3g bug
22566         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22567         a ctime bug is present, and expand workaround to cover ntfs-3g.
22568         * lib/utimens.c (fdutimens, lutimens): Likewise.
22569         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22570         (validate_timespec): Adjust return value.
22571         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22572         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22573         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22574
22575 2009-12-29  Eric Blake  <ebb9@byu.net>
22576
22577         link-warning: make usage consistent
22578         * modules/ctype (Depends-on): Add link-warning.
22579         (Makefile.am): Update rules accordingly.
22580         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22581         * modules/locale (Depends-on, Makefile.am): Likewise.
22582         * modules/sys_file (Makefile.am): Likewise.
22583         * modules/getopt-posix (Makefile.am): Delete unused link warning
22584         efforts.
22585         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22586         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22587         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22588         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22589
22590         stdio: remove unused variables
22591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22592         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22593         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22594
22595         tests: test more substitute headers
22596         * modules/ctype-tests: New file.
22597         * modules/dirent-tests: Likewise.
22598         * modules/spawn-tests: Likewise.
22599         * modules/sys_file-tests: Likewise.
22600         * modules/sys_ioctl-tests: Likewise.
22601         * modules/sys_wait-tests: Likewise.
22602         * tests/test-ctype.c: Likewise.
22603         * tests/test-dirent.c: Likewise.
22604         * tests/test-spawn.c: Likewise.
22605         * tests/test-sys_file.c: Likewise.
22606         * tests/test-sys_ioctl.c: Likewise.
22607         * tests/test-sys_wait.c: Likewise.
22608         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22609         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22610         whether or not flock is in use.
22611
22612         tests: remove License section from module
22613         * modules/arpa_inet-tests: Remove unneeded section.
22614         * modules/byteswap-tests: Likewise.
22615         * modules/ceilf-tests: Likewise.
22616         * modules/ceill-tests: Likewise.
22617         * modules/crypto/des-tests: Likewise.
22618         * modules/crypto/gc-arcfour-tests: Likewise.
22619         * modules/crypto/gc-arctwo-tests: Likewise.
22620         * modules/crypto/gc-des-tests: Likewise.
22621         * modules/crypto/gc-hmac-md5-tests: Likewise.
22622         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22623         * modules/crypto/gc-md2-tests: Likewise.
22624         * modules/crypto/gc-md4-tests: Likewise.
22625         * modules/crypto/gc-md5-tests: Likewise.
22626         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22627         * modules/crypto/gc-rijndael-tests: Likewise.
22628         * modules/crypto/gc-sha1-tests: Likewise.
22629         * modules/crypto/gc-tests: Likewise.
22630         * modules/crypto/md2-tests: Likewise.
22631         * modules/crypto/md4-tests: Likewise.
22632         * modules/fcntl-h-tests: Likewise.
22633         * modules/floorf-tests: Likewise.
22634         * modules/floorl-tests: Likewise.
22635         * modules/frexp-nolibm-tests: Likewise.
22636         * modules/frexp-tests: Likewise.
22637         * modules/frexpl-nolibm-tests: Likewise.
22638         * modules/frexpl-tests: Likewise.
22639         * modules/getaddrinfo-tests: Likewise.
22640         * modules/inttypes-tests: Likewise.
22641         * modules/isfinite-tests: Likewise.
22642         * modules/isinf-tests: Likewise.
22643         * modules/ldexpl-tests: Likewise.
22644         * modules/locale-tests: Likewise.
22645         * modules/math-tests: Likewise.
22646         * modules/netdb-tests: Likewise.
22647         * modules/netinet_in-tests: Likewise.
22648         * modules/printf-frexp-tests: Likewise.
22649         * modules/printf-frexpl-tests: Likewise.
22650         * modules/priv-set-tests: Likewise.
22651         * modules/random_r-tests: Likewise.
22652         * modules/round-tests: Likewise.
22653         * modules/roundf-tests: Likewise.
22654         * modules/roundl-tests: Likewise.
22655         * modules/search-tests: Likewise.
22656         * modules/select-tests: Likewise.
22657         * modules/signal-tests: Likewise.
22658         * modules/stdbool-tests: Likewise.
22659         * modules/stddef-tests: Likewise.
22660         * modules/stdint-tests: Likewise.
22661         * modules/stdio-tests: Likewise.
22662         * modules/stdlib-tests: Likewise.
22663         * modules/string-tests: Likewise.
22664         * modules/strings-tests: Likewise.
22665         * modules/sys_select-tests: Likewise.
22666         * modules/sys_socket-tests: Likewise.
22667         * modules/sys_stat-tests: Likewise.
22668         * modules/sys_time-tests: Likewise.
22669         * modules/sys_utsname-tests: Likewise.
22670         * modules/sysexits-tests: Likewise.
22671         * modules/time-tests: Likewise.
22672         * modules/trunc-tests: Likewise.
22673         * modules/truncf-tests: Likewise.
22674         * modules/truncl-tests: Likewise.
22675         * modules/tsearch-tests: Likewise.
22676         * modules/unistd-tests: Likewise.
22677         * modules/wchar-tests: Likewise.
22678         * modules/wctype-tests: Likewise.
22679
22680         tests: fix license on several tests
22681         * tests/test-des.c: Update to GPLv3+.
22682         * tests/test-flock.c: Likewise.
22683         * tests/test-fsync.c: Likewise.
22684         * tests/test-futimens.h: Likewise.
22685         * tests/test-gc-arcfour.c: Likewise.
22686         * tests/test-gc-arctwo.c: Likewise.
22687         * tests/test-gc-des.c: Likewise.
22688         * tests/test-gc-hmac-md5.c: Likewise.
22689         * tests/test-gc-hmac-sha1.c: Likewise.
22690         * tests/test-gc-md2.c: Likewise.
22691         * tests/test-gc-md4.c: Likewise.
22692         * tests/test-gc-md5.c: Likewise.
22693         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22694         * tests/test-gc-rijndael.c: Likewise.
22695         * tests/test-gc-sha1.c: Likewise.
22696         * tests/test-gc.c: Likewise.
22697         * tests/test-getcwd.c: Likewise.
22698         * tests/test-link.c: Likewise.
22699         * tests/test-link.h: Likewise.
22700         * tests/test-lutimens.h: Likewise.
22701         * tests/test-md2.c: Likewise.
22702         * tests/test-md4.c: Likewise.
22703         * tests/test-mkdir.h: Likewise.
22704         * tests/test-rename.c: Likewise.
22705         * tests/test-rename.h: Likewise.
22706         * tests/test-safe-alloc.c: Likewise.
22707         * tests/test-utimens-common.h: Likewise.
22708         * tests/test-utimens.h: Likewise.
22709
22710         maint: sync license texts
22711         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22712         * doc/gpl-3.0.texi: Revert copyright year update.
22713         * doc/lgpl-3.0.texi: Likewise.
22714
22715 2009-12-29  Jim Meyering  <meyering@redhat.com>
22716
22717         update nearly all FSF copyright year lists to include 2009
22718         The files named by the following are exempted:
22719             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22720               test -f "$dst" && { echo "$dst"; continue; }
22721               test -d "$dst" || continue
22722               echo "$dst"/$(basename "$src")
22723             done > exempt
22724             git ls-files tests/unictype >> exempt
22725         In the remaining files, convert to all-interval notation if
22726         - there is already at least one year interval like 2000-2003
22727         - the file is maintained by me
22728         - the file is in lib/uni*/, where that style already prevails
22729         Otherwise, use update-copyright's default.
22730
22731 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22732         and Eric Blake  <ebb9@byu.net>
22733
22734         tests: don't require debug system() to pass
22735         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22736         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22737         * tests/test-unlink.h (test_unlink_func): Likewise.
22738         * tests/test-fstatat.c (main): ...into callers.
22739         * tests/test-lstat.c (main): Likewise.
22740         * tests/test-rmdir.c (main): Likewise.
22741         * tests/test-unlink.c (main): Likewise.
22742         * tests/test-unlinkat.c (main): Likewise.
22743         * tests/test-areadlink-with-size.c (main): Don't require a
22744         debug-only system call to pass, aiding cross-testing to mingw.
22745         * tests/test-areadlink.c (main): Likewise.
22746         * tests/test-areadlinkat-with-size.c (main): Likewise.
22747         * tests/test-areadlinkat.c (main): Likewise.
22748         * tests/test-canonicalize-lgpl.c (main): Likewise.
22749         * tests/test-canonicalize.c (main): Likewise.
22750         * tests/test-chown.c (main): Likewise.
22751         * tests/test-fchownat.c (main): Likewise.
22752         * tests/test-lchown.c (main): Likewise.
22753         * tests/test-fdutimensat.c (main): Likewise.
22754         * tests/test-futimens.c (main): Likewise.
22755         * tests/test-link.c (main): Likewise.
22756         * tests/test-linkat.c (main): Likewise.
22757         * tests/test-mkdir.c (main): Likewise.
22758         * tests/test-mkdirat.c (main): Likewise.
22759         * tests/test-mkfifo.c (main): Likewise.
22760         * tests/test-mkfifoat.c (main): Likewise.
22761         * tests/test-mknod.c (main): Likewise.
22762         * tests/test-readlink.c (main): Likewise.
22763         * tests/test-remove.c (main): Likewise.
22764         * tests/test-rename.c (main): Likewise.
22765         * tests/test-renameat.c (main): Likewise.
22766         * tests/test-symlink.c (main): Likewise.
22767         * tests/test-symlinkat.c (main): Likewise.
22768         * tests/test-utimens.c (main): Likewise.
22769         * tests/test-utimensat.c (main): Likewise.
22770
22771 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22772
22773         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22774         on $(UNUSED_PARAMETER_H) to avoid build failure.
22775
22776 2009-12-28  Jim Meyering  <meyering@redhat.com>
22777
22778         update-copyright: you may specify a max. line length other than 72
22779         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22780
22781         maint: use consistent FSF copyright line syntax
22782         * lib/posixtm.c: Add missing comma in FSF copyright line.
22783         * lib/posixtm.h: Likewise.
22784         * lib/getugroups.c: Add missing ", Inc.".
22785
22786         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22787         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22788         FSF copyright line.  Remove trailing blanks.
22789
22790 2009-12-28  Eric Blake  <ebb9@byu.net>
22791
22792         test-dup2: reduce dependencies
22793         * modules/cloexec (Configure.ac): Set witness.
22794         * modules/dup2-tests (Depends-on): Drop cloexec.
22795         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22796         not present.
22797         Suggested by Bruno Haible.
22798
22799 2009-12-26  Bruno Haible  <bruno@clisp.org>
22800
22801         Remove an unneeded dependency.
22802         * modules/fseterr (Depends-on): Remove dup2.
22803
22804 2009-12-26  Eric Blake  <ebb9@byu.net>
22805
22806         tests: use macros.h in more places
22807         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22808         (ASSERT_STREAM): Provide default of stderr.
22809         * tests/test-dirent-safer.c: Include macros.h, using alternate
22810         stream for assertions.
22811         * tests/test-dup-safer.c: Likewise.
22812         * tests/test-freopen-safer.c: Likewise.
22813         * tests/test-getopt.c: Likewise.
22814         * tests/test-openat-safer.c: Likewise.
22815         * tests/test-pipe.c: Likewise.
22816         * tests/test-popen-safer.c: Likewise.
22817         * modules/dirent-safer-tests (Files): Include macros.h.
22818         * modules/unistd-safer-tests (Files): Likewise.
22819         * modules/freopen-safer-tests (Files): Likewise.
22820         * modules/getopt-posix-tests (Files): Likewise.
22821         * modules/openat-safer-tests (Files): Likewise.
22822         * modules/pipe-tests (Files): Likewise.
22823
22824 2009-12-26  Bruno Haible  <bruno@clisp.org>
22825
22826         javacomp: Portability fix.
22827         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22828         that it also works on Solaris.
22829
22830 2009-12-26  Bruno Haible  <bruno@clisp.org>
22831
22832         localename: Fix storage allocation of gl_locale_name_thread's result.
22833         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22834         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22835         all platforms that have 'uselocale'.
22836         (gl_locale_name_thread_unsafe): New function, extracted from
22837         gl_locale_name_thread.
22838         (gl_locale_name_thread): Call struniq on all platforms that have
22839         'uselocale'.
22840         * tests/test-localename.c (test_locale_name_thread): Check that the
22841         resulting strings are permanently allocated.
22842         * modules/localename-tests (Depends-on): Add strdup.
22843
22844 2009-12-26  Bruno Haible  <bruno@clisp.org>
22845
22846         * tests/test-localename.c (categories): Fill in the strings.
22847
22848 2009-12-26  Jim Meyering  <meyering@redhat.com>
22849
22850         isdir: complete the removal of m4/isdir.m4
22851         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22852
22853         isdir: clean up, since at least grep still uses it
22854         * lib/isdir.c: Include "isdir.h".
22855         (S_ISDIR): Remove now-unneeded definition.
22856         * modules/isdir (Files): Add lib/isdir.h.
22857         * lib/isdir.h: New file, with declaration.
22858         * m4/isdir.m4: Remove file -- unneeded.
22859
22860 2009-12-25  Bruno Haible  <bruno@clisp.org>
22861
22862         selinux-h: Make generated .h files standalone.
22863         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22864         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22865         * lib/se-selinux.in.h: Likewise.
22866         * modules/selinux-h (Depends-on): Add unused-parameter.
22867         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22868         selinux/selinux.h and selinux/context.h.
22869         Suggested by Eric Blake.
22870
22871 2009-12-25  Bruno Haible  <bruno@clisp.org>
22872
22873         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22874         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22875         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22876         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22877         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22878
22879 2009-12-24  Bruno Haible  <bruno@clisp.org>
22880
22881         openat: Fix warning.
22882         * lib/openat-proc.c: Include <unistd.h>.
22883
22884 2009-12-24  Bruno Haible  <bruno@clisp.org>
22885
22886         New module 'unused-parameter'.
22887         * build-aux/unused-parameter.h: New file, extracted from earlier
22888         gnulib-common.m4.
22889         * modules/unused-parameter: New file.
22890         * lib/unistr.h: Include unused-parameter.h.
22891         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22892         _GL_UNUSED.
22893         * modules/unistr/base (Depends-on): Add unused-parameter.
22894
22895 2009-12-24  Bruno Haible  <bruno@clisp.org>
22896
22897         Add missing dependencies to 'extensions' module.
22898         * m4/extensions.m4: Add comment.
22899         * modules/accept4 (Depends-on): Add extensions.
22900         * modules/dup3 (Depends-on): Likewise.
22901         * modules/fcntl (Depends-on): Likewise.
22902         * modules/futimens (Depends-on): Likewise.
22903         * modules/mknod (Depends-on): Likewise.
22904         * modules/pipe2 (Depends-on): Likewise.
22905         * modules/stat-time (Depends-on): Likewise.
22906         * modules/strcasestr-simple (Depends-on): Likewise.
22907         * modules/strsignal (Depends-on): Likewise.
22908         * modules/utimensat (Depends-on): Likewise.
22909         * modules/localcharset (Depends-on): Likewise. Needed because of
22910         gl_FCNTL_O_FLAGS.
22911         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22912         AC_TYPE_MBSTATE_T.
22913         * modules/wcsnrtombs (Depends-on): Likewise.
22914         * modules/wcsrtombs (Depends-on): Likewise.
22915
22916 2009-12-24  Bruno Haible  <bruno@clisp.org>
22917
22918         binary-io: Avoid gcc warning due to SET_BINARY.
22919         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22920         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22921
22922 2009-12-24  Bruno Haible  <bruno@clisp.org>
22923
22924         Avoid future namespace pollution on glibc systems.
22925         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22926         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22927         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22928         glibc systems.
22929
22930 2009-12-24  Bruno Haible  <bruno@clisp.org>
22931
22932         Refactor common macros used in tests.
22933         * tests/macros.h: New file.
22934         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22935         and/or <stdlib.h>, if appropriate.
22936         (ASSERT, SIZEOF): Remove macros.
22937         * tests/test-areadlink-with-size.c: Likewise.
22938         * tests/test-areadlinkat.c: Likewise.
22939         * tests/test-areadlinkat-with-size.c: Likewise.
22940         * tests/test-argmatch.c: Likewise.
22941         * tests/test-argv-iter.c: Likewise.
22942         * tests/test-array-mergesort.c: Likewise.
22943         * tests/test-array_list.c: Likewise.
22944         * tests/test-array_oset.c: Likewise.
22945         * tests/test-avltree_list.c: Likewise.
22946         * tests/test-avltree_oset.c: Likewise.
22947         * tests/test-avltreehash_list.c: Likewise.
22948         * tests/test-base64.c: Likewise.
22949         * tests/test-binary-io.c: Likewise.
22950         * tests/test-bitrotate.c: Likewise.
22951         * tests/test-btowc.c: Likewise.
22952         * tests/test-byteswap.c: Likewise.
22953         * tests/test-c-ctype.c: Likewise.
22954         * tests/test-c-stack.c: Likewise.
22955         * tests/test-c-strcasecmp.c: Likewise.
22956         * tests/test-c-strcasestr.c: Likewise.
22957         * tests/test-c-strncasecmp.c: Likewise.
22958         * tests/test-c-strstr.c: Likewise.
22959         * tests/test-canonicalize-lgpl.c: Likewise.
22960         * tests/test-canonicalize.c: Likewise.
22961         * tests/test-carray_list.c: Likewise.
22962         * tests/test-ceilf1.c: Likewise.
22963         * tests/test-ceilf2.c: Likewise.
22964         * tests/test-ceill.c: Likewise.
22965         * tests/test-chown.c: Likewise.
22966         * tests/test-cloexec.c: Likewise.
22967         * tests/test-copy-acl.c: Likewise.
22968         * tests/test-copy-file.c: Likewise.
22969         * tests/test-count-one-bits.c: Likewise.
22970         * tests/test-dprintf-posix.c: Likewise.
22971         * tests/test-dup2.c: Likewise.
22972         * tests/test-dup3.c: Likewise.
22973         * tests/test-duplocale.c: Likewise.
22974         * tests/test-fbufmode.c: Likewise.
22975         * tests/test-fchdir.c: Likewise.
22976         * tests/test-fchownat.c: Likewise.
22977         * tests/test-fcntl-safer.c: Likewise.
22978         * tests/test-fcntl.c: Likewise.
22979         * tests/test-fdopendir.c: Likewise.
22980         * tests/test-fdutimensat.c: Likewise.
22981         * tests/test-fflush2.c: Likewise.
22982         * tests/test-file-has-acl.c: Likewise.
22983         * tests/test-filevercmp.c: Likewise.
22984         * tests/test-flock.c: Likewise.
22985         * tests/test-floorf1.c: Likewise.
22986         * tests/test-floorf2.c: Likewise.
22987         * tests/test-floorl.c: Likewise.
22988         * tests/test-fnmatch.c: Likewise.
22989         * tests/test-fopen.h: Likewise.
22990         * tests/test-fpending.c: Likewise.
22991         * tests/test-fprintf-posix.c: Likewise.
22992         * tests/test-fpurge.c: Likewise.
22993         * tests/test-freadable.c: Likewise.
22994         * tests/test-freadahead.c: Likewise.
22995         * tests/test-freading.c: Likewise.
22996         * tests/test-freadptr.c: Likewise.
22997         * tests/test-freadptr2.c: Likewise.
22998         * tests/test-freadseek.c: Likewise.
22999         * tests/test-freopen.c: Likewise.
23000         * tests/test-frexp.c: Likewise.
23001         * tests/test-frexpl.c: Likewise.
23002         * tests/test-fseek.c: Likewise.
23003         * tests/test-fseeko.c: Likewise.
23004         * tests/test-fstatat.c: Likewise.
23005         * tests/test-fstrcmp.c: Likewise.
23006         * tests/test-fsync.c: Likewise.
23007         * tests/test-ftell.c: Likewise.
23008         * tests/test-ftello.c: Likewise.
23009         * tests/test-func.c: Likewise.
23010         * tests/test-futimens.c: Likewise.
23011         * tests/test-fwritable.c: Likewise.
23012         * tests/test-fwriting.c: Likewise.
23013         * tests/test-getcwd.c: Likewise.
23014         * tests/test-getdate.c: Likewise.
23015         * tests/test-getdelim.c: Likewise.
23016         * tests/test-getdtablesize.c: Likewise.
23017         * tests/test-getgroups.c: Likewise.
23018         * tests/test-getline.c: Likewise.
23019         * tests/test-getndelim2.c: Likewise.
23020         * tests/test-glob.c: Likewise.
23021         * tests/test-hash.c: Likewise.
23022         * tests/test-i-ring.c: Likewise.
23023         * tests/test-iconv-utf.c: Likewise.
23024         * tests/test-iconv.c: Likewise.
23025         * tests/test-idpriv-drop.c: Likewise.
23026         * tests/test-idpriv-droptemp.c: Likewise.
23027         * tests/test-inet_ntop.c: Likewise.
23028         * tests/test-inet_pton.c: Likewise.
23029         * tests/test-isblank.c: Likewise.
23030         * tests/test-isfinite.c: Likewise.
23031         * tests/test-isinf.c: Likewise.
23032         * tests/test-isnan.c: Likewise.
23033         * tests/test-isnand.h: Likewise.
23034         * tests/test-isnanf.h: Likewise.
23035         * tests/test-isnanl.h: Likewise.
23036         * tests/test-lchown.c: Likewise.
23037         * tests/test-ldexpl.c: Likewise.
23038         * tests/test-link.c: Likewise.
23039         * tests/test-linkat.c: Likewise.
23040         * tests/test-linked_list.c: Likewise.
23041         * tests/test-linkedhash_list.c: Likewise.
23042         * tests/test-localename.c: Likewise.
23043         * tests/test-lseek.c: Likewise.
23044         * tests/test-lstat.c: Likewise.
23045         * tests/test-mbmemcasecmp.c: Likewise.
23046         * tests/test-mbmemcasecoll.c: Likewise.
23047         * tests/test-mbrtowc.c: Likewise.
23048         * tests/test-mbscasecmp.c: Likewise.
23049         * tests/test-mbscasestr1.c: Likewise.
23050         * tests/test-mbscasestr2.c: Likewise.
23051         * tests/test-mbscasestr3.c: Likewise.
23052         * tests/test-mbscasestr4.c: Likewise.
23053         * tests/test-mbschr.c: Likewise.
23054         * tests/test-mbscspn.c: Likewise.
23055         * tests/test-mbsinit.c: Likewise.
23056         * tests/test-mbsncasecmp.c: Likewise.
23057         * tests/test-mbsnrtowcs.c: Likewise.
23058         * tests/test-mbspbrk.c: Likewise.
23059         * tests/test-mbspcasecmp.c: Likewise.
23060         * tests/test-mbsrchr.c: Likewise.
23061         * tests/test-mbsrtowcs.c: Likewise.
23062         * tests/test-mbsspn.c: Likewise.
23063         * tests/test-mbsstr1.c: Likewise.
23064         * tests/test-mbsstr2.c: Likewise.
23065         * tests/test-mbsstr3.c: Likewise.
23066         * tests/test-memchr.c: Likewise.
23067         * tests/test-memchr2.c: Likewise.
23068         * tests/test-memcmp.c: Likewise.
23069         * tests/test-memmem.c: Likewise.
23070         * tests/test-memrchr.c: Likewise.
23071         * tests/test-mkdir.c: Likewise.
23072         * tests/test-mkdirat.c: Likewise.
23073         * tests/test-mkfifo.c: Likewise.
23074         * tests/test-mkfifoat.c: Likewise.
23075         * tests/test-mknod.c: Likewise.
23076         * tests/test-nanosleep.c: Likewise.
23077         * tests/test-nl_langinfo.c: Likewise.
23078         * tests/test-obstack-printf.c: Likewise.
23079         * tests/test-open.c: Likewise.
23080         * tests/test-openat.c: Likewise.
23081         * tests/test-pipe-filter-gi1.c: Likewise.
23082         * tests/test-pipe-filter-gi2-main.c: Likewise.
23083         * tests/test-pipe-filter-ii1.c: Likewise.
23084         * tests/test-pipe-filter-ii2-main.c: Likewise.
23085         * tests/test-pipe2.c: Likewise.
23086         * tests/test-popen.h: Likewise.
23087         * tests/test-posixtm.c: Likewise.
23088         * tests/test-pread.c: Likewise.
23089         * tests/test-printf-frexp.c: Likewise.
23090         * tests/test-printf-frexpl.c: Likewise.
23091         * tests/test-printf-posix.c: Likewise.
23092         * tests/test-priv-set.c: Likewise.
23093         * tests/test-quotearg.c: Likewise.
23094         * tests/test-random_r.c: Likewise.
23095         * tests/test-rawmemchr.c: Likewise.
23096         * tests/test-rbtree_list.c: Likewise.
23097         * tests/test-rbtree_oset.c: Likewise.
23098         * tests/test-rbtreehash_list.c: Likewise.
23099         * tests/test-readlink.c: Likewise.
23100         * tests/test-remove.c: Likewise.
23101         * tests/test-rename.c: Likewise.
23102         * tests/test-renameat.c: Likewise.
23103         * tests/test-rmdir.c: Likewise.
23104         * tests/test-round1.c: Likewise.
23105         * tests/test-roundf1.c: Likewise.
23106         * tests/test-roundl.c: Likewise.
23107         * tests/test-safe-alloc.c: Likewise.
23108         * tests/test-sameacls.c: Likewise.
23109         * tests/test-set-mode-acl.c: Likewise.
23110         * tests/test-setenv.c: Likewise.
23111         * tests/test-sigaction.c: Likewise.
23112         * tests/test-signbit.c: Likewise.
23113         * tests/test-sleep.c: Likewise.
23114         * tests/test-snprintf-posix.c: Likewise.
23115         * tests/test-snprintf.c: Likewise.
23116         * tests/test-sprintf-posix.c: Likewise.
23117         * tests/test-stat-time.c: Likewise.
23118         * tests/test-stat.c: Likewise.
23119         * tests/test-strcasestr.c: Likewise.
23120         * tests/test-strchrnul.c: Likewise.
23121         * tests/test-strerror.c: Likewise.
23122         * tests/test-striconv.c: Likewise.
23123         * tests/test-striconveh.c: Likewise.
23124         * tests/test-striconveha.c: Likewise.
23125         * tests/test-strsignal.c: Likewise.
23126         * tests/test-strstr.c: Likewise.
23127         * tests/test-strtod.c: Likewise.
23128         * tests/test-strverscmp.c: Likewise.
23129         * tests/test-symlink.c: Likewise.
23130         * tests/test-symlinkat.c: Likewise.
23131         * tests/test-trunc1.c: Likewise.
23132         * tests/test-trunc2.c: Likewise.
23133         * tests/test-truncf1.c: Likewise.
23134         * tests/test-truncf2.c: Likewise.
23135         * tests/test-truncl.c: Likewise.
23136         * tests/test-uname.c: Likewise.
23137         * tests/test-unlink.c: Likewise.
23138         * tests/test-unlinkat.c: Likewise.
23139         * tests/test-unsetenv.c: Likewise.
23140         * tests/test-usleep.c: Likewise.
23141         * tests/test-utimens.c: Likewise.
23142         * tests/test-utimensat.c: Likewise.
23143         * tests/test-vasnprintf-posix.c: Likewise.
23144         * tests/test-vasnprintf-posix2.c: Likewise.
23145         * tests/test-vasnprintf.c: Likewise.
23146         * tests/test-vasprintf-posix.c: Likewise.
23147         * tests/test-vasprintf.c: Likewise.
23148         * tests/test-vdprintf-posix.c: Likewise.
23149         * tests/test-vfprintf-posix.c: Likewise.
23150         * tests/test-vprintf-posix.c: Likewise.
23151         * tests/test-vsnprintf-posix.c: Likewise.
23152         * tests/test-vsnprintf.c: Likewise.
23153         * tests/test-vsprintf-posix.c: Likewise.
23154         * tests/test-wcrtomb.c: Likewise.
23155         * tests/test-wcsnrtombs.c: Likewise.
23156         * tests/test-wcsrtombs.c: Likewise.
23157         * tests/test-wctype.c: Likewise.
23158         * tests/test-wcwidth.c: Likewise.
23159         * tests/test-xfprintf-posix.c: Likewise.
23160         * tests/test-xmemdup0.c: Likewise.
23161         * tests/test-xprintf-posix.c: Likewise.
23162         * tests/test-xvasprintf.c: Likewise.
23163         * tests/unicase/test-locale-language.c: Likewise.
23164         * tests/unicase/test-mapping-part1.h: Likewise.
23165         * tests/unicase/test-predicate-part1.h: Likewise.
23166         * tests/unicase/test-u8-casecmp.c: Likewise.
23167         * tests/unicase/test-u8-casecoll.c: Likewise.
23168         * tests/unicase/test-u8-casefold.c: Likewise.
23169         * tests/unicase/test-u8-is-cased.c: Likewise.
23170         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23171         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23172         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23173         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23174         * tests/unicase/test-u8-tolower.c: Likewise.
23175         * tests/unicase/test-u8-totitle.c: Likewise.
23176         * tests/unicase/test-u8-toupper.c: Likewise.
23177         * tests/unicase/test-u16-casecmp.c: Likewise.
23178         * tests/unicase/test-u16-casecoll.c: Likewise.
23179         * tests/unicase/test-u16-casefold.c: Likewise.
23180         * tests/unicase/test-u16-is-cased.c: Likewise.
23181         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23182         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23183         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23184         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23185         * tests/unicase/test-u16-tolower.c: Likewise.
23186         * tests/unicase/test-u16-totitle.c: Likewise.
23187         * tests/unicase/test-u16-toupper.c: Likewise.
23188         * tests/unicase/test-u32-casecmp.c: Likewise.
23189         * tests/unicase/test-u32-casecoll.c: Likewise.
23190         * tests/unicase/test-u32-casefold.c: Likewise.
23191         * tests/unicase/test-u32-is-cased.c: Likewise.
23192         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23193         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23194         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23195         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23196         * tests/unicase/test-u32-tolower.c: Likewise.
23197         * tests/unicase/test-u32-totitle.c: Likewise.
23198         * tests/unicase/test-u32-toupper.c: Likewise.
23199         * tests/unicase/test-ulc-casecmp.c: Likewise.
23200         * tests/unicase/test-ulc-casecoll.c: Likewise.
23201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23202         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23203         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23204         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23205         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23206         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23207         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23208         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23209         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23210         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23211         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23212         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23213         * tests/unictype/test-bidi_byname.c: Likewise.
23214         * tests/unictype/test-bidi_name.c: Likewise.
23215         * tests/unictype/test-bidi_of.c: Likewise.
23216         * tests/unictype/test-bidi_test.c: Likewise.
23217         * tests/unictype/test-block_list.c: Likewise.
23218         * tests/unictype/test-block_of.c: Likewise.
23219         * tests/unictype/test-block_test.c: Likewise.
23220         * tests/unictype/test-categ_and.c: Likewise.
23221         * tests/unictype/test-categ_and_not.c: Likewise.
23222         * tests/unictype/test-categ_byname.c: Likewise.
23223         * tests/unictype/test-categ_name.c: Likewise.
23224         * tests/unictype/test-categ_none.c: Likewise.
23225         * tests/unictype/test-categ_of.c: Likewise.
23226         * tests/unictype/test-categ_or.c: Likewise.
23227         * tests/unictype/test-categ_test_withtable.c: Likewise.
23228         * tests/unictype/test-combining.c: Likewise.
23229         * tests/unictype/test-decdigit.c: Likewise.
23230         * tests/unictype/test-digit.c: Likewise.
23231         * tests/unictype/test-mirror.c: Likewise.
23232         * tests/unictype/test-numeric.c: Likewise.
23233         * tests/unictype/test-pr_byname.c: Likewise.
23234         * tests/unictype/test-pr_test.c: Likewise.
23235         * tests/unictype/test-predicate-part1.h: Likewise.
23236         * tests/unictype/test-scripts.c: Likewise.
23237         * tests/unictype/test-sy_c_ident.c: Likewise.
23238         * tests/unictype/test-sy_java_ident.c: Likewise.
23239         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23240         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23241         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23242         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23243         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23244         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23245         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23246         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23247         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23248         * tests/uninorm/test-compat-decomposition.c: Likewise.
23249         * tests/uninorm/test-composition.c: Likewise.
23250         * tests/uninorm/test-decomposing-form.c: Likewise.
23251         * tests/uninorm/test-decomposition.c: Likewise.
23252         * tests/uninorm/test-u8-nfc.c: Likewise.
23253         * tests/uninorm/test-u8-nfd.c: Likewise.
23254         * tests/uninorm/test-u8-nfkc.c: Likewise.
23255         * tests/uninorm/test-u8-nfkd.c: Likewise.
23256         * tests/uninorm/test-u8-normcmp.c: Likewise.
23257         * tests/uninorm/test-u8-normcoll.c: Likewise.
23258         * tests/uninorm/test-u16-nfc.c: Likewise.
23259         * tests/uninorm/test-u16-nfd.c: Likewise.
23260         * tests/uninorm/test-u16-nfkc.c: Likewise.
23261         * tests/uninorm/test-u16-nfkd.c: Likewise.
23262         * tests/uninorm/test-u16-normcmp.c: Likewise.
23263         * tests/uninorm/test-u16-normcoll.c: Likewise.
23264         * tests/uninorm/test-u32-nfc.c: Likewise.
23265         * tests/uninorm/test-u32-nfd.c: Likewise.
23266         * tests/uninorm/test-u32-nfkc.c: Likewise.
23267         * tests/uninorm/test-u32-nfkd.c: Likewise.
23268         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23269         * tests/uninorm/test-u32-normcmp.c: Likewise.
23270         * tests/uninorm/test-u32-normcoll.c: Likewise.
23271         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23272         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23273         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23274         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23275         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23276         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23277         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23278         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23279         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23280         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23281         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23282         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23283         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23284         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23285         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23286         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23287         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23288         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23289         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23290         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23291         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23292         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23293         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23294         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23295         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23296         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23297         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23298         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23299         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23300         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23301         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23302         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23303         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23304         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23305         * tests/uniwidth/test-u8-width.c: Likewise.
23306         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23307         * tests/uniwidth/test-u16-width.c: Likewise.
23308         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23309         * tests/uniwidth/test-u32-width.c: Likewise.
23310         * tests/uniwidth/test-uc_width.c: Likewise.
23311         * tests/uniwidth/test-uc_width2.c: Likewise.
23312         * modules/acl-tests (Files): Add tests/macros.h.
23313         * modules/areadlink-tests (Files): Likewise.
23314         * modules/areadlink-with-size-tests (Files): Likewise.
23315         * modules/areadlinkat-tests (Files): Likewise.
23316         * modules/areadlinkat-with-size-tests (Files): Likewise.
23317         * modules/argmatch-tests (Files): Likewise.
23318         * modules/argv-iter-tests (Files): Likewise.
23319         * modules/array-list-tests (Files): Likewise.
23320         * modules/array-mergesort-tests (Files): Likewise.
23321         * modules/array-oset-tests (Files): Likewise.
23322         * modules/avltree-list-tests (Files): Likewise.
23323         * modules/avltree-oset-tests (Files): Likewise.
23324         * modules/avltreehash-list-tests (Files): Likewise.
23325         * modules/base64-tests (Files): Likewise.
23326         * modules/binary-io-tests (Files): Likewise.
23327         * modules/bitrotate-tests (Files): Likewise.
23328         * modules/btowc-tests (Files): Likewise.
23329         * modules/byteswap-tests (Files): Likewise.
23330         * modules/c-ctype-tests (Files): Likewise.
23331         * modules/c-stack-tests (Files): Likewise.
23332         * modules/c-strcase-tests (Files): Likewise.
23333         * modules/c-strcasestr-tests (Files): Likewise.
23334         * modules/c-strstr-tests (Files): Likewise.
23335         * modules/canonicalize-lgpl-tests (Files): Likewise.
23336         * modules/canonicalize-tests (Files): Likewise.
23337         * modules/carray-list-tests (Files): Likewise.
23338         * modules/ceilf-tests (Files): Likewise.
23339         * modules/ceill-tests (Files): Likewise.
23340         * modules/chown-tests (Files): Likewise.
23341         * modules/cloexec-tests (Files): Likewise.
23342         * modules/copy-file-tests (Files): Likewise.
23343         * modules/count-one-bits-tests (Files): Likewise.
23344         * modules/dprintf-posix-tests (Files): Likewise.
23345         * modules/dup2-tests (Files): Likewise.
23346         * modules/dup3-tests (Files): Likewise.
23347         * modules/duplocale-tests (Files): Likewise.
23348         * modules/fbufmode-tests (Files): Likewise.
23349         * modules/fchdir-tests (Files): Likewise.
23350         * modules/fcntl-safer-tests (Files): Likewise.
23351         * modules/fcntl-tests (Files): Likewise.
23352         * modules/fdopendir-tests (Files): Likewise.
23353         * modules/fdutimensat-tests (Files): Likewise.
23354         * modules/fflush-tests (Files): Likewise.
23355         * modules/filevercmp-tests (Files): Likewise.
23356         * modules/flock-tests (Files): Likewise.
23357         * modules/floorf-tests (Files): Likewise.
23358         * modules/floorl-tests (Files): Likewise.
23359         * modules/fnmatch-tests (Files): Likewise.
23360         * modules/fopen-safer-tests (Files): Likewise.
23361         * modules/fopen-tests (Files): Likewise.
23362         * modules/fpending-tests (Files): Likewise.
23363         * modules/fprintf-posix-tests (Files): Likewise.
23364         * modules/fpurge-tests (Files): Likewise.
23365         * modules/freadable-tests (Files): Likewise.
23366         * modules/freadahead-tests (Files): Likewise.
23367         * modules/freading-tests (Files): Likewise.
23368         * modules/freadptr-tests (Files): Likewise.
23369         * modules/freadseek-tests (Files): Likewise.
23370         * modules/freopen-tests (Files): Likewise.
23371         * modules/frexp-nolibm-tests (Files): Likewise.
23372         * modules/frexp-tests (Files): Likewise.
23373         * modules/frexpl-nolibm-tests (Files): Likewise.
23374         * modules/frexpl-tests (Files): Likewise.
23375         * modules/fseek-tests (Files): Likewise.
23376         * modules/fseeko-tests (Files): Likewise.
23377         * modules/fstrcmp-tests (Files): Likewise.
23378         * modules/fsync-tests (Files): Likewise.
23379         * modules/ftell-tests (Files): Likewise.
23380         * modules/ftello-tests (Files): Likewise.
23381         * modules/func-tests (Files): Likewise.
23382         * modules/futimens-tests (Files): Likewise.
23383         * modules/fwritable-tests (Files): Likewise.
23384         * modules/fwriting-tests (Files): Likewise.
23385         * modules/getcwd-tests (Files): Likewise.
23386         * modules/getdate-tests (Files): Likewise.
23387         * modules/getdelim-tests (Files): Likewise.
23388         * modules/getdtablesize-tests (Files): Likewise.
23389         * modules/getgroups-tests (Files): Likewise.
23390         * modules/getline-tests (Files): Likewise.
23391         * modules/getndelim2-tests (Files): Likewise.
23392         * modules/glob-tests (Files): Likewise.
23393         * modules/hash-tests (Files): Likewise.
23394         * modules/i-ring-tests (Files): Likewise.
23395         * modules/iconv-tests (Files): Likewise.
23396         * modules/iconv_open-utf-tests (Files): Likewise.
23397         * modules/idpriv-drop-tests (Files): Likewise.
23398         * modules/idpriv-droptemp-tests (Files): Likewise.
23399         * modules/inet_ntop-tests (Files): Likewise.
23400         * modules/inet_pton-tests (Files): Likewise.
23401         * modules/isblank-tests (Files): Likewise.
23402         * modules/isfinite-tests (Files): Likewise.
23403         * modules/isinf-tests (Files): Likewise.
23404         * modules/isnan-tests (Files): Likewise.
23405         * modules/isnand-nolibm-tests (Files): Likewise.
23406         * modules/isnand-tests (Files): Likewise.
23407         * modules/isnanf-nolibm-tests (Files): Likewise.
23408         * modules/isnanf-tests (Files): Likewise.
23409         * modules/isnanl-nolibm-tests (Files): Likewise.
23410         * modules/isnanl-tests (Files): Likewise.
23411         * modules/lchown-tests (Files): Likewise.
23412         * modules/ldexpl-tests (Files): Likewise.
23413         * modules/link-tests (Files): Likewise.
23414         * modules/linkat-tests (Files): Likewise.
23415         * modules/linked-list-tests (Files): Likewise.
23416         * modules/linkedhash-list-tests (Files): Likewise.
23417         * modules/localename-tests (Files): Likewise.
23418         * modules/lseek-tests (Files): Likewise.
23419         * modules/lstat-tests (Files): Likewise.
23420         * modules/mbmemcasecmp-tests (Files): Likewise.
23421         * modules/mbmemcasecoll-tests (Files): Likewise.
23422         * modules/mbrtowc-tests (Files): Likewise.
23423         * modules/mbscasecmp-tests (Files): Likewise.
23424         * modules/mbscasestr-tests (Files): Likewise.
23425         * modules/mbschr-tests (Files): Likewise.
23426         * modules/mbscspn-tests (Files): Likewise.
23427         * modules/mbsinit-tests (Files): Likewise.
23428         * modules/mbsncasecmp-tests (Files): Likewise.
23429         * modules/mbsnrtowcs-tests (Files): Likewise.
23430         * modules/mbspbrk-tests (Files): Likewise.
23431         * modules/mbspcasecmp-tests (Files): Likewise.
23432         * modules/mbsrchr-tests (Files): Likewise.
23433         * modules/mbsrtowcs-tests (Files): Likewise.
23434         * modules/mbsspn-tests (Files): Likewise.
23435         * modules/mbsstr-tests (Files): Likewise.
23436         * modules/memchr-tests (Files): Likewise.
23437         * modules/memchr2-tests (Files): Likewise.
23438         * modules/memcmp-tests (Files): Likewise.
23439         * modules/memmem-tests (Files): Likewise.
23440         * modules/memrchr-tests (Files): Likewise.
23441         * modules/mkdir-tests (Files): Likewise.
23442         * modules/mkfifo-tests (Files): Likewise.
23443         * modules/mkfifoat-tests (Files): Likewise.
23444         * modules/mknod-tests (Files): Likewise.
23445         * modules/nanosleep-tests (Files): Likewise.
23446         * modules/nl_langinfo-tests (Files): Likewise.
23447         * modules/obstack-printf-tests (Files): Likewise.
23448         * modules/open-tests (Files): Likewise.
23449         * modules/openat-tests (Files): Likewise.
23450         * modules/pipe-filter-gi-tests (Files): Likewise.
23451         * modules/pipe-filter-ii-tests (Files): Likewise.
23452         * modules/pipe2-tests (Files): Likewise.
23453         * modules/popen-safer-tests (Files): Likewise.
23454         * modules/popen-tests (Files): Likewise.
23455         * modules/posixtm-tests (Files): Likewise.
23456         * modules/pread-tests (Files): Likewise.
23457         * modules/printf-frexp-tests (Files): Likewise.
23458         * modules/printf-frexpl-tests (Files): Likewise.
23459         * modules/printf-posix-tests (Files): Likewise.
23460         * modules/priv-set-tests (Files): Likewise.
23461         * modules/quotearg-tests (Files): Likewise.
23462         * modules/random_r-tests (Files): Likewise.
23463         * modules/rawmemchr-tests (Files): Likewise.
23464         * modules/rbtree-list-tests (Files): Likewise.
23465         * modules/rbtree-oset-tests (Files): Likewise.
23466         * modules/rbtreehash-list-tests (Files): Likewise.
23467         * modules/readlink-tests (Files): Likewise.
23468         * modules/remove-tests (Files): Likewise.
23469         * modules/rename-tests (Files): Likewise.
23470         * modules/renameat-tests (Files): Likewise.
23471         * modules/rmdir-tests (Files): Likewise.
23472         * modules/round-tests (Files): Likewise.
23473         * modules/roundf-tests (Files): Likewise.
23474         * modules/roundl-tests (Files): Likewise.
23475         * modules/safe-alloc-tests (Files): Likewise.
23476         * modules/setenv-tests (Files): Likewise.
23477         * modules/sigaction-tests (Files): Likewise.
23478         * modules/signbit-tests (Files): Likewise.
23479         * modules/sleep-tests (Files): Likewise.
23480         * modules/snprintf-posix-tests (Files): Likewise.
23481         * modules/snprintf-tests (Files): Likewise.
23482         * modules/sprintf-posix-tests (Files): Likewise.
23483         * modules/stat-tests (Files): Likewise.
23484         * modules/stat-time-tests (Files): Likewise.
23485         * modules/strcasestr-tests (Files): Likewise.
23486         * modules/strchrnul-tests (Files): Likewise.
23487         * modules/strerror-tests (Files): Likewise.
23488         * modules/striconv-tests (Files): Likewise.
23489         * modules/striconveh-tests (Files): Likewise.
23490         * modules/striconveha-tests (Files): Likewise.
23491         * modules/strsignal-tests (Files): Likewise.
23492         * modules/strstr-tests (Files): Likewise.
23493         * modules/strtod-tests (Files): Likewise.
23494         * modules/strverscmp-tests (Files): Likewise.
23495         * modules/symlink-tests (Files): Likewise.
23496         * modules/symlinkat-tests (Files): Likewise.
23497         * modules/trunc-tests (Files): Likewise.
23498         * modules/truncf-tests (Files): Likewise.
23499         * modules/truncl-tests (Files): Likewise.
23500         * modules/uname-tests (Files): Likewise.
23501         * modules/unicase/cased-tests (Files): Likewise.
23502         * modules/unicase/ignorable-tests (Files): Likewise.
23503         * modules/unicase/locale-language-tests (Files): Likewise.
23504         * modules/unicase/tolower-tests (Files): Likewise.
23505         * modules/unicase/totitle-tests (Files): Likewise.
23506         * modules/unicase/toupper-tests (Files): Likewise.
23507         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23508         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23509         * modules/unicase/u8-casefold-tests (Files): Likewise.
23510         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23511         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23512         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23513         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23514         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23515         * modules/unicase/u8-tolower-tests (Files): Likewise.
23516         * modules/unicase/u8-totitle-tests (Files): Likewise.
23517         * modules/unicase/u8-toupper-tests (Files): Likewise.
23518         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23519         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23520         * modules/unicase/u16-casefold-tests (Files): Likewise.
23521         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23522         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23523         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23524         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23525         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23526         * modules/unicase/u16-tolower-tests (Files): Likewise.
23527         * modules/unicase/u16-totitle-tests (Files): Likewise.
23528         * modules/unicase/u16-toupper-tests (Files): Likewise.
23529         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23530         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23531         * modules/unicase/u32-casefold-tests (Files): Likewise.
23532         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23533         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23534         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23535         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23536         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23537         * modules/unicase/u32-tolower-tests (Files): Likewise.
23538         * modules/unicase/u32-totitle-tests (Files): Likewise.
23539         * modules/unicase/u32-toupper-tests (Files): Likewise.
23540         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23541         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23542         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23543         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23544         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23545         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23546         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23547         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23548         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23549         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23550         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23551         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23552         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23553         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23554         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23555         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23556         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23557         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23558         * modules/unictype/block-list-tests (Files): Likewise.
23559         * modules/unictype/block-of-tests (Files): Likewise.
23560         * modules/unictype/block-test-tests (Files): Likewise.
23561         * modules/unictype/category-C-tests (Files): Likewise.
23562         * modules/unictype/category-Cc-tests (Files): Likewise.
23563         * modules/unictype/category-Cf-tests (Files): Likewise.
23564         * modules/unictype/category-Cn-tests (Files): Likewise.
23565         * modules/unictype/category-Co-tests (Files): Likewise.
23566         * modules/unictype/category-Cs-tests (Files): Likewise.
23567         * modules/unictype/category-L-tests (Files): Likewise.
23568         * modules/unictype/category-Ll-tests (Files): Likewise.
23569         * modules/unictype/category-Lm-tests (Files): Likewise.
23570         * modules/unictype/category-Lo-tests (Files): Likewise.
23571         * modules/unictype/category-Lt-tests (Files): Likewise.
23572         * modules/unictype/category-Lu-tests (Files): Likewise.
23573         * modules/unictype/category-M-tests (Files): Likewise.
23574         * modules/unictype/category-Mc-tests (Files): Likewise.
23575         * modules/unictype/category-Me-tests (Files): Likewise.
23576         * modules/unictype/category-Mn-tests (Files): Likewise.
23577         * modules/unictype/category-N-tests (Files): Likewise.
23578         * modules/unictype/category-Nd-tests (Files): Likewise.
23579         * modules/unictype/category-Nl-tests (Files): Likewise.
23580         * modules/unictype/category-No-tests (Files): Likewise.
23581         * modules/unictype/category-P-tests (Files): Likewise.
23582         * modules/unictype/category-Pc-tests (Files): Likewise.
23583         * modules/unictype/category-Pd-tests (Files): Likewise.
23584         * modules/unictype/category-Pe-tests (Files): Likewise.
23585         * modules/unictype/category-Pf-tests (Files): Likewise.
23586         * modules/unictype/category-Pi-tests (Files): Likewise.
23587         * modules/unictype/category-Po-tests (Files): Likewise.
23588         * modules/unictype/category-Ps-tests (Files): Likewise.
23589         * modules/unictype/category-S-tests (Files): Likewise.
23590         * modules/unictype/category-Sc-tests (Files): Likewise.
23591         * modules/unictype/category-Sk-tests (Files): Likewise.
23592         * modules/unictype/category-Sm-tests (Files): Likewise.
23593         * modules/unictype/category-So-tests (Files): Likewise.
23594         * modules/unictype/category-Z-tests (Files): Likewise.
23595         * modules/unictype/category-Zl-tests (Files): Likewise.
23596         * modules/unictype/category-Zp-tests (Files): Likewise.
23597         * modules/unictype/category-Zs-tests (Files): Likewise.
23598         * modules/unictype/category-and-not-tests (Files): Likewise.
23599         * modules/unictype/category-and-tests (Files): Likewise.
23600         * modules/unictype/category-byname-tests (Files): Likewise.
23601         * modules/unictype/category-name-tests (Files): Likewise.
23602         * modules/unictype/category-none-tests (Files): Likewise.
23603         * modules/unictype/category-of-tests (Files): Likewise.
23604         * modules/unictype/category-or-tests (Files): Likewise.
23605         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23606         * modules/unictype/combining-class-tests (Files): Likewise.
23607         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23608         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23609         * modules/unictype/ctype-blank-tests (Files): Likewise.
23610         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23611         * modules/unictype/ctype-digit-tests (Files): Likewise.
23612         * modules/unictype/ctype-graph-tests (Files): Likewise.
23613         * modules/unictype/ctype-lower-tests (Files): Likewise.
23614         * modules/unictype/ctype-print-tests (Files): Likewise.
23615         * modules/unictype/ctype-punct-tests (Files): Likewise.
23616         * modules/unictype/ctype-space-tests (Files): Likewise.
23617         * modules/unictype/ctype-upper-tests (Files): Likewise.
23618         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23619         * modules/unictype/decimal-digit-tests (Files): Likewise.
23620         * modules/unictype/digit-tests (Files): Likewise.
23621         * modules/unictype/mirror-tests (Files): Likewise.
23622         * modules/unictype/numeric-tests (Files): Likewise.
23623         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23624         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23625         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23626         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23627         Likewise.
23628         * modules/unictype/property-bidi-block-separator-tests (Files):
23629         Likewise.
23630         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23631         Likewise.
23632         * modules/unictype/property-bidi-common-separator-tests (Files):
23633         Likewise.
23634         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23635         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23636         Likewise.
23637         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23638         Likewise.
23639         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23640         Likewise.
23641         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23642         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23643         Likewise.
23644         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23645         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23646         Likewise.
23647         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23648         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23649         * modules/unictype/property-bidi-segment-separator-tests (Files):
23650         Likewise.
23651         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23652         * modules/unictype/property-byname-tests (Files): Likewise.
23653         * modules/unictype/property-combining-tests (Files): Likewise.
23654         * modules/unictype/property-composite-tests (Files): Likewise.
23655         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23656         * modules/unictype/property-dash-tests (Files): Likewise.
23657         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23658         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23659         Likewise.
23660         * modules/unictype/property-deprecated-tests (Files): Likewise.
23661         * modules/unictype/property-diacritic-tests (Files): Likewise.
23662         * modules/unictype/property-extender-tests (Files): Likewise.
23663         * modules/unictype/property-format-control-tests (Files): Likewise.
23664         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23665         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23666         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23667         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23668         * modules/unictype/property-hyphen-tests (Files): Likewise.
23669         * modules/unictype/property-id-continue-tests (Files): Likewise.
23670         * modules/unictype/property-id-start-tests (Files): Likewise.
23671         * modules/unictype/property-ideographic-tests (Files): Likewise.
23672         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23673         * modules/unictype/property-ids-trinary-operator-tests (Files):
23674         Likewise.
23675         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23676         * modules/unictype/property-iso-control-tests (Files): Likewise.
23677         * modules/unictype/property-join-control-tests (Files): Likewise.
23678         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23679         * modules/unictype/property-line-separator-tests (Files): Likewise.
23680         * modules/unictype/property-logical-order-exception-tests (Files):
23681         Likewise.
23682         * modules/unictype/property-lowercase-tests (Files): Likewise.
23683         * modules/unictype/property-math-tests (Files): Likewise.
23684         * modules/unictype/property-non-break-tests (Files): Likewise.
23685         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23686         * modules/unictype/property-numeric-tests (Files): Likewise.
23687         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23688         * modules/unictype/property-other-default-ignorable-code-point-tests
23689         (Files): Likewise.
23690         * modules/unictype/property-other-grapheme-extend-tests (Files):
23691         Likewise.
23692         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23693         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23694         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23695         * modules/unictype/property-other-math-tests (Files): Likewise.
23696         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23697         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23698         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23699         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23700         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23701         * modules/unictype/property-private-use-tests (Files): Likewise.
23702         * modules/unictype/property-punctuation-tests (Files): Likewise.
23703         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23704         * modules/unictype/property-radical-tests (Files): Likewise.
23705         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23706         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23707         * modules/unictype/property-space-tests (Files): Likewise.
23708         * modules/unictype/property-terminal-punctuation-tests (Files):
23709         Likewise.
23710         * modules/unictype/property-test-tests (Files): Likewise.
23711         * modules/unictype/property-titlecase-tests (Files): Likewise.
23712         * modules/unictype/property-unassigned-code-value-tests (Files):
23713         Likewise.
23714         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23715         * modules/unictype/property-uppercase-tests (Files): Likewise.
23716         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23717         * modules/unictype/property-white-space-tests (Files): Likewise.
23718         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23719         * modules/unictype/property-xid-start-tests (Files): Likewise.
23720         * modules/unictype/property-zero-width-tests (Files): Likewise.
23721         * modules/unictype/scripts-tests (Files): Likewise.
23722         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23723         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23724         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23725         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23726         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23727         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23728         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23729         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23730         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23731         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23732         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23733         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23734         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23735         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23736         * modules/uninorm/composition-tests (Files): Likewise.
23737         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23738         * modules/uninorm/decomposition-tests (Files): Likewise.
23739         * modules/uninorm/filter-tests (Files): Likewise.
23740         * modules/uninorm/nfc-tests (Files): Likewise.
23741         * modules/uninorm/nfd-tests (Files): Likewise.
23742         * modules/uninorm/nfkc-tests (Files): Likewise.
23743         * modules/uninorm/nfkd-tests (Files): Likewise.
23744         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23745         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23746         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23747         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23748         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23749         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23750         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23751         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23752         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23753         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23754         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23755         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23756         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23757         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23758         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23759         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23760         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23761         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23762         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23763         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23764         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23765         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23766         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23767         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23768         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23769         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23770         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23771         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23772         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23773         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23774         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23775         * modules/uniwidth/u8-width-tests (Files): Likewise.
23776         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23777         * modules/uniwidth/u16-width-tests (Files): Likewise.
23778         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23779         * modules/uniwidth/u32-width-tests (Files): Likewise.
23780         * modules/uniwidth/width-tests (Files): Likewise.
23781         * modules/unlink-tests (Files): Likewise.
23782         * modules/unsetenv-tests (Files): Likewise.
23783         * modules/usleep-tests (Files): Likewise.
23784         * modules/utimens-tests (Files): Likewise.
23785         * modules/utimensat-tests (Files): Likewise.
23786         * modules/vasnprintf-posix-tests (Files): Likewise.
23787         * modules/vasnprintf-tests (Files): Likewise.
23788         * modules/vasprintf-posix-tests (Files): Likewise.
23789         * modules/vasprintf-tests (Files): Likewise.
23790         * modules/vdprintf-posix-tests (Files): Likewise.
23791         * modules/vfprintf-posix-tests (Files): Likewise.
23792         * modules/vprintf-posix-tests (Files): Likewise.
23793         * modules/vsnprintf-posix-tests (Files): Likewise.
23794         * modules/vsnprintf-tests (Files): Likewise.
23795         * modules/vsprintf-posix-tests (Files): Likewise.
23796         * modules/wcrtomb-tests (Files): Likewise.
23797         * modules/wcsnrtombs-tests (Files): Likewise.
23798         * modules/wcsrtombs-tests (Files): Likewise.
23799         * modules/wctype-tests (Files): Likewise.
23800         * modules/wcwidth-tests (Files): Likewise.
23801         * modules/xmemdup0-tests (Files): Likewise.
23802         * modules/xprintf-posix-tests (Files): Likewise.
23803         * modules/xvasprintf-tests (Files): Likewise.
23804
23805 2009-12-24  Eric Blake  <ebb9@byu.net>
23806
23807         test-nanosleep: fix typo
23808         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23809         patch.
23810         Reported by Bruno Haible.
23811
23812 2009-12-24  Bruno Haible  <bruno@clisp.org>
23813
23814         Reduce namespace pollution on glibc systems.
23815         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23816         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23817         systems.
23818         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23819         <getopt.h> on glibc systems.
23820         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23821         systems.
23822         * lib/fcntl.c: Include <unistd.h> here instead.
23823
23824 2009-12-24  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23827
23828 2009-12-24  Eric Blake  <ebb9@byu.net>
23829
23830         tests: add signature checks
23831         * tests/signature.h (SIGNATURE_CHECK): New file.
23832         * modules/atexit-tests (Files): Use it.
23833         * modules/btowc-tests (Files): Likewise.
23834         * modules/canonicalize-lgpl-tests (Files): Likewise.
23835         * modules/ceilf-tests (Files): Likewise.
23836         * modules/ceill-tests (Files): Likewise.
23837         * modules/chown-tests (Files): Likewise.
23838         * modules/dprintf-posix-tests (Files): Likewise.
23839         * modules/dup2-tests (Files): Likewise.
23840         * modules/dup3-tests (Files): Likewise.
23841         * modules/duplocale-tests (Files): Likewise.
23842         * modules/fchdir-tests (Files): Likewise.
23843         * modules/fcntl-tests (Files): Likewise.
23844         * modules/fdopendir-tests (Files): Likewise.
23845         * modules/fflush-tests (Files): Likewise.
23846         * modules/flock-tests (Files): Likewise.
23847         * modules/floorf-tests (Files): Likewise.
23848         * modules/floorl-tests (Files): Likewise.
23849         * modules/fnmatch-tests (Files): Likewise.
23850         * modules/fopen-tests (Files): Likewise.
23851         * modules/fprintf-posix-tests (Files): Likewise.
23852         * modules/freopen-tests (Files): Likewise.
23853         * modules/frexp-nolibm-tests (Files): Likewise.
23854         * modules/frexp-tests (Files): Likewise.
23855         * modules/frexpl-nolibm-tests (Files): Likewise.
23856         * modules/frexpl-tests (Files): Likewise.
23857         * modules/fseek-tests (Files): Likewise.
23858         * modules/fseeko-tests (Files): Likewise.
23859         * modules/fsync-tests (Files): Likewise.
23860         * modules/ftell-tests (Files): Likewise.
23861         * modules/ftello-tests (Files): Likewise.
23862         * modules/futimens-tests (Files): Likewise.
23863         * modules/getaddrinfo-tests (Files): Likewise.
23864         * modules/getcwd-tests (Files): Likewise.
23865         * modules/getdelim-tests (Files): Likewise.
23866         * modules/getdtablesize-tests (Files): Likewise.
23867         * modules/getgroups-tests (Files): Likewise.
23868         * modules/gethostname-tests (Files): Likewise.
23869         * modules/getline-tests (Files): Likewise.
23870         * modules/getopt-posix-tests (Files): Likewise.
23871         * modules/gettimeofday-tests (Files): Likewise.
23872         * modules/glob-tests (Files): Likewise.
23873         * modules/iconv-tests (Files): Likewise.
23874         * modules/inet_ntop-tests (Files): Likewise.
23875         * modules/inet_pton-tests (Files): Likewise.
23876         * modules/isblank-tests (Files): Likewise.
23877         * modules/lchown-tests (Files): Likewise.
23878         * modules/ldexpl-tests (Files): Likewise.
23879         * modules/link-tests (Files): Likewise.
23880         * modules/linkat-tests (Files): Likewise.
23881         * modules/lseek-tests (Files): Likewise.
23882         * modules/lstat-tests (Files): Likewise.
23883         * modules/mbrtowc-tests (Files): Likewise.
23884         * modules/mbsinit-tests (Files): Likewise.
23885         * modules/mbsnrtowcs-tests (Files): Likewise.
23886         * modules/mbsrtowcs-tests (Files): Likewise.
23887         * modules/memchr-tests (Files): Likewise.
23888         * modules/memcmp-tests (Files): Likewise.
23889         * modules/memmem-tests (Files): Likewise.
23890         * modules/memrchr-tests (Files): Likewise.
23891         * modules/mkdir-tests (Files): Likewise.
23892         * modules/mkfifo-tests (Files): Likewise.
23893         * modules/mkfifoat-tests (Files): Likewise.
23894         * modules/mknod-tests (Files): Likewise.
23895         * modules/nanosleep-tests (Files): Likewise.
23896         * modules/nl_langinfo-tests (Files): Likewise.
23897         * modules/obstack-printf-tests (Files): Likewise.
23898         * modules/open-tests (Files): Likewise.
23899         * modules/openat-tests (Files): Likewise.
23900         * modules/perror-tests (Files): Likewise.
23901         * modules/pipe2-tests (Files): Likewise.
23902         * modules/poll-tests (Files): Likewise.
23903         * modules/popen-tests (Files): Likewise.
23904         * modules/posix_spawn-tests (Files): Likewise.
23905         * modules/posix_spawnp-tests (Files): Likewise.
23906         * modules/pread-tests (Files): Likewise.
23907         * modules/printf-posix-tests (Files): Likewise.
23908         * modules/pty-tests (Files): Likewise.
23909         * modules/random_r-tests (Files): Likewise.
23910         * modules/rawmemchr-tests (Files): Likewise.
23911         * modules/readlink-tests (Files): Likewise.
23912         * modules/remove-tests (Files): Likewise.
23913         * modules/rename-tests (Files): Likewise.
23914         * modules/renameat-tests (Files): Likewise.
23915         * modules/rmdir-tests (Files): Likewise.
23916         * modules/round-tests (Files): Likewise.
23917         * modules/roundf-tests (Files): Likewise.
23918         * modules/roundl-tests (Files): Likewise.
23919         * modules/select-tests (Files): Likewise.
23920         * modules/setenv-tests (Files): Likewise.
23921         * modules/sigaction-tests (Files): Likewise.
23922         * modules/sleep-tests (Files): Likewise.
23923         * modules/snprintf-posix-tests (Files): Likewise.
23924         * modules/snprintf-tests (Files): Likewise.
23925         * modules/sprintf-posix-tests (Files): Likewise.
23926         * modules/stat-tests (Files): Likewise.
23927         * modules/strcasestr-tests (Files): Likewise.
23928         * modules/strchrnul-tests (Files): Likewise.
23929         * modules/strerror-tests (Files): Likewise.
23930         * modules/strsignal-tests (Files): Likewise.
23931         * modules/strstr-tests (Files): Likewise.
23932         * modules/strtod-tests (Files): Likewise.
23933         * modules/strverscmp-tests (Files): Likewise.
23934         * modules/symlink-tests (Files): Likewise.
23935         * modules/symlinkat-tests (Files): Likewise.
23936         * modules/times-tests (Files): Likewise.
23937         * modules/trunc-tests (Files): Likewise.
23938         * modules/truncf-tests (Files): Likewise.
23939         * modules/truncl-tests (Files): Likewise.
23940         * modules/tsearch-tests (Files): Likewise.
23941         * modules/uname-tests (Files): Likewise.
23942         * modules/unlink-tests (Files): Likewise.
23943         * modules/unsetenv-tests (Files): Likewise.
23944         * modules/usleep-tests (Files): Likewise.
23945         * modules/utimensat-tests (Files): Likewise.
23946         * modules/vasprintf-tests (Files): Likewise.
23947         * modules/vdprintf-posix-tests (Files): Likewise.
23948         * modules/vfprintf-posix-tests (Files): Likewise.
23949         * modules/vprintf-posix-tests (Files): Likewise.
23950         * modules/vsnprintf-posix-tests (Files): Likewise.
23951         * modules/vsnprintf-tests (Files): Likewise.
23952         * modules/vsprintf-posix-tests (Files): Likewise.
23953         * modules/wcrtomb-tests (Files): Likewise.
23954         * modules/wcsnrtombs-tests (Files): Likewise.
23955         * modules/wcsrtombs-tests (Files): Likewise.
23956         * modules/wcwidth-tests (Files): Likewise.
23957         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23958         * tests/test-isinf.c (isinf): Likewise.
23959         * tests/test-isnan.c (isnan): Likewise.
23960         * tests/test-signbit.c (signbit): Likewise.
23961         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23962         declaration, either as macro or with correct signature.
23963         (select): Ensure function under test is declared with correct
23964         signature in correct header.
23965         * tests/test-atexit.c (atexit): Likewise.
23966         * tests/test-btowc.c (btowc): Likewise.
23967         * tests/test-canonicalize-lgpl.c (realpath)
23968         (canonicalize_file_name): Likewise.
23969         * tests/test-ceilf1.c (ceilf): Likewise.
23970         * tests/test-ceill.c (ceill): Likewise.
23971         * tests/test-chown.c (chown): Likewise.
23972         * tests/test-dprintf-posix.c (dprintf): Likewise.
23973         * tests/test-dup2.c (dup2): Likewise.
23974         * tests/test-dup3.c (dup3): Likewise.
23975         * tests/test-duplocale.c (duplocale): Likewise.
23976         * tests/test-fchdir.c (fchdir): Likewise.
23977         * tests/test-fchownat.c (fchownat): Likewise.
23978         * tests/test-fcntl.c (fcntl): Likewise.
23979         * tests/test-fdopendir.c (fdopendir): Likewise.
23980         * tests/test-fflush.c (fflush): Likewise.
23981         * tests/test-flock.c (flock): Likewise.
23982         * tests/test-floorf1.c (floorf): Likewise.
23983         * tests/test-floorl.c (floorl): Likewise.
23984         * tests/test-fnmatch.c (fnmatch): Likewise.
23985         * tests/test-fopen.c (fopen): Likewise.
23986         * tests/test-fprintf-posix.c (fprintf): Likewise.
23987         * tests/test-freopen.c (freopen): Likewise.
23988         * tests/test-frexp.c (frexp): Likewise.
23989         * tests/test-frexpl.c (frexpl): Likewise.
23990         * tests/test-fseek.c (fseek): Likewise.
23991         * tests/test-fseeko.c (fseeko): Likewise.
23992         * tests/test-fstatat.c (fstatat): Likewise.
23993         * tests/test-fsync.c (fsync): Likewise.
23994         * tests/test-ftell.c (ftell): Likewise.
23995         * tests/test-ftello.c (ftello): Likewise.
23996         * tests/test-futimens.c (futimens): Likewise.
23997         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23998         (gai_strerror): Likewise.
23999         * tests/test-getcwd.c (getcwd): Likewise.
24000         * tests/test-getdelim.c (getdelim): Likewise.
24001         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24002         * tests/test-getgroups.c (getgroups): Likewise.
24003         * tests/test-gethostname.c (gethostname): Likewise.
24004         * tests/test-getline.c (getline): Likewise.
24005         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24006         Likewise.
24007         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24008         * tests/test-glob.c (glob, globfree): Likewise.
24009         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24010         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24011         * tests/test-inet_pton.c (inet_pton): Likewise.
24012         * tests/test-isblank.c (isblank): Likewise.
24013         * tests/test-lchown.c (lchown): Likewise.
24014         * tests/test-ldexpl.c (ldexpl): Likewise.
24015         * tests/test-link.c (link): Likewise.
24016         * tests/test-linkat.c (linkat): Likewise.
24017         * tests/test-lseek.c (lseek): Likewise.
24018         * tests/test-lstat.c (lstat): Likewise.
24019         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24020         * tests/test-mbsinit.c (mbsinit): Likewise.
24021         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24022         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24023         * tests/test-memchr.c (memchr): Likewise.
24024         * tests/test-memcmp.c (memcmp): Likewise.
24025         * tests/test-memmem.c (memmem): Likewise.
24026         * tests/test-memrchr.c (memrchr): Likewise.
24027         * tests/test-mkdir.c (mkdir): Likewise.
24028         * tests/test-mkdirat.c (mkdirat): Likewise.
24029         * tests/test-mkfifo.c (mkfifo): Likewise.
24030         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24031         * tests/test-mknod.c (mknod): Likewise.
24032         * tests/test-nanosleep.c (nanosleep): Likewise.
24033         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24034         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24035         Likewise.
24036         * tests/test-open.c (open): Likewise.
24037         * tests/test-openat.c (openat): Likewise.
24038         * tests/test-perror.c (perror): Likewise.
24039         * tests/test-pipe2.c (pipe2): Likewise.
24040         * tests/test-poll.c (poll): Likewise.
24041         * tests/test-popen.c (popen, pclose): Likewise.
24042         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24043         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24044         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24045         (posix_spawn_file_actions_destroy)
24046         (posix_spawn_file_actions_addclose)
24047         (posix_spawn_file_actions_addopen)
24048         (posix_spawn_file_actions_adddup2): Likewise.
24049         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24050         * tests/test-pread.c (pread): Likewise.
24051         * tests/test-printf-posix.c (printf): Likewise.
24052         * tests/test-pty.c (openpty, forkpty): Likewise.
24053         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24054         (random_r): Likewise.
24055         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24056         * tests/test-readlink.c (readlink): Likewise.
24057         * tests/test-remove.c (remove): Likewise.
24058         * tests/test-rename.c (rename): Likewise.
24059         * tests/test-renameat.c (renameat): Likewise.
24060         * tests/test-rmdir.c (rmdir): Likewise.
24061         * tests/test-round1.c (round): Likewise.
24062         * tests/test-roundf1.c (roundf): Likewise.
24063         * tests/test-roundl.c (roundl): Likewise.
24064         * tests/test-setenv.c (setenv): Likewise.
24065         * tests/test-sigaction.c (sigaction): Likewise.
24066         * tests/test-sleep.c (sleep): Likewise.
24067         * tests/test-snprintf.c (snprintf): Likewise.
24068         * tests/test-sprintf-posix.c (sprintf): Likewise.
24069         * tests/test-stat.c (stat): Likewise.
24070         * tests/test-stpncpy.c (stpncpy): Likewise.
24071         * tests/test-strcasestr.c (strcasestr): Likewise.
24072         * tests/test-strchrnul.c (strchrnul): Likewise.
24073         * tests/test-strerror.c (strerror): Likewise.
24074         * tests/test-strsignal.c (strsignal): Likewise.
24075         * tests/test-strstr.c (strstr): Likewise.
24076         * tests/test-strtod.c (strtod): Likewise.
24077         * tests/test-strverscmp.c (strverscmp): Likewise.
24078         * tests/test-symlink.c (symlink): Likewise.
24079         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24080         * tests/test-times.c (times): Likewise.
24081         * tests/test-trunc1.c (trunc): Likewise.
24082         * tests/test-truncf1.c (truncf): Likewise.
24083         * tests/test-truncl.c (truncl): Likewise.
24084         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24085         Likewise.
24086         * tests/test-uname.c (uname): Likewise.
24087         * tests/test-unlink.c (unlink): Likewise.
24088         * tests/test-unlinkat.c (unlinkat): Likewise.
24089         * tests/test-unsetenv.c (unsetenv): Likewise.
24090         * tests/test-usleep.c (usleep): Likewise.
24091         * tests/test-utimensat.c (utimensat): Likewise.
24092         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24093         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24094         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24095         * tests/test-vprintf-posix.c (vprintf): Likewise.
24096         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24097         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24098         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24099         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24100         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24101         * tests/test-wcwidth.c (wcwidth): Likewise.
24102
24103         build: pull in conditional headers during GNULIB_POSIXCHECK
24104         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24105         definitions from any conditionally-included headers.
24106         * lib/stdlib.in.h (includes): Likewise.
24107         * lib/unistd.in.h (includes): Likewise.
24108
24109 2009-12-24  Bruno Haible  <bruno@clisp.org>
24110
24111         * tests/test-argv-iter.c: Include header file being tested immediately
24112         after config.h.
24113         * tests/test-base64.c: Likewise.
24114         * tests/test-flock.c: Likewise.
24115         * tests/test-fsync.c: Likewise.
24116         * tests/test-getdate.c: Likewise.
24117         * tests/test-getndelim2.c: Likewise.
24118         * tests/test-isfinite.c: Likewise.
24119         * tests/test-isinf.c: Likewise.
24120         * tests/test-strerror.c: Likewise.
24121         * tests/test-strsignal.c: Likewise.
24122
24123 2009-12-23  Eric Blake  <ebb9@byu.net>
24124
24125         unistd: work around cygwin bug
24126         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24127         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24128         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24129
24130 2009-12-23  Bruno Haible  <bruno@clisp.org>
24131
24132         localename: More tests.
24133         * tests/test-localename.c (SIZEOF): New macro.
24134         (categories): New variable.
24135         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24136         test_locale_name_default): Add test w.r.t. thread locale.
24137         (test_locale_name_thread): New function.
24138         (main): Invoke it.
24139
24140         localename: Make aware of thread locale.
24141         * lib/localename.h (gl_locale_name_thread): New declaration.
24142         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24143         behaviour with respect to thread locale.
24144         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24145         <langinfo.h>, glthread/lock.h.
24146         (SIZE_BITS): New macro.
24147         (string_hash): New function.
24148         (struct hash_node): New type.
24149         (HASH_TABLE_SIZE): New macro.
24150         (struniq_hash_table, struniq_lock): New variables.
24151         (struniq): New function.
24152         (gl_locale_name_thread): New function.
24153         (gl_locale_name): Invoke it.
24154         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24155         * modules/localename (Depends-on): Add lock.
24156         Reported by Mike Gran <spk121@yahoo.com>.
24157
24158 2009-12-23  Eric Blake  <ebb9@byu.net>
24159
24160         va-args: new module
24161         * modules/va-args: New file.
24162         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24163         * MODULES.html.sh (Core language properties): Mention it.
24164
24165         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24166         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24167         named alias for __attribute__((__unused__)).
24168         * lib/chown.c: Update client.
24169         * lib/fchmodat.c: Likewise.
24170         * lib/fts.c: Likewise.
24171         * lib/getdate.y: Likewise.
24172         * lib/getgroups.c: Likewise.
24173         * lib/getopt.c: Likewise.
24174         * lib/getugroups.c: Likewise.
24175         * lib/mkdir.c: Likewise.
24176         * lib/mkfifo.c: Likewise.
24177         * lib/mkfifoat.c: Likewise.
24178         * lib/mknod.c: Likewise.
24179         * lib/mknodat.c: Likewise.
24180         * lib/readlink.c: Likewise.
24181         * lib/se-context.in.h: Likewise.
24182         * lib/se-selinux.in.h: Likewise.
24183         * lib/sockets.c: Likewise.
24184         * lib/symlink.c: Likewise.
24185         * lib/symlinkat.c: Likewise.
24186         * lib/unicodeio.c: Likewise.
24187         * lib/unistr.h: Likewise.
24188         * tests/test-areadlink.c: Likewise.
24189         * tests/test-areadlinkat.c: Likewise.
24190         * tests/test-filenamecat.c: Likewise.
24191         * tests/test-fseeko.c: Likewise.
24192         * tests/test-ftello.c: Likewise.
24193         * tests/test-getdate.c: Likewise.
24194         * tests/test-getgroups.c: Likewise.
24195         * tests/test-gethostname.c: Likewise.
24196         * tests/test-quotearg.c: Likewise.
24197         * tests/test-version-etc.c: Likewise.
24198         * tests/test-xalloc-die.c: Likewise.
24199         * tests/test-xfprintf-posix.c: Likewise.
24200         * tests/test-xprintf-posix.c: Likewise.
24201         * tests/test-xvasprintf.c: Likewise.
24202
24203         tests: avoid compiler warnings
24204         * tests/test-fcntl.c (main): Delete unused parameters.
24205         * tests/test-freopen-safer.c (main): Likewise.
24206         * tests/test-xalloc-die.c (main): Mark unused parameters.
24207         * tests/test-fseeko.c (main): Likewise.
24208         * tests/test-ftello.c (main): Likewise.
24209         * tests/test-nanosleep.c (main): Avoid declaration warning.
24210         * tests/test-sleep.c (main): Likewise.
24211         * tests/test-unsetenv.c (main): Silence warning about string
24212         literal.
24213         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24214
24215 2009-12-23  Bruno Haible  <bruno@clisp.org>
24216
24217         * tests/test-localename.c (test_locale_name): New function, extracted
24218         from main. Also test mixed situations.
24219         (test_locale_name_posix, test_locale_name_environ,
24220         test_locale_name_default): New functions.
24221         (main): Invoke them all.
24222         * modules/localename-tests (configure.ac): Test for newlocale.
24223
24224 2009-12-23  Bruno Haible  <bruno@clisp.org>
24225
24226         unistd: Ensure getcwd gets declared before being overridden.
24227         * lib/unistd.in.h: Conditionally include <io.h>.
24228
24229 2009-12-22  Bruno Haible  <bruno@clisp.org>
24230
24231         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24232         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24233         (gl_WCHAR_H): Invoke it.
24234         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24235         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24236         Reported by Karl Berry <karl@freefriends.org>.
24237
24238 2009-12-22  Eric Blake  <ebb9@byu.net>
24239
24240         math, unistd: avoid redundant includes
24241         * lib/math.in.h (isnan): No need to re-include <math.h>.
24242         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24243
24244         getsubopt: work around cygwin bug
24245         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24246         avoid conflicting with system getsubopt.
24247         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24248         bug.
24249
24250         getopt: synchronize from glibc
24251         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24252         parameter order.  Adjust all callers.
24253         (_getopt_internal_r, main): Adjust quoting in error messages.
24254         Drop considerations for outdated POSIX 1003.2 error message.
24255         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24256         callers.
24257         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24258
24259         test-getopt: test stderr behavior
24260         * modules/getopt-posix-tests (Depends-on): Add dup2.
24261         * tests/test-getopt.c (ASSERT): Avoid stderr.
24262         (main): Move stderr to a temporary file.
24263         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24264         Instead, add parameter to inform caller if output occurred.
24265         (test_getopt): Adjust all existing tests to expect silence, and
24266         add new tests of leading ":".
24267         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24268         glibc shortcomings with leading "-:" or "+:" in optstring.
24269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24270         Likewise.
24271         * doc/posix-functions/getopt.texi (getopt): Likewise.
24272
24273         test-getopt: enhance test
24274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24275         supports optind=0.
24276         * tests/test-getopt.c (OPTIND_MIN): Move...
24277         * tests/test-getopt.h (OPTIND_MIN): ...here.
24278         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24279         Require that optind=0 works, since modern BSD supports it in
24280         addition to optreset, and since coreutils expects it.
24281         (test_getopt_long_only): New test.
24282         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24283         glibc shortcomings with 'W;', and enforcement of optind=0.
24284         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24285         Likewise.
24286
24287 2009-12-21  Bruno Haible  <bruno@clisp.org>
24288
24289         localename: Improvements for MacOS X and Cygwin.
24290         * lib/localename.h (gl_locale_name_environ): New declaration.
24291         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24292         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24293         (gl_locale_name_posix): Invoke it.
24294         (gl_locale_name_default): Add comments. Use Windows native API also on
24295         Cygwin.
24296
24297 2009-12-21  Bruno Haible  <bruno@clisp.org>
24298
24299         Update list of Win32 locale ids.
24300         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24301         (LANG_SAMI): Renamed from LANG_SAAMI.
24302         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24303         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24304         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24305         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24306         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24307         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24308         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24309         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24310         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24311         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24312         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24313         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24314         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24315         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24316         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24317         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24318         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24319         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24320         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24321         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24322         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24323         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24324         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24325         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24326         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24327         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24328         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24329         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24330         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24331         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24332         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24333         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24334         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24335         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24336         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24337         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24338         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24339         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24340         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24341         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24342         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24343         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24344         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24345         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24346         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24347         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24348         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24349         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24350         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24351         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24352         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24353         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24354         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24355         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24356         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24357         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24358         Add more languages and countries for Sami, Sorbian. Add more countries
24359         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24360         for Pashto. Change country for Syriac, Tswana.
24361
24362 2009-12-21  Eric Blake  <ebb9@byu.net>
24363
24364         test-utimens: avoid spurious failure
24365         * tests/test-chown.h (nap): Factor...
24366         * tests/nap.h: ...into new file.
24367         * tests/test-lchown.h (nap): Avoid duplication.
24368         * tests/test-utimens-common.h (nap): Use shared implementation,
24369         necessary on file systems with 1-second resolution.
24370         * modules/chown-tests (Files): Include new file.
24371         * modules/fdutimensat-tests (Files): Likewise.
24372         * modules/futimens-tests (Files): Likewise.
24373         * modules/lchown-tests (Files): Likewise.
24374         * modules/openat-tests (Files): Likewise.
24375         * modules/utimens-tests (Files): Likewise.
24376         * modules/utimensat-tests (Files): Likewise.
24377
24378 2009-12-19  Eric Blake  <ebb9@byu.net>
24379
24380         futimens, utimensat: work around Linux bug
24381         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24382         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24383         * lib/utimensat.c (rpl_utimensat): Work around it.
24384         * lib/futimens.c (rpl_futimens): Adjust comment.
24385
24386         utimens: work around Linux ctime bug
24387         * lib/utimens.c (detect_ctime_bug): New helper function.
24388         (update_timespec): Differentiate between workaround needed for
24389         this bug vs. what is needed for systems that lack utimensat.
24390         (fdutimens, lutimens): Work around bug.
24391
24392         utimens: check for ctime update
24393         * tests/test-utimens-common.h (check_ctime): Define.
24394         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24395         * tests/test-futimens.h (test_futimens): Likewise.
24396         * tests/test-lutimens.h (test_lutimens): Likewise.
24397         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24398         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24399
24400 2009-12-19  Bruno Haible  <bruno@clisp.org>
24401
24402         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24403         * tests/test-dprintf-posix2.sh: New file.
24404         * tests/test-dprintf-posix2.c: New file.
24405         * modules/dprintf-posix-tests (Files): Add them.
24406         (configure.ac): Check for getrlimit and setrlimit.
24407         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24408
24409 2009-12-19  Bruno Haible  <bruno@clisp.org>
24410
24411         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24412         * tests/test-fprintf-posix3.sh: New file.
24413         * tests/test-fprintf-posix3.c: New file.
24414         * modules/fprintf-posix-tests (Files): Add them.
24415         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24416
24417 2009-12-19  Eric Blake  <ebb9@byu.net>
24418
24419         dirfd: fix prototype
24420         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24421         * lib/dirfd.c (dirfd): Likewise.
24422
24423         canonicalize: reduce memory usage
24424         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24425         allocation to size.
24426         Reported by Solar Designer <solar@openwall.com>.
24427
24428 2009-12-19  Bruno Haible  <bruno@clisp.org>
24429
24430         New module attribute 'Applicability'.
24431         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24432         * gnulib-tool: New option --extract-applicability.
24433         (func_usage): Document it.
24434         (sed_extract_prog): Recognize it.
24435         (func_get_applicability): New function.
24436         (func_import): Generalize handling of 'link-warning' module.
24437         * modules/link-warning (Applicability): New section.
24438         * modules/arg-nonnull (Applicability): New section.
24439         Repoted by Simon Josefsson <simon@josefsson.org>.
24440
24441 2009-12-19  Bruno Haible  <bruno@clisp.org>
24442
24443         fflush: tweak
24444         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24445         * lib/fseeko.c (rpl_fseeko): Likewise.
24446
24447 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24448
24449         * lib/gl_list.h: Fix typo in comment.
24450
24451 2009-12-16  Eric Blake  <ebb9@byu.net>
24452
24453         fcntl: use to simplify other modules
24454         * modules/cloexec (Depends-on): Add fcntl.
24455         * modules/fchdir (Depends-on): Likewise.
24456         * modules/fd-safer-flag (Depends-on): Likewise.
24457         * modules/unistd-safer (Depends-on): Likewise.
24458         * modules/dup3 (configure.ac): Set module indicator.
24459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24460         missing.
24461         * lib/fchdir.c (_gl_register_dup): Fix comment.
24462         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24463         * lib/dup-safer.c (dup_safer): Likewise.
24464         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24465         * lib/dup3.c (dup3): Likewise.
24466         * tests/test-fchdir.c (main): Enhance test.
24467         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24468
24469         fcntl: port portions of fcntl to mingw
24470         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24471         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24472         replacement for mingw.
24473         * modules/fcntl (Description): Update.
24474         (Depends-on): Add dup2.
24475         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24476         * modules/fcntl-h (Makefile.am): Substitute it.
24477         * lib/fcntl.in.h (fcntl): Update declaration.
24478         (F_DUPFD, F_GETFD): New macros, when needed.
24479         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24480         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24481         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24482         we now guarantee.
24483
24484         fcntl: work around cygwin bug in F_DUPFD
24485         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24486         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24487         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24488         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24489         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24490
24491         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24492         * modules/fcntl (Files): List new files.
24493         (configure.ac): Run a test.
24494         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24495         * lib/fcntl.c (rpl_fcntl): Likewise.
24496         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24497         (gl_FCNTL_H): Always replace fcntl.h.
24498         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24499         * lib/fcntl.in.h (fcntl): Declare replacement.
24500         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24501         needed, plus a witness.
24502         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24503         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24504         * tests/test-fcntl.c: New file.
24505         * modules/fcntl-tests: Likewise.
24506
24507         binary-io: avoid potential compilation warning
24508         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24509         directives.
24510
24511         fflush: avoid compilation error on NetBSD
24512         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24513         between off_t and fpos_t, since the latter is sometimes a struct.
24514         * lib/fseeko.c (rpl_fseeko): Likewise.
24515         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24516
24517 2009-12-15  Eric Blake  <ebb9@byu.net>
24518
24519         fcntl-h, stdio, sys_ioctl: fix declarations
24520         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24521         function must not take arguments.
24522         * lib/sys_ioctl.in.h (ioctl): Likewise.
24523         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24524         (open): Add a link warning.
24525
24526 2009-12-15  Jim Meyering  <meyering@redhat.com>
24527
24528         areadlink, areadlink-with-size: relax license to LGPLv2+
24529         * modules/areadlink (License): Relax to LGPLv2+.
24530         * modules/areadlink-with-size (License): Likewise.
24531
24532 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24533             Bruno Haible  <bruno@clisp.org>
24534
24535         *printf: Fix memory leak.
24536         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24537         * lib/vfprintf.c (vfprintf): Likewise.
24538         * lib/dprintf.c (dprintf): Likewise.
24539         * lib/vdprintf.c (vdprintf): Likewise.
24540
24541 2009-12-14  Eric Blake  <ebb9@byu.net>
24542
24543         accept4: adjust module dependencies
24544         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24545
24546         utimens: one more try at avoiding compiler warning
24547         * lib/utimens.c (lutimens): Lower scope of result.
24548
24549 2009-12-13  Bruno Haible  <bruno@clisp.org>
24550
24551         Move the malloc checking from module 'list' to new module 'xlist'.
24552         * modules/xlist: New file.
24553         * lib/gl_xlist.h: New file.
24554         * lib/gl_xlist.c: New file.
24555         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24556         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24557         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24558         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24559         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24560         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24561         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24562         gl_sortedlist_nx_add): New declarations.
24563         (struct gl_list_implementation): Rename and change methods accordingly.
24564         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24565         (gl_list_nx_create): Renamed from gl_list_create.
24566         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24567         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24568         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24569         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24570         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24571         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24572         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24573         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24574         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24575         gl_list_create_empty.
24576         (gl_list_nx_create): Renamed from gl_list_create.
24577         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24578         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24579         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24580         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24581         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24582         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24583         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24584         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24585         * lib/gl_array_list.c: Don't include xalloc.h.
24586         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24587         NULL upon out-of-memory.
24588         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24589         out-of-memory.
24590         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24591         Change return type to 'int'.
24592         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24593         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24594         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24595         upon out-of-memory.
24596         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24597         upon out-of-memory.
24598         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24599         upon out-of-memory.
24600         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24601         upon out-of-memory.
24602         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24603         out-of-memory.
24604         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24605         Update.
24606         (gl_array_list_implementation): Update.
24607         * lib/gl_carray_list.c: Don't include xalloc.h.
24608         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24609         Return NULL upon out-of-memory.
24610         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24611         out-of-memory.
24612         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24613         Change return type to 'int'.
24614         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24615         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24616         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24617         upon out-of-memory.
24618         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24619         upon out-of-memory.
24620         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24621         out-of-memory.
24622         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24623         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24624         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24625         Update.
24626         (gl_carray_list_implementation): Update.
24627         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24628         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24629         gl_linked_create_empty. Return NULL upon out-of-memory.
24630         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24631         out-of-memory.
24632         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24633         Change return type to 'int'. Return -1 upon out-of-memory.
24634         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24635         out-of-memory.
24636         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24637         upon out-of-memory.
24638         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24639         upon out-of-memory.
24640         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24641         NULL upon out-of-memory.
24642         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24643         upon out-of-memory.
24644         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24645         out-of-memory.
24646         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24647         Update.
24648         * lib/gl_linked_list.c: Don't include xalloc.h.
24649         (gl_linked_list_implementation): Update.
24650         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24651         (add_to_bucket): Change return type to 'int'.
24652         (gl_linkedhash_list_implementation): Update.
24653         * lib/gl_anytree_list1.h (free_subtree): New function.
24654         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24655         gl_tree_create_empty. Return NULL upon out-of-memory.
24656         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24657         Change return type to 'int'. Return -1 upon out-of-memory.
24658         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24659         out-of-memory.
24660         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24661         (gl_tree_remove_node): New function, moved here from
24662         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24663         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24664         Update.
24665         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24666         malloc, not xmalloc. Return NULL upon out-of-memory.
24667         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24668         out-of-memory.
24669         (gl_tree_remove_node_from_tree): New function, extracted from
24670         gl_tree_remove_node.
24671         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24672         upon out-of-memory.
24673         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24674         out-of-memory.
24675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24676         upon out-of-memory.
24677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24678         upon out-of-memory.
24679         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24680         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24681         not xmalloc. Return NULL upon out-of-memory.
24682         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24683         out-of-memory.
24684         (gl_tree_remove_node_from_tree): New function, extracted from
24685         gl_tree_remove_node.
24686         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24687         upon out-of-memory.
24688         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24689         out-of-memory.
24690         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24691         upon out-of-memory.
24692         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24693         upon out-of-memory.
24694         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24695         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24696         gl_anytree_list1.h before gl_anyavltree_list2.h.
24697         (gl_avltree_list_implementation): Update.
24698         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24699         gl_anytree_list1.h before gl_anyavltree_list2.h.
24700         (gl_rbtree_list_implementation): Update.
24701         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24702         Change return type to 'int'. Return -1 upon out-of-memory. Use
24703         __builtin_expect.
24704         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24705         (gl_avltreehash_list_implementation): Update.
24706         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24707         (gl_rbtreehash_list_implementation): Update.
24708         * modules/array-list (Depends-on): Remove xalloc.
24709         * modules/carray-list (Depends-on): Likewise.
24710         * modules/linked-list (Depends-on): Likewise.
24711         * modules/linkedhash-list (Depends-on): Likewise.
24712         * modules/avltree-list (Depends-on): Likewise.
24713         * modules/rbtree-list (Depends-on): Likewise.
24714         * modules/avltreehash-list (Depends-on): Likewise.
24715         * modules/rbtreehash-list (Depends-on): Likewise.
24716
24717         * modules/xsublist: New file.
24718         * lib/gl_xsublist.h: New file.
24719         * lib/gl_xsublist.c: New file.
24720         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24721         (gl_sublist_nx_create): New declaration.
24722         * lib/gl_sublist.c: Don't include xalloc.h.
24723         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24724         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24725         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24726         Change return type to 'int'. Return -1 upon out-of-memory.
24727         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24728         upon out-of-memory.
24729         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24730         NULL upon out-of-memory.
24731         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24732         upon out-of-memory.
24733         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24734         NULL upon out-of-memory.
24735         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24736         NULL upon out-of-memory.
24737         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24738         upon out-of-memory.
24739         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24740         (gl_sublist_list_implementation): Update.
24741         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24742         upon out-of-memory.
24743         * modules/sublist (Depends-on): Remove xalloc.
24744
24745         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24746         * tests/test-carray_list.c: Likewise.
24747         * tests/test-linked_list.c: Likewise.
24748         * tests/test-linkedhash_list.c: Likewise.
24749         * tests/test-avltree_list.c: Likewise.
24750         * tests/test-rbtree_list.c: Likewise.
24751         * tests/test-avltreehash_list.c: Likewise.
24752         * tests/test-rbtreehash_list.c: Likewise.
24753         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24754         * modules/carray-list-tests (Makefile.am): Likewise.
24755         * modules/linked-list-tests (Makefile.am): Likewise.
24756         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24757         * modules/avltree-list-tests (Makefile.am): Likewise.
24758         * modules/rbtree-list-tests (Makefile.am): Likewise.
24759         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24760         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24761
24762         * NEWS: Mention the changes.
24763
24764         * lib/clean-temp.c: Include gl_xlist.h.
24765         * modules/clean-temp (Depends-on): Add xlist.
24766
24767         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24768         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24769
24770         * tests/test-array_oset.c: Include gl_xlist.h.
24771         * modules/array-oset-tests (Depends-on): Add xlist.
24772
24773         Reported by José E. Marchesi <jemarch@gnu.org>.
24774
24775 2009-12-13  Bruno Haible  <bruno@clisp.org>
24776
24777         Move the malloc checking from module 'oset' to new module 'xoset'.
24778         * modules/xoset: New file.
24779         * lib/gl_xoset.h: New file.
24780         * lib/gl_xoset.c: New file.
24781         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24782         declarations.
24783         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24784         (struct gl_oset_implementation): Rename and change methods accordingly.
24785         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24786         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24787         'int'. Mark as __warn_unused_result__.
24788         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24789         gl_oset_create_empty.
24790         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24791         'int'.
24792         * lib/gl_array_oset.c: Don't include xalloc.h.
24793         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24794         malloc, not xmalloc.
24795         (grow): Change return type to 'int'. Don't call xalloc_die.
24796         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24797         to 'int'.
24798         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24799         'int'.
24800         (gl_array_oset_implementation): Update.
24801         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24802         gl_tree_create_empty.
24803         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24804         'int'.
24805         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24806         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24807         xmalloc.
24808         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24809         not xmalloc.
24810         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24811         xmalloc.
24812         (gl_avltree_oset_implementation): Update.
24813         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24814         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24815         xmalloc.
24816         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24817         not xmalloc.
24818         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24819         xmalloc.
24820         (gl_rbtree_oset_implementation): Update.
24821         * modules/array-oset (Depends-on): Remove xalloc.
24822         * modules/avltree-oset (Depends-on): Likewise.
24823         * modules/rbtree-oset (Depends-on): Likewise.
24824         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24825         * tests/test-avltree_oset.c: Likewise.
24826         * tests/test-rbtree_oset.c: Likewise.
24827         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24828         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24829         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24830         * NEWS: Mention the change.
24831
24832 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24833
24834         maint.mk: allow a project to override release-prep commands
24835         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24836         commands into a new rule.
24837         (release-prep): New rule.
24838         (release-prep-hook): New overridable variable.
24839
24840 2009-12-13  Bruno Haible  <bruno@clisp.org>
24841
24842         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24843
24844 2009-12-13  Jim Meyering  <meyering@redhat.com>
24845
24846         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24847         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24848
24849 2009-12-12  Bruno Haible  <bruno@clisp.org>
24850
24851         duplocale: Tweak.
24852         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24853
24854 2009-12-12  Karl Berry  <karl@gnu.org>
24855
24856         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24857
24858 2009-12-12  Bruno Haible  <bruno@clisp.org>
24859
24860         * m4/po.m4: Undo incorrect untabification.
24861
24862 2009-12-12  Bruno Haible  <bruno@clisp.org>
24863
24864         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24865         * modules/c-strtod (Depends-on): Add locale.
24866         * modules/c-strtold (Depends-on): Likewise.
24867
24868 2009-12-12  Bruno Haible  <bruno@clisp.org>
24869
24870         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24871
24872 2009-12-11  Eric Blake  <ebb9@byu.net>
24873
24874         setenv: relax requirement in light of POSIX ruling
24875         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24876         not NULL.
24877         * tests/test-setenv.c (main): Relax test.
24878         * tests/test-unsetenv.c (main): Likewise.
24879         * doc/posix-functions/setenv.texi (setenv): Document this.
24880         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24881
24882 2009-12-11  Bruno Haible  <bruno@clisp.org>
24883
24884         New module 'fd-safer-flag'.
24885         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24886         * lib/dup-safer.c (dup_safer_flag): Remove function.
24887         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24888         * lib/fd-safer.c (fd_safer_flag): Remove function.
24889         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24890         * modules/cloexec (configure.ac): Drop indicator macro.
24891         * modules/fd-safer-flag: New file.
24892         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24893         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24894         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24895
24896 2009-12-11  Bruno Haible  <bruno@clisp.org>
24897
24898         Tests for module 'nl_langinfo'.
24899         * modules/nl_langinfo-tests: New file.
24900         * tests/test-nl_langinfo.sh: New file.
24901         * tests/test-nl_langinfo.c: New file.
24902
24903         New module 'nl_langinfo'.
24904         * lib/nl_langinfo.c: New file.
24905         * m4/nl_langinfo.m4: New file.
24906         * modules/nl_langinfo: New file.
24907         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24908
24909 2009-12-11  Bruno Haible  <bruno@clisp.org>
24910
24911         Tests for module 'langinfo'.
24912         * modules/langinfo-tests: New file.
24913         * tests/test-langinfo.c: New file.
24914
24915         New module 'langinfo'.
24916         * lib/langinfo.in.h: New file.
24917         * m4/langinfo_h.m4: New file.
24918         * modules/langinfo: New file.
24919         * doc/posix-headers/langinfo.texi: Mention the new module.
24920
24921 2009-12-11  Bruno Haible  <bruno@clisp.org>
24922
24923         * lib/config.charset: Untabify.
24924
24925 2009-12-11  Bruno Haible  <bruno@clisp.org>
24926
24927         * modules/unistd-safer (configure.ac): Drop indicator macro.
24928
24929 2009-12-11  Bruno Haible  <bruno@clisp.org>
24930
24931         Move pipe2-safer code to its own file.
24932         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24933         * lib/pipe-safer.c (pipe2_safer): Remove function.
24934         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24935         (Makefile.am): Add it to lib_SOURCES.
24936
24937 2009-12-10  Bruno Haible  <bruno@clisp.org>
24938
24939         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24940
24941 2009-12-10  Bruno Haible  <bruno@clisp.org>
24942
24943         Declare which arguments expect non-NULL values, for GCC and clang.
24944         * build-aux/arg-nonnull.h: New file.
24945         * modules/arg-nonnull: New file.
24946         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24947         (inet_ntop, inet_pton): Use it.
24948         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24949         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24950         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24951         (open, openat): Use it.
24952         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24953         (fnmatch): Use it.
24954         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24955         (getopt, getopt_long, getopt_long_only): Use it.
24956         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24957         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24958         Use it.
24959         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24960         (iconv_open): Use it.
24961         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24962         (strtoimax, strtoumax): Use it.
24963         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24964         (duplocale): Use it.
24965         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24966         (frexp, frexpl): Use it.
24967         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24968         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24969         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24970         (tsearch, tfind, tdelete, twalk): Use it.
24971         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24972         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24973         sigpending): Use it.
24974         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24975         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24976         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24977         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24978         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24979         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24980         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24981         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24982         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24983         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24984         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24985         Use it.
24986         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24987         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24988         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24989         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24990         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24991         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24992         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24993         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24994         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24995         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24996         strtoull, unsetenv): Use it.
24997         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24998         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24999         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25000         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25001         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25002         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25003         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25004         (strcasecmp, strncasecmp): Use it.
25005         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25006         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25007         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25008         rpl_setsockopt): Use it.
25009         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25010         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25011         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25012         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25013         (gettimeofday): Use it.
25014         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25015         (times): Use it.
25016         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25017         (uname): Use it.
25018         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25019         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25020         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25021         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25022         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25023         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25024         unlinkat, write): Use it.
25025         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25026         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25027         * lib/argv-iter.h: Include arg-nonnull.h.
25028         (_ATTRIBUTE_NONNULL_): Remove macro.
25029         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25030         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25031         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25032         optimization.
25033         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25034         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25035         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25036         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25037         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25038         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25039         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25040         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25041         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25042         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25043         * modules/dirent (Depends-on): Add arg-nonnull.
25044         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25045         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25046         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25047         * modules/fnmatch (Depends-on): Add arg-nonnull.
25048         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25049         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25050         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25051         * modules/glob (Depends-on): Add arg-nonnull.
25052         (Makefile.am): Insert arg-nonnull.h into glob.h.
25053         * modules/iconv_open (Depends-on): Add arg-nonnull.
25054         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25055         * modules/inttypes (Depends-on): Add arg-nonnull.
25056         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25057         * modules/locale (Depends-on): Add arg-nonnull.
25058         (Makefile.am): Insert arg-nonnull.h into locale.h.
25059         * modules/math (Depends-on): Add arg-nonnull.
25060         (Makefile.am): Insert arg-nonnull.h into math.h.
25061         * modules/netdb (Depends-on): Add arg-nonnull.
25062         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25063         * modules/search (Depends-on): Add arg-nonnull.
25064         (Makefile.am): Insert arg-nonnull.h into search.h.
25065         * modules/signal (Depends-on): Add arg-nonnull.
25066         (Makefile.am): Insert arg-nonnull.h into signal.h.
25067         * modules/spawn (Depends-on): Add arg-nonnull.
25068         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25069         * modules/stdio (Depends-on): Add arg-nonnull.
25070         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25071         * modules/stdlib (Depends-on): Add arg-nonnull.
25072         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25073         * modules/string (Depends-on): Add arg-nonnull.
25074         (Makefile.am): Insert arg-nonnull.h into string.h.
25075         * modules/strings (Depends-on): Add arg-nonnull.
25076         (Makefile.am): Insert arg-nonnull.h into strings.h.
25077         * modules/sys_socket (Depends-on): Add arg-nonnull.
25078         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25079         * modules/sys_stat (Depends-on): Add arg-nonnull.
25080         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25081         * modules/sys_time (Depends-on): Add arg-nonnull.
25082         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25083         * modules/sys_times (Depends-on): Add arg-nonnull.
25084         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25085         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25086         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25087         * modules/time (Depends-on): Add arg-nonnull.
25088         (Makefile.am): Insert arg-nonnull.h into time.h.
25089         * modules/unistd (Depends-on): Add arg-nonnull.
25090         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25091         * modules/wchar (Depends-on): Add arg-nonnull.
25092         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25093         * modules/argv-iter (Depends-on): Add arg-nonnull.
25094         * tests/test-canonicalize.c (null_ptr): New function.
25095         (main): Use it.
25096         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25097         (main): Use it.
25098         * tests/test-memmem.c (null_ptr): New function.
25099         (main): Use it.
25100         Reported by Jim Meyering.
25101
25102 2009-12-10  Bruno Haible  <bruno@clisp.org>
25103
25104         Use spaces for indentation, not tabs.
25105         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25106         * m4/*.m4: Untabify.
25107         * build-aux/*.h: Untabify.
25108         * tests/**/*.[hc]: Untabify.
25109         * README: New section "Indent with spaces, not TABs", based on
25110         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25111         * NEWS: Mention the change.
25112
25113 2009-12-10  Bruno Haible  <bruno@clisp.org>
25114
25115         pty test: Fix link error.
25116         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25117         test_pty_LDADD.
25118
25119 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25120
25121         * modules/pty: New file.
25122         * modules/pty-tests: New file.
25123         * m4/pty.m4: New file.
25124         * tests/test-pty.c: New file.
25125         * doc/glibc-headers/pty.texi: Modified.
25126         * doc/glibc-functions/forkpty.texi: Modified.
25127         * doc/glibc-functions/openpty.texi: Modified.
25128
25129 2009-12-10  Bruno Haible  <bruno@clisp.org>
25130
25131         Avoid syntax error in C++ mode.
25132         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25133
25134 2009-12-10  Bruno Haible  <bruno@clisp.org>
25135
25136         Use sed with option -e.
25137         * gnulib-tool (func_version, func_emit_copyright_notice,
25138         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25139         option -e to sed.
25140         * modules/link-warning (Makefile.am): Likewise.
25141
25142 2009-12-10  Jim Meyering  <meyering@redhat.com>
25143
25144         mgetgroups: do not write bytes beyond end of malloc'd buffer
25145         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25146         username, we call getgroups with a one-element-shorter buffer,
25147         but still told it the length was original, max_n_groups.
25148
25149 2009-12-09  Eric Blake  <ebb9@byu.net>
25150
25151         cloexec: relax license
25152         * modules/cloexec (Maintainer): Add myself.
25153         (License): Use LGPL, not GPL.
25154
25155         link-warning: optimize generation
25156         * modules/link-warning (Makefile.am): Reduce process usage.
25157
25158 2009-12-09  Bruno Haible  <bruno@clisp.org>
25159
25160         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25161         workaround was added on 2009-11-17.
25162
25163 2009-12-09  Jim Meyering  <meyering@redhat.com>
25164             Bruno Haible  <bruno@clisp.org>
25165
25166         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25167         * modules/link-warning (Makefile.am): Make the comment-removing sed
25168         command more robust in the face of bootstrap-prepended comment lines.
25169
25170 2009-12-09  Bruno Haible  <bruno@clisp.org>
25171
25172         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25173         most one group.
25174
25175 2009-12-09  Simon Josefsson <simon@josefsson.org>
25176             Bruno Haible  <bruno@clisp.org>
25177
25178         * build-aux/link-warning.h: Add copyright notice.
25179         * modules/link-warning (Makefile.am): Generate link-warning.h from
25180         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25181         * NEWS: Mention change in link-warning module.
25182         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25183         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25184         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25185         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25186         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25187         * modules/math (Makefile.am): Add dependency to math.h.
25188         * modules/search (Makefile.am): Add dependency to search.h.
25189         * modules/signal (Makefile.am): Add dependency to signal.h.
25190         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25191         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25192         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25193         * modules/string (Makefile.am): Add dependency to string.h.
25194         * modules/strings (Makefile.am): Add dependency to strings.h.
25195         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25196         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25197         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25198         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25199         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25200         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25201         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25202         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25203         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25204
25205 2009-12-09  Bruno Haible  <bruno@clisp.org>
25206
25207         fchdir: Optimize away rpl_fstat when possible.
25208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25209         REPLACE_OPEN_DIRECTORY.
25210         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25211
25212 2009-12-09  Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/fchdir.c: Update comment.
25215
25216 2009-12-09  Bruno Haible  <bruno@clisp.org>
25217
25218         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25219
25220 2009-12-08  Eric Blake  <ebb9@byu.net>
25221
25222         fchdir: avoid memory leak on re-registration.
25223         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25224
25225 2009-12-08  Jim Meyering  <meyering@redhat.com>
25226
25227         init.sh: avoid Solaris 10 /bin/sh portability problem
25228         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25229         sourced script:
25230           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25231           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25232           bar
25233         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25234         and two tests used that idiom.
25235         * tests/init.sh: Update suggested usage comments.
25236         (path_prepend_): New function, to be used in place
25237         of the --src-path=DIR option.
25238         (setup_): Move PATH-prepending code into path_prepend_.
25239         * tests/test-pread.sh: Adapt to new usage.
25240         * tests/test-xalloc-die.sh: Likewise.
25241
25242 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25243
25244         * doc/gnulib.texi (Glibc pty.h): Add.
25245         * doc/glibc-functions/forkpty.texi: Add.
25246         * doc/glibc-functions/openpty.texi: Add.
25247         Suggested by Bruno Haible.
25248
25249 2009-12-08  Eric Blake  <ebb9@byu.net>
25250
25251         fchdir: fix logic bugs
25252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25253         * tests/test-fchdir.c (main): Enhance test.
25254         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25255         is in use.
25256
25257         dup2: fix logic bugs
25258         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25259         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25260         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25261         exists.
25262         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25263
25264 2009-12-07  Eric Blake  <ebb9@byu.net>
25265
25266         unlink: fix m4 detection
25267         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25268
25269         unistd-safer: add unit test
25270         * modules/unistd-safer-tests: New file.
25271         * tests/test-dup-safer.c: Likewise.
25272         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25273         * tests/test-dup2.c (setmode): Likewise.
25274         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25275
25276         cloexec: preserve text vs. binary across dup_cloexec
25277         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25278         mode.
25279         * modules/dup2-tests (Depends-on): Add binary-io.
25280         * modules/cloexec-tests (Depends-on): Likewise.
25281         * tests/test-dup2.c (setmode, is_mode): New helpers.
25282         (main): Add tests that translation mode is preserved.
25283         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25284         Reported by Bruno Haible.
25285
25286         mgetgroups: reduce duplicate listings
25287         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25288         resulting array.
25289         * tests/test-chown.h (test_chown): Simplify client.
25290         * tests/test-lchown.h (test_lchown): Likewise.
25291
25292 2009-12-06  Bruno Haible  <bruno@clisp.org>
25293
25294         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25295         value.
25296
25297 2009-12-06  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/progname.c: Include stdio.h, stdlib.h.
25300         (set_program_name): Reject a NULL argument.
25301
25302 2009-12-05  Eric Blake  <ebb9@byu.net>
25303
25304         pipe2-safer: new module
25305         * modules/pipe2-safer: New file.
25306         * lib/unistd-safer.h (pipe2_safer): New prototype.
25307         * lib/unistd--.h (pipe2): New wrapper.
25308         * lib/pipe-safer.c (pipe2_safer): New function.
25309         * modules/pipe (Depends-on): Add pipe2-safer.
25310         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25311
25312         stdlib-safer: preserve cloexec flag for mkostemp[s]
25313         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25314         fd_safer_flag.
25315
25316         unistd-safer: allow preservation of cloexec status via flag
25317         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25318         prototypes.
25319         * lib/dup-safer.c (dup_safer_flag): New function.
25320         * lib/fd-safer.c (fd_safer_flag): Likewise.
25321         * modules/cloexec (configure.ac): Set witness.
25322
25323         test-dup2: enhance test
25324         * modules/dup2-tests (Depends-on): Add cloexec.
25325         * tests/test-dup2.c (main): Enhance test.
25326
25327         cloexec: add dup_cloexec
25328         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25329         header and comments.
25330         * lib/cloexec.c (set_cloexec_flag): Add comments.
25331         (dup_cloexec): New function, with mingw implementation borrowed
25332         from...
25333         * lib/w32spawn.h (dup_noinherit): ...here.
25334         * modules/execute (Depends-on): Add cloexec.
25335         * modules/pipe (Depends-on): Likewise.
25336         * modules/cloexec (Depends-on): Add dup2.
25337         * modules/cloexec-tests (Files): New file.
25338         * tests/test-cloexec.c: Likewise.
25339
25340         test-xalloc-die: fix test for mingw
25341         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25342         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25343         directory and .exe suffix off argv[0] output.
25344
25345         test-fseeko: fix test for mingw
25346         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25347         than undefining fseek, so test will pass on mingw.
25348
25349 2009-12-05  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/progname.h (set_program_name): Clarify specification.
25352         * lib/progname.c (set_program_name): Likewise.
25353         Reported by Jim Meyering.
25354
25355 2009-12-05  Jim Meyering  <meyering@redhat.com>
25356
25357         maint.mk: backslash-escape parens in default regexp
25358         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25359         backslash-escape the literal parentheses.
25360
25361         maint.mk: news-date-check: use grep -E
25362         * top/maint.mk (today): Define a Make variable, not a...
25363         (news-date-check): ...shell variable.
25364         (news-date-regexp): Use the Make variable.
25365         Use grep's -E option.  Change the failing diagnostic to mention
25366         the variable, $(news-date-regexp).
25367
25368 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25369
25370         maintainer-makefile: allow customization of NEWS entry format
25371         * top/maint.mk (news-date-regexp): New overridable variable.
25372         (news-date-check): Use it.
25373
25374 2009-12-04  Eric Blake  <ebb9@byu.net>
25375
25376         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25377         * lib/mgetgroups.h (xgetgroups): New prototype.
25378         * lib/mgetgroups.c (xgetgroups): New wrapper.
25379         (mgetgroups): Handle ENOSYS.
25380         * modules/mgetgroups (Depends-on): Add realloc.
25381         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25382
25383         mgetgroups: avoid argument promotion issues with -1
25384         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25385         for invalid gid_t.
25386         * tests/test-chown.h (getegid, test_chown): Likewise.
25387         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25388
25389 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25390
25391         exclude: Fix header file problems.
25392         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25393
25394 2009-12-01  Jim Meyering  <meyering@redhat.com>
25395
25396         fts: fts_open: do not let an empty string cause immediate failure
25397         This is required in support of GNU rm, for which the command
25398         "rm A '' B" must process and remove both A and B, in spite of
25399         the empty string argument.
25400         * lib/fts.c (fts_open): Do not let the presence of an empty string
25401         cause fts_open to fail immediately.  Most fts-using tools must be
25402         able to process all arguments, in order, and can be expected to
25403         diagnose such arguments themselves.
25404
25405 2009-11-30  Eric Blake  <ebb9@byu.net>
25406
25407         utimens: fix compilation error
25408         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25409         Declare variable at right scope.
25410
25411 2009-11-29  Jim Meyering  <meyering@redhat.com>
25412
25413         bootstrap: handle perl-5.11's changed --version output
25414         * build-aux/bootstrap (get_version): Handle perl separately,
25415         since perl-5.11's --version output is different.
25416
25417 2009-11-28  Jim Meyering  <meyering@redhat.com>
25418
25419         userspec: depend on the inttostr module, too
25420         * modules/userspec (Depends-on): Add inttostr.
25421
25422         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25423         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25424         number of MAXUID when it evaluates to (uid_t) -1.
25425         Likewise for group ID.  Reported by Matt McCutchen in
25426         <http://savannah.gnu.org/bugs/?28113>
25427
25428         userspec: reformat to use spaces, not TABs
25429         * lib/userspec.c: Expand TABs to spaces.
25430         Add Emacs' "indent-tabs-mode: nil" hint.
25431
25432 2009-11-27  Eric Blake  <ebb9@byu.net>
25433
25434         getopt-gnu: flush out another BSD bug
25435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25436         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25437         flush out BSD bug.
25438         * tests/test-getopt.h (test_getopt): End lists with NULL.
25439         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25440         (test_getopt_long_posix): Enhance test.
25441         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25442         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25443         getopt-gnu.
25444         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25445         Likewise.
25446
25447 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25448
25449         * modules/idpriv-droptemp-tests (Notice): Fix text.
25450
25451 2009-11-27  Jim Meyering  <meyering@redhat.com>
25452
25453         test-xalloc-die: avoid spurious failure due to libtool argv difference
25454         In a libtool-enabled project, this test would fail due to a difference
25455         in the emitted program name, e.g.,
25456         -test-xalloc-die: memory exhausted
25457         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25458         Use program to avoid that.
25459         * modules/xalloc-die-tests (Depends-on): Add progname.
25460         * tests/test-xalloc-die.c: Include progname.h".
25461         (program_name): Remove decl.
25462         (main): Call set_program_name.
25463         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25464
25465 2009-11-26  Richard Jones  <rjones@redhat.com>
25466
25467         w32sock: leave win32 error in place.
25468         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25469
25470 2009-11-26  Eric Blake  <ebb9@byu.net>
25471
25472         init.sh: suggest to use skip_ and fail_ functions in comments
25473         * tests/init.sh: Add a sentence.
25474
25475 2009-11-25  Bruno Haible  <bruno@clisp.org>
25476
25477         init.sh: add documentation in comments
25478         * tests/init.sh: Add some developer and user documentation.
25479
25480 2009-11-26  Jim Meyering  <meyering@redhat.com>
25481
25482         init.sh: accommodate even those who specify bogus srcdir manually
25483         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25484         configure-time tests to be sanitized, so that there is no need to
25485         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25486         (with no double quotes) suffices.  However, since tests may be
25487         invoked manually, and since you may explicitly set srcdir to the
25488         name of a directory containing spaces, do quote its uses here.
25489         * tests/test-pread.sh: Likewise.
25490         Suggested by Bruno Haible.
25491
25492         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25493         * tests/test-pread.sh: Write no data into the pipe, because
25494         test-pread actually reads none.  This avoids a diagnostic,
25495         "bash: echo: write error: Broken pipe", that arises in the unusual
25496         event something is ignoring SIGPIPE, and might be interpreted
25497         as some sort of failure.  Reported by Bruno Haible.
25498
25499 2009-11-25  Jim Meyering  <meyering@redhat.com>
25500
25501         test-pread: cover failure with ESPIPE and EINVAL
25502         * tests/test-pread.c (main): Test for failure, too.
25503         * tests/test-pread.sh: Invoke with stdin on a pipe.
25504         Suggested by Eric Blake.
25505
25506         pread: improvement and fix
25507         * modules/pread (Depends-on): Depend on lseek, for portability to
25508         e.g., mingw.  Suggested by Eric Blake.
25509         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25510
25511         unistd.in.h: correct declaration of pread
25512         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25513         Reported by Richard W.M. Jones.
25514
25515         test-pread.sh: distribute the test script
25516         * modules/pread-tests (Files): Include test-pread.sh.
25517
25518         test-pread.sh: clean up
25519         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25520         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25521         That is unnecessary, since it's always ".".
25522         Suggestion from Eric Blake.
25523
25524         test-pread.sh: make executable
25525         * tests/test-pread.sh: Set executable bit.
25526         Reported by Eric Blake.
25527
25528         correct typo in test-pread.sh
25529         * tests/test-pread.sh: Add #! line.
25530
25531         test pread
25532         * tests/test-pread.c: New file.
25533         * tests/test-pread.sh: Likewise.
25534         * modules/pread-tests: Likewise.
25535
25536         pread: new module
25537         * modules/pread: New file.
25538         * lib/unistd.in.h (pread): Define/declare.
25539         * lib/pread.c (pread): New file.
25540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25541         * modules/unistd (Makefile.am): Substitute witnesses.
25542         * doc/posix-functions/pread.texi (pread): Update.
25543         * MODULES.html.sh: Add pread.
25544
25545 2009-11-25  Jim Meyering  <meyering@redhat.com>
25546
25547         tests/init.sh: new file to be used via most *.sh tests
25548         * tests/init.sh: New file.
25549
25550 2009-11-25  Eric Blake  <ebb9@byu.net>
25551
25552         utimens: work around older Linux failure with symlinks
25553         * lib/utimens.c (lutimensat_works_really): New variable.
25554         (fdutimens, lutimens): Use it to manage kernels that support
25555         nanosecond times on files, but not on symlinks.
25556         Reported by OndÅ™ej Vašík.
25557
25558         utimes: fix configure grammar
25559         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25560
25561 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25562
25563         regex: Fix fastmap for multibyte character ranges.
25564         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25565         characters when a multibyte character range is included.
25566
25567 2009-11-22  Andy Wingo  <wingo@pobox.com>
25568
25569         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25570         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25571
25572 2009-11-24  Bruno Haible  <bruno@clisp.org>
25573
25574         doc: Most *_l functions exist in MacOS X 10.5.
25575         * doc/posix-functions/duplocale.texi: Update platforms list.
25576         * doc/posix-functions/freelocale.texi: Likewise.
25577         * doc/posix-functions/newlocale.texi: Likewise.
25578         * doc/posix-functions/uselocale.texi: Likewise.
25579         * doc/posix-functions/isalnum_l.texi: Likewise.
25580         * doc/posix-functions/isalpha_l.texi: Likewise.
25581         * doc/posix-functions/isblank_l.texi: Likewise.
25582         * doc/posix-functions/iscntrl_l.texi: Likewise.
25583         * doc/posix-functions/isdigit_l.texi: Likewise.
25584         * doc/posix-functions/isgraph_l.texi: Likewise.
25585         * doc/posix-functions/islower_l.texi: Likewise.
25586         * doc/posix-functions/isprint_l.texi: Likewise.
25587         * doc/posix-functions/ispunct_l.texi: Likewise.
25588         * doc/posix-functions/isspace_l.texi: Likewise.
25589         * doc/posix-functions/isupper_l.texi: Likewise.
25590         * doc/posix-functions/iswalnum_l.texi: Likewise.
25591         * doc/posix-functions/iswalpha_l.texi: Likewise.
25592         * doc/posix-functions/iswblank_l.texi: Likewise.
25593         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25594         * doc/posix-functions/iswctype_l.texi: Likewise.
25595         * doc/posix-functions/iswdigit_l.texi: Likewise.
25596         * doc/posix-functions/iswgraph_l.texi: Likewise.
25597         * doc/posix-functions/iswlower_l.texi: Likewise.
25598         * doc/posix-functions/iswprint_l.texi: Likewise.
25599         * doc/posix-functions/iswpunct_l.texi: Likewise.
25600         * doc/posix-functions/iswspace_l.texi: Likewise.
25601         * doc/posix-functions/iswupper_l.texi: Likewise.
25602         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25603         * doc/posix-functions/isxdigit_l.texi: Likewise.
25604         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25605         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25606         * doc/posix-functions/strcoll_l.texi: Likewise.
25607         * doc/posix-functions/strfmon_l.texi: Likewise.
25608         * doc/posix-functions/strftime_l.texi: Likewise.
25609         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25610         * doc/posix-functions/strxfrm_l.texi: Likewise.
25611         * doc/posix-functions/tolower_l.texi: Likewise.
25612         * doc/posix-functions/toupper_l.texi: Likewise.
25613         * doc/posix-functions/towctrans_l.texi: Likewise.
25614         * doc/posix-functions/towlower_l.texi: Likewise.
25615         * doc/posix-functions/towupper_l.texi: Likewise.
25616         * doc/posix-functions/wcscoll_l.texi: Likewise.
25617         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25618         * doc/posix-functions/wctrans_l.texi: Likewise.
25619         * doc/posix-functions/wctype_l.texi: Likewise.
25620         * doc/glibc-functions/strptime_l.texi: Likewise.
25621         * doc/glibc-functions/strtod_l.texi: Likewise.
25622         * doc/glibc-functions/strtof_l.texi: Likewise.
25623         * doc/glibc-functions/strtol_l.texi: Likewise.
25624         * doc/glibc-functions/strtold_l.texi: Likewise.
25625         * doc/glibc-functions/strtoll_l.texi: Likewise.
25626         * doc/glibc-functions/strtoul_l.texi: Likewise.
25627         * doc/glibc-functions/strtoull_l.texi: Likewise.
25628         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25629         * doc/glibc-functions/wcstod_l.texi: Likewise.
25630         * doc/glibc-functions/wcstof_l.texi: Likewise.
25631         * doc/glibc-functions/wcstol_l.texi: Likewise.
25632         * doc/glibc-functions/wcstold_l.texi: Likewise.
25633         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25634         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25635         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25636
25637 2009-11-24  Bruno Haible  <bruno@clisp.org>
25638
25639         duplocale: Fix logic bug.
25640         * lib/duplocale.c: Don't include <langinfo.h>.
25641         (_NL_LOCALE_NAME): Remove macro.
25642         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25643         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25644
25645 2009-11-23  Jim Meyering  <meyering@redhat.com>
25646
25647         test-update-copyright: don't hard-code /usr/bin/perl
25648         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25649         perl to print the current year.  Gilles Espinasse reported that
25650         the replaced use of perl was hard-coded as /usr/bin/perl.
25651
25652 2009-11-23  Bruno Haible  <bruno@clisp.org>
25653
25654         duplocale: Add support for glibc 2.3.x.
25655         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25656
25657 2009-11-22  Bruno Haible  <bruno@clisp.org>
25658
25659         vasnprintf: Tiny optimization.
25660         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25661         MacOS X.
25662
25663 2009-11-22  Bruno Haible  <bruno@clisp.org>
25664
25665         Tests for module 'duplocale'.
25666         * modules/duplocale-tests: New file.
25667         * tests/test-duplocale.c: New file.
25668
25669         New module 'duplocale'.
25670         * m4/duplocale.m4: New file.
25671         * lib/locale.in.h (duplocale): New declaration.
25672         * lib/duplocale.c: New file.
25673         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25674         gl_LOCALE_H_DEFAULTS): New macros.
25675         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25676         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25677         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25678         REPLACE_DUPLOCALE.
25679         * modules/duplocale: New file.
25680         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25681
25682 2009-11-22  Bruno Haible  <bruno@clisp.org>
25683
25684         * modules/locale-tests (configure.ac): Test for newlocale function.
25685         * tests/test-locale.c: When the system has extended locale functions,
25686         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25687
25688         locale: Make locale_t available when possible.
25689         * lib/locale.in.h: Include <xlocale.h> when it exists.
25690         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25691         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25692         * modules/locale (Depends-on): Add extensions.
25693         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25694         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25695
25696 2009-11-22  Bruno Haible  <bruno@clisp.org>
25697
25698         Add comments.
25699         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25700         invocation.
25701         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25702         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25703         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25704
25705 2009-11-22  Bruno Haible  <bruno@clisp.org>
25706
25707         error: account for the possibility of freopen (stdout).
25708         * lib/error.c: Include <unistd.h>.
25709         (flush_stdout): New function, extracted from error and error_at_line.
25710         Determine stdout's fd dynamically.
25711         (error, error_at_line): Invoke flush_stdout.
25712         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25713         * modules/error (Depends-on): Add unistd.
25714
25715 2009-11-22  Bruno Haible  <bruno@clisp.org>
25716
25717         diffseq: Add comment.
25718         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25719
25720 2009-11-22  Jim Meyering  <meyering@redhat.com>
25721
25722         c-stack: avoid defining an unused static function
25723         * lib/c-stack.c (find_stack_direction): Do not define this function
25724         when it will not be used.
25725
25726         diffseq: avoid spurious gcc warnings
25727         * lib/diffseq.h (IF_LINT2): Define.
25728         (compareseq): Use it to initialize two members of "part".
25729         This avoids two used-uninitialized warnings.
25730
25731 2009-11-21  Jim Meyering  <meyering@redhat.com>
25732
25733         c-stack: avoid "ignoring return value of `write'" warning
25734         * lib/c-stack.c: Include "ignore-value.h".
25735         (die): Explicitly ignore each write return value.
25736         * modules/c-stack (Depends-on): Add ignore-value.
25737
25738 2009-11-21  Bruno Haible  <bruno@clisp.org>
25739
25740         diffseq: reduce scope of variable 'best'.
25741         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25742         variable, earlier used for two different purposes.
25743
25744 2009-11-21  Jim Meyering  <meyering@redhat.com>
25745
25746         diffseq: remove useless assignment to "best"
25747         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25748         assignment.  At that point "best" is already guaranteed to be zero.
25749
25750 2009-11-20  Eric Blake  <ebb9@byu.net>
25751
25752         build: mention ftp redirector in release announcements
25753         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25754         values that used to come from cfg.mk; mention FTP redirect URL.
25755         * build-aux/announce-gen: Mention the mirror list.
25756         Suggested by Karl Berry.
25757
25758         nanosleep: improve port to mingw
25759         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25761         LIB_NANOSLEEP, but only when needed.
25762         * modules/select (Link): Document LIBSOCKET.
25763         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25764         enough.
25765
25766         nanosleep: work around cygwin bug
25767         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25768         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25769         bug.
25770         (getnow): Delete, not needed.
25771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25772         LIB_CLOCK_GETTIME.
25773         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25774         clock-time, gettime.
25775         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25776         bug.
25777         * modules/nanosleep-tests: New test.
25778         * tests/test-nanosleep.c: New file.
25779
25780         sleep: work around cygwin bug
25781         * lib/sleep.c (rpl_sleep): Work around the bug.
25782         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25783         (gl_PREREQ_SLEEP): Delete unused macro.
25784         * modules/sleep (Depends-on): Add verify.
25785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25786         * modules/unistd (Makefile.am): Substitute witness.
25787         * lib/unistd.in.h (sleep): Update prototype.
25788         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25789         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25790         * modules/sleep-tests (Depends-on): Check for alarm.
25791
25792 2009-11-20  Jim Meyering  <meyering@redhat.com>
25793
25794         maint.mk: improve sc_prohibit_magic_number_exit
25795         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25796         so it does not match uses like System.exit(1).
25797         Add comments showing how to correct all offenders.
25798
25799 2009-11-19  Eric Blake  <ebb9@byu.net>
25800
25801         xalloc-die-tests: add missing library
25802         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25803
25804         test-xvasprintf: silence compiler warnings
25805         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25806         empty string from gcc.
25807
25808 2009-11-19  Jim Meyering  <meyering@redhat.com>
25809
25810         xfreopen: new module, from coreutils
25811         * modules/xfreopen: New module.
25812         * lib/xfreopen.c: New file.
25813         * lib/xfreopen.h: New file.
25814         * MODULES.html.sh (File stream based Input/Output"): Add it.
25815
25816 2009-11-19  Eric Blake  <ebb9@byu.net>
25817
25818         manywarnings: depend on warnings
25819         * modules/manywarnings (Depends-on): Add warnings.
25820
25821         build: avoid compiler warnings
25822         * lib/select.c (rpl_select): Delete unused variable.
25823         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25824
25825 2009-11-18  Eric Blake  <ebb9@byu.net>
25826
25827         tests: avoid false negative with --with-packager
25828         * tests/test-version-etc.sh: Discard packager information.
25829         * tests/test-argp-version-etc-1.sh: Likewise.
25830         Reported by Mike Frysinger.
25831
25832         utimens: fix regression on Solaris
25833         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25834         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25835         can only change fd timestamps via futimesat.  Instead, use an
25836         additional witness macro to avoid BSD bug.
25837         Reported by Jim Meyering.
25838
25839 2009-11-17  Eric Blake  <ebb9@byu.net>
25840
25841         usleep: use it to simplify tests
25842         * modules/stat-time-tests (Depends-on): Add usleep.
25843         (configure.ac): Drop usleep check.
25844         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25845         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25846         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25847         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25848         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25849         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25850         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25851         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25852         Likewise.
25853         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25854         * tests/test-lchown.h (nap): Likewise.
25855         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25856         * tests/test-stat-time.c (nap): Likewise.
25857         * tests/test-utimens-common.h (nap): Update comments.
25858
25859         usleep: new module
25860         * modules/usleep: New file.
25861         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25862         * lib/usleep.c (usleep): Likewise.
25863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25864         * modules/unistd (Makefile.am): Substitute witnesses.
25865         * lib/unistd.in.h (usleep): Add declaration.
25866         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25867         * MODULES.html.sh (Date and time): Likewise.
25868         * modules/usleep-tests (Depends-on): New test.
25869         * tests/test-usleep.c: New file.
25870
25871         chown: work around OpenBSD bug
25872         * lib/chown.c (rpl_chown): Work around the bug.
25873         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25874         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25875         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25876         * modules/chown (Depends-on): Add stdbool.
25877         * modules/lchown (Depends-on): Likewise.
25878         * doc/posix-functions/chown.texi (chown): Document the bug.
25879         * doc/posix-functions/lchown.texi (lchown): Likewise.
25880         * tests/test-lchown.h (test_chown): Relax test.
25881
25882         mkstemp: avoid conflict with C++ keyword template
25883         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25884         * lib/mkostemp.c (mkostemp): Likewise.
25885         * lib/mkostemps.c (mkostemps): Likewise.
25886         * lib/mkstemp.c (mkstemp): Likewise.
25887         * lib/mkstemps.c (mkstemps): Likewise.
25888
25889         xalloc-die-tests: optimize
25890         * tests/test-xalloc-die.sh: Reduce number of processes.
25891
25892 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25893
25894         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25895         patch from ludo@gnu.org (Ludovic Courtès).
25896
25897 2009-11-17  Jim Meyering  <meyering@redhat.com>
25898
25899         version-etc: use proper license string
25900         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25901         * modules/version-etc-fsf: Likewise.
25902
25903 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25904
25905         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25906         printed to stdout.  Deal with EOL differences.
25907
25908 2009-11-17  Eric Blake  <ebb9@byu.net>
25909
25910         unsetenv: work around Solaris bug
25911         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25912         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25913         Reported by Jim Meyering.
25914
25915         vasnprintf: avoid compiler warnings
25916         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25917         variables.
25918         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25919
25920 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25921
25922         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25923         settings since xalloc-die is no longer the self test,
25924         xalloc-die.sh is.
25925
25926 2009-11-17  Jim Meyering  <meyering@redhat.com>
25927
25928         test-xalloc-die.sh: make the code agree with the commit log
25929         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25930         at the end, just in case you happen to have a test-xalloc-die
25931         program in some other PATH directory.
25932
25933         test-xalloc-die.sh: fix a portability bug
25934         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25935         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25936         Otherwise, argv[0] (as often seen in diagnostics) would be too
25937         system-dependent, sometimes with, and sometimes without the leading "./".
25938
25939         version-etc-fsf: relax license to LGPLv3+
25940         * modules/version-etc-fsf (License): Relax license.
25941
25942 2009-11-16  Eric Blake  <ebb9@byu.net>
25943
25944         xalloc-die-tests: avoid printing null pointer
25945         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25946         shell script.
25947         * tests/test-xalloc-die.c (program_name): Declare.
25948         * tests/test-xalloc-die.sh (tmpfiles): New file.
25949
25950         setenv, unsetenv: work around various bugs
25951         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25952         (setenv) [HAVE_SETENV]: Work around bugs.
25953         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25955         for bugs.
25956         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25957         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25959         * modules/stdlib (Makefile.am): Update substitutions.
25960         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25961         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25962         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25963         * modules/setenv-tests: New test.
25964         * modules/unsetenv-tests: Likewise.
25965         * tests/test-setenv.c: New file.
25966         * tests/test-unsetenv.c: Likewise.
25967
25968 2009-11-16  Jim Meyering  <meyering@redhat.com>
25969
25970         version-etc: relax license to LGPLv3+
25971         * modules/version-etc (License): Relax license.
25972
25973         better AC_REQUIRE expanded-before-required-warning avoidance
25974         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25975         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25976         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25977         which is no longer needed.
25978
25979 2009-11-16  Eric Blake  <ebb9@byu.net>
25980
25981         test-freading: clean up temporary file
25982         * tests/test-freading.c (main): Remove file on success, and use
25983         ASSERT more liberally.
25984         Reported by Jim Meyering.
25985
25986 2009-11-16  Jim Meyering  <meyering@redhat.com>
25987
25988         avoid new AC_REQUIRE expanded-before-required warnings
25989         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25990         merely using it.
25991         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25992         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25993
25994 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25995
25996         * tests/test-xalloc-die.c: New file.
25997         * modules/xalloc-die-tests: New file.
25998         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25999         XFAIL_TESTS so it can be appended by modules.
26000
26001 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26002
26003         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26004         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26005
26006 2009-11-14  Eric Blake  <ebb9@byu.net>
26007
26008         fnmatch: avoid compiler warning
26009         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26010         to silence compiler warning about mismatch signedness in ?:.
26011         Reported by Robert Millan.
26012
26013         intprops: add double-inclusion guard
26014         * lib/intprops.h: Allow idempotent includes.
26015         Suggested by Bruce Korb.
26016
26017         openat: detect Solaris fchownat bug
26018         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26019         penalizing glibc chownat when only lchownat is broken.
26020         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26021         trailing slash bugs.
26022         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26023         * modules/openat-tests (Files): Include more files.
26024         (Depends-on): Add mgetgroups, sleep, stat-time.
26025         (configure.ac): Add additional checks.
26026         (Makefile.am): Build new test.
26027         * tests/test-fchownat.c: New file.
26028
26029         lchown: detect Solaris and FreeBSD bug
26030         * lib/lchown.c (rpl_lchown): Work around bug.
26031         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26033         * modules/unistd (Makefile.am): Populate it.
26034         * lib/unistd.in.h (lchown): Update declaration.
26035         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26036         * modules/lchown-tests: New file.
26037         * tests/test-lchown.h (test_lchown): Likewise.
26038         * tests/test-lchown.c (main): Likewise.
26039
26040         chown: detect Solaris and FreeBSD bug
26041         * lib/chown.c (rpl_chown): Work around bug.
26042         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26043         (gl_PREREQ_CHOWN): Delete.
26044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26045         * modules/unistd (Makefile.am): Populate it.
26046         * lib/unistd.in.h (chown): Update declaration.
26047         * lib/lchown.c (chown): Update client.
26048         * modules/lchown (Depends-on): Add lstat.
26049         * doc/posix-functions/chown.texi (chown): Document the bug.
26050         * doc/posix-functions/getgroups.texi (getgroups): Document
26051         getgroups pitfall.
26052         * modules/chown-tests: New file.
26053         * tests/test-chown.h (test_chown): Likewise.
26054         * tests/test-chown.c (main): Likewise.
26055
26056 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26057
26058         gnulib-tool: correctly detect absence of m4 directories
26059         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26060
26061 2009-11-14  Jim Meyering  <meyering@redhat.com>
26062
26063         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26064         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26065
26066 2009-11-14  John W. Eaton  <jwe@gnu.org>
26067
26068         strftime.h: wrap funtion declaration in extern "C" block
26069         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26070
26071 2009-11-13  Eric Blake  <ebb9@byu.net>
26072
26073         getgroups: avoid compiler warning
26074         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26075
26076         getgroups: work around FreeBSD bug
26077         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26078         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26079         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26080         * tests/test-getgroups.c (main): Fix buffer overrun.
26081
26082         getgroups: avoid compilation failure
26083         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26084         * modules/getgroups (Depends-on): Add stdint.
26085
26086 2009-11-13  Jim Meyering  <meyering@redhat.com>
26087
26088         test-getgroups: avoid compilation failure
26089         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26090
26091 2009-11-13  Eric Blake  <ebb9@byu.net>
26092
26093         mgetgroups: new module, taken from coreutils
26094         * modules/mgetgroups: New file.
26095         * lib/mgetgroups.h: Likewise.
26096         * lib/mgetgroups.c (mgetgroups): Likewise.
26097         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26098         * MODULES.html.sh (Users and groups): Mention it.
26099
26100         getgroups: don't expose GETGROUPS_T to user
26101         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26102         an element at a time if GETGROUPS_T is wrong size.
26103         * lib/getugroups.h (getugroups): Change signature.
26104         * lib/unistd.in.h (getgroups): Likewise.
26105         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26106         signature needs fixing.
26107         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26108         AC_TYPE_GETGROUPS.
26109         * modules/group-member (Depends-on): Add getgroups.
26110         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26111         (group_member): Rely on getgroups replacement.
26112         * lib/getugroups.c (getugroups): Use gid_t.
26113         * tests/test-getgroups.c (main): Likewise.
26114         * NEWS: Mention the signature change.
26115         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26116         problem with signature.
26117         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26118         GETGROUPS_T is still useful for setgroups.
26119
26120         getgroups, getugroups: provide stubs for mingw
26121         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26122         * lib/getugroups.c (getugroups): Likewise.
26123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26124         function.  Modernize replacement scheme.
26125         (gl_PREREQ_GETGROUPS): Delete.
26126         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26127         * modules/getgroups (configure.ac): Declare witness.
26128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26129         * modules/unistd (Depends-on): Substitute witness.
26130         * lib/unistd.in.h (getgroups): Declare replacement.
26131
26132         getgroups: avoid calling exit
26133         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26134         drop xalloc.
26135         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26136         dependencies.
26137         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26138         exiting, in the rare case of malloc failure.
26139
26140         getgroups: fix logic error
26141         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26142         has more than 20 groups.
26143         * modules/getgroups-tests: New test.
26144         * tests/test-getgroups.c: New file.
26145
26146 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26147
26148         * tests/test-base64.c: Improve.
26149
26150 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26151
26152         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26153         Blake <ebb9@byu.net>.
26154
26155 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26156
26157         * tests/test-xvasprintf.c: Add %s%s related checks.
26158
26159 2009-11-12  Eric Blake  <ebb9@byu.net>
26160
26161         version-etc: match standards.texi style
26162         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26163         and use <> only for URLs.
26164
26165 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26166
26167         fts: do not fail on a submount during traversal
26168         * lib/fts.c (fts_build): Read the stat info again after opening
26169         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26170         Original report at http://bugzilla.redhat.com/501848.
26171
26172 2009-11-12  Jim Meyering  <meyering@redhat.com>
26173
26174         bootstrap: sync from coreutils
26175         * build-aux/bootstrap (bootstrap_epilogue): New function.
26176         Use git_modules_config in one more place.  This make bootstrap's
26177         --gnulib-srcdir option more useful for testing.
26178
26179         bootstrap: generalize autoheader check
26180         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26181         AC_CONFIG_HEADERS.
26182
26183 2009-11-11  Eric Blake  <ebb9@byu.net>
26184
26185         mkfifoat: use new modules for Solaris and BSD bugs
26186         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26187         * lib/mkfifoat.c (mknodat): Split...
26188         * lib/mknodat.c (mknodat): ...into new file.
26189         * modules/mkfifoat (Files): Ship new file.
26190         (Depends-on): Add mkfifo, mknod.
26191         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26192         (Depends-on): Add symlink.
26193         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26194         redundant with test_mkfifo.h.
26195         (do_mkfifoat, do_mknodat): New helpers.
26196
26197         mknod: new module
26198         * modules/mknod: New file.
26199         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26200         * lib/mknod.c (mknod): Likewise.
26201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26202         defaults.
26203         * modules/sys_stat (Makefile.am): Substitute them.
26204         * lib/sys_stat.in.h (mknod): Declare replacement.
26205         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26206         Document it.
26207         * doc/posix-functions/mknod.texi (mknod): Likewise.
26208         * modules/mknod-tests: New test.
26209         * tests/test-mknod.c: Likewise.
26210
26211         mkfifo: new module
26212         * modules/mkfifo: New file.
26213         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26214         * lib/mkfifo.c (mkfifo): Likewise.
26215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26216         defaults.
26217         * modules/sys_stat (Makefile.am): Substitute them.
26218         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26219         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26220         Document it.
26221         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26222         * modules/mkfifo-tests: New test.
26223         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26224         from test-mkfifoat.c.
26225         * tests/test-mkfifo.c: New file.
26226
26227         readlink: detect FreeBSD bug
26228         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26229         slash on symlink.
26230         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26231         * tests/test-readlink.h (test_readlink): Enhance test.
26232
26233         symlink: detect FreeBSD bug
26234         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26235         slash on symlink.
26236         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26237         * tests/test-symlink.h (test_symlink): Enhance test.
26238
26239 2009-11-10  Eric Blake  <ebb9@byu.net>
26240
26241         link: detect FreeBSD bug
26242         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26243         symlink.
26244         * doc/posix-functions/link.texi (link): Document the bug.
26245         * tests/test-link.h (test_link): Enhance test.
26246         * tests/test-linkat.c (main): Update caller.
26247
26248         unlink, remove: detect FreeBSD bug
26249         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26250         slash on symlink.
26251         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26252         * doc/posix-functions/remove.texi (remove): Likewise.
26253         * tests/test-unlink.h (test_unlink): Enhance test.
26254         * tests/test-remove.c (main): Likewise.
26255
26256 2009-11-09  Eric Blake  <ebb9@byu.net>
26257
26258         rename: detect FreeBSD bug
26259         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26260         slash on symlink.
26261         * modules/renameat-tests (Depends-on): Add filenamecat.
26262         * tests/test-rename.h (test_rename): Allow one more errno.
26263         * tests/test-renameat.c (main): Likewise.
26264         * doc/posix-functions/rename.texi (rename): Document the bug.
26265
26266         open: detect FreeBSD bug
26267         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26268         symlink.
26269         * doc/posix-functions/open.texi (open): Document the bug.
26270         * doc/posix-functions/utimes.texi (utimes): Likewise.
26271         * tests/test-open.h (test_open): Add parameters, and test symlink
26272         handling.
26273         * tests/test-open.c (main): Adjust caller.
26274         * tests/test-fcntl-safer.c (main): Likewise.
26275         * modules/open-tests (Depends-on): Add stdbool, symlink.
26276         * modules/fcntl-safer-tests (Depends-on): Likewise.
26277         * tests/test-openat.c (main): Add test-open tests.
26278
26279         stat: detect FreeBSD bug
26280         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26281         symlink.
26282         * doc/posix-functions/stat.texi (stat): Document the bug.
26283         * tests/test-stat.h (test_stat_func): Add argument.
26284         * tests/test-stat.c (main): Adjust caller.
26285         * tests/test-fstatat.c (main): Likewise.
26286         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26287         Reported by Jim Meyering.
26288
26289 2009-11-09  James Youngman  <jay@gnu.org>
26290
26291         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26292         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26293
26294 2009-11-08  Jim Meyering  <meyering@redhat.com>
26295
26296         utimens: remove invalid futimesat call
26297         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26298         It used the file descriptor of the target file as the DIR_FD
26299         parameter and NULL as the file name.  That caused failure with
26300         errno == EFAULT on FreeBSD-8.0-rc2
26301
26302 2009-11-07  Eric Blake  <ebb9@byu.net>
26303
26304         fflush, freadseek: use fseeko, not fseek
26305         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26306         (clear_ungetc_buffer): Avoid potential problems on large files.
26307         * lib/freadseek.c (freadseek): Likewise.
26308         * modules/freadseek (Depends-on): Add fseeko.
26309         * modules/fseek (configure.ac): Set a witness.
26310         * tests/test-fflush.c (main): Use fseeko.
26311         * tests/test-fpurge.c (fseek): Disable link warning.
26312         * tests/test-freadable.c (fseek): Likewise.
26313         * tests/test-freading.c (fseek): Likewise.
26314         * tests/test-fseeko.c (fseek): Likewise.
26315         * tests/test-ftell.c (fseek): Likewise.
26316         * tests/test-ftello.c (fseek): Likewise.
26317         * tests/test-fwritable.c (fseek): Likewise.
26318         * tests/test-fwriting.c (fseek): Likewise.
26319
26320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26321
26322         * modules/memchr (Depends-on): Drop getpagesize dependency.
26323
26324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26325
26326         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26327         Reported by Ludovic Courtès.
26328         * build-aux/pmccabe2html: Improve example usage.
26329         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26330
26331 2009-11-06  Jim Meyering  <meyering@redhat.com>
26332
26333         do-release-commit-and-tag: New module.
26334         Automate the release-commit and tag process.
26335         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26336         * modules/do-release-commit-and-tag: New file.
26337         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26338
26339 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26340
26341         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26342         because test-select.c uses inet_pton.
26343
26344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26345
26346         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26347         GETADDRINFO_LIB.  Bump serial number.
26348         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26349         Suggested by Eric Blake <ebb9@byu.net>.
26350
26351 2009-11-05  Eric Blake  <ebb9@byu.net>
26352
26353         strtod: detect darwin bug
26354         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26355         Reported by Leo Davis.
26356
26357         freopen-safer: new module
26358         * modules/freopen-safer: New module.
26359         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26360         * lib/freopen-safer.c (freopen_safer): New file.
26361         * lib/stdio-safer.h (freopen_safer): New declaration.
26362         * lib/stdio--.h (freopen): New override.
26363         * MODULES.html.sh (File stream based Input/Output): Mention it.
26364         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26365         freopen-safer module.
26366         * doc/posix-functions/stderr.texi (stderr): Likewise.
26367         * doc/posix-functions/stdin.texi (stdin): Likewise.
26368         * doc/posix-functions/stdout.texi (stdout): Likewise.
26369         * modules/freopen-safer-tests: New test.
26370         * tests/test-reopen-safer.c: New file.
26371
26372 2009-11-05  Jim Meyering  <meyering@redhat.com>
26373
26374         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26375         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26376
26377 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26378
26379         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26380
26381 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26382
26383         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26384
26385 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26386
26387         Fix link error.
26388         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26389         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26390
26391 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26392
26393         * tests/test-func.c: Also test value of __func__.
26394
26395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26396
26397         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26398         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26399
26400 2009-11-05  Bruno Haible  <bruno@clisp.org>
26401
26402         Fix link error.
26403         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26404         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26405         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26406
26407 2009-11-05  Bruno Haible  <bruno@clisp.org>
26408
26409         Tests for module 'inet_pton'.
26410         * modules/inet_pton-tests: New file.
26411         * tests/test-inet_pton.c: New file.
26412
26413 2009-11-05  Bruno Haible  <bruno@clisp.org>
26414
26415         Tests for module 'inet_ntop'.
26416         * modules/inet_ntop-tests: New file.
26417         * tests/test-inet_ntop.c: New file.
26418
26419 2009-11-04  Eric Blake  <ebb9@byu.net>
26420
26421         stdlib-safer: wrap all mkstemp variants
26422         * modules/mkostemp (configure.ac): Set witness.
26423         * modules/mkostemps (configure.ac): Likewise.
26424         * modules/mkstemps (configure.ac): Likewise.
26425         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26426         (mkstemps_safer): Wrap more functions.
26427         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26428         wrapping.
26429         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26430         (mkstemps_safer): Implement the wrappers.
26431
26432         mkstemps, mkostemps: new modules
26433         * modules/mkostemps: New module.
26434         * modules/mkstemps: Likewise.
26435         * lib/mkostemps.c (mkostemps): New file.
26436         * lib/mkstemps.c (mkstemps): Likewise.
26437         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26438         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26440         * modules/stdlib (Makefile.am): Substitute them.
26441         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26442         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26443         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26444         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26445         * MODULES.html.sh (File system functions): Mention them.
26446
26447         tempname: resync from glibc
26448         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26449         same values for __GT_FILE as glibc.  Abort even when assertions
26450         are disabled.
26451         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26452         match its value otherwise.  Allow idempotent inclusion.
26453         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26454         * lib/mkostemp.c (mkostemp): Likewise.
26455         * lib/mkstemp.c (mkstemp): Likewise.
26456         * lib/tmpfile.c (tmpfile): Likewise.
26457         * NEWS: Document this.
26458
26459         utimens: fix use of futimens on older Linux
26460         * lib/utimens.c (fdutimens): Use updated, rather than original,
26461         timespec to avoid bug in older Linux kernel.
26462         Reported by Simon Josefsson.
26463
26464 2009-11-04  Bruno Haible  <bruno@clisp.org>
26465
26466         Make num_processors more flexible and consistent.
26467         * lib/nproc.h (enum nproc_query): New type.
26468         (num_processors): Add a 'query' argument.
26469         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26470         (num_processors): Add a 'query' argument. Test the value of the
26471         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26472         mingw, count the number of CPUs available for the current process.
26473         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26474         Check for sched_getaffinity and sched_getaffinity_np.
26475         * modules/nproc (Depends-on): Add c-ctype, extensions.
26476         * NEWS: Mention the change.
26477
26478 2009-11-03  Bruno Haible  <bruno@clisp.org>
26479
26480         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26481
26482 2009-11-03  Jim Meyering  <meyering@redhat.com>
26483
26484         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26485         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26486         if it is defined.
26487
26488 2009-11-02  Eric Blake  <ebb9@byu.net>
26489
26490         mktime, timegm: share common declaration
26491         * lib/mktime-internal.h: New file.
26492         * lib/mktime.c: Use it rather than open-coding a declaration.
26493         * lib/timegm.c: Likewise.
26494         * modules/mktime (Files): Ship it.
26495         * modules/timegm (Files): Likewise.
26496         Suggested by Bruno Haible.
26497
26498         test-update-copyright: update test to match script changes
26499         * tests/test-update-copyright.sh: Avoid hard-coding perl
26500         location.  Don't update *.bak created by earlier runs.
26501
26502 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26503             Simon Josefsson  <simon@josefsson.org>
26504             Bruno Haible  <bruno@clisp.org>
26505
26506         Fix link error on Solaris 8.
26507         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26508         also in libnsl. Define also INET_PTON_LIB.
26509         * modules/inet_pton (Link): New section.
26510
26511 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26512             Bruno Haible  <bruno@clisp.org>
26513
26514         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26515         * modules/inet_ntop (Link): New section.
26516         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26517
26518 2009-11-02  Eric Blake  <ebb9@byu.net>
26519
26520         maint: avoid compiler warnings in m4 macros
26521         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26523
26524 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26525
26526         * m4/pmccabe2html.m4: Remove file.
26527         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26528         function.  Change maintainer.
26529         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26530         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26531         Courtès).
26532
26533 2009-10-31  Eric Blake  <ebb9@byu.net>
26534
26535         fseeko: fix m4 regression
26536         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26537         regression from 2009-10-27.
26538         Reported by Ralf Wildenhues.
26539
26540 2009-10-31  Jim Meyering  <meyering@redhat.com>
26541
26542         inttostr: aesthetics and improved (compile-time) safety
26543         Define inttype_is_signed rather than inttype_is_unsigned,
26544         since the sole use is via "#if inttype_is_signed".
26545         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26546         inttype_is_unsigned.
26547         * lib/offtostr.c (inttype_is_signed): Likewise.
26548         * lib/uinttostr.c (inttype_is_signed): Likewise.
26549         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26550         * lib/inttostr.c (inttostr): Use verify to cross-check the
26551         inttype_is_signed value and the signedness of the actual type.
26552         * modules/inttostr (Depends-on): Add verify.
26553
26554 2009-10-30  Eric Blake  <ebb9@byu.net>
26555
26556         build: avoid compiler warnings
26557         * lib/fchmodat.c (lchmod): Mark unused variables.
26558         * lib/getopt.c (_getopt_initialize): Likewise.
26559         * lib/mktime.c (__mktime_internal): Provide prototype.
26560         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26561         older gcc that do not understand #pragma GCC diagnostic.
26562         * lib/uinttostr.c (inttype_is_unsigned): Define.
26563         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26564
26565 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26566
26567         stat: fix compilation on AIX
26568         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26569         only see struct stat64.
26570
26571 2009-10-30  Eric Blake  <ebb9@byu.net>
26572
26573         exclude: make more robust
26574         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26575         rather than masking a coding bug.
26576         Suggested by Bruno Haible.
26577
26578 2009-10-30  Jim Meyering  <meyering@redhat.com>
26579
26580         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26581         Rather than putting #!/usr/bin/perl on the first line,
26582         start with a variant of what's recommended by "man perlrun" that
26583         invokes the first "perl" program from your shell's search path.
26584         * build-aux/gitlog-to-changelog: Replace #!... as above.
26585         Add a "Local Variables" perl mode setting.
26586         Prompted by a patch from Ludovic Courtès.
26587         Improved by Eric Blake.
26588         * build-aux/useless-if-before-free: Likewise.
26589         * build-aux/announce-gen: Likewise.
26590         * build-aux/update-copyright: Likewise.
26591
26592 2009-10-29  Eric Blake  <ebb9@byu.net>
26593
26594         filenamecat-lgpl: adjust clients
26595         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26596         filenamecat.
26597         * modules/renameat (Depends-on): Likewise.
26598
26599         filenamecat: split into filenamecat-lgpl
26600         * modules/filenamecat-lgpl: New module.
26601         * modules/filenamecat (Files): Move library-safe files into
26602         filenamecat-lgpl.
26603         (Depends-on): Add filenamecat-lgpl.
26604         (configure.ac): Declare witness.
26605         * lib/filenamecat.h (file_name_concat): Only declare when using
26606         GPL module.
26607         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26608         Move...
26609         * lib/filenamecat-lgpl.c: ...into new file.
26610         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26611         (gl_FILE_NAME_CONCAT): Use it.
26612         * MODULES.html.sh (File system functions): Mention new module.
26613
26614         argp: avoid memory leak
26615         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26616         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26617         base_name, since the latter malloc()s and can call exit().
26618         Leak introduced 2006-07-03.
26619
26620         dirname-lgpl: adjust clients that don't need full dirname
26621         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26622         * modules/filenamecat (Depends-on): Likewise.
26623         * modules/linkat (Depends-on): Likewise.
26624         * modules/mkancesdirs (Depends-on): Likewise.
26625         * modules/mkdir (Depends-on): Likewise.
26626         * modules/openat (Depends-on): Likewise.
26627         * modules/savewd (Depends-on): Likewise.
26628         * modules/rename (Depends-on): Likewise.
26629         (License): Relax license.
26630         * modules/mkdir-tests (Depends-on): Drop progname.
26631         (Makefile.am): Delete unneeded LDADD.
26632         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26633
26634         dirname: split into dirname-lgpl
26635         * modules/dirname-lgpl: New module.
26636         * modules/dirname (Files): Move library-safe files into
26637         dirname-lgpl.
26638         (Depends-on): Add dirname-lgpl.
26639         (configure.ac): Declare witness.
26640         * modules/double-slash-root (License): Relax license.
26641         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26642         module.
26643         * lib/dirname.c (dir_len, mdir_name): Move...
26644         * lib/dirname-lgpl.c: ...into new file.
26645         * lib/basename.c (last_component, base_len): Move...
26646         * lib/basename-lgpl.c: ...into new file.
26647         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26648         (gl_DIRNAME): Use it.
26649         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26650         Mention new module.
26651         * modules/dirname-tests (Depends-on): Add progname.
26652         * tests/test-dirname.c (program_name): Delete.
26653
26654         mkdir: make safe for libraries
26655         * modules/mkdir (Depends-on): Drop xalloc.
26656         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26657         exit.
26658
26659         tests: avoid some compiler warnings
26660         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26661         literals.
26662         * tests/test-memchr.c (main): Avoid type mismatch.
26663         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26664         * tests/test-base64.c (main): Likewise.
26665         * tests/test-getdelim.c (main): Likewise.
26666         * tests/test-gethostname.c (main): Likewise.
26667         * tests/test-getline.c (main): Likewise.
26668         * tests/test-netinet_in.c (main): Likewise.
26669         * tests/test-select.c (open_server_socket, main): Likewise.
26670         * tests/test-select-stdin.c (main): Likewise.
26671         * tests/test-sockets.c (main): Likewise.
26672         * tests/test-strsignal.c (main): Likewise.
26673         * tests/test-sys_select.c (main): Likewise.
26674         * tests/test-sys_socket.c (main): Likewise.
26675         * tests/test-u64.c (main): Likewise.
26676         * tests/test-xfprintf-posix.c (main): Likewise.
26677         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26678
26679         sockets: avoid compiler warning
26680         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26681
26682         maint: detect usage(1) and other suspicious exits
26683         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26684
26685 2009-10-29  Jim Meyering  <meyering@redhat.com>
26686
26687         timespec: long-to-int truncation could make timespec_cmp malfunction
26688         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26689         a multiple of 2^32 nanoseconds as no difference.
26690
26691 2009-10-28  Jim Meyering  <meyering@redhat.com>
26692
26693         fprintftime: wrap macro code argument in "do {...} while(0)"
26694         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26695         cpy macro must be a statement that can be followed by a semicolon.
26696         Now that the else clause contains a comment and is hence longer
26697         than one line, I require curly braces.  That in turn requires
26698         that we wrap this code block in the standard do...while(0).
26699
26700         fprintftime: remove stray semicolon from previous change
26701         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26702
26703         fprintftime: avoid a warning about ignored fwrite return value
26704         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26705         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26706         that is unsafe.
26707         * modules/fprintftime (Depends-on): Add ignore-value.
26708
26709         exclude: avoid an unwarranted warning
26710         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26711
26712 2009-10-27  Eric Blake  <ebb9@byu.net>
26713
26714         fseek: avoid compilation failure when fflush is replaced
26715         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26716         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26717         module is in use.
26718         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26719         module is not in use; since REPLACE_FSEEK worked otherwise.
26720         (GNULIB_FTELLO): Likewise for ftell.
26721         Reported by Ian Beckwith and others.
26722
26723 2009-10-27  Bruno Haible  <bruno@clisp.org>
26724
26725         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26726         Reported by Jim Meyering.
26727
26728 2009-10-27  Jim Meyering  <jim@meyering.net>
26729             Bruno Haible  <bruno@clisp.org>
26730
26731         Avoid warning despite dropping the return value of fwrite.
26732         * lib/unicodeio.c: Include ignore-value.h.
26733         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26734         * modules/unicodeio (Depends-on): Add ignore-value.
26735
26736 2009-10-26  Eric Blake  <ebb9@byu.net>
26737
26738         areadlinkat: fix fallback path
26739         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26740         pointer and zero.
26741
26742 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26743
26744         Use a better IO block size for modern systems
26745         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26746         * lib/md2.c: Likewise.
26747         * lib/md4.c: Likewise.
26748         * lib/md5.c: Likewise.
26749         * lib/sha1.c: Likewise.
26750         * lib/sha256.c: Likewise.
26751         * lib/sha512.c: Likewise.
26752
26753 2009-10-22  Eric Blake  <ebb9@byu.net>
26754
26755         tests: avoid several compiler warnings
26756         * tests/test-getcwd.c (main): Avoid buffer underflow.
26757         * tests/test-getdate.c (main): String literals are not safe with
26758         putenv, so use setenv.  Declare unused argument.
26759         * modules/getdate-tests (Depends-on): Add setenv.
26760         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26761         problems with string literals in char *.
26762         * tests/test-hash.c (main): Avoid shadowing declaration.
26763         (insert_new): Treat string literals as char const *.
26764         * tests/test-getopt.h (test_getopt): Likewise.
26765         (getopt_loop): Alter types to minimize casting elsewhere.
26766         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26767         (test_getopt_long_posix): Likewise.
26768         (do_getopt_long): Add wrapper to minimize casting.
26769         * tests/test-atexit.c (clear_temp_file): Use void.
26770         * tests/test-areadlink-with-size.c (main): Declare unused
26771         arguments.
26772         * tests/test-areadlink.c (main): Likewise.
26773         * tests/test-areadlinkat-with-size.c (main): Likewise.
26774         * tests/test-areadlinkat.c (main): Likewise.
26775         * tests/test-canonicalize-lgpl.c (main): Likewise.
26776         * tests/test-canonicalize.c (main): Likewise.
26777         * tests/test-dirent-safer.c (main): Likewise.
26778         * tests/test-dirname.c (main): Likewise.
26779         * tests/test-dup2.c (main): Likewise.
26780         * tests/test-fchdir.c (main): Likewise.
26781         * tests/test-fcntl-h.c (main): Likewise.
26782         * tests/test-fcntl-safer.c (main): Likewise.
26783         * tests/test-fdopendir.c (main): Likewise.
26784         * tests/test-fdutimensat.c (main): Likewise.
26785         * tests/test-fflush.c (main): Likewise.
26786         * tests/test-filenamecat.c (main): Likewise.
26787         * tests/test-filevercmp.c (main): Likewise.
26788         * tests/test-fopen-safer.c (main): Likewise.
26789         * tests/test-fopen.c (main): Likewise.
26790         * tests/test-fpending.c (main): Likewise.
26791         * tests/test-fpurge.c (main): Likewise.
26792         * tests/test-freading.c (main): Likewise.
26793         * tests/test-fstatat.c (main): Likewise.
26794         * tests/test-fsync.c (main): Likewise.
26795         * tests/test-futimens.c (main): Likewise.
26796         * tests/test-getndelim2.c (main): Likewise.
26797         * tests/test-gettimeofday.c (main): Likewise.
26798         * tests/test-getopt.c (main): Likewise.
26799         * tests/test-i-ring.c (main): Likewise.
26800         * tests/test-inttypes.c (main): Likewise.
26801         * tests/test-link.c (main): Likewise.
26802         * tests/test-lstat.c (main): Likewise.
26803         * tests/test-math.c (main): Likewise.
26804         * tests/test-md5.c (main): Likewise.
26805         * tests/test-memchr2.c (main): Likewise.
26806         * tests/test-memrchr.c (main): Likewise.
26807         * tests/test-mkdir.c (main): Likewise.
26808         * tests/test-mkdirat.c (main): Likewise.
26809         * tests/test-mkfifoat.c (main): Likewise.
26810         * tests/test-open.c (main): Likewise.
26811         * tests/test-openat-safer.c (main): Likewise.
26812         * tests/test-openat.c (main): Likewise.
26813         * tests/test-quotearg.c (main): Likewise.
26814         * tests/test-rawmemchr.c (main): Likewise.
26815         * tests/test-readlink.c (main): Likewise.
26816         * tests/test-remove.c (main): Likewise.
26817         * tests/test-rename.c (main): Likewise.
26818         * tests/test-renameat.c (main): Likewise.
26819         * tests/test-rmdir.c (main): Likewise.
26820         * tests/test-sha1.c (main): Likewise.
26821         * tests/test-signal.c (main): Likewise.
26822         * tests/test-sigaction.c (main): Likewise.
26823         * tests/test-stat.c (main): Likewise.
26824         * tests/test-stat-time.c (main): Likewise.
26825         * tests/test-stddef.c (main): Likewise.
26826         * tests/test-stdint.c (main): Likewise.
26827         * tests/test-stdio.c (main): Likewise.
26828         * tests/test-stdlib.c (main): Likewise.
26829         * tests/test-strchrnul.c (main): Likewise.
26830         * tests/test-strerror.c (main): Likewise.
26831         * tests/test-string.c (main): Likewise.
26832         * tests/test-strtod.c (main): Likewise.
26833         * tests/test-strverscmp.c (main): Likewise.
26834         * tests/test-symlink.c (main): Likewise.
26835         * tests/test-symlinkat.c (main): Likewise.
26836         * tests/test-sys_stat.c (main): Likewise.
26837         * tests/test-sys_time.c (main): Likewise.
26838         * tests/test-time.c (main): Likewise.
26839         * tests/test-unistd.c (main): Likewise.
26840         * tests/test-unlink.c (main): Likewise.
26841         * tests/test-unlinkat.c (main): Likewise.
26842         * tests/test-utimens.c (main): Likewise.
26843         * tests/test-utimensat.c (main): Likewise.
26844         * tests/test-version-etc.c (main): Likewise.
26845         * tests/test-wchar.c (main): Likewise.
26846         * tests/test-wctype.c (main): Likewise.
26847         * tests/test-xprintf-posix.c (main): Likewise.
26848         * tests/test-posixtm.c (main): Likewise.
26849         (STREQ): Delete unused macro.
26850         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26851         shadowed variables.
26852         * tests/test-memchr.c (main): Likewise.
26853
26854 2009-10-21  Eric Blake  <ebb9@byu.net>
26855
26856         areadlinkat: avoid failure on older glibc
26857         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26858         rather than mis-comparing 0 against FUNC_RESULT of char*.
26859
26860 2009-10-21  Bruno Haible  <bruno@clisp.org>
26861
26862         * modules/stpncpy (License): Relicense under LGPLv2+.
26863         Reported by David Lutterkort <lutter@redhat.com>.
26864
26865 2009-10-20  Eric Blake  <ebb9@byu.net>
26866
26867         utimensat: work around Solaris 9 bug
26868         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26869         has trailing slash bugs.
26870         * tests/test-lutimens.h (test_lutimens): Enhance test.
26871         * tests/test-utimens.h (test_utimens): Likewise.
26872         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26873         * doc/posix-functions/utimes.texi (utimes): Likewise.
26874         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26875         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26876         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26877         * doc/posix-functions/futimens.texi (futimens): Likewise.
26878
26879         fdutimensat: new module
26880         * modules/fdutimensat: New file.
26881         * lib/fdutimensat.c (fdutimensat): Likewise.
26882         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26883         * MODULES.html.sh (File system functions): Mention module.
26884         * modules/fdutimensat-tests: New test.
26885         * tests/test-fdutimensat.c: Likewise.
26886
26887         doc: regenerate INSTALL
26888         * doc/INSTALL: Reflect recent autoconf update.
26889         * doc/INSTALL.ISO: Likewise.
26890         * doc/INSTALL.UTF-8: Likewise.
26891
26892 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26893
26894         acl: warn if ACL support is not detected
26895         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26896
26897 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26898
26899         * lib/nproc.h: Add extern "C" block for C++.
26900
26901 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26902             Bruno Haible  <bruno@clisp.org>
26903
26904         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26905         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26906         * doc/posix-functions/isalpha.texi: Likewise.
26907         * doc/posix-functions/isblank.texi: Likewise.
26908         * doc/posix-functions/iscntrl.texi: Likewise.
26909         * doc/posix-functions/isdigit.texi: Likewise.
26910         * doc/posix-functions/isgraph.texi: Likewise.
26911         * doc/posix-functions/islower.texi: Likewise.
26912         * doc/posix-functions/isprint.texi: Likewise.
26913         * doc/posix-functions/ispunct.texi: Likewise.
26914         * doc/posix-functions/isspace.texi: Likewise.
26915         * doc/posix-functions/isupper.texi: Likewise.
26916         * doc/posix-functions/isxdigit.texi: Likewise.
26917
26918 2009-10-18  Bruno Haible  <bruno@clisp.org>
26919
26920         Tests for module 'isblank'.
26921         * modules/isblank-tests: New file.
26922         * tests/test-isblank.c: New file.
26923
26924         New module 'isblank'.
26925         * lib/isblank.c: New file.
26926         * m4/isblank.m4: New file.
26927         * modules/isblank: New file.
26928         * doc/posix-functions/isblank.texi: Mention the new module.
26929
26930 2009-10-18  Bruno Haible  <bruno@clisp.org>
26931
26932         New module 'ctype'.
26933         * lib/ctype.in.h: New file.
26934         * m4/ctype.m4: New file.
26935         * modules/ctype: New file.
26936         * doc/posix-headers/ctype.texi: Mention the new module.
26937
26938 2009-10-18  Jim Meyering  <meyering@redhat.com>
26939
26940         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26941         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26942         right after its initialization, rather than farther down.
26943         Keeping these in close proximity makes it easier to ensure
26944         that each such variable is initialized.  E.g.,
26945
26946             LIB_CLOCK_GETTIME=
26947             AC_SUBST([LIB_CLOCK_GETTIME])
26948
26949         This change also increments these serial numbers.
26950         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26951         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26953
26954 2009-10-18  Bruno Haible  <bruno@clisp.org>
26955
26956         Don't let environment variables perturb build.
26957         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26958         (gl_PREREQ_GETHRXTIME): ... not here.
26959
26960 2009-10-18  Bruno Haible  <bruno@clisp.org>
26961
26962         Avoid symlink attack in localcharset module.
26963         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26964         (O_NOFOLLOW): Define fallback.
26965         (get_charset_aliases): Don't open the file if it is a symbolic link.
26966         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26967         gl_FCNTL_H.
26968         (gl_FCNTL_H): Require it.
26969         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26970         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26971         Reported by Fergal Glynn <fglynn@veracode.com>.
26972
26973 2009-10-18  Bruno Haible  <bruno@clisp.org>
26974
26975         Implement nproc for mingw.
26976         * lib/nproc.c: Include <windows.h>
26977         (num_processors): On native Windows platforms, try GetSystemInfo.
26978
26979 2009-10-18  Bruno Haible  <bruno@clisp.org>
26980
26981         Implement nproc for IRIX.
26982         * lib/nproc.c: Include <sys/sysmp.h>.
26983         (num_processors): On IRIX systems, try sysmp.
26984         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26985
26986 2009-10-18  Bruno Haible  <bruno@clisp.org>
26987
26988         Implement nproc for HP-UX.
26989         * lib/nproc.c: Include <sys/pstat.h>
26990         (num_processors): On HP-UX systems, try pstat_getdynamic.
26991         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26992         pstat_getdynamic.
26993
26994 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26995             Bruno Haible  <bruno@clisp.org>
26996
26997         Implement nproc for NetBSD, OpenBSD.
26998         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26999         (ARRAY_SIZE): New macro.
27000         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27001         * m4/nproc.m4: New file.
27002         * modules/nproc (Files): Add m4/nproc.m4.
27003         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27004         (Makefile.am): Instead, augment lib_SOURCES.
27005
27006 2009-10-18  Bruno Haible  <bruno@clisp.org>
27007
27008         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27009         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27010         sys/param.h.
27011
27012 2009-10-16  Eric Blake  <ebb9@byu.net>
27013
27014         utimensat: new module
27015         * modules/utimensat: New file.
27016         * lib/utimensat.c (utimensat): Likewise.
27017         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27018         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27019         so we can work around Linux bugs.
27020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27021         * modules/sys_stat (Makefile.am): Substitute them.
27022         * lib/sys_stat.in.h (utimensat): Declare it.
27023         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27024         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27025         * modules/utimensat-tests: New test.
27026         * tests/test-utimensat.c: Likewise.
27027
27028         utimens: let lutimens work on non-symlinks
27029         * lib/utimens.c (lutimens): Fall back to utimens rather than
27030         failing with ENOSYS, when file is not a symlink.
27031         (utimens): Reduce redirection.
27032         * tests/test-lutimens.h (test_lutimens): Update test to cover
27033         non-symlinks.
27034         * tests/test-utimens.h (test_utimens): Update test to cover
27035         symlinks.
27036         * tests/test-utimens.c (main): Update caller.
27037
27038         utimens: cache whether utimensat syscall works
27039         * lib/utimens.c (utimensat_works_really): New cache variable.
27040         (fdutimens, lutimens): Use it to avoid failing syscall.
27041
27042         test-stat-time, test-utimens: improve portability
27043         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27044         ext4 on alpha, and for cygwin.
27045         * tests/test-utimens-common.h: New file.
27046         (nap): Factor delays into single function.
27047         * tests/test-lutimens.h (test_lutimens): Use new header.
27048         * tests/test-futimens.h (test_futimens): Likewise.
27049         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27050         timestamps to occur from same machine, as was done previously for
27051         test_utimens.
27052         * modules/utimens-tests (Files): Ship new file.
27053         * modules/futimens-tests (Files): Likewise.
27054         Reported in part by Jim Meyering.
27055
27056         sys_stat: sort replacement declarations
27057         * lib/sys_stat.in.h: Sort declarations.
27058         * lib/futimens.c (futimens): Fix typo.
27059
27060 2009-10-15  Jim Meyering  <meyering@redhat.com>
27061
27062         don't let environment settings perturb build
27063         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27064         could cause a configure-time and/or build-time malfunction.
27065         Typically, a configure-time function-in-library test is performed
27066         via code like this:
27067
27068           LIB_VAR=
27069           AC_SUBST([LIB_VAR])
27070           prefix_saved_LIBS=$LIBS
27071             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27072                        [test "$ac_cv_search_FUNC" = "none required" ||
27073                         LIB_VAR=$ac_cv_search_FUNC])
27074           LIBS=$prefix_saved_LIBS
27075
27076         However, in each of the files affected by this change, the LIB_VAR=
27077         initialization was omitted.  Thus, when set in the environment, its
27078         value would propagate into generated Makefiles when FUNC is not found
27079         in LIB_NAME.
27080         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27083
27084 2009-10-14  Eric Blake  <ebb9@byu.net>
27085
27086         fchdir: avoid infinite recursion in mingw
27087         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27088         recursing.
27089
27090         test-stat-time: port to mingw
27091         * tests/test-stat-time.c (force_unlink): Return a value.
27092         (test_ctime) [W32]: Fix compilation error.
27093         (nap): Don't call usleep with too large an argument.  Use
27094         force_unlink.
27095         * doc/pastposix-functions/usleep.texi (usleep): Document the
27096         portability issue.
27097
27098 2009-10-13  Jim Meyering  <meyering@redhat.com>
27099
27100         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27101         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27102         * modules/pipe-filter-ii: Likewise.
27103         * modules/sys_socket-tests: Likewise.
27104         * modules/tsearch-tests: Likewise.
27105         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27106         (check): Depend on it.
27107
27108 2009-10-12  Eric Blake  <ebb9@byu.net>
27109
27110         utimens-tests: port to NFS file systems
27111         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27112         comparisons to avoid spurious failures from timestamp drift
27113         between NFS machines.
27114
27115 2009-10-12  Eric Blake  <ebb9@byu.net>
27116
27117         stat-time-tests: minor cleanups
27118         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27119         * tests/test-stat-time.c (nap): Separate assignment from call.
27120         Suggested by Paolo Bonzini and Bruno Haible.
27121
27122         sys_stat: guarantee struct timespec
27123         * lib/sys_stat.in.h (includes): Always include <time.h>
27124         * modules/sys_stat (Depends-on): Add time.
27125         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27126         mode_t permission values.
27127         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27128         get at subsecond timestamps.
27129
27130 2009-10-10  Eric Blake  <ebb9@byu.net>
27131
27132         futimens: new module
27133         * modules/futimens: New file.
27134         * lib/futimens.c (futimens): Likewise.
27135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27136         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27137         we can work around Linux bugs.
27138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27139         * modules/sys_stat (Makefile.am): Substitute them.
27140         * lib/sys_stat.in.h (futimens): Declare it.
27141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27142         * doc/posix-functions/futimens.texi (futimens): Likewise.
27143         * modules/futimens-tests: New test.
27144         * tests/test-futimens.c: Likewise.
27145
27146         utimens: introduce fdutimens
27147         * lib/utimens.h (fdutimens): New prototype.
27148         * lib/utimens.c (gl_futimens): Move guts...
27149         (fdutimens): ...to new interface.
27150         * tests/test-utimens.c (do_fdutimens): Use it.
27151
27152         utimens: add UTIME_NOW and UTIME_OMIT support
27153         * lib/utimens.c (validate_timespec, update_timespec): New helper
27154         functions.
27155         (gl_futimens, lutimens): Use them.
27156         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27157         stdbool, sys_stat.
27158         (Link): Mention resulting library dependency.
27159         * modules/utimecmp (Link): Likewise.
27160         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27161         (Makefile.am): Pick up library dependency.
27162         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27163         definition.
27164         * tests/test-sys_stat.c: Test the definitions.
27165         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27166         * NEWS: Document library dependency.
27167
27168         utimecmp: support symlink timestamps
27169         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27170         hashing when possible.  Use pathconf when available.
27171         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27172         * modules/utimecmp (Depends-on): Add lstat.
27173
27174         utimens: add lutimens interface
27175         * lib/utimens.c (lutimens): New function.
27176         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27177         * lib/utimens.h (lutimens): Declare new interface.
27178         * tests/test-utimens.c (main): Enhance test.
27179         * tests/test-lutimens.h (test_lutimens): New file.
27180         * modules/utimens-tests (Files): Distribute it.
27181         (Depends-on): Add symlink.
27182         (configure.ac): Check for usleep.
27183
27184         utimens: validate futimens usage
27185         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27186         fewer syscalls on failure later on.  Avoid compiler warning on
27187         mingw.
27188         * modules/utimens (Depends-on): Add dup2.
27189
27190         utimens: add test
27191         * modules/utimens-tests: New test.
27192         * tests/test-utimens.h: New file.
27193         * tests/test-futimens.h: Likewise.
27194         * tests/test-utimens.c: Likewise.
27195
27196         doc: mention timestamp portability issues
27197         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27198         instead.
27199         * doc/posix-functions/utime.texi (utime): Likewise.
27200         * doc/posix-functions/utimes.texi (utimes): Likewise.
27201         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27202         instead.
27203         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27204         module.
27205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27206         Mention weakness with symlink timestamps.
27207         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27208         to utimensat/futimens instead.
27209         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27210
27211         test-dup2: enhance test
27212         * tests/test-dup2.c (main): Also check AT_FDCWD.
27213
27214         test-stat-time: avoid more spurious failures
27215         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27216         xfs; and avoid race if the two timestamps cross quantization edge.
27217
27218         relocatable: prefer 'file system' over 'filesystem'
27219         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27220         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27221         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27222         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27223         * lib/relocatable.c (compute_curr_prefix): Likewise.
27224
27225 2009-10-10  Jim Meyering  <meyering@redhat.com>
27226
27227         stat-time-tests: check for the usleep function
27228         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27229
27230 2009-10-10  Bruno Haible  <bruno@clisp.org>
27231
27232         * modules/xnanosleep: Put the Link section after the Include section.
27233
27234 2009-10-09  Eric Blake  <ebb9@byu.net>
27235
27236         dup2: work around FreeBSD 6.1 bug
27237         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27238         * doc/posix-functions/dup2.texi (dup2): Document it.
27239         Reported by Nelson H. F. Beebe and Jim Meyering.
27240
27241         test-stat-time: port to buggy NFS clients
27242         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27243         (test_ctime): Also skip test if mtime and ctime are skewed.
27244
27245         maint: prefer 'file system' over 'filesystem'
27246         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27247         * doc/posix-functions/lstat.texi (lstat): Likewise.
27248         * lib/file-has-acl.c (file_has_acl): Likewise.
27249         * lib/fwriteerror.c [TEST]: Likewise.
27250         * tests/test-areadlink.h (test_areadlink): Likewise.
27251         * tests/test-areadlinkat-with-size.c (main): Likewise.
27252         * tests/test-areadlinkat.c (main): Likewise.
27253         * tests/test-canonicalize-lgpl.c (main): Likewise.
27254         * tests/test-canonicalize.c (main): Likewise.
27255         * tests/test-fstatat.c (main): Likewise.
27256         * tests/test-linkat.c (main): Likewise.
27257         * tests/test-lstat.h (test_lstat_func): Likewise.
27258         * tests/test-mkdir.h (test_mkdir): Likewise.
27259         * tests/test-readlink.h (test_readlink): Likewise.
27260         * tests/test-remove.c (main): Likewise.
27261         * tests/test-rename.h (test_rename): Likewise.
27262         * tests/test-renameat.c (main): Likewise.
27263         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27264         * tests/test-symlink.h (test_symlink): Likewise.
27265         * tests/test-symlinkat.c (main): Likewise.
27266         * tests/test-unlink.h (test_unlink_func): Likewise.
27267         * tests/test-unlinkat.c (main): Likewise.
27268
27269         maint: make realtime library usage explicit
27270         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27271         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27272         * modules/settime (Link): Likewise.
27273         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27274
27275         test-stat-time: speed up execution
27276         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27277         warning on mingw.
27278         (nap): New helper function.
27279         (prepare_test): Use it to reduce sleep time.
27280         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27281         execution.
27282         * modules/stat-time-tests (configure.ac): Check for usleep.
27283
27284 2009-10-09  Jim Meyering  <meyering@redhat.com>
27285
27286         selinux-h: always use getfilecon wrappers
27287         * lib/getfilecon.c: New file.
27288         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27289         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27290         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27291         (fgetfilecon): Provide a stub.
27292         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27293         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27294         file unconditionally.
27295         When <selinux/selinux.h> is found, arrange to use wrappers.
27296         * modules/selinux-h (Files): Add getfilecon.c.
27297         (Makefile.am): Substitute include-next-related bits
27298         into the now-always-generated selinux/selinux.h file.
27299         * doc/glibc-functions/lgetfilecon.texi: New file.
27300         * doc/glibc-functions/fgetfilecon.texi: New file.
27301         * doc/glibc-functions/getfilecon.texi: New file.
27302         * doc/glibc-functions/getfilecon-desc.texi: New file.
27303         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27304         which to pull in the new files.
27305         * MODULES.html.sh (Misc): Add selinux-h.
27306
27307 2009-10-08  Jim Meyering  <meyering@redhat.com>
27308
27309         unistd: fix comment typo
27310         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27311
27312 2009-10-08  Eric Blake  <ebb9@byu.net>
27313
27314         areadlink: use SIZE_MAX consistently
27315         * modules/areadlink (Depends-on): Add stdint.
27316         * modules/areadlink-with-size (Depends-on): Likewise.
27317         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27318         gives NULL; drop sys/types, since unistd gives size_t; and add
27319         stdint for SIZE_MAX.
27320         (SIZE_MAX): Rely on headers.
27321         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27322         and add stdint.
27323         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27324         (SIZE_MAX): Likewise.
27325         (INITIAL_BUF_SIZE): Turn into enum.
27326         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27327
27328 2009-10-08  Jim Meyering  <meyering@redhat.com>
27329
27330         areadlinkat: avoid compilation failure
27331         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27332         Fix typo in comment.
27333
27334 2009-10-07  Eric Blake  <ebb9@byu.net>
27335
27336         areadlinkat-with-size: new module
27337         * modules/areadlinkat-with-size: New module.
27338         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27339         * lib/areadlink.h (areadlinkat): Declare it.
27340         * MODULES.html.sh (File system functions): Mention it.
27341         * modules/areadlinkat-with-size-tests: New test.
27342         * tests/test-areadlinkat-with-size.c: New file.
27343
27344         xreadlinkat: new module
27345         * modules/xreadlinkat: New module.
27346         * lib/xreadlinkat.c (xreadlinkat): New file.
27347         * lib/xreadlink.h (xreadlinkat): Declare it.
27348         * MODULES.html.sh (File system functions): Mention it.
27349
27350         areadlinkat: new module
27351         * lib/at-func.c (FUNC_FAIL): New define.
27352         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27353         * modules/areadlinkat: New module.
27354         * lib/linkat.c (areadlinkat): Move...
27355         * lib/areadlinkat.c (areadlinkat): ...to new file.
27356         * lib/areadlink.h (areadlinkat): Declare it.
27357         * modules/linkat (Depends-on): Add areadlinkat.
27358         * MODULES.html.sh (File system functions): Mention it.
27359         * modules/areadlinkat-tests: New test.
27360         * tests/test-areadlinkat.c: New file.
27361
27362         areadlink, areadlink-with-size: add tests
27363         * modules/areadlink-tests: New test.
27364         * modules/areadlink-with-size-tests: Likewise.
27365         * tests/test-areadlink.h: New file.
27366         * tests/test-areadlink.c: Likewise.
27367         * tests/test-areadlink-with-size.c: Likewise.
27368
27369         maint: minor cleanups
27370         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27371         _UNUSED_PARAMETER_ instead.
27372         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27373         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27374         * modules/linkat-tests (Files): Distribute test-link.h.
27375
27376         openat, utimens: whitespace cleanup
27377         * lib/openat.c: Prefer space throughout, rather than mix of 8
27378         spaces vs. tabs.
27379         * lib/at-func.c: Likewise.
27380         * lib/utimens.c: Likewise.
27381
27382         openat: avoid using wrong fd
27383         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27384         working directory chooses same fd.
27385         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27386
27387         mkdir, mkdirat: fix cygwin 1.5.x bug
27388         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27389         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27390         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27391         bug.
27392         (gl_PREREQ_MKDIR): Delete unused macro.
27393         * modules/mkdir (Files): Track file rename.
27394         (configure.ac): Update macro name.
27395         * modules/openat (Depends-on): Add mkdir.
27396         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27397
27398         mkdir, mkdirat: add tests
27399         * modules/mkdir-tests: New test.
27400         * tests/test-mkdir.h: New file.
27401         * tests/test-mkdir.c: Likewise.
27402         * tests/test-mkdirat.c: Likewise.
27403         * modules/openat-tests (Files): Add new files.
27404         (Makefile.am): Run new test.
27405
27406 2009-10-06  Eric Blake  <ebb9@byu.net>
27407
27408         doc: tweak *at function documentation
27409         * doc/posix-functions/faccessat.texi (faccessat): Mention
27410         known issue with replacement.
27411         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27412         * doc/posix-functions/linkat.texi (linkat): Likewise.
27413         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27414         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27415         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27416         * doc/posix-functions/renameat.texi (renameat): Likewise.
27417         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27418
27419         openat: fix GNU/Hurd bug in unlinkat
27420         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27421         broken.
27422         * doc/posix-functions/unlink.texi (unlink): Document this.
27423         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27424
27425         fdopendir: fix GNU/Hurd bug
27426         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27427         allowing non-directory fds.
27428         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27430         * modules/dirent (Makefile.am): Substitute it.
27431         * lib/dirent.in.h (fdopendir): Declare replacement.
27432         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27433         * tests/test-fdopendir.c (main): Test something other than
27434         /dev/null, since on Hurd that behaves like a directory.
27435
27436         test-symlink: port to GNU/Hurd
27437         * tests/test-symlink.h (test_symlink): Relax expected errno.
27438
27439         doc: tweak more cygwin information
27440         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27441         now compatible with glibc.
27442         * doc/posix-functions/getopt.texi (getopt): Likewise.
27443
27444         getopt-gnu: add another test
27445         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27446         guarantee behavior relied on by m4.
27447         * tests/test-getopt.c (main): Use it.
27448         * modules/getopt-posix-tests (Depends-on): Add setenv.
27449         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27450
27451         getopt: fix compilation on darwin
27452         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27453         include.
27454         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27455         Reported by Ludovic Courtès.
27456
27457 2009-10-06  Bruno Haible  <bruno@clisp.org>
27458
27459         * modules/size_max (Description): Discourage its use.
27460         Reported by Simon Josefsson.
27461
27462 2009-10-06  Jim Meyering  <meyering@redhat.com>
27463
27464         linkat: avoid compilation failure
27465         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27466
27467 2009-10-05  Eric Blake  <ebb9@byu.net>
27468
27469         linkat: support Linux 2.6.17
27470         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27471         linkat on Linux, but allow cache variable override.
27472         * lib/linkat.c (rpl_linkat): Define override.
27473         * modules/linkat (Depends-on): Add symlinkat.
27474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27475         * modules/unistd (Makefile.am): Substitute it.
27476         * lib/unistd.in.h (linkat): Declare replacement.
27477         Reported by Pádraig Brady.
27478
27479         quotearg: port test to systems with C.UTF-8 locale
27480         * tests/test-quotearg.c (struct result_strings): Add another
27481         member, differentiating between C.ASCII and C.UTF-8 handling.
27482         (compare_strings): Add parameter.
27483         (main): Adjust all callers.
27484
27485         getopt: avoid clash with FreeBSD _getopt_internal
27486         * lib/getopt.in.h (_getopt_internal): Override the name.
27487         * lib/getopt_int.h (includes): Pick up any overrides.
27488         Reported by Reuben Thomas.
27489
27490         hash: allow C89 compilation
27491         * lib/hash.c (check_tuning): Move declaration before statement.
27492         Reported by Reuben Thomas.
27493
27494 2009-10-05  Karl Berry  <karl@gnu.org>
27495
27496         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27497
27498 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27499             Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/uname.c (uname): Use a table-driven algorithm to compute
27502         Windows NT versions.
27503
27504 2009-10-04  Bruno Haible  <bruno@clisp.org>
27505
27506         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27507         program_invocation_short_name.
27508         * modules/progname (configure.ac): Test for presence of
27509         program_invocation_short_name.
27510         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27511
27512 2009-10-04  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/progname.c (set_program_name): Fix comment.
27515         Reported by Jim Meyering.
27516
27517 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27518             Bruno Haible  <bruno@clisp.org>
27519
27520         * lib/uname.c: Include <string.h>.
27521         (uname): Do only one call to GetVersionEx in the common case.
27522
27523 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27524             Bruno Haible  <bruno@clisp.org>
27525
27526         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27527         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27528         (uname): Add support for Windows CE and various non-x86 CPU types.
27529
27530 2009-10-03  Bruno Haible  <bruno@clisp.org>
27531
27532         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27533         invocation to tests/configure.ac.
27534         Reported by Ian Beckwith <ianb@erislabs.net>.
27535
27536 2009-10-02  Eric Blake  <ebb9@byu.net>
27537
27538         fchdir: avoid compiler warning
27539         * lib/fchdir.c (canonicalize_file_name)
27540         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27541
27542         test-open: support mingw errno values
27543         * tests/test-open.h (test_open): Relax test.
27544         * tests/test-fopen.h (test_fopen): Likewise.
27545         * tests/test-openat-safer.c (main): Likewise.
27546
27547         open: fix opening directory on mingw
27548         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27549
27550         test-open: on GNU/Hurd, /dev/null is a directory
27551         * tests/test-fopen.h (main): Rename...
27552         (test_fopen): ...to this.  Use a guaranteed non-directory when
27553         confirming open behavior on trailing slash.
27554         * tests/test-openat-safer.c (main): Likewise.
27555         * tests/test-open.h (main): Likewise....
27556         (test_open): ...to this.
27557         * tests/test-fopen.c (main): Adjust caller.
27558         * tests/test-fopen-safer.c (main): Likewise.
27559         * tests/test-open.c (main): Likewise.
27560         * tests/test-fcntl-safer.c (main): Likewise.
27561         Reported by Samuel Thibault.
27562
27563         rename, fchdir: don't ignore chdir failure
27564         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27565         * lib/rename.c (rpl_rename) [W32]: Likewise.
27566         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27567         an empty destination directory if source cannot be renamed,
27568         although there is still possibility for failure.
27569         * doc/posix-functions/rename.texi (rename): Document the race.
27570         Reported by Jim Meyering.
27571
27572         maint: cleanup whitespace in recent commits
27573         * lib/rename.c (rpl_rename): Remove tabs.
27574         * tests/test-link.h (test_link): Likewise.
27575         * lib/fchdir.c (get_name): Likewise.
27576         Reported by Jim Meyering.
27577
27578 2009-10-02  Ben Pfaff  <blp@gnu.org>
27579
27580         relocatable-prog-wrapper: Add missing dependency on
27581         double-slash-root.
27582         * modules/relocatable-prog-wrapper: Add dependency.
27583         Reported by Ian Beckwith <ianb@erislabs.net>.
27584
27585 2009-10-02  Eric Blake  <ebb9@byu.net>
27586
27587         renameat: fix Solaris bugs
27588         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27589         needed fixing.
27590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27591         * modules/stdio (Makefile.am): Substitute it.
27592         * lib/stdio.in.h (renameat): Declare replacement.
27593         * lib/renameat.c (rpl_renameat): Implement fix.
27594
27595         renameat: new module
27596         * modules/renameat: New file.
27597         * lib/renameat.c (renameat): Likewise.
27598         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27600         * modules/stdio (Makefile.am): Substitute them.
27601         * lib/stdio.in.h (renameat): Declare it.
27602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27603         * doc/posix-functions/renameat.texi (renameat): Likewise.
27604         * modules/renameat-tests: New test.
27605         * tests/test-renameat.c: Likewise.
27606
27607         rename: fix mingw bugs
27608         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27609         directory overwrite bugs.
27610
27611         rename: fix another cygwin 1.5 bug
27612         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27613         checks.
27614         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27615         unnecessary cygwin workarounds.  Also work around bug with moving
27616         full directory onto an empty one.
27617         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27618
27619         rename-dest-slash: merge into rename module
27620         * modules/rename-dest-slash (Status): Mark obsolete.
27621         (Depends-on): Add rename.
27622         (Files): Let rename do it all.
27623         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27624         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27625         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27626         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27627         * lib/rename.c (rpl_rename): Update comments.
27628
27629         rename: fix cygwin 1.5.x bugs
27630         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27631         * lib/rename.c (rpl_rename): Work around them.
27632         * modules/rename (Depends-on): Add same-inode.
27633
27634         rename: fix Solaris 10 bug
27635         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27636         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27637         was the only bug.
27638
27639         rename: fix Solaris 9 bug
27640         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27641         on non-directory.  Avoid calling exit.
27642         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27643         strdup.
27644         * modules/rename-tests (Depends-on): Drop lstat.
27645         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27646         (gl_PREREQ_RENAME): Delete unused macro.
27647
27648         rename-dest-slash: fix NetBSD bug
27649         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27650         links.
27651         * modules/rename-dest-slash (Depends-on): Add same-inode.
27652
27653         rename-tests: new test, exposes several platform bugs
27654         * modules/rename-tests: New file.
27655         * tests/test-rename.h: Likewise.
27656         * tests/test-rename.c: Likewise.
27657         * doc/posix-functions/rename.texi (rename): Improve documentation,
27658         including bugs that will eventually be fixed in gnulib.
27659
27660 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27661
27662         * lib/uname.c: Include <stdlib.h>
27663         (uname): Assume version info is available.
27664
27665 2009-10-02  Jim Meyering  <meyering@redhat.com>
27666
27667         gnu-web-doc-update: correct --help output
27668         * build-aux/gnu-web-doc-update: Make --help output relevant.
27669
27670         gnu-web-doc-update: add standard options
27671         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27672
27673         gnu-web-doc-update: New module.
27674         Use this script to automatically update the on-line web documentation
27675         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27676         * modules/gnu-web-doc-update: New file, from coreutils.
27677         * build-aux/gnu-web-doc-update: New script.
27678
27679 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27680
27681         link: LoadLibrary is not needed.
27682         * lib/link.c: Use GetModuleHandle.
27683
27684 2009-10-01  Eric Blake  <ebb9@byu.net>
27685
27686         getopt: bump serial number
27687         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27688         change.
27689
27690         tests: tighten link, rmdir, and remove tests
27691         * tests/test-link.h (includes): No need to use <config.h> here.
27692         Clean up if directory hard link was created, otherwise test for
27693         trailing '.'.
27694         * tests/test-linkat.c (main): Simplify.
27695         * tests/test-remove.c (main): Enhance test for trailing '.'.
27696         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27697
27698 2009-10-01  Jim Meyering  <meyering@redhat.com>
27699
27700         maint.mk: requiring "make major" was annoying, for a "minor" release.
27701         What is intended is "stable", to contrast with alpha and beta,
27702         so require "make stable", not "make major".
27703         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27704         (get_tool_versions): Likewise.
27705         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27706
27707 2009-09-30  Ben Pfaff  <blp@gnu.org>
27708
27709         Fix broken build of replacement for Windows tmpfile().
27710         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27711         flags argument added along with the 'mkostemp' module.
27712
27713 2009-09-28  Bruno Haible  <bruno@clisp.org>
27714
27715         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27716         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27717         to 'remove_elt'.
27718         (gl_list_remove): Update.
27719         * lib/gl_list.c (gl_list_remove): Update.
27720         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27721         to 'remove_elt'.
27722         (gl_oset_remove): Update.
27723         * lib/gl_list.c (gl_oset_remove): Update.
27724         Reported by Eric Blake.
27725
27726 2009-09-28  Eric Blake  <ebb9@byu.net>
27727
27728         doc: mention yet more cygwin 1.7 status
27729         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27730         cygwin.
27731         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27732         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27733
27734         argp: fix test failure
27735         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27736         that are not upper-case.  Pass correct range to tolower.
27737
27738 2009-09-27  Jim Meyering  <meyering@redhat.com>
27739
27740         test-yesno: work around sparc-dash here-document infelicity
27741         Without this change, the literal \177 byte in a here document
27742         would make dash 0.5.5.1-3 access uninitialized memory.
27743         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27744         Instead, use a marker, "@", and filter through tr to create the desired
27745         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27746
27747 2009-09-27  Bruno Haible  <bruno@clisp.org>
27748
27749         Disable untested support for new flavours of ACLs on AIX.
27750         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27751         progress.
27752         * lib/set-mode-acl.c (qset_acl): Likewise.
27753
27754 2008-12-07  Bruno Haible  <bruno@clisp.org>
27755
27756         Add support for new flavours of ACLs on AIX. (Untested.)
27757         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27758         (file_has_acl): Add support for newer AIX.
27759         * lib/set-mode-acl.c (qset_acl): Likewise.
27760         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27761         Rainer Tammer <tammer@tammer.net>.
27762
27763 2009-09-26  Eric Blake  <ebb9@byu.net>
27764
27765         argp: fix compilation of getopt
27766         * lib/getopt.in.h (includes): Use different guard than glibc.
27767         Reported by Sergey Poznyakoff.
27768
27769         doc: mention more cygwin 1.7 status
27770         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27771         bug.
27772         * doc/posix-functions/execl.texi (execl): Likewise.
27773         * doc/posix-functions/execle.texi (execle): Likewise.
27774         * doc/posix-functions/execlp.texi (execlp): Likewise.
27775         * doc/posix-functions/execv.texi (execv): Likewise.
27776         * doc/posix-functions/execve.texi (execve): Likewise.
27777         * doc/posix-functions/execvp.texi (execvp): Likewise.
27778         * doc/glibc-functions/canonicalize_file_name.texi
27779         (canonicalize_file_name): Cygwin 1.7 now provides this.
27780         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27781         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27782         on AT_SYMLINK_NOFOLLOW.
27783
27784 2009-09-24  Eric Blake  <ebb9@byu.net>
27785
27786         test-linkat: make test more robust
27787         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27788
27789         getopt: fix inclusion guards for cygwin
27790         * modules/getopt-posix (Depends-on): Add include-next.
27791         (Makefile.am): Substitute more items in replacement header.
27792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27793         <getopt.h>.
27794         * lib/getopt.in.h (includes): Use split inclusion guard, and
27795         prefer <getopt.h> over include <unistd.h> when one is present.
27796         (option): Also override name of 'struct option'.
27797
27798         same-inode: revert prior change; it is not yet ready
27799         * NEWS: Undo mention of this change.
27800         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27801         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27802         * lib/cycle-check.c (cycle_check): Likewise.
27803         * lib/same.c (same_name): Likewise.
27804         * lib/at-func2.c (at_func2): Likewise.
27805
27806 2009-09-23  Eric Blake  <ebb9@byu.net>
27807
27808         linkat: new module
27809         * modules/linkat: New file.
27810         * lib/at-func2.c (at_func2): Likewise.
27811         * lib/linkat.c (linkat): Likewise.
27812         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27813         * lib/openat-priv.h (at_func2): Add declaration.
27814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27815         * modules/unistd (Makefile.am): Substitute them.
27816         * lib/unistd.in.h (linkat): Declare it.
27817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27818         * doc/posix-functions/linkat.texi (linkat): Likewise.
27819         * doc/posix-functions/link.texi (link): Tweak wording.
27820         * tests/test-link.c (main): Move guts...
27821         * tests/test-link.h (test_link): ...into new file.
27822         * modules/linkat-tests: New test.
27823         * tests/test-linkat.c: Likewise.
27824         * modules/link-tests (Files): Ship new file.
27825         (Depends-on): Add stdbool.
27826
27827         dirname: add library-safe mdir_name
27828         * lib/dirname.h (mdir_name): New prototype.
27829         * lib/dirname.c (dir_name): Move guts...
27830         (mdir_name): ...to new function that avoids xalloc_die.
27831
27832         fchdir: another mingw fix
27833         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27834         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27835         on mingw (where it has not yet been ported), and make it optional
27836         elsewhere.
27837         (_gl_register_fd): Use it.
27838
27839         same-inode: make SAME_INODE tri-state, to port to mingw
27840         * NEWS: Mention this change.
27841         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27842         st_ino always being 0.
27843         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27844         * lib/cycle-check.c (cycle_check): Likewise.
27845         * lib/same.c (same_name): Likewise.
27846
27847         lstat: avoid mingw compilation error
27848         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27849         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27850         lstat ourselves.
27851         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27852         was adequate.
27853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27854         the checks for lstat.
27855         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27856
27857         link: fix test failure on Solaris 9
27858         * lib/link.c (rpl_link): Don't assume link will catch bogus
27859         trailing slash on source.
27860
27861         test-symlinkat: enhance test
27862         * tests/test-readlink.c (main): Move guts...
27863         * tests/test-readlink.h (test_readlink): ...into new file.
27864         * tests/test-symlink.c (main): Move guts...
27865         * tests/test-symlink.h (test_symlink): ...into new file.
27866         * tests/test-symlinkat.c (main): Use new files for further
27867         coverage.
27868         (do_symlink, do_readlink): New helper functions.
27869         * modules/symlink-tests (Files): Ship new file.
27870         (Depends-on): Add stdbool.
27871         * modules/readlink-tests (Files): Ship new file.
27872         (Depends-on): Add stdbool.
27873         * modules/symlinkat-tests (Files): Use new files.
27874
27875 2009-09-23  Eric Blake  <ebb9@byu.net>
27876
27877         readlink: document portability issue with symlink length
27878         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27879         systems have bogus st_size on symlinks, and mention the
27880         areadlink-with-size module.
27881         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27882         * doc/posix-functions/readlink.texi (readlink): Mention the
27883         areadlink module, and ERANGE failure.
27884         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27885         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27886
27887         readlink: fix Solaris 9 bug with trailing slash
27888         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27889         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27890         * doc/posix-functions/readlink.texi (readlink): Document this.
27891         * modules/readlink-tests: New test.
27892         * tests/test-readlink.c: Likewise.
27893
27894         readlink: fix cygwin 1.5.x bug with return type
27895         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27896         * lib/unistd.in.h (readlink): Use ssize_t.
27897         * lib/readlink.c (readlink): Likewise.
27898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27899         * modules/unistd (Makefile.am): Substitute it.
27900         * lib/unistd.in.h (readlink): Declare replacement.
27901         * doc/posix-functions/readlink.texi (readlink): Document this.
27902
27903         symlink: use throughout gnulib
27904         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27905         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27906         symlink is not used.
27907         * modules/symlinkat (Depends-on): Add symlink.
27908         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27909         * modules/canonicalize-tests (Depends-on): Likewise.
27910         * modules/lstat-tests (Depends-on): Likewise.
27911         * modules/openat-tests (Depends-on): Likewise.
27912         * modules/remove-tests (Depends-on): Likewise.
27913         * modules/rmdir-tests (Depends-on): Likewise.
27914         * modules/unlink-tests (Depends-on): Likewise.
27915         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27916         * tests/test-canonicalize.c (symlink): Likewise.
27917         * tests/test-fstatat.c (symlink): Likewise.
27918         * tests/test-lstat.c (symlink): Likewise.
27919         * tests/test-remove.c (symlink): Likewise.
27920         * tests/test-rmdir.c (symlink): Likewise.
27921         * tests/test-unlink.c (symlink): Likewise.
27922         * tests/test-unlinkat.c (symlink): Likewise.
27923
27924         symlink: new module, for Solaris 9 bug
27925         * modules/symlink: New file.
27926         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27927         * lib/symlink.c: Likewise.
27928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27929         * modules/unistd (Makefile.am): Substitute them.
27930         * lib/unistd.in.h (symlink): Declare replacement.
27931         * MODULES.html.sh (File system functions): Mention it.
27932         * doc/posix-functions/symlink.texi (symlink): Likewise.
27933         * modules/symlink-tests: New test.
27934         * tests/test-symlink.c: Likewise.
27935
27936 2009-09-23  Bruno Haible  <bruno@clisp.org>
27937
27938         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27939         when needed.
27940         Test case: gnulib-tool --import --with-tests atexit inttypes.
27941         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27942
27943 2009-09-23  Bruno Haible  <bruno@clisp.org>
27944
27945         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27946         subcommand, not in a subshell.
27947
27948 2009-09-22  Eric Blake  <ebb9@byu.net>
27949
27950         unistd: sort replacement declarations
27951         * lib/unistd.in.h: Sort declarations.
27952
27953         open, openat: minor optimization
27954         * lib/open.c (open): If open succeeded, len is non-zero.
27955         * lib/openat.c (rpl_openat): Likewise.
27956
27957         link-follow: ensure correct result
27958         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27959         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27960         distinguish between possible failures.
27961
27962 2009-09-21  Eric Blake  <ebb9@byu.net>
27963
27964         fts: avoid compiler warning
27965         * lib/fts.c (dirent_inode_sort_may_be_useful)
27966         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27967
27968 2009-09-19  Bruno Haible  <bruno@clisp.org>
27969
27970         * lib/progreloc.c (canonicalize_file_name): New declaration.
27971
27972 2009-09-19  Eric Blake  <ebb9@byu.net>
27973
27974         link: fix quoting
27975         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27976
27977         openat: fix openat bugs on Solaris 9
27978         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27979         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27980         * modules/openat (Depends-on): Add open.
27981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27982         * modules/fcntl-h (Makefile.am): Substitute it.
27983         * lib/fcntl.in.h (openat): Declare replacement.
27984         * doc/posix-functions/openat.texi (openat): Document this.
27985
27986         openat: move fstatat and unlinkat into correct files
27987         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27988         compiled.
27989         * lib/openat.c (fstatat, unlinkat): Move...
27990         * lib/fstatat.c (fstatat): ...into correct files.
27991         * lib/unlinkat.c (unlinkat): Likewise.
27992
27993         openat: fix unlinkat bugs on Solaris 9
27994         * lib/unlinkat.c (unlinkat): New file.
27995         * modules/openat (Depends-on): Add unlink.
27996         (Files): Distribute it.
27997         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27998         trailing slash behavior is broken.
27999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28000         * modules/unistd (Makefile.am): Substitute it.
28001         * lib/unistd.in.h (unlinkat): Declare replacement.
28002         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28003
28004         openat: fix fstatat bugs on Solaris 9
28005         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28006         stat.
28007         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28008
28009         test-unlinkat: enhance test, to expose Solaris 9 bug
28010         * tests/test-unlink.c (main): Factor guts...
28011         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28012         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28013         * tests/test-rmdir.c (main): Adjust caller.
28014         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28015         (unlinker): New helper function.
28016         (rmdirat): Enhance check.
28017         * modules/rmdir-tests (Depends-on): Add stdbool.
28018         * modules/unlink-tests (Depends-on): Likewise.
28019         (Files): Add test-unlink.h.
28020         * modules/openat-tests (Files): Likewise.
28021         (Depends-on): Add unlinkdir.
28022
28023         test-fstatat: new test, to expose Solaris 9 bugs
28024         * tests/test-stat.c (main): Factor guts...
28025         * tests/test-stat.h (test_stat_func): ...into new file.
28026         * tests/test-lstat.c (main): Factor guts...
28027         * tests/test-lstat.h (test_lstat_func): ...into new file.
28028         * tests/test-fstatat.c: New file.
28029         * modules/stat-tests (Files): Add test-stat.h.
28030         * modules/lstat-tests (Files): Add test-lstat.h.
28031         (Depends-on): Add stdbool.
28032         * modules/openat-tests (Depends-on): Add pathmax.
28033         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28034         (Makefile.am): Run new test.
28035
28036         remove: new module, for mingw and Solaris 9 bugs
28037         * modules/remove: New file.
28038         * lib/remove.c: Likewise.
28039         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28041         * modules/stdio (Makefile.am): Use them.
28042         * lib/stdio.in.h (remove): Declare replacement.
28043         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28044         * doc/posix-functions/remove.texi (remove): Likewise.
28045         * modules/remove-tests: New test.
28046         * tests/test-remove.c: Likewise.
28047
28048         unlink: new module, for Solaris 9 bug
28049         * modules/unlink: New file.
28050         * lib/unlink.c: Likewise.
28051         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28053         * modules/unistd (Makefile.am): Use them.
28054         * lib/unistd.in.h (stat): Declare replacement.
28055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28056         * doc/posix-functions/unlink.texi (unlink): Likewise.
28057         * modules/unlink-tests: New test.
28058         * tests/test-unlink.c: Likewise.
28059
28060         lstat: fix Solaris 9 bug
28061         * lib/lstat.c (lstat): Also check for trailing slash on
28062         non-symlink, non-directories.  Use stat module to simplify logic.
28063         * doc/posix-functions/lstat.texi (lstat): Document it.
28064         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28065         (configure.ac): Check for symlink.
28066         * tests/test-lstat.c (main): Add more tests.
28067
28068         stat: add as dependency to other modules
28069         * modules/chown (Depends-on): Add stat.
28070         * modules/euidaccess (Depends-on): Likewise.
28071         * modules/fchdir (Depends-on): Likewise.
28072         * modules/isdir (Depends-on): Likewise.
28073         * modules/link (Depends-on): Likewise.
28074         * modules/lstat (Depends-on): Likewise.
28075         * modules/mkdir-p (Depends-on): Likewise.
28076         * modules/modechange (Depends-on): Likewise.
28077         * modules/open (Depends-on): Likewise.
28078         * modules/readlink (Depends-on): Likewise.
28079         * modules/same (Depends-on): Likewise.
28080
28081         stat: fix Solaris 9 bug
28082         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28083         slash.
28084         * lib/stat.c (rpl_stat): Work around it.
28085         * doc/posix-functions/stat.texi (stat): Update documentation.
28086
28087         stat: new module, for mingw bug
28088         * modules/stat: New file.
28089         * lib/stat.c: Likewise.
28090         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28092         * modules/sys_stat (Makefile.am): Use them.
28093         * lib/sys_stat.in.h (stat): Declare replacement.
28094         * lib/openat.c (fstatat): Deal with lstat and stat being function
28095         macros.
28096         * modules/openat (Depends-on): Add inline.
28097         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28098         * doc/posix-functions/stat.texi (stat): Likewise.
28099         * modules/stat-tests: New test.
28100         * tests/test-stat.c: Likewise.
28101
28102 2009-09-19  Jim Meyering  <meyering@redhat.com>
28103
28104         syntax-check: detect unnecessary inclusion of canonicalize.h
28105         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28106
28107 2009-09-19  Eric Blake  <ebb9@byu.net>
28108
28109         canonicalize-lgpl: adjust clients to use correct header
28110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28111         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28112         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28113         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28114         * lib/progreloc.c (includes): Likewise.
28115
28116 2009-09-19  Jim Meyering  <meyering@redhat.com>
28117
28118         test-posixtm.c: correct a comment
28119         * tests/test-posixtm.c: Correct first-line comment.
28120         Spotted by Eric Blake.
28121
28122 2009-09-16  Jim Meyering  <meyering@redhat.com>
28123
28124         posixtm-tests: make T const-correct; add a test case
28125         * tests/test-posixtm.c (T): Declare const.
28126         Add a test for -(2^31+1).
28127         Remove useless can-succeed-only-in-2002 test.
28128
28129         posixtm-tests: adjust the sole failing test
28130         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28131         expected output matches what mktime now produces.  Cross-checked via
28132         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28133
28134         posixtm: move #ifdef'd tests into a new module
28135         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28136         * tests/test-posixtm.c: ... this new file.
28137         * modules/posixtm-tests: New module.
28138
28139 2009-09-19  Eric Blake  <ebb9@byu.net>
28140
28141         openat: simplify use of at-func.c
28142         * lib/at-func.c (includes): Include prerequisites here, to
28143         simplify requirements on client files.
28144         * lib/openat-priv.h: Add double-inclusion guard.
28145         * lib/faccessat.c (includes): Simplify.
28146         * lib/fchmodat.c (includes): Likewise.
28147         * lib/fchownat.c (includes): Likewise.
28148         * lib/mkdirat.c (includes): Likewise.
28149         * lib/mkfifoat.c (includes): Likewise.
28150         * lib/symlinkat.c (includes): Likewise.
28151
28152         openat: allow return of fd 0
28153         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28154         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28155         unistd-safer.
28156         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28157         <fcntl.h>; this module does not leak fds.
28158         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28159         must be allowed to return 0, leaving openat_safer to add the
28160         safety.
28161         (openat_permissive): Avoid writing to just-opened fd 2 if
28162         restoring the current directory fails.
28163         * lib/openat-die.c (openat_restore_fail): Add comment.
28164         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28165         (save_cwd): Guarantee safe fd, but without use of open_safer.
28166         * tests/test-openat.c: New test.
28167         * modules/openat-tests (Files, Makefile.am): Distribute and build
28168         new file.
28169
28170         relocatable-prog-wrapper: fix build
28171         * modules/relocatable-prog-wrapper (Files): Update name of
28172         canonicalize m4 file, broken on 2009-09-17.
28173         Reported by emad hajjar <aleppos@hotmail.com>.
28174
28175 2009-09-19  Bruno Haible  <bruno@clisp.org>
28176
28177         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28178         * lib/safe-alloc.c: Likewise.
28179         Reported by Ian Beckwith <ianb@erislabs.net>.
28180
28181 2009-09-18  Bruno Haible  <bruno@clisp.org>
28182
28183         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28184         Reported by <erobles@sensacd.com.mx>.
28185
28186 2009-09-17  Eric Blake  <ebb9@byu.net>
28187
28188         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28189         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28190         slashes when checking if last component is missing.
28191         * tests/test-canonicalize.c (main): Test this.
28192
28193         canonicalize, canonicalize-lgpl: honor // if distinct from /
28194         * modules/canonicalize (Files): Add double-slash-root.m4.
28195         * modules/canonicalize-lgpl (Files): Likewise.
28196         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28197         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28198         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28199         fallback definition.
28200         (canonicalize_filename_mode): Use it to protect //.
28201         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28202         (__realpath): Likewise.
28203         * tests/test-canonicalize.c (main): Test this.
28204         * tests/test-canonicalize-lgpl.c (main): Likewise.
28205         * modules/canonicalize-tests (Depends-on): Add same-inode.
28206         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28207
28208         canonicalize-lgpl: fix glibc bug with trailing slash
28209         * m4/canonicalize-lgpl.m4: Move contents...
28210         * m4/canonicalize.m4: ...here.
28211         (gl_CANONICALIZE_LGPL): Factor realpath check...
28212         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28213         glibc 2.3.5 bug, fixed 2005-04-27.
28214         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28215         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28216         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28217         * modules/canonicalize-lgpl (Files): Manage file rename.
28218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28219         * modules/stdlib (Makefile.am): Substitute witness.
28220         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28221         is needed.
28222         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28223         replacement is required.
28224         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28225         * doc/glibc-functions/canonicalize_file_name.texi
28226         (canonicalize_file_name): Document this.
28227         * doc/posix-functions/realpath.texi (realpath): Likewise.
28228
28229         canonicalize-lgpl: reject non-directory with trailing slash
28230         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28231         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28232         catches failures in glibc 2.3.5.
28233         * tests/test-canonicalize.c (main): Likewise.
28234
28235         canonicalize-lgpl: use native realpath if it works
28236         * lib/canonicalize-lgpl.c (realpath): Guard with
28237         FUNC_REALPATH_WORKS.
28238         * lib/stdlib.in.h (realpath): Make declaration optional based on
28239         HAVE_REALPATH.
28240         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28241         native realpath works.
28242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28243         * modules/stdlib (Makefile.am): Substitute witness.
28244
28245         canonicalize, canonicalize-lgpl: use <stdlib.h>
28246         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28247         (Include): Mention <stdlib.h>.
28248         (configure.ac): Mention functions we provide.
28249         * modules/canonicalize (configure.ac): Likewise.
28250         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28251         realpath if canonicalize_file_name is missing.
28252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28253         * modules/stdlib (Makefile.am): Substitute witnesses.
28254         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28255         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28256         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28257         * NEWS: Document this.
28258         * doc/glibc-functions/canonicalize_file_name.texi
28259         (canonicalize_file_name): Likewise.
28260         * doc/posix-functions/realpath.texi (realpath): Likewise.
28261         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28262
28263         test-canonicalize: consolidate into single C program
28264         * tests/test-canonicalize.sh: Delete; move setup into...
28265         * tests/test-canonicalize.c (main): ...the program, making it
28266         easier to run in debugger.  Add some tests.
28267         * modules/canonicalize-tests (Files): Remove unused file.
28268         (Depends-on): Add progname.
28269         (configure.ac, Makefile.am): Simplify.
28270
28271         test-canonicalize-lgpl: consolidate into single C program
28272         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28273         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28274         easier to run in debugger.  Add some tests.
28275         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28276         (configure.ac, Makefile.am): Simplify.
28277
28278         canonicalize: avoid resolvepath
28279         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28280         unnecessary checks.
28281         * lib/canonicalize.c (includes): Simplify.
28282         (canonicalize_file_name): Drop resolvepath implementation.
28283         * modules/canonicalize (Depends-on): Drop filenamecat.
28284
28285         canonicalize: don't lose errno
28286         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28287         over calls to free.
28288
28289         canonicalize: simplify errno handling
28290         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28291         assignment.
28292
28293         canonicalize, canonicalize-lgpl: update module dependencies
28294         * modules/canonicalize (Depends-on): Add extensions, lstat,
28295         pathmax, stdlib.
28296         (Files): Drop pathmax.h.
28297         (configure.ac): Adjust macro name.
28298         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28299         lstat, stdlib, sys_stat.
28300         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28301         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28302         extensions.
28303         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28304         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28305         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28306         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28307         declaration, if available.
28308         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28309         we can rely on the readlink module.
28310         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28311         (includes): Use <unistd.h> unconditionally.
28312
28313 2009-09-17  Eric Blake  <ebb9@byu.net>
28314
28315         maint: make Include sections of modules consistent
28316         * modules/alloca: Use only header name; no need to list #include.
28317         * modules/alloca-opt: Likewise.
28318         * modules/arpa_inet: Likewise.
28319         * modules/canon-host: Likewise.
28320         * modules/configmake: Likewise.
28321         * modules/dirent: Likewise.
28322         * modules/eealloc: Likewise.
28323         * modules/environ: Likewise.
28324         * modules/fchdir: Likewise.
28325         * modules/fcntl: Likewise.
28326         * modules/fcntl-h: Likewise.
28327         * modules/gethrxtime: Likewise.
28328         * modules/gettime: Likewise.
28329         * modules/ignore-value: Likewise.
28330         * modules/inet_ntop: Likewise.
28331         * modules/inet_pton: Likewise.
28332         * modules/inttypes: Likewise.
28333         * modules/isnand-nolibm: Likewise.
28334         * modules/isnanf-nolibm: Likewise.
28335         * modules/mbchar: Likewise.
28336         * modules/mbfile: Likewise.
28337         * modules/mbiter: Likewise.
28338         * modules/mbuiter: Likewise.
28339         * modules/netdb: Likewise.
28340         * modules/netinet_in: Likewise.
28341         * modules/nproc: Likewise.
28342         * modules/pagealign_alloc: Likewise.
28343         * modules/poll: Likewise.
28344         * modules/printf-frexp: Likewise.
28345         * modules/pthread: Likewise.
28346         * modules/putenv: Likewise.
28347         * modules/random_r: Likewise.
28348         * modules/relocatable-prog: Likewise.
28349         * modules/search: Likewise.
28350         * modules/select: Likewise.
28351         * modules/selinux-h: Likewise.
28352         * modules/settime: Likewise.
28353         * modules/signal: Likewise.
28354         * modules/size_max: Likewise.
28355         * modules/socklen: Likewise.
28356         * modules/ssize_t: Likewise.
28357         * modules/stdarg: Likewise.
28358         * modules/stdbool: Likewise.
28359         * modules/stddef: Likewise.
28360         * modules/stdint: Likewise.
28361         * modules/stdio: Likewise.
28362         * modules/stdlib: Likewise.
28363         * modules/string: Likewise.
28364         * modules/strings: Likewise.
28365         * modules/sys_file: Likewise.
28366         * modules/sys_ioctl: Likewise.
28367         * modules/sys_select: Likewise.
28368         * modules/sys_socket: Likewise.
28369         * modules/sys_stat: Likewise.
28370         * modules/sys_time: Likewise.
28371         * modules/sys_times: Likewise.
28372         * modules/sys_utsname: Likewise.
28373         * modules/sys_wait: Likewise.
28374         * modules/sysexits: Likewise.
28375         * modules/time: Likewise.
28376         * modules/times: Likewise.
28377         * modules/tmpfile: Likewise.
28378         * modules/trim: Likewise.
28379         * modules/unistd: Likewise.
28380         * modules/wchar: Likewise.
28381         * modules/wctype: Likewise.
28382
28383 2009-09-17  Bruno Haible  <bruno@clisp.org>
28384
28385         Make getdate.y compile on QNX and NetBSD 5 / i386.
28386         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28387         TIME_T_FITS_IN_LONG_INT.
28388         * lib/getdate.y (long_time_t): New type.
28389         (relative_time): Change type of 'seconds' field to long_time_t.
28390         (get_date): Update types of local variables. Check against overflow
28391         during conversion from long_time_t to time_t.
28392         Reported by Matt Kraai <kraai@ftbfs.org>
28393         and Hasso Tepper <hasso@netbsd.org>.
28394
28395 2009-09-17  Bruno Haible  <bruno@clisp.org>
28396
28397         * modules/COPYING: Update copyright years.
28398         * modules/README: Likeiwse.
28399         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28400         Reported by Ian Beckwith <ianb@erislabs.net>.
28401
28402 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28403
28404         * users.txt: Update references for gnuit package.
28405
28406 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28407
28408         * m4/getdelim.m4: Fix typo in copyright line.
28409
28410 2009-09-17  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/atoll.c: Use the standard header with GPL copyright.
28413         * lib/argz.in.h: Likewise.
28414         * lib/glob.c: Likewise.
28415         * lib/glob-libc.h: Likewise.
28416         * lib/random_r.c: Likewise.
28417         * lib/siglist.h: Likewise.
28418         * lib/strsignal.c: Likewise.
28419         Reported by Ian Beckwith <ianb@erislabs.net>.
28420
28421 2009-09-17  Eric Blake  <ebb9@byu.net>
28422
28423         rmdir: ensure correct dependency order
28424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28425
28426 2009-09-17  Bruno Haible  <bruno@clisp.org>
28427
28428         Disable assertion that fails on NetBSD 5 / i386.
28429         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28430         Reported by Sam Steingold <sds@gnu.org>
28431         and Hasso Tepper <hasso@netbsd.org>.
28432
28433 2009-09-16  Eric Blake  <ebb9@byu.net>
28434
28435         unlinkdir: port to mingw
28436         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28437         on which no one can unlink a directory.
28438
28439         stdlib: sort witness names
28440         * modules/stdlib (Makefile.am): Sort replacements.
28441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28442         * lib/stdlib.in.h: Likewise.
28443
28444         parse-duration-tests: avoid link failure
28445         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28446         LIBINTL.
28447         Reported by Tom G. Christensen.
28448
28449         openat-tests: ensure unlinkat behaves like rmdir
28450         * tests/test-rmdir.c (main): Factor guts...
28451         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28452         * modules/rmdir-tests (Files): Ship new file.
28453         * modules/openat-tests: New test.
28454         * tests/test-unlinkat.c: Likewise.
28455
28456         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28457         * modules/rmdir-errno (Status, Notice): Now obsolete.
28458
28459         rmdir: work around cygwin 1.5.x and mingw bugs
28460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28461         * lib/rmdir.c (rmdir): Work around it.
28462         * modules/rmdir (Status, Notice): No longer obsolete.
28463         (Files): Add dos.m4.
28464         (Depends-on): Add unistd.
28465         (configure.ac): Set witnesses.
28466         (License): Relax to LGPLv2+.
28467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28468         * modules/unistd (Makefile.am): Substitute witnesses.
28469         * lib/unistd.in.h (rmdir): Declare replacement.
28470         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28471         * modules/rmdir-tests: New tests.
28472         * tests/test-rmdir.c: Likewise.
28473
28474 2009-09-15  Eric Blake  <ebb9@byu.net>
28475
28476         fchdir: improve use of replacement functions
28477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28479         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28480         REPLACE_CLOSEDIR.
28481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28482         * modules/sys_stat (Makefile.am): Substitute correct witness.
28483         * modules/dirent (Makefile.am): Likewise.
28484         * modules/unistd (Makefile.am): Likewise.
28485         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28486         * lib/unistd.in.h (dup): Likewise.
28487         * lib/sys_stat.in.h (fstat): Likewise.
28488
28489         maint: ignore gnulib-tool temp files
28490         * .gitignore: Ignore files created during gnulib-tool --test.
28491
28492 2009-09-13  Jim Meyering  <meyering@redhat.com>
28493
28494         posixtm: don't reject a time that specify "60" as the number of seconds
28495         * lib/posixtm.c (posixtime): The code to reject invalid dates
28496         would also reject a time specified with the .60 suffix.
28497         But POSIX allows that, in order to accommodate leap seconds.
28498         So don't reject it.
28499         (main): Adjust tests accordingly.
28500         * modules/posixtm (Depends-on): Add stpcpy.
28501
28502 2009-09-11  Jim Meyering  <meyering@redhat.com>
28503
28504         announce-gen: include [$release_type] in emitted Subject:
28505         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28506         e.g., [stable] in the emitted Subject: line.
28507
28508 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28509
28510         Remove obsolete macros from several modules.
28511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28512         obsolete Autoconf macros with their modern counterparts.
28513         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28514         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28516         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28517         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28520         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28521         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28522         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28523         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28525         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28526         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28527         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28529         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28530         * m4/time_r.m4 (gl_TIME_R): Likewise.
28531         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28532         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28534
28535         Fix copyright header in build-aux scripts.
28536         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28537         recommendation.
28538         * build-aux/ncftpput-ftp: Likewise.
28539         * build-aux/update-copyright: Likewise.
28540
28541 2009-09-09  Eric Blake  <ebb9@byu.net>
28542
28543         test-link: allow Linux choice of errno
28544         * tests/test-link.c (main): Relax test for alternate error.
28545
28546         strndup: fix improper m4 caching
28547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28548         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28549         (gl_PREREQ_STRNDUP): Delete.
28550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28551         * modules/string (Makefile.am): Substitute it.
28552         * lib/string.in.h (strndup): Modernize prototype.
28553
28554         getcwd: port to mingw
28555         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28556         different from the POSIX assumptions made throughout the getcwd
28557         module; fortunately, the mingw getcwd does not need replacement.
28558         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28559         * modules/getcwd-tests: New test.
28560         * tests/test-getcwd.c: Likewise.
28561
28562         link: fix platform bugs
28563         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28564         * lib/link.c (link): Work around them.  Fix related mingw bug.
28565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28566         * modules/unistd (Makefile.am): Substitute it.
28567         * lib/unistd.in.h (link): Declare replacement.
28568         * doc/posix-functions/link.texi (link): Document this.
28569         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28570
28571         test-link: consolidate into single C program, test more cases
28572         * tests/test-link.sh: Delete.
28573         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28574         at least Cygwin and Solaris.
28575         * modules/link-tests (Files): Remove unused file.
28576         (Depends-on): Add errno, sys_stat.
28577         (Makefile.am): Simplify.
28578
28579 2009-09-08  Bruno Haible  <bruno@clisp.org>
28580
28581         Work around towlower, towupper bug on mingw.
28582         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28583         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28584         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28585         * doc/posix-functions/towupper.texi: Likewise.
28586         Reported by Eric Blake.
28587
28588 2009-09-08  Jim Meyering  <meyering@redhat.com>
28589
28590         build: don't try to run autoheader if we don't use it
28591         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28592         is not used in configure.ac.
28593
28594 2009-09-08  Eric Blake  <ebb9@byu.net>
28595
28596         euidaccess: fix compilation error
28597         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28598
28599         rawmemchr: relax license
28600         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28601         okay.
28602         Reported by Jim Meyering.
28603
28604         mkfifoat: new module
28605         * modules/mkfifoat: New file.
28606         * lib/mkfifoat.c: Likewise.
28607         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28609         * modules/sys_stat (Makefile.am): Use them.
28610         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28611         * MODULES.html.sh (File system functions): Mention module.
28612         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28613         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28614         * modules/mkfifoat-tests: New test.
28615         * tests/test-mkfifoat.c: Likewise.
28616
28617         strchrnul: relax license
28618         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28619         okay.
28620         Reported by Jim Meyering.
28621
28622 2009-09-08  Eric Blake  <ebb9@byu.net>
28623
28624         fstatat: fix compilation on Solaris
28625         * lib/fstatat.c (includes): Add fcntl.h.
28626         Reported by Pádraig Brady.
28627
28628 2009-09-07  Eric Blake  <ebb9@byu.net>
28629
28630         rename: modernize replacement
28631         * modules/rename (Depends-on): Add stdio.
28632         (configure.ac): Declare witness.
28633         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28634         stdio take care of replacement.
28635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28636         * modules/stdio (Makefile.am): Substitute them.
28637         * lib/stdio.in.h (rename): Declare replacement.
28638         * lib/rename.c (includes): Allow cross-compilation to non-windows
28639         machines.
28640         * doc/posix-functions/rename.texi (rename): Improve
28641         documentation.
28642
28643         stdio: sort witness names
28644         * modules/stdio (Makefile.am): Sort replacements.
28645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28646         * lib/stdio.in.h: Likewise.
28647
28648         getcwd: minor cleanups
28649         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28650         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28651
28652         openat: provide more convenience names
28653         * modules/faccessat (configure.ac): Add C witness.
28654         * lib/unistd.in.h (readlinkat): Fix typo.
28655         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28656         convenience wrappers.
28657         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28658         wrappers in syntax checks.
28659
28660 2009-09-06  Eric Blake  <ebb9@byu.net>
28661
28662         doc: fix comments in recent patches
28663         * lib/faccessat.c: Mention correct function.
28664         * lib/fchmodat.c: Likewise.
28665         * lib/fchownat.c: Likewise.
28666         * lib/symlinkat.c: Likewise.
28667         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28668         constants.
28669
28670         faccessat, symlinkat: continue cleanup of previous patch
28671         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28672         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28673         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28675         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28676         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28677         set.
28678
28679 2009-09-06  Bruno Haible  <bruno@clisp.org>
28680
28681         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28682         (fstatat): Declare if GNULIB_FSTATAT is set.
28683         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28684         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28685         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28686         * modules/fcntl-h (Files): Remove m4/openat.m4.
28687         * modules/sys_stat (Files): Remove m4/openat.m4.
28688         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28689         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28690         * modules/unistd (Files): Remove m4/openat.m4.
28691         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28692         GNULIB_OPENAT.
28693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28694         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28695         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28696         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28697         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28698         gl_OPENAT_DEFAULTS.
28699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28700         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28701         Don't require gl_OPENAT_DEFAULTS.
28702         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28703         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28704         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28705         (gl_OPENAT_DEFAULTS): Remove macro.
28706
28707 2009-09-06  Bruno Haible  <bruno@clisp.org>
28708
28709         * modules/openat (configure.ac): Remove unneeded witness.
28710
28711 2009-09-06  Bruno Haible  <bruno@clisp.org>
28712
28713         Set errno to ENOSYS when a function is entirely unsupported.
28714         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28715         EOPNOTSUPP.
28716         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28717         * modules/chown (Depends-on): Remove errno.
28718
28719 2009-09-06  Bruno Haible  <bruno@clisp.org>
28720
28721         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28722
28723 2009-09-06  Bruno Haible  <bruno@clisp.org>
28724
28725         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28726
28727 2009-09-06  Ben Pfaff  <blp@gnu.org>
28728             Bruno Haible  <bruno@clisp.org>
28729
28730         Work around a glibc bug in strtok_r.
28731         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28732         Undefine if UNDEFINE_STRTOK_R is set.
28733         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28735         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28736         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28737         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28738         UNDEFINE_STRTOK_R.
28739         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28740
28741 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28742
28743         exclude: minor fix
28744         * lib/exclude.c: Include wctype.h
28745
28746 2009-09-06  Akim Demaille  <demaille@gostai.com>
28747
28748         bootstrap: improve error message
28749         * build-aux/bootstrap (find_tool): Upon failure, report the list
28750         of candidates.
28751         Honor the initial value of the envvar.
28752
28753 2009-09-05  Eric Blake  <ebb9@byu.net>
28754
28755         symlinkat: new module
28756         * modules/symlinkat: New file.
28757         * lib/symlinkat.c: Likewise.
28758         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28760         * modules/unistd (Makefile.am): Use them.
28761         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28762         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28763         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28764         * MODULES.html.sh (File system functions): Mention module.
28765         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28766         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28767         * modules/symlinkat-tests: New test.
28768         * tests/test-symlinkat.c: Likewise.
28769
28770         test-openat-safer: add more checks
28771         * tests/test-openat-safer.c (main): Check more code paths.
28772
28773 2009-09-05  Jim Meyering  <meyering@redhat.com>
28774
28775         syntax-check: detect unnecessary inclusion of openat.h
28776         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28777
28778 2009-09-05  Bruno Haible  <bruno@clisp.org>
28779
28780         Support towlower, towupper.
28781         * doc/posix-functions/towlower.texi: Mention module wctype.
28782         * doc/posix-functions/towupper.texi: Likewise.
28783         * lib/wctype.in.h (towlower, towupper): New functions.
28784         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28785         (ASSERT): New macro.
28786         (e): New variable.
28787         (main): Test also towlower, towupper. Test WEOF argument.
28788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28789
28790 2009-09-05  Bruno Haible  <bruno@clisp.org>
28791
28792         Fix conversion behaviour when the input is invalid.
28793         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28794         mark occurring in first pass of indirect conversion.
28795         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28796         input.
28797         Found by clang's static analyzer.
28798
28799 2009-09-05  Bruno Haible  <bruno@clisp.org>
28800
28801         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28802         where direct conversion is possible.
28803
28804 2009-09-04  Eric Blake  <ebb9@byu.net>
28805
28806         openat: fail with ENOENT on empty name
28807         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28808         buffer.
28809
28810         link-follow: fix logic bug in prior patch
28811         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28812         reversed sense of yes and no in prior patch.  Avoid confusing
28813         compilation failure with desired semantics.
28814
28815         link-follow: accomodate mingw and cross-compilation
28816         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28817         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28818         cross-compilation results to -1, to make linkat easier to
28819         implement when cross-compiling.  Trivially support mingw.
28820         * modules/link-follow (configure.ac): Call new name.
28821         * NEWS: Mention this.
28822
28823 2009-09-03  Eric Blake  <ebb9@byu.net>
28824
28825         faccessat: compile replacement
28826         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28827         needed.
28828
28829         fts: fix compilation error
28830         * lib/fts.c (includes): Re-add "openat.h", for
28831         openat_needs_fchdir.
28832
28833         faccessat: new module
28834         * modules/faccessat: New file.
28835         * lib/faccessat.c: Likewise.
28836         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28838         * modules/unistd (Makefile.am): Use it.
28839         * lib/unistd.in.h (faccessat): Declare it.
28840         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28841         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28842         * MODULES.html.sh (File system functions): Mention it.
28843         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28844         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28845
28846         euidaccess: prefer POSIX over non-standard implementation
28847         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28848         * lib/euidaccess.c (euidaccess): Use it if available.
28849
28850         openat: make template easier to use
28851         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28852         AT_FUNC_F2 to be undefined.
28853         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28854         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28855         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28856         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28857         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28858         Likewise.
28859         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28860         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28861         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28862         Likewise.
28863
28864         openat: declare in POSIX headers
28865         * NEWS: Mention this.
28866         * modules/openat (configure.ac): Declare witnesses.
28867         (Depends-on): Add fcntl-h, sys_stat, unistd.
28868         (Include): Mention correct headers.
28869         * modules/fcntl-h (Depends-on): Add link-warning.
28870         (Files): Add openat.m4.
28871         (Makefile.am): Substitute witnesses.
28872         * modules/sys_stat (Files, Makefile.am): Likewise.
28873         * modules/unistd (Files, Makefile.am): Likewise.
28874         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28875         (gl_OPENAT_DEFAULTS): New macro.
28876         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28879         (SYS_STAT_H): Remove unused variable.
28880         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28881         * lib/fcntl--.h (includes): Remove unneeded header.
28882         * lib/openat-safer.c (includes): Likewise.
28883         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28884         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28885         appropriate headers.
28886         (__OPENAT_PREFIX): Delete.
28887         * lib/fcntl.in.h (openat): Provide declaration.
28888         (AT_FDCWD): Fix Solaris bug.
28889         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28890         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28891         * lib/fchmodat.c (includes):  Adjust to find declaration.
28892         * lib/fchownat.c (includes): Likewise.
28893         * lib/mkdirat.c (includes): Likewise.
28894         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28895         still visible.
28896
28897 2009-09-02  Eric Blake  <ebb9@byu.net>
28898
28899         errno: use consistently
28900         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28901         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28902         * lib/canonicalize.c (ELOOP): Likewise.
28903         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28904         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28905         * lib/lchown.c (EOPNOTSUPP): Likewise.
28906         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28907         * lib/savewd.c (ESTALE): Likewise.
28908         * lib/settime.c (ENOSYS): Likewise.
28909         * lib/utimens.c (ENOSYS): Likewise.
28910         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28911         * lib/chdir-safer.c (ELOOP): Likewise.
28912         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28913         * modules/c-stack (Depends-on): Add errno.
28914         * modules/canonicalize (Depends-on): Likewise.
28915         * modules/chdir-safer (Depends-on): Likewise.
28916         * modules/fdopendir (Depends-on): Likewise.
28917         * modules/inet_ntop (Depends-on): Likewise.
28918         * modules/inet_pton (Depends-on): Likewise.
28919         * modules/lchown (Depends-on): Likewise.
28920         * modules/openat (Depends-on): Likewise.
28921         * modules/savewd (Depends-on): Likewise.
28922         * modules/settime (Depends-on): Likewise.
28923         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28924
28925         fts: avoid leaking fds
28926         * modules/fts (Depends-on): Add cloexec.
28927         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28928         flag.
28929
28930         fts: make directory fds more robust
28931         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28932         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28933
28934         backupfile, chdir-long, fts, savedir: make safer
28935         * lib/backupfile.c (includes): Use "dirent--.h", since
28936         numbered_backup can write to stderr during readdir.
28937         * lib/savedir.c (includes): Likewise.
28938         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28939         emulation can write to stderr on failure.
28940         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28941         * lib/getcwd.c: Document why opendir_safer is unused.
28942         * lib/glob.c: Likewise.
28943         * lib/scandir.c: Likewise.
28944         * lib/openat-proc.c: Likewise, for open_safer.
28945         * modules/backupfile (Depends-on): Add dirent-safer.
28946         * modules/savedir (Depends-on): Likewise.
28947         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28948         * modules/chdir-long (Depends-on): Add openat-safer.
28949
28950         openat-safer: new module
28951         * modules/openat-safer: New file.
28952         * lib/openat-safer.c: Likewise.
28953         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28954         * lib/fcntl-safer.h (openat_safer): Declare.
28955         * lib/fcntl--.h (openat): Override.
28956         * MODULES.html.sh (File descriptor based I/O): Mention it.
28957         * lib/openat.h: Add double-inclusion guards.
28958         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28959         "fcntl--.h", so we can implement openat.
28960         * modules/openat-safer-tests: New test.
28961         * tests/test-openat-safer.c: New file.
28962
28963         dirent-safer: new module
28964         * modules/dirent-safer: New file.
28965         * lib/dirent--.h: Likewise.
28966         * lib/dirent-safer.h: Likewise.
28967         * lib/opendir-safer.c: Likewise.
28968         * m4/dirent-safer.m4: Likewise.
28969         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28970         * modules/dirent-safer-tests: New test.
28971         * tests/test-dirent-safer.c: New file.
28972         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28973
28974         fdopendir: optimize on mingw
28975         * lib/unistd.in.h (_gl_directory_name): New prototype.
28976         * lib/fchdir.c (_gl_directory_name): Implement it.
28977         (fchdir): Use it to simplify implementation.
28978         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28979         fchdir, when available, to avoid calling [f]chdir().
28980
28981         fdopendir: split into its own module
28982         * lib/openat.c (fdopendir): Move...
28983         * lib/fdopendir.c: ...into new file.
28984         * modules/fdopendir: New module.
28985         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28986         * modules/openat (Depends-on): Add fdopendir.
28987         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28988         fdopendir here.
28989         * modules/savedir (Depends-on): Only need fdopendir, not full
28990         openat.
28991         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28992         * lib/openat.h (fdopendir): Drop prototype.
28993         * lib/dirent.in.h (fdopendir): Provide prototype.
28994         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28995         * modules/dirent (Makefile.am): Substitute them.
28996         * MODULES.html.sh (File system functions): Mention it.
28997         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28998         * modules/fdopendir-tests: New file.
28999         * tests/test-fdopendir.c: Likewise.
29000
29001         fchdir: use more consistent macro convention
29002         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29003         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29004         REPLACE_FCHDIR, rather than relying on config.h macros.
29005         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29006         inside a single make-time REPLACE_FCHDIR block, rather than using
29007         the config.h FCHDIR_REPLACEMENT.
29008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29009         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29010         Manage fstat replacement.
29011         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29012         REPLACE_FCHDIR.
29013         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29014         (Makefile.am): Substitute REPLACE_FCHDIR.
29015         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29016         FCHDIR_REPLACEMENT.
29017         * lib/dup-safer.c (dup_safer): Likewise.
29018         * lib/dup2.c (rpl_dup2): Likewise.
29019         * lib/dup3.c (rpl_dup3): Likewise.
29020         * lib/open.c (rpl_open): Likewise.
29021
29022         fchdir: simplify error handling, and support dup3
29023         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29024         stdbool, malloc-posix, realloc-posix.
29025         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29026         (ensure_dirs_slot): Return false on allocation failure.
29027         (rpl_dup2): Delete.
29028         (_gl_register_dup): New function.
29029         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29030         (_gl_register_fd): Close fd on allocation failure.
29031         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29032         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29033         prototype.
29034         (rpl_dup2_fchdir): Delete prototype.
29035         * lib/open.c (open): Update caller.
29036         * lib/dup2.c (dup2): Track fchdir metadata.
29037         * lib/dup3.c (dup3): Likewise.
29038         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29040
29041 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29042
29043         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29044         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29045         don't pass arguments to AC_OUTPUT.
29046
29047 2009-09-02  Bruno Haible  <bruno@clisp.org>
29048
29049         * modules/mkdtemp (License): Relicense under LGPLv2+.
29050         Reported by Paolo Bonzini.
29051
29052 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29053
29054         Replace uses of obsolete autoconf macros in Jim's modules.
29055         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29056         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29057         can evoke a warning from autoconf when run with -Wobsolete
29058         enabled.  They were declared obsolete for good reasons (see
29059         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29060         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29061         should not continue using the deprecated macros.
29062         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29063         obsolete Autoconf macros with modern counterparts.
29064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29065         * m4/dos.m4 (gl_AC_DOS): Likewise.
29066         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29068         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29069         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29070         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29072         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29073         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29074         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29075         Likewise.
29076         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29077         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29078         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29079         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29080         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29081         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29082
29083 2009-09-01  Eric Blake  <ebb9@byu.net>
29084
29085         fchdir: fix off-by-one bug in previous patch
29086         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29087         (_gl_unregister_fd): Delete useless if.
29088
29089 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29090
29091         maint.mk: sort the list of syntax-check rules
29092         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29093         easier to get a sense of progress when the rules are run sequentially
29094         and take a long time.
29095
29096 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29097
29098         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29099         * modules/netinet_in: Likewise.
29100         * modules/sys_file: Likewise.
29101         * modules/sys_ioctl: Likewise.
29102         * modules/sys_select: Likewise.
29103         * modules/sys_socket: Likewise.
29104         * modules/sys_stat: Likewise.
29105         * modules/sys_time: Likewise.
29106         * modules/sys_times: Likewise.
29107         * modules/sys_utsname: Likewise.
29108         * modules/sys_wait: Likewise.
29109
29110 2009-09-01  Jim Meyering  <meyering@redhat.com>
29111
29112         fts: help ensure that return values are not ignored
29113         * lib/fts_.h (__GNUC_PREREQ): Define.
29114         (__attribute_warn_unused_result__): Define.
29115         (fts_children, fts_close, fts_open, fts_read): Declare with
29116         __attribute_warn_unused_result__.
29117
29118         fts: fts_close now fails also when closing a dir file descriptor fails
29119         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29120         and propagate to caller, along with errno.
29121
29122         announce-gen: correct formatting in --help output
29123         * build-aux/announce-gen (usage): Move the one-line description in
29124         --help output "up", to where it belongs, just after Usage:.
29125
29126 2009-08-31  Eric Blake  <ebb9@byu.net>
29127
29128         fchdir: port to mingw
29129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29130         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29131         opened, then use a substitute.
29132         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29133         replacement.
29134         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29135         (_gl_register_fd): No need to check stat if open already filters
29136         all directories.
29137         (fchdir): Fix error condition to match POSIX.
29138         * modules/fchdir (Depends-on): Add sys_stat.
29139         * doc/posix-functions/open.texi (open): Document the limitation.
29140         * modules/fchdir-tests: New file.
29141         * tests/test-fchdir.c: Likewise.
29142
29143         canonicalize: allow cross-testing from cygwin to mingw
29144         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29145         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29146         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29147         Likewise.
29148         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29149         target does not support symlinks.
29150         * tests/test-canonicalize-lgpl.sh: Likewise.
29151
29152         chown: avoid compilation warning on mingw
29153         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29154         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29155         mingw.
29156         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29157         * modules/chown (Depends-on): Add errno.
29158
29159 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29160
29161         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29162         command.
29163
29164 2009-08-31  Jim Meyering  <meyering@redhat.com>
29165
29166         canonicalize: remove useless initialization
29167         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29168         initialization of local, "end".
29169
29170 2009-08-30  Bruno Haible  <bruno@clisp.org>
29171
29172         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29173         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29174         ENOSYS.
29175
29176 2009-08-30  Bruno Haible  <bruno@clisp.org>
29177
29178         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29179         /usr/xpg4/bin/tr when it exists.
29180         * tests/test-pipe-filter-gi1.sh: Likewise.
29181
29182 2009-08-30  Bruno Haible  <bruno@clisp.org>
29183
29184         Work around deficient /usr/bin/id program on Solaris.
29185         * tests/test-file-has-acl.sh (ID): New variable.
29186         * tests/test-set-mode-acl.sh (ID): Likewise.
29187         * tests/test-copy-acl.sh (ID): Likewise.
29188         * tests/test-copy-file.sh (ID): Likewise.
29189
29190 2009-08-30  Bruno Haible  <bruno@clisp.org>
29191
29192         New module 'xstriconveh'.
29193         * lib/xstriconveh.h: New file.
29194         * lib/xstriconveh.c: New file.
29195         * modules/xstriconveh: New file.
29196
29197 2009-08-30  Bruno Haible  <bruno@clisp.org>
29198
29199         Make it easier to use mem_cd_iconveh.
29200         * lib/striconveh.h (iconveh_t): New type.
29201         (iconveh_open, iconveh_close): New declarations.
29202         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29203         with a single 'const iconveh_t *' argument.
29204         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29205         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29206         with a single 'const iconveh_t *' argument.
29207         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29208         * tests/test-striconveh.c (main): Update.
29209         * NEWS: Mention the change.
29210
29211 2009-08-30  Bruno Haible  <bruno@clisp.org>
29212
29213         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29214         problem.
29215
29216 2009-08-30  Bruno Haible  <bruno@clisp.org>
29217
29218         Work around iconv_open problem on Solaris.
29219         * lib/iconv_open-solaris.gperf: New file.
29220         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29221         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29222         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29223         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29224         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29225         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29226
29227 2009-08-29  Jim Meyering  <meyering@redhat.com>
29228
29229         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29230         * top/maint.mk (cvs-check): Remove target; it was just an alias
29231         to the better-named vc-diff-check.
29232         (maintainer-distcheck): Remove rule.  It was used only from
29233         the (alpha/beta/major) target, and all of its commands but one
29234         were coreutils-specific.
29235         (vc-dist): Remove rule.
29236         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29237         Run vc-diff-check, not vc-dist.
29238         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29239
29240 2009-08-27  Bruno Haible  <bruno@clisp.org>
29241
29242         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29243         of 0.
29244
29245 2009-08-27  Bruno Haible  <bruno@clisp.org>
29246
29247         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29248         compilers.
29249         * doc/func.texi: Document the SunPRO C bug.
29250
29251 2009-08-27  Bruno Haible  <bruno@clisp.org>
29252
29253         Fix link error on Solaris.
29254         * tests/test-parse-duration.c (xstrdup): Remove function.
29255
29256 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29257
29258         ignore-value: handle pointer types, too
29259         * lib/ignore-value.h (__attribute__): Remove definition.
29260         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29261         of a more concise and more-often effective "(void) i" statement.
29262         (ignore_ptr): New function to suppress warnings from functions that
29263         return pointers, and to make it explicit that one function doesn't
29264         handle all cases.
29265
29266 2009-08-25  Bruno Haible  <bruno@clisp.org>
29267
29268         dup2: work around a Linux bug.
29269         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29270         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29271         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29272         Reported by Simon Josefsson.
29273
29274 2009-08-25  Jim Meyering  <meyering@redhat.com>
29275
29276         libguestfs uses gnulib
29277         * users.txt: Add libguestfs.
29278
29279 2009-08-24  Eric Blake  <ebb9@byu.net>
29280
29281         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29282         * lib/pipe2.c (includes): Add binary-io.h.
29283         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29284
29285 2009-08-24  Bruno Haible  <bruno@clisp.org>
29286
29287         Tolerate declared but missing accept4 syscall.
29288         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29289         available.
29290         * lib/sys_socket.in.h (accept4): If the function is already present,
29291         override it.
29292         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29293         * modules/accept4 (Makefile.am): Compile accept4.c always.
29294         Reported by Paolo Bonzini and Eric Blake.
29295
29296 2009-08-23  Bruno Haible  <bruno@clisp.org>
29297
29298         New module 'accept4'.
29299         * lib/sys_socket.in.h (accept4): New declaration.
29300         * lib/accept4.c: New file.
29301         * m4/accept4.m4: New file.
29302         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29303         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29304         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29305         HAVE_ACCEPT4.
29306         * modules/accept4: New file.
29307         * doc/glibc-functions/accept4.texi: Mention the new module.
29308
29309 2009-08-24  Jim Meyering  <meyering@redhat.com>
29310
29311         progname: also set global program_invocation_name, when possible
29312         Before this change, a libtool-enabled program that calls glibc's
29313         error function would report the program name as
29314         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29315         * modules/progname (configure.ac): Check for a declaration of
29316         program_invocation_name.
29317         * lib/progname.c:  Include <errno.h>.
29318         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29319         Set program_invocation_name.
29320
29321 2009-08-23  Bruno Haible  <bruno@clisp.org>
29322
29323         * lib/dup3.c: Include <string.h>.
29324
29325 2009-08-23  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29328         * lib/pipe2.c (pipe2): Likewise.
29329         Suggested by Eric Blake.
29330
29331 2009-08-23  Bruno Haible  <bruno@clisp.org>
29332
29333         Tolerate declared but missing dup3 syscall.
29334         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29335         * lib/unistd.in.h (dup3): If the function is already present,
29336         override it.
29337         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29338         * modules/dup3 (Makefile.am): Compile dup3.c always.
29339         Reported by Paolo Bonzini.
29340
29341 2009-08-23  Bruno Haible  <bruno@clisp.org>
29342
29343         Tolerate declared but missing pipe2 syscall.
29344         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29345         available.
29346         * lib/unistd.in.h (pipe2): If the function is already present,
29347         override it.
29348         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29349         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29350         Reported by Paolo Bonzini.
29351
29352 2009-08-23  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/pipe2.c (pipe2): Move #ifs inside function.
29355
29356 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29357
29358         quotearg: document limitations of quote_these_too
29359         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29360         those limitations are created.
29361         * lib/quotearg.h (set_char_quoting): Document that digits and
29362         letters that are special after backslash are not permitted.
29363         (quotearg_char): Cross-reference set_char_quoting documentation.
29364
29365 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29366
29367         quotearg: implement custom_quoting_style
29368         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29369         right_quote fields.
29370         (set_custom_quoting): New public function.
29371         (quotearg_buffer_restyled): Add left_quote and right_quote
29372         arguments, handle them very much like locale quoting, and update
29373         all uses.
29374         (quotearg_n_custom): New public function.
29375         (quotearg_n_custom_mem): New public function.
29376         (quotearg_custom): New public function.
29377         (quotearg_custom_mem): New public function.
29378         * lib/quotearg.h: Prototype and document new public functions.
29379         (enum quoting_style): For escape_quoting_style and
29380         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29381         ignored even though they're otherwise like c_quoting_style.
29382         Add custom_quoting_style member and document with comparison to
29383         clocale_quoting_style.
29384         * tests/test-quotearg.c (custom_quotes): New array.
29385         (custom_results): New array.
29386         (main): Extend to test custom quoting.
29387
29388 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29389
29390         quotearg: fix right quote escaping when it's in quote_these_too
29391         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29392         quote, be sure to prepend only one backslash.
29393         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29394         (main): Test it.
29395
29396 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29397
29398         quotearg-tests: test escaping of embedded locale quotes
29399         * tests/test-quotearg.c (struct result_strings): Add member for
29400         new input.
29401         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29402         (inputs): Add new input.
29403         (results_g): Add expected results.
29404         (flag_results): Likewise.
29405         (locale_results): Likewise.
29406         (compare_strings): Check those.
29407
29408 2009-08-23  Bruno Haible  <bruno@clisp.org>
29409
29410         Tests for module 'dup3'.
29411         * modules/dup3-tests: New file.
29412         * tests/test-dup3.c: New file.
29413
29414         New module 'dup3'.
29415         * lib/unistd.in.h (dup3): New declaration.
29416         * lib/dup3.c: New file.
29417         * m4/dup3.m4: New file.
29418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29419         HAVE_DUP3.
29420         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29421         * modules/dup3: New file.
29422         * doc/glibc-functions/dup3.texi: Mention the new module.
29423
29424 2009-08-23  Bruno Haible  <bruno@clisp.org>
29425
29426         Tweak the dup2 test.
29427         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29428         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29429         the test file is still empty. Fix argument order of lseek.
29430
29431 2009-08-23  Bruno Haible  <bruno@clisp.org>
29432
29433         Avoid test link errors when the modules getopt-gnu, gettext are used.
29434         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29436
29437 2009-08-23  Bruno Haible  <bruno@clisp.org>
29438
29439         Fix getdtablesize() on mingw.
29440         * lib/getdtablesize.c (getdtablesize): Implement differently.
29441         * lib/unistd.in.h (getdtablesize): Improve comment.
29442
29443 2009-08-23  Bruno Haible  <bruno@clisp.org>
29444
29445         New module 'mkostemp'.
29446         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29447         * lib/stdlib.in.h (mksotemp): New declaration.
29448         * lib/mkostemp.c: New file, from glibc with modifications.
29449         * lib/tempname.h (GT_FILE): Remove outdated comment.
29450         (gen_tempname): Add flags argument.
29451         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29452         (__GT_FILE): Map to 1.
29453         (small_open, large_open): Remove macros.
29454         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29455         * lib/mkstemp.c (mkstemp): Update.
29456         * lib/mkdtemp.c (mkdtemp): Likewise.
29457         * m4/mkostemp.m4: New file.
29458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29459         HAVE_MKOSTEMP.
29460         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29461         HAVE_MKOSTEMP.
29462         * modules/mkostemp: New file, based on modules/mkstemp.
29463         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29464         * NEWS: Mention the change.
29465
29466 2009-08-23  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29469         Reported by Eric Blake.
29470
29471 2009-08-23  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29474         Reported by Eric Blake.
29475
29476 2009-08-23  Bruno Haible  <bruno@clisp.org>
29477
29478         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29479         * modules/pipe2 (Depends-on): Likewise.
29480
29481 2009-08-23  Eric Blake  <ebb9@byu.net>
29482
29483         fcntl-h: add O_TTY_INIT support
29484         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29485         * tests/test-fcntl-h.c (o): Test it.
29486         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29487
29488         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29489         * modules/fcntl: Move <fcntl.h> header replacement...
29490         * modules/fcntl-h: ...to new name, so as not to collide with
29491         like-named function.
29492         * tests/test-fcntl.c: Rename...
29493         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29494         * modules/fcntl-tests: Rename...
29495         * modules/fcntl-h-tests: ...to this.  Update test file name.
29496         * modules/chdir-long (Depends-on): Update clients.
29497         * modules/chdir-safer (Depends-on): Likewise.
29498         * modules/fcntl-safer (Depends-on): Likewise.
29499         * modules/fts (Depends-on): Likewise.
29500         * modules/mkancesdirs (Depends-on): Likewise.
29501         * modules/mkdir-p (Depends-on): Likewise.
29502         * modules/open (Depends-on): Likewise.
29503         * modules/savewd (Depends-on): Likewise.
29504         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29505         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29506
29507 2009-08-22  Bruno Haible  <bruno@clisp.org>
29508
29509         * modules/binary-io (License): Relicense under LGPL.
29510         * modules/pipe2 (License): Likewise.
29511
29512 2009-08-22  Bruno Haible  <bruno@clisp.org>
29513
29514         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29515         return value.
29516         * lib/pipe-filter-gi.c (filter_init): Likewise.
29517         Reported by Eric Blake.
29518
29519 2009-08-22  Bruno Haible  <bruno@clisp.org>
29520
29521         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29522         * modules/pipe (Depends-on): Add pipe2.
29523
29524 2009-08-22  Bruno Haible  <bruno@clisp.org>
29525
29526         Tests for module 'pipe2'.
29527         * modules/pipe2-tests: New file.
29528         * tests/test-pipe2.c: New file.
29529
29530         New module 'pipe2'.
29531         * lib/unistd.in.h (pipe2): New declaration.
29532         * lib/pipe2.c: New file.
29533         * m4/pipe2.m4: New file.
29534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29535         HAVE_PIPE2.
29536         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29537         * modules/pipe2: New file.
29538         * doc/glibc-functions/pipe2.texi: Mention the new module.
29539
29540 2009-08-22  Bruno Haible  <bruno@clisp.org>
29541
29542         Reference some new glibc functions.
29543         * doc/glibc-functions/accept4.texi: New file.
29544         * doc/glibc-functions/dup3.texi: New file.
29545         * doc/glibc-functions/mkostemp.texi: New file.
29546         * doc/glibc-functions/pipe2.texi: New file.
29547         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29548         (Glibc sys/socket.h): Refer to accept4.
29549         (Glibc unistd.h): Refer to dup3, pipe2.
29550         Reported by Eric Blake.
29551
29552 2009-08-22  Jim Meyering  <meyering@redhat.com>
29553             Bruno Haible  <bruno@clisp.org>
29554
29555         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29556         This makes it so packages using automake-1.11's silent-rules option
29557         can print e.g., a single "GEN    configmake.h" line, rather than
29558         the 30+ statements that perform the job.  If you want to see the
29559         actual commands, you can still run "make V=1".
29560         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29561         so that make output is abbreviated when those variables are defined
29562         appropriately.
29563         * modules/argz: Likewise.
29564         * modules/arpa_inet: Likewise.
29565         * modules/byteswap: Likewise.
29566         * modules/configmake: Likewise.
29567         * modules/dirent: Likewise.
29568         * modules/errno: Likewise.
29569         * modules/fcntl: Likewise.
29570         * modules/float: Likewise.
29571         * modules/fnmatch: Likewise.
29572         * modules/getopt-posix: Likewise.
29573         * modules/glob: Likewise.
29574         * modules/iconv_open: Likewise.
29575         * modules/inttypes: Likewise.
29576         * modules/localcharset: Likewise.
29577         * modules/locale: Likewise.
29578         * modules/math: Likewise.
29579         * modules/netdb: Likewise.
29580         * modules/netinet_in: Likewise.
29581         * modules/poll: Likewise.
29582         * modules/posix_spawnp-tests: Likewise.
29583         * modules/sched: Likewise.
29584         * modules/search: Likewise.
29585         * modules/selinux-h: Likewise.
29586         * modules/signal: Likewise.
29587         * modules/spawn: Likewise.
29588         * modules/stdarg: Likewise.
29589         * modules/stdbool: Likewise.
29590         * modules/stddef: Likewise.
29591         * modules/stdint: Likewise.
29592         * modules/stdio: Likewise.
29593         * modules/stdlib: Likewise.
29594         * modules/string: Likewise.
29595         * modules/strings: Likewise.
29596         * modules/sys_file: Likewise.
29597         * modules/sys_ioctl: Likewise.
29598         * modules/sys_select: Likewise.
29599         * modules/sys_socket: Likewise.
29600         * modules/sys_stat: Likewise.
29601         * modules/sys_time: Likewise.
29602         * modules/sys_times: Likewise.
29603         * modules/sys_utsname: Likewise.
29604         * modules/sys_wait: Likewise.
29605         * modules/sysexits: Likewise.
29606         * modules/time: Likewise.
29607         * modules/unistd: Likewise.
29608         * modules/wchar: Likewise.
29609         * modules/wctype: Likewise.
29610
29611 2009-08-22  Jim Meyering  <meyering@redhat.com>
29612
29613         announce-gen: detect write failure
29614         * build-aux/announce-gen: Add Coda at end.
29615         Remove equivalent-but-more-verbose block at top.
29616
29617 2009-08-19  Akim Demaille  <demaille@gostai.com>
29618
29619         bootstrap: --help to stdout.
29620         * bootstrap (usage): Don't send --help to stderr.
29621         Use a here doc instead of a long string.
29622
29623 2009-08-21  Eric Blake  <ebb9@byu.net>
29624
29625         test-popen-safer: split from test-popen
29626         * tests/test-popen.c (main): Move...
29627         * tests/test-popen.h: ...into new file.
29628         * tests/test-popen-safer2.c: New file.
29629         * modules/popen-tests (Files): Add test-popen.h.
29630         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29631         Suggested by Bruno Haible.
29632
29633         test-fcntl-safer: split from test-open
29634         * tests/test-open.c (main): Move...
29635         * tests/test-open.h: ...into new file.
29636         * tests/test-fcntl-safer.c: New file.
29637         * modules/open-tests (Files): Add test-open.h.
29638         * modules/fcntl-safer-tests: New file.
29639         Suggested by Bruno Haible.
29640
29641         test-fopen-safer: split from test-fopen
29642         * tests/test-fopen.c (main): Move...
29643         * tests/test-fopen.h: ...into new file.
29644         * tests/test-fopen-safer.c: New file.
29645         * modules/fopen-tests (Files): Add test-fopen.h.
29646         * modules/fopen-safer-tests: New file.
29647         Suggested by Bruno Haible.
29648
29649 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29650
29651         popen-safer: test O_CLOEXEC at run-time.
29652         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29653
29654 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29655
29656         fcntl: move more flags to the header
29657         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29658         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29659         * lib/fcntl.in.h: Do both things here.
29660
29661 2009-08-21  Jim Meyering  <meyering@redhat.com>
29662
29663         consistently remove $@-t before redirecting to it
29664         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29665         * modules/alloca-opt: Likewise.
29666         * modules/byteswap: Likewise.
29667         * modules/fnmatch: Likewise.
29668         * modules/getopt-posix: Likewise.
29669         * modules/glob: Likewise.
29670         * modules/poll: Likewise.
29671         * modules/posix_spawnp-tests: Likewise.
29672         * modules/sys_socket: Likewise.
29673         * modules/sysexits: Likewise.
29674
29675 2009-08-21  Eric Blake  <ebb9@byu.net>
29676
29677         popen: simplify access to original popen
29678         * lib/popen.c (rpl_popen): No need to worry about popen being a
29679         macro.
29680         Reported by Bruno Haible.
29681
29682 2009-08-20  Eric Blake  <ebb9@byu.net>
29683
29684         build: avoid some compiler warnings
29685         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29686         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29687         type.
29688         (new_exclude_segment, excluded_file_pattern_p)
29689         (excluded_file_name_p): Reduce scope.
29690         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29691         old-style declaration.
29692
29693 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29694
29695         * tests/test-exclude1.sh: Handle Windows EOL.
29696         * tests/test-exclude2.sh: Likewise.
29697         * tests/test-exclude3.sh: Likewise.
29698         * tests/test-exclude4.sh: Likewise.
29699         * tests/test-exclude5.sh: Likewise.
29700         * tests/test-exclude6.sh: Likewise.
29701         * tests/test-exclude7.sh: Likewise.
29702
29703 2009-08-19  Akim Demaille  <demaille@gostai.com>
29704
29705         bootstrap: find sha1sum when named gsha1sum.
29706         * bootstrap (find_tool): New.
29707         ($SHA1SUM): New.
29708         Use it.
29709
29710 2009-08-20  Jim Meyering  <meyering@redhat.com>
29711
29712         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29713         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29714         expression that converts "." in a file name to "\." in the resulting
29715         regexp.  Start with a dummy statement, so that prior shell variable
29716         definitions are expanded portably.  Reported by Simon Josefsson.
29717
29718 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29719
29720         Fix polling for writeability of a screen buffer.
29721         * lib/poll.c: Distinguish input and screen buffers for the
29722         Win32 implementation.
29723         * lib/select.c: Likewise.
29724
29725 2009-08-19  Eric Blake  <ebb9@byu.net>
29726
29727         popen-safer: prevent popen from clobbering std descriptors
29728         * modules/popen-safer: New file.
29729         * lib/popen-safer.c: Likewise.
29730         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29731         * lib/stdio--.h (popen): Provide override.
29732         * lib/stdio-safer.h (popen_safer): Provide declaration.
29733         * tests/test-popen.c (includes): Partially test this.
29734         * modules/popen-safer-tests: New file, for more tests.
29735         * tests/test-popen-safer.c: Likewise.
29736         * MODULES.html.sh (file stream based Input/Output): Mention it.
29737
29738         tests: test some of the *-safer modules
29739         * modules/fopen-safer (Depends-on): Add fopen.
29740         * modules/fcntl-safer (Depends-on): Add fcntl.
29741         * modules/stdlib-safer (Depends-on): Add stdlib.
29742         (configure.ac): Set indicator.
29743         * modules/unistd-safer (configure.ac): Likewise.
29744         * modules/tmpfile-safer (configure.ac): Likewise.
29745         (Depends-on): Add tmpfile.
29746         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29747         active.
29748         * tests/test-fopen.c (includes): Test safer versions when they are
29749         in use.
29750         * tests/test-open.c (includes): Likewise.
29751
29752         popen: fix cygwin 1.5 bug when stdin closed
29753         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29754         * modules/popen: New file.
29755         * modules/popen-tests: Likewise.
29756         * tests/test-popen.c: Likewise.
29757         * m4/popen.m4: Likewise.
29758         * lib/popen.c: Likewise.
29759         * lib/stdio.in.h (popen): New declaration.
29760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29761         * modules/stdio (Makefile.am): Likewise.
29762         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29763
29764 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29765
29766         maint.mk: give full control over update-copyright exclusions
29767         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29768         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29769         (update-copyright): Don't force inclusion of top-level
29770         ChangeLog.  Don't force exclusion of all COPYING files, but make
29771         them the default exclusion instead.
29772
29773 2009-08-16  Bruno Haible  <bruno@clisp.org>
29774
29775         Fix test failures on Solaris 10.
29776         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29777         tests when Solaris iconv() is used.
29778         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29779         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29780         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29781         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29782         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29783
29784 2009-08-16  Bruno Haible  <bruno@clisp.org>
29785
29786         Fix test failures on Solaris 10.
29787         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29788         'tr' program and pass it as first argument.
29789         * tests/test-pipe-filter-gi1.sh: Likewise.
29790         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29791         program as first argument.
29792         * tests/test-pipe-filter-gi1.c (main): Likewise.
29793
29794 2009-08-16  Eric Blake  <ebb9@byu.net>
29795
29796         fpurge: fix previous commits
29797         * modules/fpurge (Makefile.am): Make replacement conditional,
29798         partially reverting 2007-04-29 change; missed in previous
29799         attempt.
29800         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29801         is missing.
29802
29803 2009-08-16  Bruno Haible  <bruno@clisp.org>
29804
29805         Clarify fpurge's effect on the file position.
29806         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29807         * tests/test-fpurge.c (main): Make a second pass for checking the file
29808         position.
29809
29810 2009-08-16  Bruno Haible  <bruno@clisp.org>
29811
29812         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29813         declaration of fpurge is missing.
29814         * tests/test-fpurge.c (main): Check that the file has not more contents
29815         than expected. Close the file before removing it.
29816
29817 2009-08-15  Eric Blake  <ebb9@byu.net>
29818
29819         fpurge: don't wrap working cygwin implementation
29820         * lib/fpurge.c (fpurge): Fix comment typo.
29821         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29822         1.7 to avoid replacement.
29823         * tests/test-fpurge.c (main): Enhance test.
29824
29825 2009-08-15  Eric Blake  <ebb9@byu.net>
29826         and Jim Meyering  <meyering@redhat.com>
29827
29828         test-update-copyright: skip if perl is insufficient
29829         * tests/test-update-copyright.sh: Failure to run maintainer tool
29830         should not cause testsuite failure on cygwin 1.5.
29831
29832 2009-08-14  Eric Blake  <ebb9@byu.net>
29833
29834         doc: mention more functions added in cygwin 1.7.0
29835         * doc/posix-headers/limits.texi (limits.h): Update for recent
29836         cygwin additions.
29837         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29838         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29839         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29840         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29841         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29842
29843 2009-08-14  Eric Blake  <ebb9@byu.net>
29844
29845         maint.mk: simplify update-copyright rule
29846         * top/maint.mk (update-copyright-local): Delete, and document how
29847         to do it in cfg.mk instead.
29848         (update-copyright-exclude-regexp): Delete, and document how to do
29849         it in .x-update-copyright instead.
29850         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29851         exclude ChangeLog.
29852
29853 2009-08-14  Bruno Haible  <bruno@clisp.org>
29854
29855         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29856
29857 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29858
29859         maint.mk: support update-copyright-env
29860         * top/maint.mk (update-copyright-env): Define place-holder.
29861         (update-copyright): Expand $(update-copyright-env) before
29862         invoking update-copyright.
29863
29864 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29865
29866         update-copyright: implement forced reformatting
29867         * build-aux/update-copyright: Implement and document
29868         UPDATE_COPYRIGHT_FORCE.
29869         * tests/test-update-copyright.sh: Test it.
29870
29871 2009-08-14  Eric Blake  <ebb9@byu.net>
29872         and Bruno Haible  <bruno@clisp.org>
29873
29874         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29875         * tests/test-locale.c: Revert previous patch related to NULL.
29876         * tests/test-stdio.c: Likewise.
29877         * tests/test-stdlib.c: Likewise.
29878         * tests/test-string.c: Likewise.
29879         * tests/test-unistd.c: Likewise.
29880         * modules/time-tests (Depends-on): Add verify.
29881         * modules/wchar-tests (Depends-on): Likewise.
29882         * tests/test-time.c: Test for NULL compliance.
29883         * tests/test-wchar.c: Likewise.
29884         * modules/locale (Depends-on): Add stddef.
29885         * modules/stdio (Depends-on): Likewise.
29886         * modules/stdlib (Depends-on): Likewise.
29887         * modules/string (Depends-on): Likewise.
29888         * modules/time (Depends-on): Likewise.
29889         * modules/unistd (Depends-on): Likewise.
29890         * modules/wchar (Depends-on): Likewise.
29891         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29892         * lib/stdlib.in.h (includes): Likewise.
29893         * lib/string.in.h (includes): Likewise.
29894         * lib/time.in.h (includes): Likewise.
29895         * lib/unistd.in.h (includes): Likewise.
29896         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29897         replaced.
29898         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29899         * m4/stddef_h.m4: New file.
29900         * modules/stddef: Likewise.
29901         * lib/stddef.in.h: Likewise.
29902         * modules/stddef-tests: Likewise.
29903         * tests/test-stddef.c: Likewise.
29904         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29905         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29906         * doc/posix-headers/locale.texi (locale.h): Likewise.
29907         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29908         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29909         * doc/posix-headers/string.texi (string.h): Likewise.
29910         * doc/posix-headers/time.texi (time.h): Likewise.
29911         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29912         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29913
29914 2009-08-14  Eric Blake  <ebb9@byu.net>
29915
29916         doc: improve git diff of texinfo files
29917         * .gitattributes: Add rule for *.texi files, with hint on how to
29918         use it.
29919         Copied from m4, and based on a report by Bruno Haible.
29920
29921 2009-08-14  Bruno Haible  <bruno@clisp.org>
29922
29923         Disable multithread support by default on Cygwin 1.5.x for real.
29924         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29925
29926 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29927
29928         update-copyright: much ado about intervals
29929         * build-aux/update-copyright: Implement and document
29930         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29931         of copyright year intervals.
29932         Also, document UPDATE_COPYRIGHT_YEAR.
29933         * tests/test-update-copyright.sh: Test it.
29934
29935         update-copyright: convert 2-digit to 4-digit years
29936         * build-aux/update-copyright: Implement and document.
29937         * tests/test-update-copyright.sh: Update.
29938
29939 2009-08-14  Jim Meyering  <meyering@redhat.com>
29940
29941         test-exclude: avoid coreutils "make check" failure
29942         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29943         just as in test-argmatch.c.
29944
29945 2009-08-13  Eric Blake  <ebb9@byu.net>
29946
29947         test-dup2: fix bad assumption
29948         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29949         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29950
29951         test-version-etc: fix CRLF portability issue
29952         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29953         recognize \r.
29954         * tests/test-argp-version-etc-1.sh: Likewise.
29955
29956         getopt: update client modules
29957         * modules/argp (Depends-on): Use getopt-gnu.
29958         * modules/git-merge-changelog (Depends-on): Likewise.
29959         * modules/long-options (Depends-on): Likewise.
29960         * modules/xstrtol (Depends-on): Likewise.
29961
29962 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29963
29964         * tests/test-version-etc.sh: Don't fail on different
29965         project/version.  Don't fail on CRLF differences.  Rewrite to use
29966         multiple -e instead of multiple sed forks, suggested by Eric Blake
29967         <ebb9@byu.net>.
29968         * tests/test-argp-version-etc-1.sh: Likewise.
29969
29970 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29971
29972         * tests/test-version-etc.sh: Don't fail on different
29973         project/version.
29974
29975 2009-08-12  Bruno Haible  <bruno@clisp.org>
29976
29977         Tests for modules 'getopt-posix', 'getopt-gnu'.
29978         * modules/getopt-posix-tests: New file.
29979         * tests/test-getopt.c: New file.
29980         * tests/test-getopt.h: New file.
29981         * tests/test-getopt_long.h: New file.
29982
29983         New modules 'getopt-posix', 'getopt-gnu'.
29984         * modules/getopt-gnu: New file, renamed from modules/getopt.
29985         * modules/getopt-posix: New file.
29986         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29987         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29988         (gl_GETOPT): Remove macro.
29989         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29990         Disable the test against BSD systems that declare optreset. Test
29991         against mingw bug. Test against lack of support of optional arguments
29992         on many platforms.
29993         * doc/glibc-headers/getopt.texi: Update module name and list of
29994         relevant platforms.
29995         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29996         'getopt-gnu' and more portability problems.
29997         * NEWS: Mention the changes.
29998
29999 2009-08-12  Bruno Haible  <bruno@clisp.org>
30000
30001         Ensure that optarg etc. get declared by <unistd.h>.
30002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30003         AC_USE_SYSTEM_EXTENSIONS.
30004         * modules/getopt (Depends-on): Add 'extensions'.
30005
30006 2009-08-12  Bruno Haible  <bruno@clisp.org>
30007
30008         Avoid test link errors.
30009         * modules/pipe-filter-ii-tests (Makefile.am): Define
30010         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30011         * modules/pipe-filter-gi-tests (Makefile.am): Define
30012         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30014
30015 2009-08-12  Bruno Haible  <bruno@clisp.org>
30016
30017         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30018         gl_GETOPT_SUBSTITUTE before.
30019         (gl_GETOPT): Use it.
30020         * m4/argp.m4 (gl_ARGP): Update.
30021         Reported by Sergey Poznyakoff.
30022
30023         * m4/getopt.m4: Reorder macros.
30024         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30025         (gl_GETOPT_SUBSTITUTE): Remove macro.
30026
30027 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30028
30029         Minor improvement in gitlog-to-changelog
30030
30031         * build-aux/gitlog-to-changelog: New option `--format' makes
30032         output format string configurable.
30033
30034 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30035
30036         Optimize exclude: use hash tables for non-wildcard patterns.
30037
30038         * lib/exclude.c: Include hash.h and mbuiter.h
30039         (struct exclude_pattern, exclude_segment): New data types.
30040         (struct exclude): Rewrite.
30041         (fnmatch_pattern_has_wildcards): New function.
30042         (new_exclude_segment, free_exclude_segment): New functions.
30043         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30044         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30045         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30046         * modules/exclude: Depend on hash and mbuiter.
30047
30048         * modules/exclude-tests: New file.
30049         * tests/test-exclude.c: New file.
30050         * tests/test-exclude1.sh: New file.
30051         * tests/test-exclude2.sh: New file.
30052         * tests/test-exclude3.sh: New file.
30053         * tests/test-exclude4.sh: New file.
30054         * tests/test-exclude5.sh: New file.
30055         * tests/test-exclude6.sh: New file.
30056         * tests/test-exclude7.sh: New file.
30057
30058 2009-08-12  Bruno Haible  <bruno@clisp.org>
30059
30060         Ensure that getopt() gets declared by <unistd.h>.
30061         * lib/unistd.in.h: Conditionally include getopt.h.
30062         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30063         Set GNULIB_UNISTD_H_GETOPT.
30064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30065         GNULIB_UNISTD_H_GETOPT.
30066         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30067
30068 2009-08-12  Bruno Haible  <bruno@clisp.org>
30069
30070         Clarify logic.
30071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30072         gl_replace_getopt instead of GETOPT_H.
30073
30074 2009-08-12  Bruno Haible  <bruno@clisp.org>
30075
30076         * m4/getopt.m4: Add comments.
30077
30078 2009-08-12  Bruno Haible  <bruno@clisp.org>
30079
30080         Disable multithread support by default on Cygwin 1.5.x.
30081         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30082         set gl_use_threads=no if not specified otherwise.
30083
30084 2009-08-11  Bruno Haible  <bruno@clisp.org>
30085
30086         Avoid compilation error on NetBSD 5.0.
30087         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30088         * tests/test-stdio.c: Likewise.
30089         * tests/test-stdlib.c: Likewise.
30090         * tests/test-string.c: Likewise.
30091         * tests/test-unistd.c: Likewise.
30092         Reported by Greg Troxel <gdt@ir.bbn.com>
30093         at <https://savannah.gnu.org/support/?106973>.
30094
30095 2009-08-11  Bruno Haible  <bruno@clisp.org>
30096
30097         * modules/dup2-tests (Depends-on): Remove close.
30098
30099         Undo 2009-07-19 commit.
30100         * modules/acl-tests (Depends-on): Remove close.
30101         * modules/binary-io-tests (Depends-on): Likewise.
30102         * modules/closein-tests (Depends-on): Likewise.
30103         * modules/flock-tests (Depends-on): Likewise.
30104         * modules/fsync-tests (Depends-on): Likewise.
30105         * modules/lseek-tests (Depends-on): Likewise.
30106         * modules/pipe-tests (Depends-on): Likewise.
30107         * modules/posix_spawn-tests (Depends-on): Likewise.
30108         * modules/posix_spawnp-tests (Depends-on): Likewise.
30109         * modules/stat-time-tests (Depends-on): Likewise.
30110         * modules/yesno-tests (Depends-on): Likewise.
30111
30112 2009-08-10  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30115
30116 2009-08-10  Bruno Haible  <bruno@clisp.org>
30117
30118         Fix a gcc warning.
30119         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30120
30121 2009-08-10  Bruno Haible  <bruno@clisp.org>
30122
30123         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30124         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30125         not only the first time.
30126         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30127         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30128         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30129         is 1, not only the the first time.
30130
30131 2009-08-10  Bruno Haible  <bruno@clisp.org>
30132
30133         Make it possible to use module 'gethostname' without module 'close'.
30134         * lib/unistd.in.h (close): Evoke a link error only if
30135         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30137         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30138         * modules/unistd (Makefile.am): Substitute
30139         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30140         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30141         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30143         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30144         * modules/sys_ioctl (Makefile.am): Substitute
30145         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30146         * modules/socket (configure.ac): On native Windows, set
30147         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30148         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30149         Reported by Sam Steingold <sds@gnu.org>.
30150
30151 2009-08-10  Bruno Haible  <bruno@clisp.org>
30152
30153         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30154         * modules/ioctl (configure.ac): Likewise.
30155
30156 2009-08-10  Bruno Haible  <bruno@clisp.org>
30157
30158         Avoid collision between gnulib wrapper and libintl wrapper.
30159         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30160         already defined in intl/printf.c.
30161         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30162         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30163
30164 2009-08-09  Bruno Haible  <bruno@clisp.org>
30165
30166         Make <sys/select.h> really self-contained, also on Solaris 10.
30167         * lib/sys_select.in.h: Include <string.h>.
30168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30169         Solaris 10 problem.
30170         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30171         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30172         Reported by Jim Meyering.
30173
30174 2009-08-09  Bruno Haible  <bruno@clisp.org>
30175
30176         Avoid warnings from 'aclocal' that are due to a use of macro name
30177         AM_XGETTEXT_OPTION that is not defined in automake.
30178         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30179         automake.
30180         * modules/error (configure.ac): Likewise.
30181         * modules/propername (configure.ac): Likewise.
30182         * modules/vasprintf (configure.ac): Likewise.
30183         * modules/verror (configure.ac): Likewise.
30184         * modules/xprintf (configure.ac): Likewise.
30185         * modules/xvasprintf (configure.ac): Likewise.
30186
30187 2009-08-08  Bruno Haible  <bruno@clisp.org>
30188
30189         Avoid compilation error in C++ mode.
30190         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30191         Reported by Sam Steingold <sds@gnu.org>.
30192
30193 2009-08-08  Bruno Haible  <bruno@clisp.org>
30194
30195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30196         for the various Unix platforms.
30197         * doc/posix-headers/limits.texi: Update platforms list regarding
30198         HOST_NAME_MAX.
30199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30200
30201 2009-08-07  Jim Meyering  <meyering@redhat.com>
30202
30203         selinux-at: fix typo in a comment
30204         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30205         Spotted by Paolo Bonzini.
30206
30207         selinux-at: remove redundant m4 code, add documentation
30208         * modules/selinux-at (configure.ac): Remove redundant code.
30209         LIB_SELINUX is already set via the dependent module, selinux-h.
30210         (Include): Add quotes around selinux-at.h.
30211         * lib/selinux-at.h: Add documentation.
30212         Reported by Bruno Haible in
30213         http://marc.info/?l=gnulib-bug&m=124958988300749
30214
30215 2009-08-07  Bruno Haible  <bruno@clisp.org>
30216
30217         Avoid link error on MacOS X 10.3 and 10.4.
30218         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30219         on non-ELF systems.
30220         * lib/argp-pv.c (argp_program_version): Likewise.
30221         Reported by Simon Josefsson.
30222
30223 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30224
30225         * tests/test-version-etc.sh: Use $EXEEXT.
30226
30227 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30228
30229         update-copyright: update documentation to point to maint.mk
30230         * build-aux/update-copyright: Here.
30231
30232 2009-08-06  Jim Meyering  <meyering@redhat.com>
30233
30234         maint.mk: support update-copyright-local
30235         * top/maint.mk (update-copyright-local): Define place-holder.
30236         (update-copyright): Depend on $(update-copyright-local).
30237
30238 2009-08-06  Jim Meyering  <meyering@redhat.com>
30239
30240         selinux-at: new module
30241         Initially written for coreutils, this module will soon be
30242         used by findutils, too.
30243         * MODULES.html.sh [Misc]: Add selinux-at.
30244         * lib/selinux-at.h: New file, from coreutils.
30245         * lib/selinux-at.c: Likewise.
30246         * modules/selinux-at: Likewise.
30247         (License): Change from LGPL to GPL, since it depends
30248         on the GPL'd openat module.
30249
30250         doc: update README
30251         * README: Remove references to cogito.
30252         Remove cvs-repo-updating instructions from 2007.
30253         Don't imply that CVS is better if you have limited disk space.
30254
30255 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30256
30257         update-copyright: support C-style comments
30258         * build-aux/update-copyright: Implement and document.
30259         * tests/test-update-copyright.sh: Test.
30260
30261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30262
30263         update-copyright: support omitted "(C)"
30264         * build-aux/update-copyright: Implement and document.  Also,
30265         allow variable whitespace before "(C)".
30266         * tests/test-update-copyright.sh: Test.
30267
30268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30269
30270         update-copyright: don't trip on non-FSF copyright statements
30271         * build-aux/update-copyright: Fix so that the first correctly
30272         formatted FSF copyright statement is recognized no matter what
30273         appears before it.  Update documentation.
30274         * tests/test-update-copyright.sh: Test that.
30275
30276 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30277
30278         update-copyright: clean up code a little
30279         * build-aux/update-copyright: Append "_re" to the name of any
30280         variable holding a regular expression.
30281         Replace "old" and "new" with "stmt" in variable names.
30282         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30283         handled correctly.
30284         Format code more consistently.
30285
30286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30287
30288         update-copyright-tests: improve portability
30289         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30290         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30291
30292 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30293
30294         update-copyright: support @copyright{} and &copy;
30295         * build-aux/update-copyright: Implement and document.
30296         * tests/test-update-copyright.sh: Test.
30297
30298 2009-08-04  Jim Meyering  <meyering@redhat.com>
30299
30300         update-copyright-tests: correctly test EOL=\r\n handling
30301         * tests/test-update-copyright.sh: Put \r at the end of some lines
30302         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30303
30304         maint.mk: make update-copyright exclusion list more configurable
30305         * top/maint.mk (update-copyright): Default to excluding COPYING,
30306         but allow an override, in case someone does want to update that file.
30307
30308         maint.mk: don't update copyright date in COPYING
30309         * top/maint.mk (update-copyright): Exclude COPYING.
30310
30311         maint.mk: add a copyright-updating rule
30312         * top/maint.mk (update-copyright): New rule.
30313         Derived from coreutils/Makefile.am.
30314
30315         update-copyright: rename some variables
30316         * build-aux/update-copyright: Rename a few variables for clarity.
30317         Tweak syntax.  List Joel E. Denny as coauthor.
30318
30319 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30320
30321         update-copyright: fix bug for 2-digit last year and add tests
30322         * build-aux/update-copyright: Fix bug.
30323         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30324         specified.
30325         * modules/update-copyright-tests: New
30326         * tests/test-update-copyright.sh: New.
30327
30328 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30329
30330         update-copyright: handle leading tabs in line prefix
30331         * build-aux/update-copyright: Count leading tabs as 8 spaces
30332         when computing margin.  This helps with the formatting of
30333         ChangeLogs, for example.
30334         Fix documentation a little.
30335
30336 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30337
30338         update-copyright: support EOL=\r\n
30339         * build-aux/update-copyright: Implement that.
30340
30341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30342
30343         update-copyright: automatically format copyright statements
30344         * build-aux/update-copyright: Implement that.
30345         Also, be a little more predictable and safer by always failing
30346         when the full copyright format is not perfectly recognized as an
30347         unbroken whole.  Discussed at
30348         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30349         Rewrite documentation.
30350
30351 2009-08-03  Bruno Haible  <bruno@clisp.org>
30352
30353         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30354
30355 2009-08-02  Bruno Haible  <bruno@clisp.org>
30356
30357         Tests for module 'uname'.
30358         * modules/uname-tests: New file.
30359         * tests/test-uname.c: New file.
30360
30361         New module 'uname'.
30362         * lib/uname.c: New file.
30363         * m4/uname.m4: New file.
30364         * modules/uname: New file.
30365         * doc/posix-functions/uname.texi: Mention the new module.
30366
30367 2009-08-02  Bruno Haible  <bruno@clisp.org>
30368
30369         Tests for module 'sys_utsname'.
30370         * modules/sys_utsname-tests: New file.
30371         * tests/test-sys_utsname.c: New file.
30372
30373         New module 'sys_utsname'.
30374         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30375         * m4/sys_utsname_h.m4: New file.
30376         * modules/sys_utsname: New file.
30377         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30378
30379 2009-08-02  Bruno Haible  <bruno@clisp.org>
30380
30381         Implicitly initialize the sockets library.
30382         * lib/gethostname.c: Include sockets.h.
30383         (rpl_gethostname): Invoke gl_sockets_startup.
30384         * lib/socket.c: Include sockets.h.
30385         (rpl_socket): Invoke gl_sockets_startup.
30386         * modules/gethostname (Depends-on): Add sockets.
30387         * modules/socket (Depends-on): Likewise.
30388         * tests/test-poll.c: Don't include sockets.h.
30389         (main): Don't invoke gl_sockets_startup.
30390         * tests/test-select.c: Don't include sockets.h.
30391         (main): Don't invoke gl_sockets_startup.
30392
30393 2009-08-02  Bruno Haible  <bruno@clisp.org>
30394
30395         Allow multiple calls to gl_sockets_startup.
30396         * lib/sockets.c (initialized_sockets_version): New variable.
30397         (gl_sockets_startup): Do nothing if already called for this or a higher
30398         version.
30399         (gl_sockets_cleanup): Reset initialized_sockets_version.
30400
30401 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30402
30403         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30404         different project/version.
30405
30406 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30407             Bruno Haible  <bruno@clisp.org>
30408
30409         Tests for module 'pipe-filter-gi'.
30410         * modules/pipe-filter-gi-tests: New file.
30411         * tests/test-pipe-filter-gi1.sh: New file.
30412         * tests/test-pipe-filter-gi1.c: New file.
30413         * tests/test-pipe-filter-gi2.sh: New file.
30414         * tests/test-pipe-filter-gi2-main.c: New file.
30415         * tests/test-pipe-filter-gi2-child.c: New file.
30416
30417         New module 'pipe-filter-gi'.
30418         * lib/pipe-filter-gi.c: New file.
30419         * modules/pipe-filter-gi: New file.
30420
30421 2009-08-02  Bruno Haible  <bruno@clisp.org>
30422             Paolo Bonzini  <bonzini@gnu.org>
30423
30424         Tests for module 'pipe-filter-ii'.
30425         * modules/pipe-filter-ii-tests: New file.
30426         * tests/test-pipe-filter-ii1.sh: New file.
30427         * tests/test-pipe-filter-ii1.c: New file.
30428         * tests/test-pipe-filter-ii2.sh: New file.
30429         * tests/test-pipe-filter-ii2-main.c: New file.
30430         * tests/test-pipe-filter-ii2-child.c: New file.
30431
30432         New module 'pipe-filter-ii'.
30433         * lib/pipe-filter.h: New file.
30434         * lib/pipe-filter-ii.c: New file.
30435         * lib/pipe-filter-aux.h: New file.
30436         * modules/pipe-filter-ii: New file.
30437
30438 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30439
30440         * lib/gc-libgcrypt.c: Change copyright to FSF.
30441         * lib/gc-gnulib.c: Likewise.
30442
30443 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30444
30445         * lib/gethostname.c: Include limits.h.
30446
30447 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30448             Bruno Haible  <bruno@clisp.org>
30449
30450         Ensure HOST_NAME_MAX as part of the gethostname module.
30451         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30452         define also HOST_NAME_MAX.
30453         * tests/test-gethostname.c: Include <limits.h>.
30454         (main): Check also HOST_NAME_MAX.
30455         * doc/posix-headers/limits.texi: Document the mingw problem.
30456
30457 2009-08-02  Bruno Haible  <bruno@clisp.org>
30458
30459         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30460         Add comments.
30461
30462 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30463
30464         * lib/gethostname.c: Add Windows wrapper.
30465         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30466         * modules/gethostname: Depend on sys_socket & errno, for also
30467         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30468         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30469
30470 2009-07-31  Jim Meyering  <meyering@redhat.com>
30471
30472         getloadavg: fix symbol name in comment
30473         * lib/getloadavg.c: Correct a typo I introduced when adding
30474         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30475         Matt Kraai spotted the problem.
30476
30477 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30478
30479         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30480         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30481         code also if ! defined N_NAME_POINTER.
30482         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30483         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30484         but the n_name member is a 12-byte array.
30485
30486 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30487
30488         update-copyright: generalize comment handling
30489         * build-aux/update-copyright: Handle copyright statements
30490         within more comment styles.
30491         Document usage.
30492         Report any file with an external copyright holder or parse failure.
30493
30494 2009-07-29  Jim Meyering  <meyering@redhat.com>
30495
30496         mktime: correct setting of REPLACE_MKTIME
30497         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30498
30499         update-copyright: new module
30500         * modules/update-copyright: New file.
30501         * build-aux/update-copyright: New file.
30502         * MODULES.html.sh (maint+release support): Add update-copyright.
30503
30504 2009-07-27  Bruno Haible  <bruno@clisp.org>
30505
30506         Fix compilation error when <ctime> is used and mktime is replaced.
30507         * lib/time.in.h (mktime): New declaration.
30508         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30509         REPLACE_MKTIME instead of defining mktime in config.h.
30510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30511         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30512         Reported by Ross McFarland <rwmcfa1@neces.com>.
30513
30514 2009-07-27  Bruno Haible  <bruno@clisp.org>
30515
30516         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30517         Reported by Matt Kraai <mkraai@beckman.com>.
30518
30519 2009-07-25  Jim Meyering  <meyering@redhat.com>
30520
30521         maint.mk: avoid warnings about missing files
30522         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30523         diagnostic when .prev-version does not exist.
30524         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30525         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30526         nonexistent cfg.mk.
30527         Suggestions from Simon Josefsson.
30528
30529 2009-07-25  Bruno Haible  <bruno@clisp.org>
30530
30531         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30532         defined as macros. Needed on QNX 6.4.1.
30533         Reported by Matt Kraai <mkraai@beckman.com>.
30534
30535 2009-07-23  Jim Meyering  <meyering@redhat.com>
30536
30537         maint.mk: invoke "make dist" with a working value of XZ_OPT
30538         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30539
30540 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30541
30542         Make fseeko.c compile on QNX.
30543         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30544
30545 2009-07-22  Peter Simons  <simons@cryp.to>
30546
30547         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30548         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30549         * lib/md4.h: Likewise.
30550         * lib/md5.h: Likewise.
30551         * lib/sha1.h: Likewise.
30552         * lib/sha256.h: Likewise.
30553         * lib/sha512.h: Likewise.
30554
30555         tests-sha1: don't assign literal string to 'char *' variable
30556         * tests/test-sha1.c (main): Declare locals with "const" to match
30557         attributes of the right hand side.
30558
30559 2009-07-21  Eric Blake  <ebb9@byu.net>
30560
30561         dup2: fix more mingw problems
30562         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30563         fd to itself.
30564         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30565         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30566         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30567         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30568         care of mingw bugs.
30569
30570 2009-07-21  Jim Meyering  <meyering@redhat.com>
30571
30572         vc-list-files: avoid failure when /bin/sh is dash
30573         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30574         On some Debian based systems, /bin/sh is a symlink to dash, and running
30575         this command would omit the "/" following each 'tests' prefix:
30576           dash -x build-aux/vc-list-files -C . tests
30577         That is because bash and dash work differently:
30578           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30579           bash ok
30580           dash odd
30581
30582 2009-07-21  Eric Blake  <ebb9@byu.net>
30583
30584         dup2-tests: test previous patch
30585         * modules/dup2-tests: New file.
30586         * tests/test-dup2.c: Likewise.
30587         * tests/test-open.c (main): Avoid unspecified behavior.
30588         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30589         test.
30590
30591         dup2: work around mingw and cygwin 1.5 bug
30592         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30594         * modules/unistd (Makefile.am): Substitute it.
30595         * lib/unistd.in.h (dup2): Declare the replacement.
30596         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30597         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30598         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30599         * modules/execute (Depends-on): Add dup2.
30600         * modules/fseterr (Depends-on): Likewise.
30601         * modules/pipe (Depends-on): Likewise.
30602         * modules/posix_spawn-internal (Depends-on): Likewise.
30603
30604 2009-07-21  Bruno Haible  <bruno@clisp.org>
30605
30606         * modules/.gitattributes: New file.
30607
30608 2009-07-20  Bruno Haible  <bruno@clisp.org>
30609
30610         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30611         (main): Use it.
30612
30613 2009-07-20  Eric Blake  <ebb9@byu.net>
30614
30615         test-pipe: make a bit more robust.
30616         * tests/test-pipe.c (myerr): Allow error messages regardless of
30617         what we do to stderr.
30618         (test_pipe): Rearrange to avoid deadlock.
30619         (child_main): Try a larger read, to ensure we avoided deadlock.
30620         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30621         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30622         if misused.
30623
30624 2009-07-19  Jim Meyering  <meyering@redhat.com>
30625
30626         fts: avoid false-positive cycle-detection
30627         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30628         for each new command line argument.
30629
30630 2009-07-19  Bruno Haible  <bruno@clisp.org>
30631
30632         Fix build error on mingw with the modules sys_select and unistd.
30633         * modules/acl-tests (Depends-on): Add close.
30634         * modules/binary-io-tests (Depends-on): Likewise.
30635         * modules/closein-tests (Depends-on): Likewise.
30636         * modules/flock-tests (Depends-on): Likewise.
30637         * modules/fsync-tests (Depends-on): Likewise.
30638         * modules/lseek-tests (Depends-on): Likewise.
30639         * modules/pipe-tests (Depends-on): Likewise.
30640         * modules/posix_spawn-tests (Depends-on): Likewise.
30641         * modules/posix_spawnp-tests (Depends-on): Likewise.
30642         * modules/stat-time-tests (Depends-on): Likewise.
30643         * modules/yesno-tests (Depends-on): Likewise.
30644
30645 2009-07-19  Bruno Haible  <bruno@clisp.org>
30646
30647         Unify conditionals.
30648         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30649         macros, not at the compiler macros.
30650         * lib/pipe.c: Likewise.
30651         * lib/execute.c: Likewise.
30652         * lib/spawni.c: Likewise.
30653
30654 2009-07-19  Bruno Haible  <bruno@clisp.org>
30655
30656         Fix handling of closed stdin/stdout/stderr on mingw.
30657         * lib/w32spawn.h: Include unistd.h.
30658         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30659         file descriptor with O_NOINHERIT flag.
30660         (fd_safer_noinherit): New function, based on fd-safer.c.
30661         (dup_safer_noinherit): New function, based on dup-safer.c.
30662         (undup_safer_noinherit): New function.
30663         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30664         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30665         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30666         instead of fd_safer.
30667         * tests/test-pipe.c: Include <windows.h>.
30668         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30669         result.
30670
30671         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30672         from main.
30673         (test_pipe): Pass an extra argument for disambiguation.
30674         (main): Invoke parent_main or child_main.
30675
30676         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30677         consistently.
30678
30679 2009-07-18  Eric Blake  <ebb9@byu.net>
30680
30681         test-pipe: fix mingw build
30682         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30683
30684 2009-07-18  Bruno Haible  <bruno@clisp.org>
30685
30686         * modules/pipe-tests (Makefile.am): Fix typo.
30687
30688 2009-07-18  Eric Blake  <ebb9@byu.net>
30689
30690         error: fix mingw build
30691         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30692         Reported by Bruno Haible.
30693
30694         error: avoid undefined use of stdout
30695         * lib/error.c (error, error_at_line): Check that fd 1 is open
30696         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30697         is handling faults and the close_stdout module wants to report the
30698         detection of closed stdout as an error.
30699
30700 2009-07-17  Eric Blake  <ebb9@byu.net>
30701
30702         pipe: be robust in face of closed fds
30703         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30704         should cause child to misbehave.
30705         * modules/pipe-tests: New module.
30706         * tests/test-pipe.c: New file.
30707         * tests/test-pipe.sh: New file.
30708         Reported by Akim Demaille.
30709
30710 2009-07-14  Bruno Haible  <bruno@clisp.org>
30711
30712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30713         Reported by anonymous kc.
30714
30715 2009-07-07  Jim Meyering  <meyering@redhat.com>
30716
30717         maint.mk: don't look for translatable strings in *.m4 or *.mk
30718         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30719         when searching for translatable strings.
30720
30721 2009-07-05  Jim Meyering  <meyering@redhat.com>
30722
30723         remove superfluous parentheses in STREQ definition
30724         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30725         * lib/getugroups.c (STREQ): Likewise.
30726         * lib/fnmatch.c (STREQ): Likewise.
30727         Spotted by Bruno Haible.
30728
30729 2009-07-04  Jim Meyering  <meyering@redhat.com>
30730
30731         argv-iter: new module
30732         * MODULES.html.sh: Add argv-iter.
30733         * lib/argv-iter.c, lib/argv-iter.h: New files.
30734         * modules/argv-iter: New file.
30735         * modules/argv-iter-tests: New file.
30736         * tests/test-argv-iter.c: Test it.
30737
30738 2009-07-04  Bruno Haible  <bruno@clisp.org>
30739
30740         Fix assertion.
30741         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30742         contains more exact copies of a given entry than file2, leave the extra
30743         copies unpaired rather than aborting.
30744         Reported by Eric Blake.
30745
30746 2009-07-02  Bruno Haible  <bruno@clisp.org>
30747
30748         Speedup git-merge-changelog for git cherry-pick.
30749         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30750         (entries_mapping_get): New function, extracted from compute_mapping.
30751         (entries_mapping_reverse_get): New function.
30752         (compute_mapping): Add a 'full' argument. Return the result in a
30753         'struct entries_mapping'.
30754         (main): Update. Access the mappings through entries_mapping_get.
30755         Reported by Eric Blake.
30756
30757 2009-07-02  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30760         best_i.
30761
30762 2009-07-02  Bruno Haible  <bruno@clisp.org>
30763
30764         Speed up approximate search for matching ChangeLog entries.
30765         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30766         argument. Call fstrcmp_bounded instead of fstrcmp.
30767         (compute_mapping, try_split_merged_entry, main): Update callers.
30768
30769 2009-07-02  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30772
30773 2009-06-30  Bruno Haible  <bruno@clisp.org>
30774
30775         Reduce the number of uc_is_cased calls.
30776         * lib/unicase.h (casing_suffix_context_t): Add
30777         'first_char_except_ignorable' field.
30778         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30779         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30780         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30781         Update initializer.
30782         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30783         case-ignorable characters.
30784         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30785         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30786         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30787         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30788         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30789
30790 2009-06-30  Bruno Haible  <bruno@clisp.org>
30791
30792         Tests for module 'unicase/ignorable'.
30793         * modules/unicase/ignorable-tests: New file.
30794         * tests/unicase/test-ignorable.c: New file, generated by
30795         gen-uni-tables.
30796
30797         Tests for module 'unicase/cased'.
30798         * modules/unicase/cased-tests: New file.
30799         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30800         * tests/unicase/test-predicate-part1.h: New file, derived from
30801         tests/unictype/test-predicate-part1.h.
30802         * tests/unicase/test-predicate-part2.h: New file, same as
30803         tests/unictype/test-predicate-part2.h.
30804
30805         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30806         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30807         (output_casing_properties): New function.
30808         (main): Call it.
30809         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30810         * lib/unicase/cased.c: Include unictype/bitmap.h.
30811         (uc_is_cased): Define through a bitmap lookup.
30812         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30813         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30814         (uc_is_case_ignorable): Define through a bitmap lookup.
30815         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30816         lib/unictype/bitmap.h.
30817         (Depends-on): Add inline. Clean up.
30818         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30819         lib/unictype/bitmap.h.
30820         (Depends-on): Add inline. Clean up.
30821         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30822         recognition.
30823         * tests/unicase/test-u16-tolower.c (main): Likewise.
30824         * tests/unicase/test-u32-tolower.c (main): Likewise.
30825
30826 2009-06-30  Bruno Haible  <bruno@clisp.org>
30827
30828         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30829         * lib/unicase/u16-casemap.c: Likewise.
30830         * lib/unicase/u32-casemap.c: Likewise.
30831
30832 2009-06-29  Bruno Haible  <bruno@clisp.org>
30833
30834         Define u32_casefold as a wrapper around u32_ct_casefold.
30835         * lib/unicase/u32-casefold.c: Update.
30836         * modules/unicase/u32-casefold (Depends-on): Add
30837         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30838         unicase/empty-suffix-context. Clean up.
30839
30840         Define u16_casefold as a wrapper around u16_ct_casefold.
30841         * lib/unicase/u16-casefold.c: Update.
30842         * modules/unicase/u16-casefold (Depends-on): Add
30843         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30844         unicase/empty-suffix-context. Clean up.
30845
30846         Define u8_casefold as a wrapper around u8_ct_casefold.
30847         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30848         * lib/unicase/u8-casefold.c: Update.
30849         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30850         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30851
30852         Define u32_totitle as a wrapper around u32_ct_totitle.
30853         * lib/unicase/u32-totitle.c: Update.
30854         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30855         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30856
30857         Define u16_totitle as a wrapper around u16_ct_totitle.
30858         * lib/unicase/u16-totitle.c: Update.
30859         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30860         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30861
30862         Define u8_totitle as a wrapper around u8_ct_totitle.
30863         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30864         functions.
30865         (FUNC): Delegate to U_CT_TOTITLE.
30866         * lib/unicase/u8-totitle.c: Update.
30867         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30869
30870         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30871         invocation.
30872         * modules/unicase/u32-tolower (Depends-on): Add
30873         unicase/empty-prefix-context, unicase/empty-suffix-context.
30874
30875         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30876         invocation.
30877         * modules/unicase/u16-tolower (Depends-on): Add
30878         unicase/empty-prefix-context, unicase/empty-suffix-context.
30879
30880         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30881         * modules/unicase/u8-tolower (Depends-on): Add
30882         unicase/empty-prefix-context, unicase/empty-suffix-context.
30883
30884         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30885         invocation.
30886         * modules/unicase/u32-toupper (Depends-on): Add
30887         unicase/empty-prefix-context, unicase/empty-suffix-context.
30888
30889         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30890         invocation.
30891         * modules/unicase/u16-toupper (Depends-on): Add
30892         unicase/empty-prefix-context, unicase/empty-suffix-context.
30893
30894         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30895         * modules/unicase/u8-toupper (Depends-on): Add
30896         unicase/empty-prefix-context, unicase/empty-suffix-context.
30897
30898         New module 'unicase/u32-ct-casefold'.
30899         * lib/unicase/u32-ct-casefold.c: New file.
30900         * modules/unicase/u32-ct-casefold: New file.
30901
30902         New module 'unicase/u16-ct-casefold'.
30903         * lib/unicase/u16-ct-casefold.c: New file.
30904         * modules/unicase/u16-ct-casefold: New file.
30905
30906         New module 'unicase/u8-ct-casefold'.
30907         * lib/unicase/u8-ct-casefold.c: New file.
30908         * lib/unicase/u-ct-casefold.h: New file, derived from
30909         lib/unicase/u-casefold.h.
30910         * modules/unicase/u8-ct-casefold: New file.
30911
30912         New module 'unicase/u32-ct-totitle'.
30913         * lib/unicase/u32-ct-totitle.c: New file.
30914         * modules/unicase/u32-ct-totitle: New file.
30915
30916         New module 'unicase/u16-ct-totitle'.
30917         * lib/unicase/u16-ct-totitle.c: New file.
30918         * modules/unicase/u16-ct-totitle: New file.
30919
30920         New module 'unicase/u8-ct-totitle'.
30921         * lib/unicase/u8-ct-totitle.c: New file.
30922         * lib/unicase/u-ct-totitle.h: New file, derived from
30923         lib/unicase/u-totitle.h.
30924         * modules/unicase/u8-ct-totitle: New file.
30925
30926         New module 'unicase/u32-ct-tolower'.
30927         * lib/unicase/u32-ct-tolower.c: New file.
30928         * modules/unicase/u32-ct-tolower: New file.
30929
30930         New module 'unicase/u16-ct-tolower'.
30931         * lib/unicase/u16-ct-tolower.c: New file.
30932         * modules/unicase/u16-ct-tolower: New file.
30933
30934         New module 'unicase/u8-ct-tolower'.
30935         * lib/unicase/u8-ct-tolower.c: New file.
30936         * modules/unicase/u8-ct-tolower: New file.
30937
30938         New module 'unicase/u32-ct-toupper'.
30939         * lib/unicase/u32-ct-toupper.c: New file.
30940         * modules/unicase/u32-ct-toupper: New file.
30941
30942         New module 'unicase/u16-ct-toupper'.
30943         * lib/unicase/u16-ct-toupper.c: New file.
30944         * modules/unicase/u16-ct-toupper: New file.
30945
30946         New module 'unicase/u8-ct-toupper'.
30947         * lib/unicase/u8-ct-toupper.c: New file.
30948         * modules/unicase/u8-ct-toupper: New file.
30949
30950         Add context arguments to u*_casemap functions.
30951         * lib/unicase/unicasemap.h: Include unicase.h.
30952         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30953         suffix_context arguments.
30954         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30955         functions.
30956         (FUNC): Add prefix_context and suffix_context arguments. Use
30957         uc_is_cased and uc_is_case_ignorable.
30958         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30959         * lib/unicase/u16-casemap.c: Likewise.
30960         * lib/unicase/u32-casemap.c: Likewise.
30961         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30962         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30963         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30964         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30965         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30966         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30967
30968         New module 'unicase/u32-suffix-context'.
30969         * lib/unicase/u32-suffix-context.c: New file.
30970         * modules/unicase/u32-suffix-context: New file.
30971
30972         New module 'unicase/u16-suffix-context'.
30973         * lib/unicase/u16-suffix-context.c: New file.
30974         * modules/unicase/u16-suffix-context: New file.
30975
30976         New module 'unicase/u8-suffix-context'.
30977         * lib/unicase/u8-suffix-context.c: New file.
30978         * lib/unicase/u-suffix-context.h: New file.
30979         * modules/unicase/u8-suffix-context: New file.
30980
30981         New module 'unicase/empty-suffix-context'.
30982         * lib/unicase/empty-suffix-context.c: New file.
30983         * modules/unicase/empty-suffix-context: New file.
30984
30985         New module 'unicase/u32-prefix-context'.
30986         * lib/unicase/u32-prefix-context.c: New file.
30987         * modules/unicase/u32-prefix-context: New file.
30988
30989         New module 'unicase/u16-prefix-context'.
30990         * lib/unicase/u16-prefix-context.c: New file.
30991         * modules/unicase/u16-prefix-context: New file.
30992
30993         New module 'unicase/u8-prefix-context'.
30994         * lib/unicase/u8-prefix-context.c: New file.
30995         * lib/unicase/u-prefix-context.h: New file.
30996         * lib/unicase/context.h: New file.
30997         * modules/unicase/u8-prefix-context: New file.
30998
30999         New module 'unicase/empty-prefix-context'.
31000         * lib/unicase/empty-prefix-context.c: New file.
31001         * modules/unicase/empty-prefix-context: New file.
31002
31003         New module 'unicase/ignorable'.
31004         * lib/unicase/ignorable.c: New file.
31005         * modules/unicase/ignorable: New file.
31006
31007         New module 'unicase/cased'.
31008         * lib/unicase/caseprop.h: New file.
31009         * lib/unicase/cased.c: New file.
31010         * modules/unicase/cased: New file.
31011
31012         New functions for case mapping of substrings.
31013         * lib/unicase.h (casing_prefix_context_t): New type.
31014         (unicase_empty_prefix_context): New variable.
31015         (u8_casing_prefix_context, u16_casing_prefix_context,
31016         u32_casing_prefix_context, u8_casing_prefixes_context,
31017         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31018         declarations.
31019         (casing_suffix_context_t): New type.
31020         (unicase_empty_suffix_context): New variable.
31021         (u8_casing_suffix_context, u16_casing_suffix_context,
31022         u32_casing_suffix_context, u8_casing_suffixes_context,
31023         u16_casing_suffixes_context, u32_casing_suffixes_context,
31024         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31025         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31026         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31027         declarations.
31028
31029 2009-06-28  Jim Meyering  <meyering@redhat.com>
31030
31031         boostrap: indent only with spaces
31032         * build-aux/bootstrap: Indent only with spaces, never TABs.
31033
31034         bootstrap: split long lines
31035         * build-aux/bootstrap: Keep line length < 80.
31036
31037         bootstrap: sync from coreutils
31038         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31039         just as autoreconf does.  Verify a list of prerequisite
31040         package-name,version-number pairs if defined in bootstrap.conf.
31041         Refer to README-prereq, if prerequisites are not satisfied.
31042
31043 2009-06-27  Eric Blake  <ebb9@byu.net>
31044
31045         tests: add test for bogus NULL definition
31046         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31047         * tests/test-stdlib.c: Likewise.
31048         * tests/test-string.c: Likewise.
31049         * tests/test-locale.c: Likewise.
31050         * tests/test-unistd.c: Likewise.
31051         * modules/stdio-tests (Depends-on): Add verify.
31052         * modules/stdlib-tests (Depends-on): Likewise.
31053         * modules/string-tests (Depends-on): Likewise.
31054         * modules/locale-tests (Depends-on): Likewise.
31055         * modules/unistd-tests (Depends-on): Likewise.
31056
31057 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31058
31059         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31060         self-explaining comment.
31061         * m4/selinux-selinux-h: Update serial.
31062         (gl_LIBSELINUX): New macro, adding a warning for missing development
31063         packages to code extracted from...
31064         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31065         Add warning for missing development packages here, too.
31066
31067 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31068
31069         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31070
31071 2009-06-25  Eric Blake  <ebb9@byu.net>
31072
31073         version-etc: fix regression
31074         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31075         gcc.
31076         (version_etc): Use it, to catch bugs with trailing NULL.
31077         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31078         (version_etc_va): Fix logic bug.
31079         * modules/version-etc-tests: Add test.
31080         * tests/test-version-etc.c: New file.
31081         * tests/test-version-etc.sh: Likewise.
31082
31083 2009-06-25  Sam Steingold  <sds@gnu.org>
31084
31085         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31086         mbtowc declaration.
31087
31088 2009-06-25  Eric Blake  <ebb9@byu.net>
31089
31090         fpurge: migrate into <stdio.h>
31091         * lib/fpurge.h: Delete...
31092         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31093         * lib/fpurge.c (fpurge): Change declaring header.
31094         * modules/fpurge (Files): Drop deleted file.
31095         (Depends-on): Add stdio.
31096         (configure.ac): Set witness.
31097         * modules/stdio (Makefile.am): Support fpurge macros.
31098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31099         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31100         * lib/fflush.c: Update client.
31101         * tests/test-fpurge.c: Likewise.
31102         * NEWS: Mention the change.
31103
31104 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31105
31106         * lib/argp-version-etc.c (program_authors): Add const
31107         qualifier.
31108         * lib/version-etc.c: Fix typos in the comments.
31109         * modules/argp-version-etc: Depends on version-etc.
31110
31111 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31112
31113         argp-version-etc: new module.
31114
31115         * lib/argp-version-etc.c: New file.
31116         * lib/argp-version-etc.h: New file.
31117         * modules/argp-version-etc: New file.
31118         * modules/argp-version-etc-tests: New file.
31119         * tests/test-argp-version-etc.c: New test.
31120         * tests/test-argp-version-etc-1.sh: New test.
31121
31122 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31123
31124         Provide additional interfaces and documentation for version-etc
31125         module.
31126
31127         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31128         interfaces.
31129         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31130         prototypes.
31131
31132 2009-06-24  Bruno Haible  <bruno@clisp.org>
31133
31134         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31135         HAVE_LIB${NAME} macro.
31136         Reported by Sam Steingold <sds@gnu.org>.
31137
31138 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31139
31140         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31141         needed.
31142
31143 2009-06-21  Bruno Haible  <bruno@clisp.org>
31144
31145         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31146         work.
31147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31148         together with LIB${NAME}, LTLIB${NAME}.
31149         Reported by Sam Steingold <sds@gnu.org>.
31150
31151 2009-06-20  Jim Meyering  <meyering@redhat.com>
31152
31153         tests: make sc_require_test_exit_idiom more generic
31154         * top/maint.mk (Exit_witness_file): New overridable variable.
31155         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31156         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31157
31158 2009-06-19  Jim Meyering  <meyering@redhat.com>
31159
31160         hash: reverse order of src/dst parameters in an internal interface
31161         * lib/hash.c (transfer_entries): Reverse order of parameters to
31162         put DST before SRC.  Adjust callers.
31163
31164         tests: test-hash: avoid wholesale duplication
31165         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31166         Instead, use a loop and add a single conditional.
31167
31168         tests: test-hash: allow seed selection via a command line argument
31169         * tests/test-hash.c (get_seed): New function.
31170         (main): Use it.
31171
31172 2009-06-19  Eric Blake  <ebb9@byu.net>
31173
31174         hash: avoid memory leak on allocation failure
31175         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31176         failure.  Factor repeated algorithm...
31177         (transfer_entries): ...into new helper routine.
31178         (hash_delete): React to hash_rehash return value.
31179
31180         hash: reduce memory pressure in hash_rehash no-op case
31181         * lib/hash.c (next_prime): Avoid overflow.
31182         (hash_initialize): Factor bucket size computation...
31183         (compute_bucket_size): ...into new helper function.
31184         (hash_rehash): Use new function and open coding to reduce memory
31185         pressure, and avoid a memory leak in USE_OBSTACK code.
31186         Reported by Jim Meyering.
31187
31188 2009-06-18  Eric Blake  <ebb9@byu.net>
31189
31190         hash: make rotation more obvious
31191         * modules/hash (Depends-on): Add bitrotate and stdint.
31192         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31193         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31194         (SIZE_MAX): Rely on headers for definition.
31195         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31196         (raw_hasher): Use rotr_sz.
31197         Suggested by Jim Meyering.
31198
31199         hash: fix memory leak in last patch
31200         * lib/hash.c (hash_rehash): Avoid memory leak.
31201
31202         hash: avoid no-op rehashing
31203         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31204
31205         hash: provide default callback functions
31206         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31207         (hash_initialize): Use them as defaults.
31208         * tests/test-hash.c (main): Test this.
31209
31210         hash: minor optimization
31211         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31212         when possible.
31213         (hash_initialize): Document this promise.
31214         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31215         * tests/test-hash.c (hash_compare_strings): Test this.
31216
31217 2009-06-18  Bruno Haible  <bruno@clisp.org>
31218
31219         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31220         going to be replaced anyway.
31221
31222 2009-06-18  Bruno Haible  <bruno@clisp.org>
31223
31224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31225         in one place.
31226         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31227         be replaced anyway.
31228
31229 2009-06-18  Eric Blake  <ebb9@byu.net>
31230
31231         hash: check for resize before insertion
31232         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31233         threshold before insertion, so that a pathological hash_rehash
31234         that fills every bucket can still trigger another rehash.
31235
31236 2009-06-18  Jim Meyering  <meyering@redhat.com>
31237
31238         hash-tests: add a loop around the small tests
31239         * tests/test-hash.c (main): Repeat small tests with selected
31240         small initial table sizes.
31241
31242 2009-06-17  Eric Blake  <ebb9@byu.net>
31243
31244         hash: minor cleanups
31245         * lib/hash.h (hash_entry): Make opaque, by moving...
31246         * lib/hash.c (hash_entry): ...here.
31247         (hash_insert): Clarify restrictions on what can be inserted.
31248         (hash_get_next): Clarify when it is safe to remove an element
31249         during traversal.
31250         (check_tuning): Skip verification when tuning is known safe.
31251         (hash_initialize): Clarify restrictions on tuning.
31252
31253 2009-06-17  Jim Meyering  <jim@meyering.net>
31254         and Eric Blake  <ebb9@byu.net>
31255
31256         hash-tests: new module
31257         * modules/hash-tests: New file.
31258         * tests/test-hash.c: New file.
31259
31260 2009-06-17  Eric Blake  <ebb9@byu.net>
31261
31262         strstr-simple: document new module
31263         * MODULES.html.sh: Document new module.
31264
31265         strstr, strcasestr: replace on platforms with broken memchr
31266         * modules/strstr: Split into...
31267         * modules/strstr-simple: ...new module that does not care about
31268         performance, but does care about glibc bug.
31269         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31270         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31271         if platform memchr is broken, per Debian bug 521737.
31272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31273         memchr.
31274         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31275         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31276         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31277         * modules/mountlist (Depends-on): Add strstr-simple.
31278         * modules/gen-uni-tables (Depends-on): Likewise.
31279         * modules/argz (Depends-on): Add strstr.
31280
31281 2009-06-17  Bruno Haible  <bruno@clisp.org>
31282
31283         * modules/posix_spawn-internal (Depends-on): Add errno.
31284
31285 2009-06-17  Bruno Haible  <bruno@clisp.org>
31286
31287         Define missing ESTALE on Interix 3.5.
31288         * lib/errno.in.h (ESTALE): Assign a value if missing.
31289         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31291         missing.
31292         * doc/posix-headers/errno.texi: Mention the Interix bug.
31293         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31294
31295 2009-06-15  Eric Blake  <ebb9@byu.net>
31296
31297         memchr, memchr2: add valgrind exception
31298         * lib/memchr.valgrind: New file.
31299         * lib/memchr2.valgrind: New file.
31300         * modules/memchr (Files): Distribute valgrind file.
31301         * modules/memchr2 (Files): Likewise.
31302
31303         docs: memchr is no longer obsolete
31304         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31305         * lib/string.in.h (memchr): Simplify logic.
31306
31307 2009-06-14  Jim Meyering  <meyering@redhat.com>
31308
31309         link-follow: fix the "checking..." message to not mention trailing slash
31310         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31311         never considered trailing slashes.
31312
31313 2009-06-14  Bruno Haible  <bruno@clisp.org>
31314
31315         * m4/memchr.m4: Mention also the bug on IA-64.
31316         * doc/posix-functions/memchr.texi: Likewise.
31317
31318 2009-06-12  Eric Blake  <ebb9@byu.net>
31319
31320         memchr: detect broken x86_64 and alpha implementations
31321         * modules/memchr-tests (Depends-on): Move mmap detection...
31322         * modules/memchr (Depends-on): ...here.
31323         (configure.ac): Set indicator.
31324         * lib/string.in.h (memchr): Declare replacement.
31325         * modules/string (Makefile.am): Trigger replacement.
31326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31327         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31328         bugs.
31329         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31330         * modules/getpagesize (License): Relax license.
31331
31332 2009-06-11  Bruno Haible  <bruno@clisp.org>
31333
31334         * lib/idpriv.h: Add more references.
31335
31336 2009-06-08  Bruno Haible  <bruno@clisp.org>
31337
31338         Tests for module 'idpriv-droptemp'.
31339         * modules/idpriv-droptemp-tests: New file.
31340         * tests/test-idpriv-droptemp.sh: New file.
31341         * tests/test-idpriv-droptemp.su.sh: New file.
31342         * tests/test-idpriv-droptemp.c: New file.
31343
31344         New module 'idpriv-droptemp'.
31345         * lib/idpriv-droptemp.c: New file.
31346         * modules/idpriv-droptemp: New file.
31347
31348 2009-06-08  Bruno Haible  <bruno@clisp.org>
31349
31350         Tests for module 'idpriv-drop'.
31351         * modules/idpriv-drop-tests: New file.
31352         * tests/test-idpriv-drop.sh: New file.
31353         * tests/test-idpriv-drop.su.sh: New file.
31354         * tests/test-idpriv-drop.c: New file.
31355
31356         New module 'idpriv-drop'.
31357         * lib/idpriv.h: New file.
31358         * lib-idpriv-drop.c: New file.
31359         * m4/idpriv.m4: New file.
31360         * modules/idpriv-drop: New file.
31361
31362 2009-06-08  Bruno Haible  <bruno@clisp.org>
31363
31364         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31365         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31366         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31367         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31368         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31369         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31370         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31371
31372 2009-06-08  Eric Blake  <ebb9@byu.net>
31373
31374         test-strstr: use memory fence, when possible
31375         * tests/test-strstr.c (main): Use memory fence, in order to be
31376         more likely to trigger Debian bug 521737.
31377         * modules/strstr-tests (Files): Pull in additional files.
31378
31379         memchr: no longer obsolete, for wider field testing
31380         * modules/memchr (Status, Notice): Delete, this module is no
31381         longer obsolete.
31382         * modules/vasnprintf (Depends-on): Add memchr.
31383
31384 2009-06-07  Jim Meyering  <meyering@redhat.com>
31385
31386         hash: declare some functions with the warn_unused_result attribute
31387         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31388
31389 2009-06-07  Bruno Haible  <bruno@clisp.org>
31390
31391         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31392         Reported by Eric Blake.
31393
31394 2009-06-06  Eric Blake  <ebb9@byu.net>
31395
31396         test-alignof: fix typo with long double
31397         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31398         compiler error.
31399
31400 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31401
31402         Escape non-texinfo { and }s.
31403         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31404         markup error.
31405
31406 2009-06-04  Jim Meyering  <meyering@redhat.com>
31407
31408         gitlog-to-changelog: don't infloop on an empty commit log
31409         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31410         Reported by Boris Petersen <transacid@centerim.org>.
31411
31412 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31413
31414         version-etc: extend for packagers
31415         Add three new configure options, intended for packagers:
31416           --with-packager="packager name"
31417           --with-packager-version="packager-specific version"
31418           --with-packager-bug-reports="packager bug reporting"
31419         An example with coreutils:
31420           $ ./configure \
31421             --with-packager=Gentoo \
31422             --with-packager-bug-report=http://bugs.gentoo.org/ \
31423             --with-packager-version="patchset 1.6"
31424           $ ./src/ls --version | head -n2
31425           ls (GNU coreutils) 7.1-dirty
31426           Packaged by Gentoo (patchset 1.6)
31427         Note that the bug reporting info via --help doesn't show up because
31428         coreutils uses its own custom emit_bug_reporting_address() implementation
31429         in src/system.h.  If it didn't, it'd look like:
31430           $ ./src/ls --help | tail -n4
31431           Report bugs to <bug-coreutils@gnu.org>.
31432           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31433           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31434           General help using GNU software: <http://www.gnu.org/gethelp/>.
31435         * lib/version-etc.c: Print new information, if provided.
31436         * m4/version-etc.m4: New file.
31437         * modules/version-etc (Files): Add m4/version-etc.m4.
31438         (configure.ac): Add gl_VERSION_ETC.
31439
31440 2009-05-31  Bruno Haible  <bruno@clisp.org>
31441
31442         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31443         and 'int64_t'.
31444         * modules/alignof-tests (Dependencies): Add stdint.
31445         Reported by Eric Blake.
31446
31447 2009-05-31  Bruno Haible  <bruno@clisp.org>
31448
31449         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31450         restriction due to compiler bugs.
31451         Reported by Eric Blake.
31452
31453 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31454             Bruno Haible  <bruno@clisp.org>
31455
31456         Fix test-alignof failure.
31457         * lib/alignof.h (alignof_slot): New macro.
31458         (alignof_type): New macro, with the same semantics as the previous
31459         'alignof'.
31460         (alignof): Alias to alignof_slot.
31461         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31462         check that the results are usable as constant expressions.
31463
31464 2009-05-31  Bruno Haible  <bruno@clisp.org>
31465
31466         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31467         * tests/test-memchr.c (main): Check that memchr does not read past the
31468         first occurrence of the byte.
31469         * tests/test-strstr.c (main): Update comment.
31470         Suggested by Eric Blake.
31471
31472 2009-05-30  Bruno Haible  <bruno@clisp.org>
31473
31474         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31475         detail how to use dumpbin.
31476         Reported by David Byron <dbyron@dbyron.com>.
31477
31478 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31479
31480         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31481
31482 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31483
31484         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31485
31486 2009-05-28  Bruno Haible  <bruno@clisp.org>
31487
31488         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31489         build-aux/ files.
31490
31491 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31492
31493         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31494
31495 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31496
31497         * gnulib-tool (sed_transform_main_lib_file)
31498         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31499         regexps.
31500
31501 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31502
31503         * tests/test-strstr.c: Add another self-test.
31504         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31505         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31506
31507 2009-05-23  Bruno Haible  <bruno@clisp.org>
31508
31509         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31510         change.
31511
31512 2009-05-21  Bruno Haible  <bruno@clisp.org>
31513
31514         Simplify use of mode_t varargs.
31515         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31516         uses 'mode_t' or 'int'.
31517         * lib/openat.c (openat): Likewise.
31518         * lib/open-safer.c (open_safer): Likewise.
31519         * m4/mode_t.m4: New file.
31520         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31521         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31522         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31523         * modules/open (Files): Add m4/mode_t.m4.
31524         * modules/openat (Files): Likewise.
31525         * modules/fcntl-safer (Files): Likewise.
31526         Suggested by Eric Blake.
31527
31528 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31529
31530         * doc/glibc-functions/fallocate.texi: New file.
31531         * doc/gnulib.texi: Include it.
31532
31533 2009-05-21  Eric Blake  <ebb9@byu.net>
31534             Bruno Haible  <bruno@clisp.org>
31535
31536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31537         invocations.
31538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31539
31540 2009-05-21  Eric Blake  <ebb9@byu.net>
31541             Bruno Haible  <bruno@clisp.org>
31542
31543         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31544         include_next. Fix of 2008-11-20 commit.
31545         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31546         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31547         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31548         NEXT_MATH_H.
31549         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31550         instead of NEXT_MATH_H.
31551
31552 2009-05-21  Bruno Haible  <bruno@clisp.org>
31553
31554         Avoid redefinition warnings for SIZE_MAX.
31555         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31556         Reported by Simon Josefsson.
31557
31558 2009-05-21  Bruno Haible  <bruno@clisp.org>
31559
31560         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31561         AC_CACHE_VAL.
31562
31563 2009-05-20  Bruno Haible  <bruno@clisp.org>
31564
31565         Make zeroptr.h work on mingw.
31566         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31567         mprotect.
31568         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31569         * modules/memchr2-tests (configure.ac): Likewise.
31570         * modules/memcmp-tests (configure.ac): Likewise.
31571         * modules/memmem-tests (configure.ac): Likewise.
31572         * modules/memrchr-tests (configure.ac): Likewise.
31573         Reported by Simon Josefsson.
31574
31575 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31576
31577         * tests/test-glob.c: Include string.h for strcmp prototype.
31578
31579 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31580
31581         * modules/getdelim (Depends-on): Add explicit stdint, although it
31582         was implicitly already pulled in via realloc-posix.
31583         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31584
31585 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31586
31587         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31588         G. Christensen" <tgc@jupiterrise.com>.
31589         * m4/sys_socket_h.m4: Check for sa_family_t.
31590         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31591         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31592         * tests/test-sys_socket.c: Check that sa_family_t works.
31593
31594 2009-05-18  Eric Blake  <ebb9@byu.net>
31595
31596         maint.mk: allow gnulib_dir in VPATH build
31597         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31598
31599 2009-05-15  Jim Meyering  <meyering@redhat.com>
31600
31601         maint.mk: Give gnulib_dir a default definition.
31602         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31603         Thus, most packages no longer need to specify this variable in cfg.mk
31604
31605 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31606
31607         rename.m4: fix typos that would make non-mingw cross-configure fail
31608         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31609
31610 2009-05-13  Eric Blake  <ebb9@byu.net>
31611
31612         mmap-anon: avoid out-of-order autoconf expansion
31613         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31614         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31615         * modules/memchr-tests (Depends-on): Add extensions.
31616         * modules/memchr2-tests (Depends-on): Add extensions.
31617         * modules/memcmp-tests (Depends-on): Add extensions.
31618         * modules/memmem-tests (Depends-on): Add extensions.
31619         * modules/memrchr-tests (Depends-on): Add extensions.
31620
31621 2009-05-13  Bruno Haible  <bruno@clisp.org>
31622
31623         Make some tests ISO C 99 compliant.
31624         * tests/zerosize-ptr.h: New file.
31625         * tests/test-memchr.c: Include zerosize-ptr.h.
31626         (main): Use a zero-size object pointer instead of NULL.
31627         * tests/test-memchr2.c: Include zerosize-ptr.h.
31628         (main): Use a zero-size object pointer instead of NULL.
31629         * tests/test-memcmp.c: Include zerosize-ptr.h.
31630         (main): Use a zero-size object pointer instead of NULL.
31631         * tests/test-memmem.c: Include zerosize-ptr.h.
31632         (main): Use a zero-size object pointer instead of NULL.
31633         * tests/test-memrchr.c: Include zerosize-ptr.h.
31634         (main): Use a zero-size object pointer instead of NULL.
31635         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31636         m4/mmap-anon.m4.
31637         (Depends-on): Add getpagesize.
31638         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31639         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31640         m4/mmap-anon.m4.
31641         (Depends-on): Add getpagesize.
31642         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31643         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31644         m4/mmap-anon.m4.
31645         (Depends-on): Add getpagesize.
31646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31647         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31648         m4/mmap-anon.m4.
31649         (Depends-on): Add getpagesize.
31650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31651         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31652         m4/mmap-anon.m4.
31653         (Depends-on): Add getpagesize.
31654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31655
31656 2009-05-12  Bruno Haible  <bruno@clisp.org>
31657
31658         Tests for module 'alignof'.
31659         * modules/alignof-tests: New file.
31660         * tests/test-alignof.c: New file.
31661
31662 2009-05-12  Bruno Haible  <bruno@clisp.org>
31663
31664         Fix alignof macro.
31665         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31666         vendor compilers that are always correct.
31667
31668 2009-05-12  Bruno Haible  <bruno@clisp.org>
31669
31670         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31671         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31672         not whether its fully works.
31673
31674 2009-05-12  Bruno Haible  <bruno@clisp.org>
31675
31676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31677
31678 2009-05-12  Jim Meyering  <meyering@redhat.com>
31679
31680         * top/maint.mk: Adjust backslash alignment.
31681
31682 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31683
31684         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31685
31686 2009-05-11  Eric Blake  <ebb9@byu.net>
31687
31688         argp: avoid undefined behavior
31689         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31690         macros.
31691
31692 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31693
31694         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31695         user.name to prevent git commit from complaining.
31696
31697 2009-05-10  Bruno Haible  <bruno@clisp.org>
31698
31699         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31700         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31701         it rewrites every file name only once.
31702         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31703
31704 2009-05-08  Bruno Haible  <bruno@clisp.org>
31705
31706         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31707         instead of 'max'.
31708
31709 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31710
31711         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31712         sockaddr_storage test.
31713
31714 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31715
31716         * modules/sys_socket (Makefile.am): Substitute
31717         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31718         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31719         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31720         * tests/test-sys_socket.c: Check sockaddr_storage.
31721
31722 2009-05-08  Bruno Haible  <bruno@clisp.org>
31723
31724         New module 'alignof'.
31725         * lib/alignof.h: New file.
31726         * modules/alignof: New file.
31727
31728 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31729             Bruno Haible  <bruno@clisp.org>
31730
31731         Fix test-file-has-acl on FreeBSD.
31732         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31733         mask is implicitly added.
31734         * tests/test-file-has-acl.c: Include <signal.h>.
31735         (main): Terminate the test after 5 seconds.
31736         * modules/acl-tests (configure.ac): Check for alarm function.
31737
31738 2009-05-04  Bruno Haible  <bruno@clisp.org>
31739
31740         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31742         * modules/errno (configure.ac): Drop AC_REQUIRE.
31743         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31744         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31745
31746 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31747
31748         * modules/glob-tests: New module.
31749         * tests/test-glob.c: Add.
31750
31751 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31752
31753         * modules/fnmatch-tests: New module.
31754         * tests/test-fnmatch.c: Add.
31755
31756 2009-05-04  Eric Blake  <ebb9@byu.net>
31757
31758         maint: make the new no-submodule-changes rule VPATH-safe
31759         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31760
31761 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31762             Bruno Haible  <bruno@clisp.org>
31763
31764         acl: Fix infinite loop on FreeBSD.
31765         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31766         of return value from acl_get_entry.
31767         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31768         Likewise.
31769
31770 2009-05-03  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/acl-internal.h (acl_entries): Clarify return value.
31773         * lib/acl_entries.c (acl_entries): Likewise.
31774
31775 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31776
31777         Bug fix in acl module.
31778         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31779
31780 2009-05-03  Bruno Haible  <bruno@clisp.org>
31781
31782         Create gperf-generated file in the source dir, not in the build dir.
31783         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31784         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31785         * modules/unicase/locale-language (unicase/locale-languages.h):
31786         Likewise.
31787         * modules/unicase/special-casing (unicase/special-casing-table.h):
31788         Likewise.
31789         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31790         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31791         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31792         Reported by Ralf Wildenhues.
31793
31794 2009-05-03  Bruno Haible  <bruno@clisp.org>
31795
31796         * modules/fnmatch (Description, configure.ac): Taken from
31797         fnmatch-posix.
31798         * modules/fnmatch-posix: Turn into a symbolic reference to the
31799         'fnmatch' module, and deprecate.
31800         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31801
31802 2009-05-03  Bruno Haible  <bruno@clisp.org>
31803
31804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31805         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31806         Reported by Ralf Wildenhues.
31807
31808 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31809
31810         * m4/fnmatch.m4: Fix fnmatch re-define.
31811
31812 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31813
31814         priv-set: new module and tests; adapt write-any-file
31815         * lib/priv-set.c: New file.
31816         * lib/priv-set.h: New file.
31817         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31818         * lib/write-any-file.c: Simplify by using priv-set module.
31819         * m4/priv-set.m4: New file.
31820         * modules/priv-set: New file.
31821         * modules/unlinkdir: Add dependency on priv-set module.
31822         * modules/write-any-file: Likewise.
31823
31824         Tests for module 'priv-set'.
31825         * modules/priv-set-tests: New file.
31826         * tests/test-priv-set.c: New file.
31827
31828 2009-05-03  Jim Meyering  <meyering@redhat.com>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31832         use the converted UTF-8 variant of the name instead.
31833
31834 2009-05-03  Jim Meyering  <meyering@redhat.com>
31835
31836         tests: tighten some getdate tests
31837         * tests/test-getdate.c (main): Tighten tests: require equality,
31838         not just greater than.  Set TZ envvar to UTC0.
31839
31840 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31841
31842         getdate: correctly interpret "next monday" when run on a Monday
31843         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31844         that e.g., "next tues" (when run on a tuesday) results in a date
31845         that is one week in the future, and not today's date.
31846         I.e., add a week when the wday is the same as the current one.
31847         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31848         and earlier by Martin Bernreuther and Jan Minář.
31849         * tests/test-getdate.c (main): Check that "next DAY" is always in
31850         the future and that "last DAY" is always in the past.
31851
31852 2009-05-02  Jim Meyering  <meyering@redhat.com>
31853
31854         build: ensure that a release build fails when a submodule is unclean
31855         * top/maint.mk (no-submodule-changes): New rule.
31856         (alpha beta major): Depend on it.
31857
31858 2009-05-02  Bruno Haible  <bruno@clisp.org>
31859
31860         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31861         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31862         shell variable gl_fnmatch_required to detect which variant is
31863         requested.
31864         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31865         gl_FUNC_FNMATCH_POSIX.
31866         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31867         exclude fnmatch-posix.
31868
31869 2009-05-02  Bruno Haible  <bruno@clisp.org>
31870
31871         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31872         * modules/mbsrtowcs (License): Change to LGPLv2+.
31873         * modules/strnlen1 (License): Likewise.
31874         Reported by Simon Josefsson.
31875
31876 2009-05-02  Bruno Haible  <bruno@clisp.org>
31877
31878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31879         "cross".
31880         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31881         gnulib-tool was called with option --source-base=lib.
31882
31883 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31884
31885         Use automake *-local hooks without commands, for extensibility.
31886         * modules/localcharset (Makefile.am): Rename install-exec-local
31887         rule to install-exec-localcharset, and make it a prerequisite of
31888         install-exec-local.  Likewise, rename the uninstall-local rule to
31889         uninstall-localcharset, and make it a prerequisite of the former.
31890
31891 2009-05-01  Bruno Haible  <bruno@clisp.org>
31892
31893         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31894         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31895         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31897         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31898         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31899         m4/locale-zh.m4, m4/codeset.m4.
31900
31901         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31902         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31903         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31904         m4/locale-zh.m4.
31905
31906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31907         REPLACE_WCRTOMB if mbstate_t must be replaced.
31908         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31909         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31910
31911 2009-05-01  Bruno Haible  <bruno@clisp.org>
31912
31913         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31914         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31915         dngettext, dcngettext, textdomain, bindtextdomain,
31916         bind_textdomain_codeset): Undefine before redefining.
31917
31918 2009-04-30  Bruno Haible  <bruno@clisp.org>
31919
31920         Fix bug introduced on 2009-04-25.
31921         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31922         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31923         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31924         is defined.
31925         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31926         is defined.
31927         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31928         is defined.
31929         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31930
31931 2009-04-28  Bruno Haible  <bruno@clisp.org>
31932
31933         Comment tweaks.
31934         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31935         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31936         * lib/unicase.h (u*_casexfrm): Likewise.
31937         Reported by Paolo Bonzini.
31938
31939 2009-04-28  Bruno Haible  <bruno@clisp.org>
31940
31941         Fix a compilation error.
31942         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31943         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31944         Reported by Jim Meyering.
31945
31946 2009-04-27  Bruno Haible  <bruno@clisp.org>
31947
31948         New module 'libunistring'.
31949         * modules/libunistring: New file.
31950         * m4/libunistring.m4: New file.
31951         * MODULES.html.sh (Unicode string functions): Add it.
31952
31953 2009-04-27  Eric Blake  <ebb9@byu.net>
31954
31955         maint.mk: allow package-specific header to provide <config.h>
31956         * top/maint.mk (sc_require_config_h): New variable.
31957         (sc_require_config_h, sc_require_config_h_first): Use it.
31958
31959 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31960
31961         * top/maint.mk (sc_avoid_if_before_free): Except
31962         useless-if-before-free script.
31963
31964 2009-04-27  Eric Blake  <ebb9@byu.net>
31965
31966         maintainer-makefile: depend on all required helper scripts
31967         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31968         useless-if-before-free.
31969         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31970         version, rather than assuming gnulib checkout is available.
31971         Reported by Simen Josefsson.
31972
31973 2009-04-26  Bruno Haible  <bruno@clisp.org>
31974
31975         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31976         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31977         "../" or "..".
31978
31979 2009-04-26  Bruno Haible  <bruno@clisp.org>
31980
31981         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31982         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31983         AC_LIB_HAVE_LINKFLAGS.
31984
31985 2009-04-26  Bruno Haible  <bruno@clisp.org>
31986
31987         Simplify calling convention of u*_conv_from_encoding.
31988         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31989         u32_conv_from_encoding): Expect a resultbuf argument and return the
31990         result directly as a pointer.
31991         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31992         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31993         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31994         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31995         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31996         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31997         Update.
31998         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31999         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32000         * lib/vasnprintf.c (VASNPRINTF): Update.
32001         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32002         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32003         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32004         * NEWS: Mention the change.
32005
32006 2009-04-26  Bruno Haible  <bruno@clisp.org>
32007
32008         Simplify calling convention of u*_conv_to_encoding.
32009         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32010         u32_conv_to_encoding): Expect a resultbuf argument and return the
32011         result directly as a pointer.
32012         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32013         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32014         freeing scaled_offsets if mem_iconveha failed.
32015         * lib/unicase/u-casexfrm.h (FUNC): Update.
32016         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32017         * lib/vasnprintf.c (VASNPRINTF): Update.
32018         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32019         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32020         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32021         * NEWS: Mention the change.
32022
32023 2009-04-26  Bruno Haible  <bruno@clisp.org>
32024
32025         Avoid test failures on AIX and OSF/1.
32026         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32027         malloc(0).
32028         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32029         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32030         Likewise.
32031         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32032         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32033         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32034         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32035         * doc/posix-functions/malloc.texi: Document the portability problem
32036         related to malloc(0).
32037
32038 2009-04-26  Bruno Haible  <bruno@clisp.org>
32039
32040         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32041         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32042         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32043
32044 2009-04-25  Bruno Haible  <bruno@clisp.org>
32045
32046         Avoid link error when creating a namespace clean library.
32047         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32048         as macro with arguments if already defined as an alias.
32049         * lib/signbitf.c (gl_signbitf): Don't undefine.
32050         * lib/signbitd.c (gl_signbitd): Don't undefine.
32051         * lib/signbitl.c (gl_signbitl): Don't undefine.
32052
32053 2009-04-25  Jim Meyering  <meyering@redhat.com>
32054
32055         vc-list-files: fix another quoting bug
32056         * build-aux/vc-list-files: Avoid sed backslash expansion
32057         of pathological directory names.
32058
32059 2009-04-25  Eric Blake  <ebb9@byu.net>
32060
32061         vc-list-files: fix shell quoting error
32062         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32063         timestamp.
32064
32065 2009-04-25  Jim Meyering  <meyering@redhat.com>
32066
32067         vc-list-files: restore lost functionality with subdir argument
32068         * build-aux/vc-list-files: When given a non-"." sub-directory
32069         argument, substitute the $dir/ prefix back onto each resulting name.
32070         Otherwise, coreutils' root_tests check would fail.
32071
32072 2009-04-24  Eric Blake  <ebb9@byu.net>
32073
32074         vc-list-files: ignore git symlinks
32075         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32076         than ls-files, to ignore git symlinks.
32077
32078         maint.mk: import improvements from m4
32079         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32080         (move_if_change): Delete unused macro.
32081         (news-date-check, vc-diff-check): Support VPATH builds.
32082         (announcement): Likewise.  Split --bootstrap-tools list...
32083         (boostrap-tools): ...into separate list, which can be overridden
32084         in cfg.mk.
32085         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32086         requiring dependency on useless-if-before-free module.
32087         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32088         Support VPATH builds.
32089
32090 2009-04-24  Jim Meyering  <meyering@redhat.com>
32091
32092         maint.mk: remove coreutils-specific rules and variables
32093         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32094         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32095         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32096
32097         maint.mk: remove obsolete rule
32098         * top/maint.mk (rel-check): Remove rule.
32099         (WGET, WGETFLAGS): Remove now-unused variables.
32100
32101 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32102
32103         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32104         consistency.
32105
32106         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32107         '$(PATH_SEPARATOR)' instead of ':'.
32108
32109 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32110
32111         * lib/getopt1.c (main): Use 'const' for static array.
32112
32113 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32114
32115         * top/maint.mk: Sync with coreutils.
32116         * NEWS: Explain incompatibilities.
32117
32118 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32119             Bruno Haible  <bruno@clisp.org>
32120
32121         Fix cross-compilation results.
32122         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32123         statement, as third argument of AC_TRY_RUN.
32124         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32125         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32126         Likewise.
32127         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32128         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32129         Likewise.
32130         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32131         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32132         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32133
32134 2009-04-20  Bruno Haible  <bruno@clisp.org>
32135
32136         Avoid test failure on mingw.
32137         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32138
32139 2009-04-20  Bruno Haible  <bruno@clisp.org>
32140
32141         Avoid compilation error on mingw.
32142         * modules/localename-tests (Depends-on): Add locale.
32143
32144 2009-04-19  Bruno Haible  <bruno@clisp.org>
32145
32146         Support for building a shared library on Windows platforms.
32147         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32148         (main): Test the presence of UNINORM_NFC here.
32149         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32150         (main): Test the presence of UNINORM_NFD here.
32151         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32152         (main): Test the presence of UNINORM_NFKC here.
32153         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32154         (main): Test the presence of UNINORM_NFKD here.
32155
32156 2009-04-19  Bruno Haible  <bruno@clisp.org>
32157
32158         Avoid a compiler warning.
32159         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32160         Change type of variable 'sequence'.
32161
32162 2009-04-19  Bruno Haible  <bruno@clisp.org>
32163
32164         * modules/configmake (Makefile.am): When the contents of configmake.h
32165         does not change, arrange to preserve its modification time.
32166
32167 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32168
32169         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32170         gettext domain.
32171
32172 2009-04-16  Jim Meyering  <meyering@redhat.com>
32173
32174         useless-if-before-free: improve conversion code
32175         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32176         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32177
32178 2009-04-14  Bruno Haible  <bruno@clisp.org>
32179
32180         * modules/fcntl (Depends-on): Add extensions.
32181         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32182
32183 2009-04-12  Ben Pfaff  <blp@gnu.org>
32184
32185         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32186         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32187
32188 2009-03-20  Ben Pfaff  <blp@gnu.org>
32189
32190         Make rename replace existing destinations on Windows.
32191         * m4/rename.m4: Add test for Mingw.
32192         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32193         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32194         * doc/posix-functions/rename.texi: Document.
32195
32196 2009-04-10  Bruno Haible  <bruno@clisp.org>
32197
32198         New include file "iconveh.h".
32199         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32200         * lib/striconveh.h: Include it.
32201         (enum iconv_ilseq_handler): Remove definition.
32202         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32203         striconveh.h.
32204         * lib/striconveha.c: Include striconveh.h.
32205         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32206         * modules/striconveh (Files): Add lib/iconveh.h.
32207         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32208         lib/striconveh.h.
32209
32210 2009-04-10  Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/uniconv.h: Update comment.
32213
32214 2009-04-10  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32217         always.
32218         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32219         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32220         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32221         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32222         "unistring-notinline.h", so that the function gets defined always.
32223         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32224         * lib/unistr/u8-uctomb.c: Likewise.
32225         * lib/unistr/u16-mbtouc.c: Likewise.
32226         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32227         * lib/unistr/u16-uctomb.c: Likewise.
32228         * lib/unistr/u32-mbtouc.c: Likewise.
32229         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32230         * lib/unistr/u32-uctomb.c: Likewise.
32231
32232 2009-04-10  Bruno Haible  <bruno@clisp.org>
32233
32234         Mark 'utime' obsolete.
32235         * modules/utime (Status, Notice): New sections.
32236         Suggested by Jim Meyering.
32237
32238         Fix cross-compile guess for utime test.
32239         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32240         autoconf.
32241         * doc/posix-functions/utime.texi: Give more precisions.
32242         Reported by Jan <ipif@ymail.com>.
32243
32244 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32245
32246         filevercmp: correct today's change
32247         * lib/filevercmp.c: Also handle coreutils' test inputs.
32248         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32249
32250         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32251         for reporting it.
32252         * lib/filevercmp.c: Special handle for "", "." and "..".
32253         * tests/test-filevercmp.c: Enlarge the set suite.
32254
32255 2009-04-07  Jim Meyering  <meyering@redhat.com>
32256
32257         useless-if-before-free: show how to remove braced useless free, too
32258         * build-aux/useless-if-before-free: still only in a comment, though.
32259
32260 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32261
32262         maint.mk: import changes to syntax-check macros from coreutils
32263         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32264         Use them in the relevant macros.
32265
32266 2009-04-06  Bruno Haible  <bruno@clisp.org>
32267
32268         Fix unportable use of bit-fields.
32269         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32270         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32271         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32272
32273 2009-04-06  Bruno Haible  <bruno@clisp.org>
32274
32275         Avoid test failures on AIX and OSF/1.
32276         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32277         that malloc(0) = NULL.
32278         * tests/unicase/test-u8-tolower.c (check): Likewise.
32279         * tests/unicase/test-u8-totitle.c (check): Likewise.
32280         * tests/unicase/test-u8-toupper.c (check): Likewise.
32281         * tests/unicase/test-u16-casefold.c (check): Likewise.
32282         * tests/unicase/test-u16-tolower.c (check): Likewise.
32283         * tests/unicase/test-u16-totitle.c (check): Likewise.
32284         * tests/unicase/test-u16-toupper.c (check): Likewise.
32285         * tests/unicase/test-u32-casefold.c (check): Likewise.
32286         * tests/unicase/test-u32-tolower.c (check): Likewise.
32287         * tests/unicase/test-u32-totitle.c (check): Likewise.
32288         * tests/unicase/test-u32-toupper.c (check): Likewise.
32289         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32290         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32291         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32292         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32293         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32294         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32295         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32296         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32297         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32298         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32299         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32300         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32301
32302 2009-04-05  Bruno Haible  <bruno@clisp.org>
32303
32304         Work around an autoconf limitation.
32305         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32306         comment line if it would be longer than 3 KB.
32307
32308 2009-04-05  Bruno Haible  <bruno@clisp.org>
32309
32310         Avoid test failure with libiconv-1.13.
32311         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32312         of the expected test results.
32313
32314 2009-04-05  Bruno Haible  <bruno@clisp.org>
32315
32316         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32317         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32318         that it should be installed.
32319
32320 2009-04-05  Bruno Haible  <bruno@clisp.org>
32321
32322         * gnulib-tool: New option --copy-file.
32323         (func_usage): Document it.
32324         (func_dest_tmpfilename): Moved out of func_import.
32325         (func_add_file, func_update_file): New functions, extracted from
32326         func_import.
32327         (func_import): Update.
32328
32329 2009-04-05  Karl Berry  <karl@gnu.org>
32330
32331         * README: prominently mention gnulib-tool.
32332         Rearrange sections so getting the code is near the top.
32333
32334 2009-04-05  Bruno Haible  <bruno@clisp.org>
32335
32336         * lib/unicase.h: Mention u*_cmp2.
32337         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32338         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32339         * lib/unicase/ulc-casecmp.c: Likewise.
32340         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32341         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32342         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32343         unistr/u8-cmp.
32344         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32345         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32346         unistr/u16-cmp.
32347         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32348         unistr/u32-cmp.
32349
32350         * lib/uninorm.h: Mention u*_cmp2.
32351         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32352         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32353         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32354         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32355         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32356         unistr/u8-cmp.
32357         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32358         unistr/u16-cmp.
32359         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32360         unistr/u32-cmp.
32361
32362         New module 'unistr/u32-cmp2'.
32363         * lib/unistr/u32-cmp2.c: New file.
32364         * modules/unistr/u32-cmp2: New file.
32365
32366         New module 'unistr/u16-cmp2'.
32367         * lib/unistr/u16-cmp2.c: New file.
32368         * modules/unistr/u16-cmp2: New file.
32369
32370         New module 'unistr/u8-cmp2'.
32371         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32372         * lib/unistr/u8-cmp2.c: New file.
32373         * lib/unistr/u-cmp2.h: New file.
32374         * modules/unistr/u8-cmp2: New file.
32375
32376 2009-04-05  Bruno Haible  <bruno@clisp.org>
32377
32378         * lib/unictype.h (uc_property_is_valid): New macro.
32379         * tests/unictype/test-pr_byname.c (main): Use it.
32380
32381         * lib/unistr.h: Doc fixes.
32382         * lib/uniconv.h: Doc fixes.
32383         * lib/unictype.h: Doc fixes.
32384
32385 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32386
32387         Port coreutils 7.2 to Solaris 8.
32388
32389         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32390         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32391         for Solaris 8.  This is a bit of a hack, as it means it's the
32392         caller's responsibility to add -lnsl if needed, but most likely it
32393         won't be needed since only getaddrinfo uses this and getaddrinfo
32394         isn't needed on Solaris 8.
32395
32396         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32397         problem to Solaris 8 encountered with coreutils 7.2, which
32398         resulted in a message "fnmatch.c:292: warning: passing argument 4
32399         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32400         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32401
32402 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32403
32404         * m4/ld-version-script.m4: Add FIXME comment.
32405
32406 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32407
32408         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32409         SOVERSION variable.
32410
32411 2009-04-02  Bruno Haible  <bruno@clisp.org>
32412
32413         * Makefile (info, html, dvi, pdf): Combine the rules.
32414         Suggested by Jim Meyering.
32415
32416 2009-04-01  Bruno Haible  <bruno@clisp.org>
32417
32418         * Makefile (info, html, dvi, pdf): New targets.
32419         Reported by Reuben Thomas <rrt@sc3d.org>.
32420
32421 2009-04-01  Bruno Haible  <bruno@clisp.org>
32422
32423         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32424         can be put into PATH.
32425         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32426
32427 2009-04-01  Bruno Haible  <bruno@clisp.org>
32428
32429         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32430
32431 2009-04-01  Bruno Haible  <bruno@clisp.org>
32432
32433         Rename module 'visibility'.
32434         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32435         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32436         * doc/gnulib.texi: Update.
32437         * MODULES.html.sh (Misc): Update.
32438         * NEWS: Mention the change.
32439
32440 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32441
32442         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32443         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32444         Eric Blake <ebb9@byu.net> for review.
32445         * MODULES.html.sh: Add lib-msvc-compat.
32446         * doc/gnulib.texi: Link to new section.
32447         * m4/ld-output-def.m4: New file.
32448         * doc/ld-output-def.texi: New file.
32449
32450 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32451
32452         Rename ld-version-script to lib-symbol-versions.  Suggested by
32453         Bruno Haible <bruno@clisp.org>.
32454         * modules/ld-version-script: Renamed to lib-symbol-versions.
32455         * doc/ld-version-script.texi: Fix module name.
32456         * MODULES.html.sh: Add lib-symbol-versions.
32457
32458 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32459
32460         * modules/u64-tests: New file.
32461         * tests/test-u64.c: New file.
32462
32463 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32464
32465         * MODULES.html.sh: Mention u64.
32466         * modules/u64: New module.
32467         * modules/crypto/sha512: Depend on u64 module instead of providing
32468         u64.h.
32469
32470 2009-03-27  Eric Blake  <ebb9@byu.net>
32471
32472         test-strerror: make debugging EAI_SYSTEM easier
32473         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32474         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32475         failure was EAI_SYSTEM.
32476
32477 2009-03-25  Bruno Haible  <bruno@clisp.org>
32478
32479         Fix a problem with --enable-relocatable on Solaris 7.
32480         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32481         since 2008-02-24.
32482
32483 2009-03-25  Eric Blake  <ebb9@byu.net>
32484
32485         test-sockets: avoid gcc warning
32486         * tests/test-sockets.c (main): Silence compiler warning.
32487
32488 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32489
32490         New modules nproc, pthread, contributed by Glen Lenker.
32491
32492         * MODULES.html.sh: Add pthread, nproc.
32493         * lib/nproc.c: New file.
32494         * lib/nproc.h: New file.
32495         * lib/pthread.in.h: New file.
32496         * m4/pthread.m4: New file.
32497         * modules/nproc: New file.
32498         * modules/pthread: New file.
32499
32500 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32501
32502         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32503         New variable.
32504
32505 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32506
32507         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32508         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32509         * tests/test-filevercmp.c: Add tests for backup suffixes.
32510
32511 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32512
32513         * modules/stdlib (Depends-on): Add stdint, needed when defining
32514         struct random_data on, for example, HP-UX 10.20.  Reported by
32515         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32516
32517 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32518
32519         * lib/readline.c (readline): Call fflush on stdout after printing
32520         prompt.
32521
32522 2009-03-20  Bruno Haible  <bruno@clisp.org>
32523
32524         Remove dependency from 'close' module to -lws2_32 on native Windows.
32525         * lib/close-hook.h: New file.
32526         * lib/close-hook.c: New file.
32527         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32528         w32sock.h.
32529         (_gl_close_fd_maybe_socket): Remove function.
32530         (rpl_close): Invoke execute_all_close_hooks instead of
32531         _gl_close_fd_maybe_socket.
32532         * lib/sockets.c: Include close-hook.h, w32sock.h.
32533         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32534         (close_sockets_hook): New variable.
32535         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32536         (gl_sockets_cleanup): Unregister it.
32537         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32538         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32539         * modules/close-hook: New file.
32540         * modules/close (Files): Remove lib/w32sock.h.
32541         (Depends-on): Add close-hook.
32542         (Link): Remove section.
32543         * modules/sockets (Files): Add lib/w32sock.h.
32544         (Depends-on): Add close-hook.
32545         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32546         invocation.
32547         * NEWS: Mention that LIB_CLOSE is gone.
32548
32549 2009-03-23  Eric Blake  <ebb9@byu.net>
32550
32551         signal-tests: test previous patch
32552         * tests/test-signal.c: New file.
32553         * modules/signal-tests: Likewise.
32554
32555         signal.h: always support 'volatile sig_atomic_t'
32556         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32557         (gl_SIGNAL_H_DEFAULTS): Add a default.
32558         * modules/signal (Makefile.am): Substitute if needed.
32559         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32560         users can blindly add volatile.
32561         * doc/posix-headers/signal.texi (signal.h): Document it.
32562         Reported by Matthew Woehlke.
32563
32564 2009-03-23  Jim Meyering  <meyering@redhat.com>
32565
32566         pathmax: PATH_MAX: use pathconf only when available
32567         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32568         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32569         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32570         This avoids a link failure in a PSP cross-compilation environment
32571         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32572
32573         * lib/vasnprintf.c (divide): Fix typo in comment.
32574
32575 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32576
32577         * gnulib-tool (func_filter_filelist): Fix comment.
32578
32579 2009-03-20  Bruno Haible  <bruno@clisp.org>
32580
32581         Make sockets.h self-contained.
32582         * lib/sockets.c: Include sockets.h first.
32583         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32584
32585 2009-03-19  Eric Blake  <ebb9@byu.net>
32586
32587         doc: mention more functions added in cygwin 1.7.0
32588         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32589         addition.
32590         * doc/posix-functions/log2f.texi: Likewise.
32591
32592 2009-03-19  Jim Meyering  <meyering@redhat.com>
32593
32594         fsusage: avoid syntax error due to statement-before-declaration
32595         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32596         after all declarations.  Reported by Matthew Woehlke in
32597         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32598
32599 2009-03-18  Eric Blake  <ebb9@byu.net>
32600
32601         build-aux/compile: sync from automake
32602         * build-aux/compile: New file, from automake.
32603         * config/srclist.txt: Mention build-aux/compile.
32604
32605 2009-03-17  Bruno Haible  <bruno@clisp.org>
32606
32607         * lib/git-merge-changelog.c: Fix typo in comment.
32608         Reported by Reuben Thomas <rrt@sc3d.org>.
32609
32610 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32611
32612         * m4/regex.m4: update and improve help for
32613         --without-included-regex.
32614
32615 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32616
32617         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32618         failure on missing include files.
32619
32620 2009-03-17  Eric Blake  <ebb9@byu.net>
32621
32622         doc: mention more functions added in cygwin 1.7.0
32623         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32624         addition.
32625         * doc/posix-functions/fwscanf.texi: Likewise.
32626         * doc/posix-functions/swprintf.texi: Likewise.
32627         * doc/posix-functions/swscanf.texi: Likewise.
32628         * doc/posix-functions/vfwprintf.texi: Likewise.
32629         * doc/posix-functions/vfwscanf.texi: Likewise.
32630         * doc/posix-functions/vswprintf.texi: Likewise.
32631         * doc/posix-functions/vswscanf.texi: Likewise.
32632         * doc/posix-functions/vwprintf.texi: Likewise.
32633         * doc/posix-functions/vwscanf.texi: Likewise.
32634         * doc/posix-functions/wcscasecmp.texi: Likewise.
32635         * doc/posix-functions/wcsdup.texi: Likewise.
32636         * doc/posix-functions/wcsftime.texi: Likewise.
32637         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32638         * doc/posix-functions/wprintf.texi: Likewise.
32639         * doc/posix-functions/wscanf.texi: Likewise.
32640         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32641
32642 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32643
32644         maint.mk: really add $(AM_MAKEFLAGS)
32645         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32646         was inadvertently omitted in the last commit.
32647         Spotted by Bruno Haible.
32648
32649         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32650         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32651         $(AM_MAKEFLAGS)' rather than plain `make'.
32652
32653         gnulib-tool: execute $MAKE not make
32654         * gnulib-tool: Default $MAKE to 'make'.
32655         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32656         than make.  Initialize $MAKE in the do-autobuild script.
32657
32658         gnulib-tool: use $MAKE not make in generated files
32659         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32660         make, in generated files.  Initialize $MAKE in the do-autobuild
32661         script.
32662
32663         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32664
32665         GNUmakefile: disable parallelism only for multiple, recursive targets
32666         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32667         additions in the Makefile.
32668         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32669         by Automake.
32670         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32671         are listed on the command line and at least one of them is
32672         listed in $(ALL_RECURSIVE_TARGETS).
32673
32674 2009-03-14  Bruno Haible  <bruno@clisp.org>
32675
32676         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32677         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32678         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32679         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32680         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32681         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32682         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32683         unistr/u8-uctomb.
32684         * modules/unistr/u8-strchr (Depends-on): Likewise.
32685         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32686         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32687         unistr/u16-uctomb.
32688         * modules/unistr/u16-strchr (Depends-on): Likewise.
32689         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32690
32691 2009-03-12  Bruno Haible  <bruno@clisp.org>
32692
32693         Work around select() bug on Interix 3.5.
32694         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32695         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32696         * m4/select.m4: New file.
32697         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32698         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32699         * modules/select (Files): Add m4/select.m4.
32700         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32701         * modules/nanosleep (Depends-on): Add select.
32702         * modules/poll (Depends-on): Likewise.
32703         * doc/posix-functions/select.texi: Mention the Interix bug.
32704         Reported by Markus Duft <mduft@gentoo.org>.
32705
32706         * lib/select.c: Renamed from lib/winsock-select.c.
32707         * modules/select (Files): Add lib/select.c, remove
32708         lib/winsock-select.c.
32709         (configure.ac): Update.
32710
32711 2009-03-12  Jim Meyering  <meyering@redhat.com>
32712
32713         avoid gcc warnings about unused macro definitions
32714         * lib/readtokens.c (STREQ): Remove unused definition.
32715         * lib/xmalloc.c (SIZE_MAX): Likewise.
32716         * lib/openat-die.c (N_): Likewise.
32717         * lib/mountlist.c (SIZE_MAX): Remove definition.
32718         Instead, include <stdint.h>.
32719         * lib/readutmp.c: Likewise.
32720         * modules/readutmp (Depends-on): Add stdint.
32721         * modules/mountlist (Depends-on): Add stdint.
32722         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32723
32724 2009-03-10  Bruno Haible  <bruno@clisp.org>
32725
32726         Tests for module 'mbmemcasecoll'.
32727         * modules/mbmemcasecoll-tests: New file.
32728         * tests/test-mbmemcasecoll1.sh: New file.
32729         * tests/test-mbmemcasecoll2.sh: New file.
32730         * tests/test-mbmemcasecoll3.sh: New file.
32731         * tests/test-mbmemcasecoll.c: New file.
32732
32733         New module 'mbmemcasecoll'.
32734         * lib/mbmemcasecoll.h: New file.
32735         * lib/mbmemcasecoll.c: New file.
32736         * modules/mbmemcasecoll: New file.
32737
32738         * tests/test-mbmemcasecmp.h: New file, extracted from
32739         tests/test-mbmemcasecmp.c.
32740         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32741         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32742         (main): Update.
32743         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32744
32745 2009-03-09  Bruno Haible  <bruno@clisp.org>
32746
32747         Tests for module 'mbmemcasecmp'.
32748         * modules/mbmemcasecmp-tests: New file.
32749         * tests/test-mbmemcasecmp1.sh: New file.
32750         * tests/test-mbmemcasecmp2.sh: New file.
32751         * tests/test-mbmemcasecmp3.sh: New file.
32752         * tests/test-mbmemcasecmp.c: New file.
32753
32754         New module 'mbmemcasecmp'.
32755         * lib/mbmemcasecmp.h: New file.
32756         * lib/mbmemcasecmp.c: New file.
32757         * modules/mbmemcasecmp: New file.
32758
32759 2009-03-09  Bruno Haible  <bruno@clisp.org>
32760
32761         Tests for module 'unicase/ulc-casecoll'.
32762         * modules/unicase/ulc-casecoll-tests: New file.
32763         * tests/unicase/test-ulc-casecoll1.sh: New file.
32764         * tests/unicase/test-ulc-casecoll2.sh: New file.
32765         * tests/unicase/test-ulc-casecoll.c: New file.
32766
32767         New module 'unicase/ulc-casecoll'.
32768         * lib/unicase.h (ulc_casecoll): New declaration.
32769         * lib/unicase/ulc-casecoll.c: New file.
32770         * modules/unicase/ulc-casecoll: New file.
32771
32772         New module 'unicase/ulc-casexfrm'.
32773         * lib/unicase.h (ulc_casexfrm): New declaration.
32774         * lib/unicase/ulc-casexfrm.c: New file.
32775         * modules/unicase/ulc-casexfrm: New file.
32776
32777 2009-03-09  Bruno Haible  <bruno@clisp.org>
32778
32779         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32780         invocations.
32781
32782         * m4/mbscasecmp.m4: Remove file.
32783         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32784         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32785
32786         * m4/mbscasestr.m4: Remove file.
32787         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32788         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32789
32790         * m4/mbschr.m4: Remove file.
32791         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32792         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32793
32794         * m4/mbscspn.m4: Remove file.
32795         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32796         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32797
32798         * m4/mbslen.m4: Remove file.
32799         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32800         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32801
32802         * m4/mbsncasecmp.m4: Remove file.
32803         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32804         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32805
32806         * m4/mbsnlen.m4: Remove file.
32807         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32808         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32809
32810         * m4/mbspbrk.m4: Remove file.
32811         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32812         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32813
32814         * m4/mbspcasecmp.m4: Remove file.
32815         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32816         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32817
32818         * m4/mbsrchr.m4: Remove file.
32819         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32820         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32821
32822         * m4/mbssep.m4: Remove file.
32823         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32824         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32825
32826         * m4/mbsspn.m4: Remove file.
32827         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32828         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32829
32830         * m4/mbsstr.m4: Remove file.
32831         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32832         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32833
32834         * m4/mbstok_r.m4: Remove file.
32835         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32836         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32837
32838         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32839
32840         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32841         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32842
32843         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32844
32845 2009-03-08  Bruno Haible  <bruno@clisp.org>
32846
32847         Tests for module 'unicase/ulc-casecmp'.
32848         * modules/unicase/ulc-casecmp-tests: New file.
32849         * tests/unicase/test-ulc-casecmp1.sh: New file.
32850         * tests/unicase/test-ulc-casecmp2.sh: New file.
32851         * tests/unicase/test-ulc-casecmp.c: New file.
32852
32853         New module 'unicase/ulc-casecmp'.
32854         * lib/unicase.h (ulc_casecmp): New declaration.
32855         * lib/unicase/ulc-casecmp.c: New file.
32856         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32857         'const SRC_UNIT *'.
32858         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32859         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32860         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32861         * modules/unicase/ulc-casecmp: New file.
32862
32863         Tests for module 'unicase/u32-is-cased'.
32864         * modules/unicase/u32-is-cased-tests: New file.
32865         * tests/unicase/test-u32-is-cased.c: New file.
32866
32867         Tests for module 'unicase/u16-is-cased'.
32868         * modules/unicase/u16-is-cased-tests: New file.
32869         * tests/unicase/test-u16-is-cased.c: New file.
32870
32871         Tests for module 'unicase/u8-is-cased'.
32872         * modules/unicase/u8-is-cased-tests: New file.
32873         * tests/unicase/test-u8-is-cased.c: New file.
32874         * tests/unicase/test-is-cased.h: New file.
32875
32876         New module 'unicase/u32-is-cased'.
32877         * lib/unicase/u32-is-cased.c: New file.
32878         * modules/unicase/u32-is-cased: New file.
32879
32880         New module 'unicase/u16-is-cased'.
32881         * lib/unicase/u16-is-cased.c: New file.
32882         * modules/unicase/u16-is-cased: New file.
32883
32884         New module 'unicase/u8-is-cased'.
32885         * lib/unicase/u8-is-cased.c: New file.
32886         * lib/unicase/u-is-cased.h: New file.
32887         * modules/unicase/u8-is-cased: New file.
32888
32889         Tests for module 'unicase/u32-is-casefolded'.
32890         * modules/unicase/u32-is-casefolded-tests: New file.
32891         * tests/unicase/test-u32-is-casefolded.c: New file.
32892
32893         Tests for module 'unicase/u16-is-casefolded'.
32894         * modules/unicase/u16-is-casefolded-tests: New file.
32895         * tests/unicase/test-u16-is-casefolded.c: New file.
32896
32897         Tests for module 'unicase/u8-is-casefolded'.
32898         * modules/unicase/u8-is-casefolded-tests: New file.
32899         * tests/unicase/test-u8-is-casefolded.c: New file.
32900         * tests/unicase/test-is-casefolded.h: New file.
32901
32902         New module 'unicase/u32-is-casefolded'.
32903         * lib/unicase/u32-is-casefolded.c: New file.
32904         * modules/unicase/u32-is-casefolded: New file.
32905
32906         New module 'unicase/u16-is-casefolded'.
32907         * lib/unicase/u16-is-casefolded.c: New file.
32908         * modules/unicase/u16-is-casefolded: New file.
32909
32910         New module 'unicase/u8-is-casefolded'.
32911         * lib/unicase/u8-is-casefolded.c: New file.
32912         * modules/unicase/u8-is-casefolded: New file.
32913
32914         Tests for module 'unicase/u32-is-titlecase'.
32915         * modules/unicase/u32-is-titlecase-tests: New file.
32916         * tests/unicase/test-u32-is-titlecase.c: New file.
32917
32918         Tests for module 'unicase/u16-is-titlecase'.
32919         * modules/unicase/u16-is-titlecase-tests: New file.
32920         * tests/unicase/test-u16-is-titlecase.c: New file.
32921
32922         Tests for module 'unicase/u8-is-titlecase'.
32923         * modules/unicase/u8-is-titlecase-tests: New file.
32924         * tests/unicase/test-u8-is-titlecase.c: New file.
32925         * tests/unicase/test-is-titlecase.h: New file.
32926
32927         New module 'unicase/u32-is-titlecase'.
32928         * lib/unicase/u32-is-titlecase.c: New file.
32929         * modules/unicase/u32-is-titlecase: New file.
32930
32931         New module 'unicase/u16-is-titlecase'.
32932         * lib/unicase/u16-is-titlecase.c: New file.
32933         * modules/unicase/u16-is-titlecase: New file.
32934
32935         New module 'unicase/u8-is-titlecase'.
32936         * lib/unicase/u8-is-titlecase.c: New file.
32937         * modules/unicase/u8-is-titlecase: New file.
32938
32939         Tests for module 'unicase/u32-is-lowercase'.
32940         * modules/unicase/u32-is-lowercase-tests: New file.
32941         * tests/unicase/test-u32-is-lowercase.c: New file.
32942
32943         Tests for module 'unicase/u16-is-lowercase'.
32944         * modules/unicase/u16-is-lowercase-tests: New file.
32945         * tests/unicase/test-u16-is-lowercase.c: New file.
32946
32947         Tests for module 'unicase/u8-is-lowercase'.
32948         * modules/unicase/u8-is-lowercase-tests: New file.
32949         * tests/unicase/test-u8-is-lowercase.c: New file.
32950         * tests/unicase/test-is-lowercase.h: New file.
32951
32952         New module 'unicase/u32-is-lowercase'.
32953         * lib/unicase/u32-is-lowercase.c: New file.
32954         * modules/unicase/u32-is-lowercase: New file.
32955
32956         New module 'unicase/u16-is-lowercase'.
32957         * lib/unicase/u16-is-lowercase.c: New file.
32958         * modules/unicase/u16-is-lowercase: New file.
32959
32960         New module 'unicase/u8-is-lowercase'.
32961         * lib/unicase/u8-is-lowercase.c: New file.
32962         * modules/unicase/u8-is-lowercase: New file.
32963
32964         Tests for module 'unicase/u32-is-uppercase'.
32965         * modules/unicase/u32-is-uppercase-tests: New file.
32966         * tests/unicase/test-u32-is-uppercase.c: New file.
32967
32968         Tests for module 'unicase/u16-is-uppercase'.
32969         * modules/unicase/u16-is-uppercase-tests: New file.
32970         * tests/unicase/test-u16-is-uppercase.c: New file.
32971
32972         Tests for module 'unicase/u8-is-uppercase'.
32973         * modules/unicase/u8-is-uppercase-tests: New file.
32974         * tests/unicase/test-u8-is-uppercase.c: New file.
32975         * tests/unicase/test-is-uppercase.h: New file.
32976
32977         New module 'unicase/u32-is-uppercase'.
32978         * lib/unicase/u32-is-uppercase.c: New file.
32979         * modules/unicase/u32-is-uppercase: New file.
32980
32981         New module 'unicase/u16-is-uppercase'.
32982         * lib/unicase/u16-is-uppercase.c: New file.
32983         * modules/unicase/u16-is-uppercase: New file.
32984
32985         New module 'unicase/u8-is-uppercase'.
32986         * lib/unicase/u8-is-uppercase.c: New file.
32987         * modules/unicase/u8-is-uppercase: New file.
32988
32989         New module 'unicase/u32-is-invariant'.
32990         * lib/unicase/u32-is-invariant.c: New file.
32991         * modules/unicase/u32-is-invariant: New file.
32992
32993         New module 'unicase/u16-is-invariant'.
32994         * lib/unicase/u16-is-invariant.c: New file.
32995         * modules/unicase/u16-is-invariant: New file.
32996
32997         New module 'unicase/u8-is-invariant'.
32998         * lib/unicase/u8-is-invariant.c: New file.
32999         * lib/unicase/invariant.h: New file.
33000         * lib/unicase/u-is-invariant.h: New file.
33001         * modules/unicase/u8-is-invariant: New file.
33002
33003         Tests for module 'unicase/u32-casecoll'.
33004         * modules/unicase/u32-casecoll-tests: New file.
33005         * tests/unicase/test-u32-casecoll.c: New file.
33006
33007         Tests for module 'unicase/u16-casecoll'.
33008         * modules/unicase/u16-casecoll-tests: New file.
33009         * tests/unicase/test-u16-casecoll.c: New file.
33010
33011         Tests for module 'unicase/u8-casecoll'.
33012         * modules/unicase/u8-casecoll-tests: New file.
33013         * tests/unicase/test-u8-casecoll.c: New file.
33014
33015         New module 'unicase/u32-casecoll'.
33016         * lib/unicase/u32-casecoll.c: New file.
33017         * modules/unicase/u32-casecoll: New file.
33018
33019         New module 'unicase/u16-casecoll'.
33020         * lib/unicase/u16-casecoll.c: New file.
33021         * modules/unicase/u16-casecoll: New file.
33022
33023         New module 'unicase/u8-casecoll'.
33024         * lib/unicase/u8-casecoll.c: New file.
33025         * lib/unicase/u-casecoll.h: New file.
33026         * modules/unicase/u8-casecoll: New file.
33027
33028         New module 'unicase/u32-casexfrm'.
33029         * lib/unicase/u32-casexfrm.c: New file.
33030         * modules/unicase/u32-casexfrm: New file.
33031
33032         New module 'unicase/u16-casexfrm'.
33033         * lib/unicase/u16-casexfrm.c: New file.
33034         * modules/unicase/u16-casexfrm: New file.
33035
33036         New module 'unicase/u8-casexfrm'.
33037         * lib/unicase/u8-casexfrm.c: New file.
33038         * lib/unicase/u-casexfrm.h: New file.
33039         * modules/unicase/u8-casexfrm: New file.
33040
33041         Tests for module 'unicase/u32-casecmp'.
33042         * modules/unicase/u32-casecmp-tests: New file.
33043         * tests/unicase/test-u32-casecmp.c: New file.
33044
33045         Tests for module 'unicase/u16-casecmp'.
33046         * modules/unicase/u16-casecmp-tests: New file.
33047         * tests/unicase/test-u16-casecmp.c: New file.
33048
33049         Tests for module 'unicase/u8-casecmp'.
33050         * modules/unicase/u8-casecmp-tests: New file.
33051         * tests/unicase/test-u8-casecmp.c: New file.
33052         * tests/unicase/test-casecmp.h: New file.
33053
33054         New module 'unicase/u32-casecmp'.
33055         * lib/unicase/u32-casecmp.c: New file.
33056         * modules/unicase/u32-casecmp: New file.
33057
33058         New module 'unicase/u16-casecmp'.
33059         * lib/unicase/u16-casecmp.c: New file.
33060         * modules/unicase/u16-casecmp: New file.
33061
33062         New module 'unicase/u8-casecmp'.
33063         * lib/unicase/u8-casecmp.c: New file.
33064         * lib/unicase/u-casecmp.h: New file.
33065         * modules/unicase/u8-casecmp: New file.
33066
33067         Tests for module 'unicase/u32-casefold'.
33068         * modules/unicase/u32-casefold-tests: New file.
33069         * tests/unicase/test-u32-casefold.c: New file.
33070
33071         Tests for module 'unicase/u16-casefold'.
33072         * modules/unicase/u16-casefold-tests: New file.
33073         * tests/unicase/test-u16-casefold.c: New file.
33074
33075         Tests for module 'unicase/u8-casefold'.
33076         * modules/unicase/u8-casefold-tests: New file.
33077         * tests/unicase/test-u8-casefold.c: New file.
33078
33079         New module 'unicase/u32-casefold'.
33080         * lib/unicase/u32-casefold.c: New file.
33081         * modules/unicase/u32-casefold: New file.
33082
33083         New module 'unicase/u16-casefold'.
33084         * lib/unicase/u16-casefold.c: New file.
33085         * modules/unicase/u16-casefold: New file.
33086
33087         New module 'unicase/u8-casefold'.
33088         * lib/unicase/u8-casefold.c: New file.
33089         * lib/unicase/u-casefold.h: New file.
33090         * modules/unicase/u8-casefold: New file.
33091
33092         New module 'unicase/tocasefold'.
33093         * lib/unicase/casefold.h: New file.
33094         * lib/unicase/tocasefold.c: New file.
33095         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33096         * modules/unicase/tocasefold: New file.
33097
33098         Tests for module 'unicase/u32-totitle'.
33099         * modules/unicase/u32-totitle-tests: New file.
33100         * tests/unicase/test-u32-totitle.c: New file.
33101
33102         Tests for module 'unicase/u16-totitle'.
33103         * modules/unicase/u16-totitle-tests: New file.
33104         * tests/unicase/test-u16-totitle.c: New file.
33105
33106         Tests for module 'unicase/u8-totitle'.
33107         * modules/unicase/u8-totitle-tests: New file.
33108         * tests/unicase/test-u8-totitle.c: New file.
33109
33110         New module 'unicase/u32-totitle'.
33111         * lib/unicase/u32-totitle.c: New file.
33112         * modules/unicase/u32-totitle: New file.
33113
33114         New module 'unicase/u16-totitle'.
33115         * lib/unicase/u16-totitle.c: New file.
33116         * modules/unicase/u16-totitle: New file.
33117
33118         New module 'unicase/u8-totitle'.
33119         * lib/unicase/u8-totitle.c: New file.
33120         * lib/unicase/u-totitle.h: New file.
33121         * modules/unicase/u8-totitle: New file.
33122
33123         Tests for module 'unicase/u32-tolower'.
33124         * modules/unicase/u32-tolower-tests: New file.
33125         * tests/unicase/test-u32-tolower.c: New file.
33126
33127         Tests for module 'unicase/u16-tolower'.
33128         * modules/unicase/u16-tolower-tests: New file.
33129         * tests/unicase/test-u16-tolower.c: New file.
33130
33131         Tests for module 'unicase/u8-tolower'.
33132         * modules/unicase/u8-tolower-tests: New file.
33133         * tests/unicase/test-u8-tolower.c: New file.
33134
33135         New module 'unicase/u32-tolower'.
33136         * lib/unicase/u32-tolower.c: New file.
33137         * modules/unicase/u32-tolower: New file.
33138
33139         New module 'unicase/u16-tolower'.
33140         * lib/unicase/u16-tolower.c: New file.
33141         * modules/unicase/u16-tolower: New file.
33142
33143         New module 'unicase/u8-tolower'.
33144         * lib/unicase/u8-tolower.c: New file.
33145         * modules/unicase/u8-tolower: New file.
33146
33147         Tests for module 'unicase/u32-toupper'.
33148         * modules/unicase/u32-toupper-tests: New file.
33149         * tests/unicase/test-u32-toupper.c: New file.
33150
33151         Tests for module 'unicase/u16-toupper'.
33152         * modules/unicase/u16-toupper-tests: New file.
33153         * tests/unicase/test-u16-toupper.c: New file.
33154
33155         Tests for module 'unicase/u8-toupper'.
33156         * modules/unicase/u8-toupper-tests: New file.
33157         * tests/unicase/test-u8-toupper.c: New file.
33158
33159         New module 'unicase/u32-toupper'.
33160         * lib/unicase/u32-toupper.c: New file.
33161         * modules/unicase/u32-toupper: New file.
33162
33163         New module 'unicase/u16-toupper'.
33164         * lib/unicase/u16-toupper.c: New file.
33165         * modules/unicase/u16-toupper: New file.
33166
33167         New module 'unicase/u8-toupper'.
33168         * lib/unicase/u8-toupper.c: New file.
33169         * modules/unicase/u8-toupper: New file.
33170
33171         New module 'unicase/u32-casemap'.
33172         * lib/unicase/u32-casemap.c: New file.
33173         * modules/unicase/u32-casemap: New file.
33174
33175         New module 'unicase/u16-casemap'.
33176         * lib/unicase/u16-casemap.c: New file.
33177         * modules/unicase/u16-casemap: New file.
33178
33179         New module 'unicase/u8-casemap'.
33180         * lib/unicase/unicasemap.h: New file.
33181         * lib/unicase/u8-casemap.c: New file.
33182         * lib/unicase/u-casemap.h: New file.
33183         * modules/unicase/u8-casemap: New file.
33184
33185         New module 'unicase/special-casing'.
33186         * lib/unicase/special-casing.h: New file.
33187         * lib/unicase/special-casing.c: New file.
33188         * lib/unicase/special-casing-table.gperf: New file, generated by
33189         gen-uni-tables.c.
33190         * modules/unicase/special-casing: New file.
33191
33192         Tests for module 'unicase/locale-language'.
33193         * modules/unicase/locale-language-tests: New file.
33194         * tests/unicase/test-locale-language.sh: New file.
33195         * tests/unicase/test-locale-language.c: New file.
33196
33197         New module 'unicase/locale-language'.
33198         * lib/unicase/locale-language.c: New file.
33199         * lib/unicase/locale-languages.gperf: New file.
33200         * modules/unicase/locale-language: New file.
33201
33202         Generate more tables for case conversion and case folding.
33203         * lib/gen-uni-tables.c (SCC_*): New enum items.
33204         (struct special_casing_rule): New type.
33205         (casing_rules, num_casing_rules, allocated_casing_rules): New
33206         variables.
33207         (add_casing_rule, fill_casing_rules): New functions.
33208         (struct casefold_rule): New type.
33209         (casefolding_rules, num_casefolding_rules,
33210         allocated_casefolding_rules): New variables.
33211         (fill_casefolding_rules): New function.
33212         (unicode_casefold): New variable.
33213         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33214         sort_casing_rules, output_casing_rules): New functions.
33215         (main): Accept to more arguments: SpecialCasing.txt and
33216         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33217         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33218         Output mapping for casefolding.
33219
33220         * lib/unicase.h: Include stdbool.h, uninorm.h.
33221         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33222         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33223         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33224         arguments.
33225         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33226         resultp arguments.
33227         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33228         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33229         resultp arguments.
33230         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33231         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33232         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33233         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33234         declarations.
33235         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33236
33237 2009-03-08  Bruno Haible  <bruno@clisp.org>
33238
33239         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33240         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33241         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33242         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33243
33244 2009-03-07  Bruno Haible  <bruno@clisp.org>
33245
33246         Adjust u*_normcmp, u*_normcoll API.
33247         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33248         u16_normcoll, u32_normcoll): Change failure conventions.
33249         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33250         errno and return -1.
33251         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33252
33253 2009-03-07  Bruno Haible  <bruno@clisp.org>
33254
33255         Tests for module 'uninorm/u32-normcoll'.
33256         * modules/uninorm/u32-normcoll-tests: New file.
33257         * tests/uninorm/test-u32-normcoll.c: New file.
33258
33259         Tests for module 'uninorm/u16-normcoll'.
33260         * modules/uninorm/u16-normcoll-tests: New file.
33261         * tests/uninorm/test-u16-normcoll.c: New file.
33262
33263         Tests for module 'uninorm/u8-normcoll'.
33264         * modules/uninorm/u8-normcoll-tests: New file.
33265         * tests/uninorm/test-u8-normcoll.c: New file.
33266
33267 2009-03-07  Bruno Haible  <bruno@clisp.org>
33268
33269         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33270         tests/uninorm/test-u32-normcmp.c.
33271         * tests/uninorm/test-u32-normcmp.c: Include it.
33272         (test_nonascii): New function, extracted from main. Add some more
33273         tests.
33274         (main): Invoke test_ascii and test_nonascii.
33275         * modules/uninorm/u32-normcmp-tests (Files): Add
33276         tests/uninorm/test-u32-normcmp.h.
33277         (Depends-on): Remove uninorm/u32-normcmp.
33278
33279         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33280         tests/uninorm/test-u16-normcmp.c.
33281         * tests/uninorm/test-u16-normcmp.c: Include it.
33282         (test_nonascii): New function, extracted from main. Add some more
33283         tests.
33284         (main): Invoke test_ascii and test_nonascii.
33285         * modules/uninorm/u16-normcmp-tests (Files): Add
33286         tests/uninorm/test-u16-normcmp.h.
33287         (Depends-on): Remove uninorm/u16-normcmp.
33288
33289         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33290         tests/uninorm/test-u8-normcmp.c.
33291         * tests/uninorm/test-u8-normcmp.c: Include it.
33292         (test_nonascii): New function, extracted from main. Add some more
33293         tests.
33294         (main): Invoke test_ascii and test_nonascii.
33295         * modules/uninorm/u8-normcmp-tests (Files): Add
33296         tests/uninorm/test-u8-normcmp.h.
33297         (Depends-on): Remove uninorm/u8-normcmp.
33298
33299 2009-03-07  Bruno Haible  <bruno@clisp.org>
33300
33301         New module 'uninorm/u32-normcoll'.
33302         * lib/uninorm/u32-normcoll.c: New file.
33303         * modules/uninorm/u32-normcoll: New file.
33304
33305         New module 'uninorm/u16-normcoll'.
33306         * lib/uninorm/u16-normcoll.c: New file.
33307         * modules/uninorm/u16-normcoll: New file.
33308
33309         New module 'uninorm/u8-normcoll'.
33310         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33311         declarations.
33312         * lib/uninorm/u8-normcoll.c: New file.
33313         * lib/uninorm/u-normcoll.h: New file.
33314         * modules/uninorm/u8-normcoll: New file.
33315
33316         New module 'uninorm/u32-normxfrm'.
33317         * lib/uninorm/u32-normxfrm.c: New file.
33318         * modules/uninorm/u32-normxfrm: New file.
33319
33320         New module 'uninorm/u16-normxfrm'.
33321         * lib/uninorm/u16-normxfrm.c: New file.
33322         * modules/uninorm/u16-normxfrm: New file.
33323
33324         New module 'uninorm/u8-normxfrm'.
33325         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33326         declarations.
33327         * lib/uninorm/u8-normxfrm.c: New file.
33328         * lib/uninorm/u-normxfrm.h: New file.
33329         * modules/uninorm/u8-normxfrm: New file.
33330
33331 2009-03-07  Bruno Haible  <bruno@clisp.org>
33332
33333         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33334         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33335         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33336
33337 2009-03-07  Bruno Haible  <bruno@clisp.org>
33338
33339         New module 'memxfrm'.
33340         * lib/memxfrm.h: New file.
33341         * lib/memxfrm.c: New file.
33342         * modules/memxfrm: New file.
33343
33344 2009-03-07  Bruno Haible  <bruno@clisp.org>
33345
33346         New module 'memcmp2'.
33347         * lib/memcmp2.h: New file.
33348         * lib/memcmp2.c: New file.
33349         * modules/memcmp2: New file.
33350
33351 2009-03-07  Bruno Haible  <bruno@clisp.org>
33352
33353         Tests for module 'uninorm/decomposing-form'.
33354         * modules/uninorm/decomposing-form-tests: New file.
33355         * tests/uninorm/test-decomposing-form.c: New file.
33356
33357         New module 'uninorm/decomposing-form'.
33358         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33359         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33360         Add 'decomposing_variant' field.
33361         * lib/uninorm/decomposing-form.c: New file.
33362         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33363         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33364         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33365         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33366         * modules/uninorm/decomposing-form: New file.
33367         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33368         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33369
33370 2009-03-07  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33373         strings.
33374
33375 2009-03-06  Bruno Haible  <bruno@clisp.org>
33376
33377         Tests for module 'uninorm/u32-normcmp'.
33378         * tests/uninorm/test-u32-normcmp.c: New file.
33379         * modules/uninorm/u32-normcmp-tests: New file.
33380
33381         Tests for module 'uninorm/u16-normcmp'.
33382         * tests/uninorm/test-u16-normcmp.c: New file.
33383         * modules/uninorm/u16-normcmp-tests: New file.
33384
33385         Tests for module 'uninorm/u8-normcmp'.
33386         * tests/uninorm/test-u8-normcmp.c: New file.
33387         * modules/uninorm/u8-normcmp-tests: New file.
33388
33389         New module 'uninorm/u32-normcmp'.
33390         * lib/uninorm/u32-normcmp.c: New file.
33391         * modules/uninorm/u32-normcmp: New file.
33392
33393         New module 'uninorm/u16-normcmp'.
33394         * lib/uninorm/u16-normcmp.c: New file.
33395         * modules/uninorm/u16-normcmp: New file.
33396
33397         New module 'uninorm/u8-normcmp'.
33398         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33399         declarations.
33400         * lib/uninorm/u8-normcmp.c: New file.
33401         * lib/uninorm/u-normcmp.h: New file.
33402         * modules/uninorm/u8-normcmp: New file.
33403
33404 2009-03-06  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33407         Reported by Eric Blake.
33408
33409 2009-03-06  Eric Blake  <ebb9@byu.net>
33410             Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33413         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33414         condition.
33415         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33416         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33417         condition.
33418         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33419
33420 2009-03-06  Eric Blake  <ebb9@byu.net>
33421
33422         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33423         to avoid compiler warnings.
33424         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33425
33426 2009-03-05  Bruno Haible  <bruno@clisp.org>
33427
33428         * tests/test-ftell.c (main): Disable test beyond end of file on
33429         FreeMiNT.
33430         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33431
33432 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33433
33434         * lib/filevercmp.c: Move hidden files up in ordering.
33435         * tests/test-filevercmp.c: Add tests for hidden files.
33436
33437 2009-03-04  Bruno Haible  <bruno@clisp.org>
33438
33439         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33440         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33441         AM_CFLAGS.
33442         Reported by Simon Josefsson.
33443
33444 2009-03-03  Bruno Haible  <bruno@clisp.org>
33445
33446         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33447         Reported by Simon Josefsson.
33448
33449         * doc/ld-version-script.texi: Update node reference.
33450
33451 2009-03-03  Bruno Haible  <bruno@clisp.org>
33452
33453         * modules/visibility (License): Change to 'unlimited'.
33454         Suggested by Simon Josefsson.
33455
33456 2009-03-03  Jim Meyering  <meyering@redhat.com>
33457
33458         unlinkdir: cannot_unlink_dir may modify process state
33459         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33460         it's neither thread-safe nor appropriate for use in a library.
33461
33462 2009-03-03  Eric Blake  <ebb9@byu.net>
33463
33464         test-closein: silence test under Darwin
33465         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33466         care if it dies from EPIPE or EBADF.
33467
33468 2009-03-03  Bruno Haible  <bruno@clisp.org>
33469
33470         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33471         earlier.
33472         * doc/visibility.texi: Fix @node and @section.
33473
33474 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33475
33476         * doc/gnulib.texi: Link to sections for ld version script and
33477         visibility.
33478         * doc/visibility.texi: Add @node and @section.
33479         * modules/ld-version-script: New module.
33480         * m4/ld-version-script.m4: New file.
33481         * doc/ld-version-script.texi: New file.
33482
33483 2009-03-02  David Lutterkort  <lutter@redhat.com>
33484
33485         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33487
33488 2009-03-02  Bruno Haible  <bruno@clisp.org>
33489
33490         * doc/visibility.texi: Mention libtool's -export-symbols option.
33491
33492 2009-03-02  Jim Meyering  <meyering@redhat.com>
33493
33494         announce-gen: new option: --no-print-checksums
33495         * build-aux/announce-gen (usage): Describe it.
33496         (print_checksums): Print a newline here, not in the [*] footnote.
33497         (main): Honor it.
33498
33499 2009-03-01  Bruno Haible  <bruno@clisp.org>
33500
33501         Use socklen_t in the native Windows replacements prototypes.
33502         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33503         instead of 'int'.
33504         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33505         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33506         * modules/getsockopt (Depends-on): Add socklen.
33507         * modules/setsockopt (Depends-on): Add socklen.
33508
33509 2009-03-01  Bruno Haible  <bruno@clisp.org>
33510
33511         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33512         least 4.2.
33513
33514 2009-03-01  Eric Blake  <ebb9@byu.net>
33515             Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33518         error messages.
33519         * lib/wait-process.c (wait_subprocess): Omit error message about
33520         deadly signal sent to the child of termsigp != NULL.
33521
33522 2009-03-01  Eric Blake  <ebb9@byu.net>
33523
33524         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33525
33526 2009-03-01  Bruno Haible  <bruno@clisp.org>
33527
33528         Avoid a gcc warning.
33529         * tests/test-sched.c (b): Make global.
33530         Reported by Eric Blake.
33531
33532 2009-01-19  Martin Lambers  <marlam@marlam.de>
33533
33534         Provide POSIX semantics for socket timeout options on W32.
33535         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33536         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33537         * modules/setsockopt: Depend on sys_time module for struct timeval.
33538         * modules/getsockopt: Depend on sys_time module for struct timeval.
33539
33540 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33541
33542         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33543         __USE_GNU, for consistency with netdb.in.h.
33544         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33545
33546 2009-03-01  Bruno Haible  <bruno@clisp.org>
33547
33548         More support for FreeMiNT.
33549         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33550         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33551
33552 2009-03-01  Bruno Haible  <bruno@clisp.org>
33553
33554         More support for FreeMiNT.
33555         * lib/fpurge.c (fpurge): Correct last commit.
33556         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33557
33558 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33559
33560         Fix unportable awk script in vc-list-files.
33561         * build-aux/vc-list-files: In the replacement awk script, use
33562         substr with a second argument of 1, not zero.
33563         Report by Simon Josefsson.
33564
33565 2009-02-28  Bruno Haible  <bruno@clisp.org>
33566
33567         More support for FreeMiNT.
33568         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33569         to FreeMiNT today.
33570         * lib/fwriting.c (fwriting): Likewise.
33571         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33572
33573 2009-02-28  Bruno Haible  <bruno@clisp.org>
33574
33575         * tests/test-freadseek.c (main): Disable test beyond end of file on
33576         FreeMiNT.
33577         * tests/test-ftello.c (main): Likewise.
33578         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33579
33580 2009-02-28  Bruno Haible  <bruno@clisp.org>
33581
33582         Add tentative support for FreeMiNT.
33583         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33584         * lib/fpurge.c (fpurge): Likewise.
33585         * lib/freadable.c (freadable): Likewise.
33586         * lib/freading.c (freading): Likewise.
33587         * lib/freadptr.c (freadptr): Likewise.
33588         * lib/freadseek.c (freadptrinc): Likewise.
33589         * lib/fseeko.c (rpl_fseeko): Likewise.
33590         * lib/fseterr.c (fseterr): Likewise.
33591         * lib/fwritable.c (fwritable): Likewise.
33592         * lib/fwriting.c (fwriting): Likewise.
33593         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33594         Hourihane.
33595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33596
33597 2009-02-28  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33600         SIGCHLD.
33601         Reported by Jim Meyering.
33602
33603 2009-02-28  Bruno Haible  <bruno@clisp.org>
33604
33605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33606         Mention the results of these tests on various platforms.
33607         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33608         order.
33609         * doc/posix-functions/printf.texi: Likewise.
33610         * doc/posix-functions/snprintf.texi: Likewise.
33611         * doc/posix-functions/sprintf.texi: Likewise.
33612         * doc/posix-functions/vfprintf.texi: Likewise.
33613         * doc/posix-functions/vprintf.texi: Likewise.
33614         * doc/posix-functions/vsnprintf.texi: Likewise.
33615         * doc/posix-functions/vsprintf.texi: Likewise.
33616         * doc/glibc-functions/obstack_printf.texi: Likewise.
33617         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33618
33619 2009-02-28  Bruno Haible  <bruno@clisp.org>
33620
33621         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33622         Reported by Loïc Minier <lool@dooz.org>.
33623
33624 2009-02-27  Bruno Haible  <bruno@clisp.org>
33625
33626         * gnulib-tool (func_import): Make the sed expression used to create the
33627         sed script for updating the .gitignore file POSIX compliant.
33628         Reported by Eric Blake.
33629
33630 2009-02-27  Bruno Haible  <bruno@clisp.org>
33631
33632         * gnulib-tool (sed): Don't alias as "sed --posix".
33633         Reported by Eric Blake.
33634
33635 2009-02-27  Bruno Haible  <bruno@clisp.org>
33636
33637         Avoid test link errors.
33638         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33639         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33640         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33641         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33643
33644 2009-02-27  Bruno Haible  <bruno@clisp.org>
33645
33646         Avoid spurious "(cached)" in configure output.
33647         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33648         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33649         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33650         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33651         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33652         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33653         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33654         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33655         Reported by Eric Blake.
33656
33657 2009-02-27  Eric Blake  <ebb9@byu.net>
33658
33659         printf: fix regression in previous patch
33660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33661
33662 2009-02-27  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33665         value.
33666         * lib/stdint.in.h: Likewise.
33667         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33668
33669 2009-02-27  Eric Blake  <ebb9@byu.net>
33670
33671         doc: mention more functions added in cygwin 1.7.0
33672         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33673         addition.
33674         * doc/posix-functions/open_wmemstream.texi: Likewise.
33675         * doc/posix-functions/wcsnlen.texi: Likewise.
33676         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33677         * doc/posix-functions/wcstod.texi: Likewise.
33678         * doc/posix-functions/wcstof.texi: Likewise.
33679         * doc/posix-functions/wcstoimax.texi: Likewise.
33680         * doc/posix-functions/wcstok.texi: Likewise.
33681         * doc/posix-functions/wcstoumax.texi: Likewise.
33682
33683         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33685         * doc/posix-functions/fprintf.texi: Update.
33686         * doc/posix-functions/printf.texi: Update.
33687         * doc/posix-functions/snprintf.texi: Update.
33688         * doc/posix-functions/sprintf.texi: Update.
33689         * doc/posix-functions/vfprintf.texi: Update.
33690         * doc/posix-functions/vprintf.texi: Update.
33691         * doc/posix-functions/vsnprintf.texi: Update.
33692         * doc/posix-functions/vsprintf.texi: Update.
33693         * doc/glibc-functions/obstack_printf.texi: Update.
33694         * doc/glibc-functions/obstack_vprintf.texi: Update.
33695
33696 2009-02-26  Eric Blake  <ebb9@byu.net>
33697
33698         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33699         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33700         compilation bug by using runtime conversion.
33701         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33702         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33703         * modules/ceill-tests (Files): Use nan.h.
33704         * modules/floorl-tests (Files): Likewise.
33705         * modules/frexpl-tests (Files): Likewise.
33706         * modules/isnanl-tests (Files): Likewise.
33707         * modules/ldexpl-tests (Files): Likewise.
33708         * modules/roundl-tests (Files): Likewise.
33709         * modules/truncl-tests (Files): Likewise.
33710         * tests/test-ceill.c (main): Use a working NaN.
33711         * tests/test-floorl.c (main): Likewise.
33712         * tests/test-frexpl.c (main): Likewise.
33713         * tests/test-isnan.c (test_long_double): Likewise.
33714         * tests/test-isnanl.h (main): Likewise.
33715         * tests/test-ldexpl.h (main): Likewise.
33716         * tests/test-roundl.h (main): Likewise.
33717         * tests/test-truncl.h (main): Likewise.
33718         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33719
33720 2009-02-26  Eric Blake  <ebb9@byu.net>
33721             Bruno Haible  <bruno@clisp.org>
33722
33723         Work around a *printf bug with %ls on Solaris.
33724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33725         precision is specified, sprintf stops converting the wide string
33726         argument when the number of bytes that have been produced by this
33727         conversion equals or exceeds the precision.
33728         * doc/posix-functions/fprintf.texi: Update.
33729         * doc/posix-functions/printf.texi: Update.
33730         * doc/posix-functions/snprintf.texi: Update.
33731         * doc/posix-functions/sprintf.texi: Update.
33732         * doc/posix-functions/vfprintf.texi: Update.
33733         * doc/posix-functions/vprintf.texi: Update.
33734         * doc/posix-functions/vsnprintf.texi: Update.
33735         * doc/posix-functions/vsprintf.texi: Update.
33736         * doc/glibc-functions/obstack_printf.texi: Update.
33737         * doc/glibc-functions/obstack_vprintf.texi: Update.
33738
33739 2009-02-26  Eric Blake  <ebb9@byu.net>
33740
33741         stdlib: favor compiler check of random.h
33742         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33743         to avoid an ObjC random.h installed by Swarm.
33744
33745 2009-02-26  Bruno Haible  <bruno@clisp.org>
33746
33747         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33748         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33749         Reported by Gary V. Vaughan <gary@gnu.org>.
33750
33751 2009-02-26  Bruno Haible  <bruno@clisp.org>
33752
33753         Fix *printf behaviour regarding the %ls directive.
33754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33755         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33756         NEED_PRINTF_DIRECTIVE_LS.
33757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33758         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33759         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33760         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33761         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33762         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33763         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33768         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33772         * doc/posix-functions/fprintf.texi: Update.
33773         * doc/posix-functions/printf.texi: Update.
33774         * doc/posix-functions/snprintf.texi: Update.
33775         * doc/posix-functions/sprintf.texi: Update.
33776         * doc/posix-functions/vfprintf.texi: Update.
33777         * doc/posix-functions/vprintf.texi: Update.
33778         * doc/posix-functions/vsnprintf.texi: Update.
33779         * doc/posix-functions/vsprintf.texi: Update.
33780         * doc/glibc-functions/obstack_printf.texi: Update.
33781         * doc/glibc-functions/obstack_vprintf.texi: Update.
33782         Reported by Eric Blake.
33783
33784 2009-02-25  Bruno Haible  <bruno@clisp.org>
33785
33786         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33787         with known value.
33788         Reported by Gary V. Vaughan <gary@gnu.org>.
33789
33790 2009-02-25  Bruno Haible  <bruno@clisp.org>
33791
33792         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33793         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33794         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33795         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33796         Reported by Gary V. Vaughan <gary@gnu.org>.
33797
33798 2009-02-25  Bruno Haible  <bruno@clisp.org>
33799
33800         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33801         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33802         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33803         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33804         Reported by Gary V. Vaughan <gary@gnu.org>.
33805
33806 2009-02-25  Eric Blake  <ebb9@byu.net>
33807
33808         tests: skip fseek/ftell tests if ungetc is broken
33809         * m4/ungetc.m4: New file.
33810         * modules/fseek-tests: Split test, so ungetc dependency is
33811         separate from rest of test.
33812         * modules/fseeko-tests: Likewise.
33813         * modules/ftell-tests: Likewise.
33814         * modules/ftello-tests: Likewise.
33815         * tests/test-fseek.c (main): Isolate ungetc dependency.
33816         * tests/test-fseeko.c (main): Likewise.
33817         * tests/test-ftell.c (main): Likewise.
33818         * tests/test-ftello.c (main): Likewise.
33819         * tests/test-fseek2.sh: New file.
33820         * tests/test-fseeko2.sh: Likewise.
33821         * tests/test-ftell2.sh: Likewise.
33822         * tests/test-ftello2.sh: Likewise.
33823
33824 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33825
33826         test-getaddrinfo: fix usage of skip return code 77
33827         * tests/test-gettaddrinfo.c: Return skip code 77 only
33828         for first occurance of skip (4x77 is not 77)
33829
33830 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33831
33832         strtod: avoid C99 decl-after-statement
33833         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33834
33835 2009-02-24  Eric Blake  <ebb9@byu.net>
33836
33837         strtod: detect HP-UX 11.31 bug
33838         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33839         Reported by Gary V. Vaughan.
33840
33841 2009-02-23  Bruno Haible  <bruno@clisp.org>
33842
33843         Fix invalid read past end of memory block.
33844         * lib/vasnprintf.c (DCHAR_SET): Define.
33845         (local_wcslen): Define only when needed.
33846         (local_strnlen, local_wcsnlen): New functions.
33847         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33848         directives that involve a conversion ourselves.
33849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33850         wcsnlen, mbrtowc, wcrtomb.
33851         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33852         * tests/test-vasprintf-posix.c (test_function): Likewise.
33853         * tests/test-snprintf-posix.h (test_function): Likewise.
33854         * tests/test-sprintf-posix.h (test_function): Likewise.
33855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33856
33857 2009-02-22  Bruno Haible  <bruno@clisp.org>
33858
33859         Implement new clarified decomposition of Hangul syllables.
33860         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33861         of type LTV, return only a pairwise decomposition.
33862         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33863         Likewise.
33864         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33865         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33866         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33867
33868 2009-02-22  Bruno Haible  <bruno@clisp.org>
33869
33870         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33871         zero-length results and shrink excess allocated memory.
33872         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33873         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33874         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33875         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33876         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33877         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33878         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33879         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33880         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33881         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33882         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33883         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33884
33885 2009-02-21  Bruno Haible  <bruno@clisp.org>
33886
33887         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33888         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33889         spaces after a period. Put a space between a macro name and its
33890         argument list. Trivial rewordings.
33891         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33892         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33893         (main): Return 0 explicitly.
33894
33895 2009-02-21  Bruno Haible  <bruno@clisp.org>
33896
33897         Tests for module 'uninorm/filter'.
33898         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33899         * modules/uninorm/filter-tests: New file.
33900
33901         New module 'uninorm/filter'.
33902         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33903         uninorm_filter_flush, uninorm_filter_free): New declarations.
33904         * lib/uninorm/uninorm-filter.c: New file.
33905         * modules/uninorm/filter: New file.
33906
33907 2009-02-21  Bruno Haible  <bruno@clisp.org>
33908
33909         Tests for module 'uninorm/nfkc'.
33910         * tests/uninorm/test-nfkc.c: New file.
33911         * tests/uninorm/test-u8-nfkc.c: New file.
33912         * tests/uninorm/test-u16-nfkc.c: New file.
33913         * tests/uninorm/test-u32-nfkc.c: New file.
33914         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33915         * tests/uninorm/test-u32-nfkc-big.c: New file.
33916         * modules/uninorm/nfkc-tests: New file.
33917
33918         New module 'uninorm/nfkc'.
33919         * lib/uninorm/nfkc.c: New file.
33920         * modules/uninorm/nfkc: New file.
33921
33922         Tests for module 'uninorm/nfkd'.
33923         * tests/uninorm/test-nfkd.c: New file.
33924         * tests/uninorm/test-u8-nfkd.c: New file.
33925         * tests/uninorm/test-u16-nfkd.c: New file.
33926         * tests/uninorm/test-u32-nfkd.c: New file.
33927         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33928         * tests/uninorm/test-u32-nfkd-big.c: New file.
33929         * modules/uninorm/nfkd-tests: New file.
33930
33931         New module 'uninorm/nfkd'.
33932         * lib/uninorm/nfkd.c: New file.
33933         * modules/uninorm/nfkd: New file.
33934
33935         Tests for module 'uninorm/nfc'.
33936         * tests/uninorm/test-nfc.c: New file.
33937         * tests/uninorm/test-u8-nfc.c: New file.
33938         * tests/uninorm/test-u16-nfc.c: New file.
33939         * tests/uninorm/test-u32-nfc.c: New file.
33940         * tests/uninorm/test-u32-nfc-big.sh: New file.
33941         * tests/uninorm/test-u32-nfc-big.c: New file.
33942         * modules/uninorm/nfc-tests: New file.
33943
33944         New module 'uninorm/nfc'.
33945         * lib/uninorm/nfc.c: New file.
33946         * modules/uninorm/nfc: New file.
33947
33948         Tests for module 'uninorm/nfd'.
33949         * tests/uninorm/test-nfd.c: New file.
33950         * tests/uninorm/test-u8-nfd.c: New file.
33951         * tests/uninorm/test-u16-nfd.c: New file.
33952         * tests/uninorm/test-u32-nfd.c: New file.
33953         * tests/uninorm/test-u32-nfd-big.sh: New file.
33954         * tests/uninorm/test-u32-nfd-big.c: New file.
33955         * tests/uninorm/test-u32-normalize-big.h: New file.
33956         * tests/uninorm/test-u32-normalize-big.c: New file.
33957         * tests/uninorm/NormalizationTest.txt: New file, created from
33958         Unicode 5.1.0 NormalizationTest.txt.
33959         * modules/uninorm/nfd-tests: New file.
33960
33961         New module 'uninorm/nfd'.
33962         * lib/uninorm/nfd.c: New file.
33963         * modules/uninorm/nfd: New file.
33964
33965         New module 'uninorm/u32-normalize'.
33966         * lib/uninorm/u32-normalize.c: New file.
33967         * modules/uninorm/u32-normalize: New file.
33968
33969         New module 'uninorm/u16-normalize'.
33970         * lib/uninorm/u16-normalize.c: New file.
33971         * modules/uninorm/u16-normalize: New file.
33972
33973         New module 'uninorm/u8-normalize'.
33974         * lib/uninorm/u8-normalize.c: New file.
33975         * lib/uninorm/normalize-internal.h: New file.
33976         * lib/uninorm/u-normalize-internal.h: New file.
33977         * modules/uninorm/u8-normalize: New file.
33978
33979         New module 'uninorm/decompose-internal'.
33980         * lib/uninorm/decompose-internal.c: New file.
33981         * modules/uninorm/decompose-internal: New file.
33982
33983         Tests for module 'uninorm/composition'.
33984         * tests/uninorm/test-composition.c: New file.
33985         * modules/uninorm/composition-tests: New file.
33986
33987         New module 'uninorm/composition'.
33988         * lib/uninorm/composition.c: New file.
33989         * lib/uninorm/composition-table.gperf: New file, generated by
33990         gen-uni-tables.
33991         * modules/uninorm/composition: New file.
33992
33993         Tests for module 'uninorm/compat-decomposition'.
33994         * tests/uninorm/test-compat-decomposition.c: New file.
33995         * modules/uninorm/compat-decomposition-tests: New file.
33996
33997         New module 'uninorm/compat-decomposition'.
33998         * lib/uninorm/decompose-internal.h: New file.
33999         * lib/uninorm/compat-decomposition.c: New file.
34000         * modules/uninorm/compat-decomposition: New file.
34001
34002         Tests for module 'uninorm/canonical-decomposition'.
34003         * tests/uninorm/test-canonical-decomposition.c: New file.
34004         * modules/uninorm/canonical-decomposition-tests: New file.
34005
34006         New module 'uninorm/canonical-decomposition'.
34007         * lib/uninorm/canonical-decomposition.c: New file.
34008         * modules/uninorm/canonical-decomposition: New file.
34009
34010         Tests for module 'uninorm/decomposition'.
34011         * tests/uninorm/test-decomposition.c: New file.
34012         * modules/uninorm/decomposition-tests: New file.
34013
34014         New module 'uninorm/decomposition'.
34015         * lib/uninorm/decomposition.c: New file.
34016         * modules/uninorm/decomposition: New file.
34017
34018         New module 'uninorm/decomposition-table'.
34019         * lib/uninorm/decomposition-table.h: New file.
34020         * lib/uninorm/decomposition-table.c: New file.
34021         * lib/uninorm/decomposition-table1.h: New file, generated by
34022         gen-uni-tables.
34023         * lib/uninorm/decomposition-table2.h: New file, generated by
34024         gen-uni-tables.
34025         * modules/uninorm/decomposition-table: New file.
34026
34027         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34028         (UC_DECOMP_*): New enumeration items.
34029         (get_decomposition): New function.
34030         (struct decomp_table): New type.
34031         (output_decomposition, output_decomposition_tables): New functions.
34032         (unicode_composition_exclusions): New variable.
34033         (fill_composition_exclusions, debug_output_composition_tables): New
34034         functions.
34035         (main): Accept one more argument. Invoke fill_composition_exclusions.
34036         Output decomposition and composition tables.
34037
34038         New module 'uninorm/base'.
34039         * lib/uninorm.h: New file.
34040         * lib/unictype.h: Update comment.
34041         * modules/uninorm/base: New file.
34042
34043 2009-02-21  David Lutterkort  <lutter@redhat.com>
34044
34045         Tests for module 'safe-alloc'.
34046         * tests/test-safe-alloc.c: New file.
34047         * modules/safe-alloc-tests: New file.
34048
34049         New module 'safe-alloc'.
34050         * lib/safe-alloc.h: New file.
34051         * lib/safe-alloc.c: New file.
34052         * m4/safe-alloc.m4: New file.
34053         * modules/safe-alloc: New file.
34054         * doc/safe-alloc.texi: New file.
34055         * doc/gnulib.texi: Include it.
34056         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34057         safe-alloc.
34058
34059 2009-02-18  Bruno Haible  <bruno@clisp.org>
34060
34061         Fix link error on non-glibc systems.
34062         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34063         variable.
34064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34065
34066 2009-02-18  Jim Meyering  <meyering@redhat.com>
34067
34068         fts: avoid used-uninitialized error due to recent change
34069         * lib/fts.c (fts_read): Guard uses of the new member,
34070         parent->fts_n_dirs_remaining, since it's not relevant for
34071         the parent of a directory specified on the command-line.
34072
34073 2009-02-17  James Youngman  <jay@gnu.org>
34074             Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/include_next.m4: Reformulate comment.
34077
34078 2009-02-16  Jim Meyering  <meyering@redhat.com>
34079
34080         fts: add #if guards so that the fts_lgpl module still builds
34081         * lib/fts.c: Guard just-added hash-table-using parts with
34082         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34083         Reported by Simon Josefsson.
34084
34085 2009-02-15  Bruno Haible  <bruno@clisp.org>
34086
34087         * modules/array-mergesort-tests: New file.
34088         * tests/test-array-mergesort.c: New file.
34089
34090         New module 'array-mergesort'.
34091         * modules/array-mergesort: New file.
34092         * lib/array-mergesort.h: New file.
34093
34094 2009-02-15  Bruno Haible  <bruno@clisp.org>
34095
34096         Fix 2009-02-07 commit.
34097         * lib/gen-uni-tables.c (output_predicate, output_category,
34098         output_combclass, output_bidi_category, output_decimal_digit,
34099         output_digit, output_numeric, output_mirror, output_scripts,
34100         output_ident_category, output_simple_mapping): Fix format directives.
34101         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34102
34103 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34104
34105         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34106         fixes are available from IBM.
34107
34108 2009-02-13  Jim Meyering  <meyering@redhat.com>
34109
34110         fts: arrange not to stat non-directories in more cases
34111         This makes GNU find (when it doesn't need to stat each file)
34112         *much* more efficient at traversing reiserfs file systems.
34113         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34114         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34115         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34116         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34117         (leaf_optimization_applies): New function.
34118         (LCO_hash, LCO_compare): New helper functions.
34119         (link_count_optimize_ok): New function.
34120         (fts_stat): Initialize new member (if dir).
34121         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34122         we've just stat'ed a directory.  Skip the stat call when possible.
34123         ---
34124         Note this AFS-related exchange:
34125         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34126         and note find's pioctl call in find/fstype.c.
34127         But that is necessary only if you want to enable the
34128         optimization for AFS, and for now, I don't.
34129
34130         fts: move a function definition "up" (no semantic change)
34131         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34132         "up" to precede upcoming use of a related function.
34133
34134 2009-02-11  Jim Meyering  <meyering@redhat.com>
34135
34136         fts: correct internal computation of nlinks (optimization-related)
34137         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34138         whether the current entry is a directory, so don't test it.
34139
34140 2009-02-10  Bruno Haible  <bruno@clisp.org>
34141
34142         Tests for module 'uniwbrk/ulc-wordbreaks'.
34143         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34144         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34145         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34146
34147         Tests for module 'uniwbrk/u32-wordbreaks'.
34148         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34149         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34150
34151         Tests for module 'uniwbrk/u16-wordbreaks'.
34152         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34153         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34154
34155         Tests for module 'uniwbrk/u8-wordbreaks'.
34156         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34157         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34158
34159 2009-02-10  Bruno Haible  <bruno@clisp.org>
34160
34161         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34162         property.
34163         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34164         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34165         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34166
34167 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34168
34169         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34170         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34171
34172 2009-02-10  Bruno Haible  <bruno@clisp.org>
34173
34174         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34175         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34176         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34177         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34178         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34179         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34180
34181 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34182
34183         * lib/sockets.h (gl_fd_to_handle): New function.
34184
34185         * tests/test-sockets.c: Call gl_fd_to_handle.
34186
34187 2009-02-09  Bruno Haible  <bruno@clisp.org>
34188
34189         * doc/havelib.texi: Document the conventions on bi-arch systems.
34190
34191 2009-02-08  Bruno Haible  <bruno@clisp.org>
34192
34193         Document the AC_LIB_LINKFLAGS macro.
34194         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34195         * doc/gnulib.texi: Include it.
34196
34197 2009-02-08  Bruno Haible  <bruno@clisp.org>
34198
34199         Fix wrong order of sections, compared to TOC.
34200         * doc/gnulib.texi: Include relocatable-maint.texi after the
34201         "Regular expressions" node, not before.
34202
34203 2009-02-08  Bruno Haible  <bruno@clisp.org>
34204
34205         Tests for module 'unicase/totitle'.
34206         * modules/unicase/totitle-tests: New file.
34207
34208         Tests for module 'unicase/tolower'.
34209         * modules/unicase/tolower-tests: New file.
34210
34211         Tests for module 'unicase/toupper'.
34212         * modules/unicase/toupper-tests: New file.
34213         * tests/unicase/test-mapping-part1.h: New file.
34214         * tests/unicase/test-mapping-part2.h: New file.
34215
34216         New module 'unicase/totitle'.
34217         * modules/unicase/totitle: New file.
34218         * lib/unicase/totitle.c: New file.
34219
34220         New module 'unicase/tolower'.
34221         * modules/unicase/tolower: New file.
34222         * lib/unicase/tolower.c: New file.
34223
34224         New module 'unicase/toupper'.
34225         * modules/unicase/toupper: New file.
34226         * lib/unicase/toupper.c: New file.
34227         * lib/unicase/simple-mapping.h: New file.
34228
34229         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34230         (mapping_table): New structure.
34231         (output_simple_mapping): New function.
34232         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34233         * modules/gen-uni-tables (Description): Update.
34234         * lib/unicase/toupper.h: New file, automatically generated by
34235         gen-uni-tables.
34236         * lib/unicase/tolower.h: New file, automatically generated by
34237         gen-uni-tables.
34238         * lib/unicase/totitle.h: New file, automatically generated by
34239         gen-uni-tables.
34240         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34241         gen-uni-tables.
34242         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34243         gen-uni-tables.
34244         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34245         gen-uni-tables.
34246
34247         New module 'unicase/base'.
34248         * modules/unicase/base: New file.
34249         * lib/unicase.h: New file.
34250
34251 2009-02-08  Bruno Haible  <bruno@clisp.org>
34252
34253         New module 'uniwbrk/ulc-wordbreaks'.
34254         * modules/uniwbrk/ulc-wordbreaks: New file.
34255         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34256
34257         New module 'uniwbrk/u32-wordbreaks'.
34258         * modules/uniwbrk/u32-wordbreaks: New file.
34259         * lib/uniwbrk/u32-wordbreaks.c: New file.
34260
34261         New module 'uniwbrk/u16-wordbreaks'.
34262         * modules/uniwbrk/u16-wordbreaks: New file.
34263         * lib/uniwbrk/u16-wordbreaks.c: New file.
34264
34265         New module 'uniwbrk/u8-wordbreaks'.
34266         * modules/uniwbrk/u8-wordbreaks: New file.
34267         * lib/uniwbrk/u8-wordbreaks.c: New file.
34268         * lib/uniwbrk/u-wordbreaks.h: New file.
34269
34270         New module 'uniwbrk/table'.
34271         * modules/uniwbrk/table: New file.
34272         * lib/uniwbrk/wbrktable.h: New file.
34273         * lib/uniwbrk/wbrktable.c: New file.
34274
34275         New module 'uniwbrk/wordbreak-property'.
34276         * modules/uniwbrk/wordbreak-property: New file.
34277         * lib/uniwbrk/wordbreak-property.c: New file.
34278
34279         * lib/gen-uni-tables.c (WBP_*): New enum items.
34280         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34281         (unicode_org_wbp): New variable.
34282         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34283         New functions.
34284         (wbp_table): New structure.
34285         (output_wbp, output_wbrk_tables): New functions.
34286         (main): Accept additional argument. Invoke fill_org_wbp,
34287         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34288         output_wbrk_tables.
34289         * modules/gen-uni-tables (Description): Update.
34290         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34291         gen-uni-tables.
34292
34293         New module 'uniwbrk/base'.
34294         * modules/uniwbrk/base: New file.
34295         * lib/uniwbrk.h: New file.
34296
34297 2009-02-08  Bruno Haible  <bruno@clisp.org>
34298
34299         Update to Unicode 5.1.0.
34300         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34301         U+2185..U+2188.
34302         (is_property_default_ignorable_code_point): Don't include characters
34303         of category Cc or Cs and not-a-characters.
34304         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34305         U+0D79, U+109E, U+109F, U+A60C.
34306         * lib/unictype/bidi_of.h: Regenerated.
34307         * lib/unictype/blocks.h: Regenerated.
34308         * lib/unictype/categ_C.h: Regenerated.
34309         * lib/unictype/categ_Cf.h: Regenerated.
34310         * lib/unictype/categ_Cn.h: Regenerated.
34311         * lib/unictype/categ_L.h: Regenerated.
34312         * lib/unictype/categ_Ll.h: Regenerated.
34313         * lib/unictype/categ_Lm.h: Regenerated.
34314         * lib/unictype/categ_Lo.h: Regenerated.
34315         * lib/unictype/categ_Lu.h: Regenerated.
34316         * lib/unictype/categ_M.h: Regenerated.
34317         * lib/unictype/categ_Mc.h: Regenerated.
34318         * lib/unictype/categ_Me.h: Regenerated.
34319         * lib/unictype/categ_Mn.h: Regenerated.
34320         * lib/unictype/categ_N.h: Regenerated.
34321         * lib/unictype/categ_Nd.h: Regenerated.
34322         * lib/unictype/categ_Nl.h: Regenerated.
34323         * lib/unictype/categ_No.h: Regenerated.
34324         * lib/unictype/categ_P.h: Regenerated.
34325         * lib/unictype/categ_Pd.h: Regenerated.
34326         * lib/unictype/categ_Pe.h: Regenerated.
34327         * lib/unictype/categ_Pf.h: Regenerated.
34328         * lib/unictype/categ_Pi.h: Regenerated.
34329         * lib/unictype/categ_Po.h: Regenerated.
34330         * lib/unictype/categ_Ps.h: Regenerated.
34331         * lib/unictype/categ_S.h: Regenerated.
34332         * lib/unictype/categ_Sk.h: Regenerated.
34333         * lib/unictype/categ_Sm.h: Regenerated.
34334         * lib/unictype/categ_So.h: Regenerated.
34335         * lib/unictype/categ_of.h: Regenerated.
34336         * lib/unictype/combining.h: Regenerated.
34337         * lib/unictype/ctype_alnum.h: Regenerated.
34338         * lib/unictype/ctype_alpha.h: Regenerated.
34339         * lib/unictype/ctype_graph.h: Regenerated.
34340         * lib/unictype/ctype_lower.h: Regenerated.
34341         * lib/unictype/ctype_print.h: Regenerated.
34342         * lib/unictype/ctype_punct.h: Regenerated.
34343         * lib/unictype/ctype_upper.h: Regenerated.
34344         * lib/unictype/decdigit.h: Regenerated.
34345         * lib/unictype/digit.h: Regenerated.
34346         * lib/unictype/mirror.h: Regenerated.
34347         * lib/unictype/numeric.h: Regenerated.
34348         * lib/unictype/pr_alphabetic.h: Regenerated.
34349         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34350         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34351         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34352         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34353         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34354         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34355         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34356         * lib/unictype/pr_combining.h: Regenerated.
34357         * lib/unictype/pr_dash.h: Regenerated.
34358         * lib/unictype/pr_decimal_digit.h: Regenerated.
34359         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34360         * lib/unictype/pr_deprecated.h: Regenerated.
34361         * lib/unictype/pr_diacritic.h: Regenerated.
34362         * lib/unictype/pr_extender.h: Regenerated.
34363         * lib/unictype/pr_format_control.h: Regenerated.
34364         * lib/unictype/pr_grapheme_base.h: Regenerated.
34365         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34366         * lib/unictype/pr_grapheme_link.h: Regenerated.
34367         * lib/unictype/pr_id_continue.h: Regenerated.
34368         * lib/unictype/pr_id_start.h: Regenerated.
34369         * lib/unictype/pr_ideographic.h: Regenerated.
34370         * lib/unictype/pr_ignorable_control.h: Regenerated.
34371         * lib/unictype/pr_lowercase.h: Regenerated.
34372         * lib/unictype/pr_math.h: Regenerated.
34373         * lib/unictype/pr_numeric.h: Regenerated.
34374         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34375         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34376         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34377         * lib/unictype/pr_other_id_continue.h: Regenerated.
34378         * lib/unictype/pr_other_lowercase.h: Regenerated.
34379         * lib/unictype/pr_other_math.h: Regenerated.
34380         * lib/unictype/pr_punctuation.h: Regenerated.
34381         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34382         * lib/unictype/pr_soft_dotted.h: Regenerated.
34383         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34384         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34385         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34386         * lib/unictype/pr_uppercase.h: Regenerated.
34387         * lib/unictype/pr_xid_continue.h: Regenerated.
34388         * lib/unictype/pr_xid_start.h: Regenerated.
34389         * lib/unictype/pr_zero_width.h: Regenerated.
34390         * lib/unictype/scripts.h: Regenerated.
34391         * lib/unictype/scripts_byname.gperf: Regenerated.
34392         * lib/unictype/sy_java_ident.h: Regenerated.
34393         * lib/unilbrk/lbrkprop1.h: Regenerated.
34394         * lib/unilbrk/lbrkprop2.h: Regenerated.
34395         * tests/unictype/test-categ_C.c: Regenerated.
34396         * tests/unictype/test-categ_Cf.c: Regenerated.
34397         * tests/unictype/test-categ_Cn.c: Regenerated.
34398         * tests/unictype/test-categ_L.c: Regenerated.
34399         * tests/unictype/test-categ_Ll.c: Regenerated.
34400         * tests/unictype/test-categ_Lm.c: Regenerated.
34401         * tests/unictype/test-categ_Lo.c: Regenerated.
34402         * tests/unictype/test-categ_Lu.c: Regenerated.
34403         * tests/unictype/test-categ_M.c: Regenerated.
34404         * tests/unictype/test-categ_Mc.c: Regenerated.
34405         * tests/unictype/test-categ_Me.c: Regenerated.
34406         * tests/unictype/test-categ_Mn.c: Regenerated.
34407         * tests/unictype/test-categ_N.c: Regenerated.
34408         * tests/unictype/test-categ_Nd.c: Regenerated.
34409         * tests/unictype/test-categ_Nl.c: Regenerated.
34410         * tests/unictype/test-categ_No.c: Regenerated.
34411         * tests/unictype/test-categ_P.c: Regenerated.
34412         * tests/unictype/test-categ_Pd.c: Regenerated.
34413         * tests/unictype/test-categ_Pe.c: Regenerated.
34414         * tests/unictype/test-categ_Pf.c: Regenerated.
34415         * tests/unictype/test-categ_Pi.c: Regenerated.
34416         * tests/unictype/test-categ_Po.c: Regenerated.
34417         * tests/unictype/test-categ_Ps.c: Regenerated.
34418         * tests/unictype/test-categ_S.c: Regenerated.
34419         * tests/unictype/test-categ_Sk.c: Regenerated.
34420         * tests/unictype/test-categ_Sm.c: Regenerated.
34421         * tests/unictype/test-categ_So.c: Regenerated.
34422         * tests/unictype/test-ctype_alnum.c: Regenerated.
34423         * tests/unictype/test-ctype_alpha.c: Regenerated.
34424         * tests/unictype/test-ctype_graph.c: Regenerated.
34425         * tests/unictype/test-ctype_lower.c: Regenerated.
34426         * tests/unictype/test-ctype_print.c: Regenerated.
34427         * tests/unictype/test-ctype_punct.c: Regenerated.
34428         * tests/unictype/test-ctype_upper.c: Regenerated.
34429         * tests/unictype/test-decdigit.h: Regenerated.
34430         * tests/unictype/test-digit.h: Regenerated.
34431         * tests/unictype/test-numeric.h: Regenerated.
34432         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34433         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34434         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34435         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34436         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34437         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34438         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34439         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34440         * tests/unictype/test-pr_combining.c: Regenerated.
34441         * tests/unictype/test-pr_dash.c: Regenerated.
34442         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34443         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34444         * tests/unictype/test-pr_deprecated.c: Regenerated.
34445         * tests/unictype/test-pr_diacritic.c: Regenerated.
34446         * tests/unictype/test-pr_extender.c: Regenerated.
34447         * tests/unictype/test-pr_format_control.c: Regenerated.
34448         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34449         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34450         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34451         * tests/unictype/test-pr_id_continue.c: Regenerated.
34452         * tests/unictype/test-pr_id_start.c: Regenerated.
34453         * tests/unictype/test-pr_ideographic.c: Regenerated.
34454         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34455         * tests/unictype/test-pr_lowercase.c: Regenerated.
34456         * tests/unictype/test-pr_math.c: Regenerated.
34457         * tests/unictype/test-pr_numeric.c: Regenerated.
34458         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34459         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34460         Regenerated.
34461         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34462         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34463         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34464         * tests/unictype/test-pr_other_math.c: Regenerated.
34465         * tests/unictype/test-pr_punctuation.c: Regenerated.
34466         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34467         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34468         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34469         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34470         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34471         * tests/unictype/test-pr_uppercase.c: Regenerated.
34472         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34473         * tests/unictype/test-pr_xid_start.c: Regenerated.
34474         * tests/unictype/test-pr_zero_width.c: Regenerated.
34475
34476         Update to Unicode 5.1.0.
34477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34478         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34479         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34480         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34481         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34482         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34483         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34484         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34485         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34486         (nonspacing_table_ind): Update.
34487         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34488
34489         Update to Unicode 5.1.0.
34490         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34491         code transform.
34492         * lib/uniname/uniname.c (unicode_character_name,
34493         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34494         * lib/uniname/uninames.h: Regenerated.
34495         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34496
34497 2009-02-07  Bruno Haible  <bruno@clisp.org>
34498
34499         Merge gen-ctype and gen-lbrk into a single program.
34500         * lib/gen-uni-tables.c: New file, incorporating
34501         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34502         Add directory prefixes to the names of the generated files.
34503         * lib/unictype/gen-ctype.c: Remove file.
34504         * lib/unilbrk/gen-lbrk.c: Remove file.
34505         * modules/gen-uni-tables: New file.
34506         * modules/unictype/gen-ctype: Remove file.
34507         * modules/unilbrk/gen-lbrk: Remove file.
34508
34509 2009-02-07  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34512
34513         New module 'unistr/u32-strcoll'.
34514         * modules/unistr/u32-strcoll: New file.
34515         * lib/unistr/u32-strcoll.c: New file.
34516
34517         New module 'unistr/u16-strcoll'.
34518         * modules/unistr/u16-strcoll: New file.
34519         * lib/unistr/u16-strcoll.c: New file.
34520
34521         New module 'unistr/u8-strcoll'.
34522         * modules/unistr/u8-strcoll: New file.
34523         * lib/unistr/u8-strcoll.c: New file.
34524         * lib/unistr/u-strcoll.h: New file.
34525
34526 2009-02-07  Bruno Haible  <bruno@clisp.org>
34527
34528         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34529         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34530         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34531         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34532         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34533         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34534
34535 2009-02-07  Bruno Haible  <bruno@clisp.org>
34536
34537         Make 64-bit clean.
34538         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34539         output_combclass, output_bidi_category, output_decimal_digit,
34540         output_digit, output_numeric, output_mirror, output_scripts,
34541         output_ident_category): Use proper width specifier in format strings.
34542
34543 2009-02-07  Bruno Haible  <bruno@clisp.org>
34544
34545         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34546         failure behaviour.
34547
34548 2009-02-07  Jim Meyering  <meyering@redhat.com>
34549
34550         regex: avoid compilation failure with upcoming gcc-4.4
34551         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34552         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34553         "... error: integer overflow in preprocessor expression".
34554
34555 2009-02-05  Ben Pfaff  <blp@gnu.org>
34556
34557         Fix link errors on Windows when close module is used.
34558         * modules/close: Add $(LIB_CLOSE) to Link section.
34559         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34560         $(LIB_CLOSE) on Windows.
34561
34562 2009-02-05  Jim Meyering  <meyering@redhat.com>
34563
34564         still avoid unused-parameter warnings, but do it cleanly
34565         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34566         (get_fs_usage): Cast to void instead.
34567         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34568         (dev_from_mount_options, read_file_system_list): Cast to void.
34569         Prompted by Bruno Haible.
34570
34571 2009-02-04  Jim Meyering  <meyering@redhat.com>
34572
34573         fsusage.c: correct copyright year
34574         * lib/fsusage.c: Reflect year in which the change is pushed into
34575
34576         avoid misc. warnings
34577         * lib/fsusage.c (UNUSED_PARAM): Define.
34578         (get_fs_usage): Mark parameter "disk" as unused.
34579         * lib/getugroups.c (getgrent): Use "void" in prototype.
34580         * lib/mountlist.c: Mark unused parameters.
34581         (read_file_system_list): Declare a local with "const".
34582         * lib/nanosleep.c (getnow): Declare static.
34583         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34584
34585         dirfd: set errno upon failure
34586         * lib/dirfd.c: Include <errno.h>.
34587         Set errno to ENOTSUP when returning -1.
34588         * modules/dirfd (Depends-on): Add errno.
34589         Suggested by John Kodis <kodis@comcast.net>.
34590
34591 2009-02-01  Bruno Haible  <bruno@clisp.org>
34592
34593         Don't assume sizeof (long) >= sizeof (void *).
34594         * lib/memcmp.c: Include stdint.h.
34595         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34596         srcp2 to 'const byte *'.
34597         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34598         types to uintptr_t.
34599         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34600         * modules/memcmp (Depends-on): Add stdint.
34601         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34602
34603 2009-01-30  Eric Blake  <ebb9@byu.net>
34604
34605         fix more require-before-expand issues
34606         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34607         expand, AC_PROG_AWK.
34608         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34609
34610 2009-01-28  Eric Blake  <ebb9@byu.net>
34611
34612         version-etc: use consistent URL formatting
34613         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34614         Improve formatting.  Use fputs for string without %.
34615
34616 2009-01-28  Jim Meyering  <meyering@redhat.com>
34617
34618         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34619         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34620         "underquoted definition of NAME" from autoconf-2.59.
34621
34622 2009-01-28  Bruno Haible  <bruno@clisp.org>
34623
34624         * doc/gnulib.texi: Add "Obsolete modules" to index.
34625
34626 2009-01-28  Jim Meyering  <meyering@redhat.com>
34627
34628         useless-if-before-free: recognize more variants
34629         * build-aux/useless-if-before-free: Also recognize e.g.,
34630         if (NULL != p) free (p);
34631
34632 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34633
34634         test-getaddrinfo: skip (don't fail) this test when there's no network
34635         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34636         on the presumption that it means you lack network access.
34637
34638 2009-01-26  Jim Meyering  <meyering@redhat.com>
34639
34640         fflush: avoid warnings on modern systems
34641         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34642         pos and result, into scopes where they're used.
34643
34644 2009-01-26  Eric Blake  <ebb9@byu.net>
34645
34646         Silence warning reintroduced by recent extensions patch.
34647         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34648         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34649         autoconf.
34650
34651         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34652         * m4/00gnulib.m4: New file.
34653         * gnulib-tool (func_get_filelist): Always use it.
34654         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34655         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34656
34657 2009-01-25  Bruno Haible  <bruno@clisp.org>
34658
34659         Make test-quotearg work on MacOS X and AIX.
34660         * tests/test-quotearg.sh: New file.
34661         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34662         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34663         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34664         include <libintl.h>.
34665         (fake_locale): Remove variable.
34666         (gettext, dgettext, dcgettext): Remove functions.
34667         (main): Instead of setting a fake locale, set a real locale. Call
34668         textdomain and bindtextdomain.
34669         * modules/quotearg-tests (Files): Add the new files.
34670         (Depends-on): Add gettext, setenv, unsetenv.
34671         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34672         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34673         Augment TESTS_ENVIRONMENT.
34674
34675 2009-01-25  Bruno Haible  <bruno@clisp.org>
34676
34677         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34678         fr_FR.ISO8859-1 locale on MacOS X.
34679         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34680         ja_JP.eucJP locale on MacOS X.
34681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34682         zh_CN.GB18030 locale on MacOS X.
34683
34684 2009-01-25  Bruno Haible  <bruno@clisp.org>
34685
34686         Avoid link errors on MacOS X 10.3.
34687         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34688         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34689
34690 2009-01-25  Bruno Haible  <bruno@clisp.org>
34691
34692         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34693         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34694         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34695         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34696         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34697         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34698         posix_spawnattr_init, posix_spawnattr_setsigmask,
34699         posix_spawnattr_setflags, posix_spawnattr_destroy.
34700
34701         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34702         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34703         * modules/execute (Files): Remove m4/posix_spawn.m4.
34704         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34705         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34706         posix_spawnattr_init, posix_spawnattr_setsigmask,
34707         posix_spawnattr_setflags, posix_spawnattr_destroy.
34708
34709 2009-01-25  Bruno Haible  <bruno@clisp.org>
34710
34711         * lib/glthread/threadlib.c: Include <stdlib.h>.
34712
34713 2009-01-25  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/glthread/threadlib.c (dummy): New declaration.
34716
34717 2009-01-25  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34720         multibyte characters also for the GB18030 encoding. Don't crash when
34721         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34722
34723 2009-01-25  Bruno Haible  <bruno@clisp.org>
34724
34725         Avoid redefining 'struct random_data' on OSF/1 5.1.
34726         * lib/stdlib.in.h: Include <random.h> if it exists.
34727         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34728         HAVE_RANDOM_H. Include <random.h> when testing whether
34729         'struct random_data' exists.
34730         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34731
34732 2009-01-25  Bruno Haible  <bruno@clisp.org>
34733
34734         Don't install charset.alias on MacOS X >= 10.3.
34735         * lib/localcharset.c (DARWIN7): New macro.
34736         (get_charset_aliases): Hardcode the result for Darwin7.
34737         * modules/localcharset (install-exec-local): Don't install
34738         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34739
34740 2009-01-25  Bruno Haible  <bruno@clisp.org>
34741
34742         Don't install charset.alias on mingw and Cygwin.
34743         * modules/localcharset (install-exec-local): Don't install
34744         charset.alias on mingw and Cygwin, if the file does not yet exist.
34745         The result for these platforms is hardcoded in localcharset.c.
34746
34747 2009-01-25  Bruno Haible  <bruno@clisp.org>
34748
34749         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34751         before requiring AC_USE_SYSTEM_EXTENSIONS.
34752
34753 2009-01-25  Jim Meyering  <meyering@redhat.com>
34754
34755         c-strtod: avoid warnings
34756         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34757         "assignment discards qualifiers from pointer target type" warnings.
34758
34759 2009-01-24  Bruno Haible  <bruno@clisp.org>
34760
34761         Add support for non-UTF-8 locales on MacOS X.
34762         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34763         canonical encodings. For Darwin 7 and newer, don't map traditional
34764         encodings to UTF-8.
34765         Reported by Vincent Lefevre <vincent@vinc17.org>
34766         at <http://savannah.gnu.org/bugs/?25235>.
34767
34768 2009-01-24  Bruno Haible  <bruno@clisp.org>
34769
34770         * doc/gnulib.texi (Obsolete modules): New section.
34771         Reported by Mike Frysinger <vapier@gentoo.org>.
34772
34773 2009-01-24  Bruno Haible  <bruno@clisp.org>
34774
34775         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34776         (%.dvi): New rule.
34777
34778 2009-01-24  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34781         Reported by Eric Blake.
34782
34783 2009-01-24  Bruno Haible  <bruno@clisp.org>
34784
34785         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34786         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34787         Reported by Gary V. Vaughan <gary@gnu.org>.
34788
34789 2009-01-24  Bruno Haible  <bruno@clisp.org>
34790
34791         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34792
34793 2009-01-23  Bruno Haible  <bruno@clisp.org>
34794
34795         Make c-strtod, c-strtold usable in libraries.
34796         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34797         (C_STRTOD): Call strdup instead of xstrdup.
34798         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34799         * modules/c-strtold (Depends-on): Likewise.
34800         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34801         * NEWS: Mention the change.
34802         Reported by Michael Gold <mgold@ncf.ca>.
34803
34804 2009-01-23  Jim Meyering  <meyering@redhat.com>
34805
34806         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34807         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34808         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34809
34810 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34811
34812         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34813         GNU CoreUtils.
34814         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34815         * modules/version-etc (Description): Update.
34816
34817 2009-01-22  Bruno Haible  <bruno@clisp.org>
34818
34819         Cache the C locale object.
34820         * lib/c-strtod.c (c_locale_cache): New variable.
34821         (c_locale): New function.
34822         (C_STRTOD): Use it, and don't call freelocale.
34823         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34824         Suggested by Paolo Bonzini.
34825
34826 2009-01-21  Bruno Haible  <bruno@clisp.org>
34827
34828         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34829         conditions other than overflow.
34830
34831 2009-01-21  Bruno Haible  <bruno@clisp.org>
34832
34833         * lib/c-strtod.c: Include errno.h.
34834         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34835         value from STRTOD_L and STRTOD.
34836
34837 2009-01-21  Bruno Haible  <bruno@clisp.org>
34838         and Jim Meyering  <meyering@redhat.com>
34839
34840         nanosleep: skip configure test (fail it) for apple universal builds
34841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34842         universal builds, assume that nanosleep does not work.
34843         * modules/nanosleep (Depends-on): Add multiarch.
34844
34845         mktime: skip configure test (fail it) for apple universal builds
34846         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34847         universal builds, assume that mktime does not work.
34848         * modules/mktime (Depends-on): Add multiarch.
34849
34850 2009-01-21  Eric Blake  <ebb9@byu.net>
34851
34852         multiarch: avoid expand-before-require warning
34853         * modules/multiarch (configure.ac): Require, rather than expand,
34854         gl_MULTIARCH.
34855         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34856         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34857         enforce that all clients require it.  Partial reversion of
34858         2008-12-29 patch.
34859
34860         error: avoid expand-before-require warning
34861         * modules/errno (configure.ac): Require, rather than expand,
34862         gl_HEADER_ERRNO_H.
34863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34864         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34865         enforce that all clients require it.
34866
34867         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34868         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34869         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34870         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34871
34872 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34873
34874         Revert:
34875         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34876
34877         regex: do not depend on obsolete modules.
34878         * modules/regex: Remove memcmp and memmove.
34879
34880 2009-01-20  Bruno Haible  <bruno@clisp.org>
34881
34882         Make the 'link' module link on Windows NT 4.
34883         * lib/link.c (_WIN32_WINNT): Don't define.
34884         (CreateHardLinkFuncType): New type.
34885         (CreateHardLinkFunc, initialized): New variables.
34886         (initialize): New function.
34887         (link): Invoke CreateHardLink indirectly through the function pointer.
34888
34889 2009-01-20  Bruno Haible  <bruno@clisp.org>
34890
34891         Fix compilation failure on mingw.
34892         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34893
34894 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34895
34896         * doc/c-strtod.texi: Mention a couple of restrictions.
34897
34898 2009-01-20  Jim Meyering  <meyering@redhat.com>
34899
34900         gettimeofday: move more declarations out of functions
34901         * lib/gettimeofday.c: Move extern declarations of tzset and
34902         gmtime out of containing functions.  Prompted by Bruno Haible.
34903
34904 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34905
34906         regex: do not depend on obsolete modules.
34907         * modules/regex: Remove memcmp and memmove.
34908
34909 2009-01-19  Bruno Haible  <bruno@clisp.org>
34910
34911         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34912         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34913         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34914         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34915         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34916
34917 2009-01-19  Bruno Haible  <bruno@clisp.org>
34918
34919         * tests/test-link.c: Include <errno.h>.
34920         (main): Exit with code 77 when a hard link cannot be created due to
34921         the file system.
34922         * tests/test-link.sh: Skip test when a hard link cannot be created due
34923         to the file system.
34924         Suggested by Eric Blake.
34925
34926 2009-01-19  Martin Lambers  <marlam@marlam.de>
34927
34928         * modules/link-tests: New file.
34929         * tests/test-link.sh: New file.
34930         * tests/test-link.c: New file.
34931
34932 2009-01-19  Eric Blake  <ebb9@byu.net>
34933
34934         doc: mention another function added in cygwin 1.7.0
34935         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34936         Another new function in cygwin 1.7.
34937
34938 2009-01-19  Bruno Haible  <bruno@clisp.org>
34939
34940         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34941         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34942         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34943         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34945         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34947         * m4/md4.m4 (gl_MD4): Likewise.
34948         * m4/md5.m4 (gl_MD5): Likewise.
34949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34950         * m4/sha1.m4 (gl_SHA1): Likewise.
34951         * m4/sha256.m4 (gl_SHA256): Likewise.
34952         * m4/sha512.m4 (gl_SHA512): Likewise.
34953
34954 2009-01-19  Bruno Haible  <bruno@clisp.org>
34955
34956         * modules/uniname/uniname-tests (Depends-on): Add progname.
34957         * tests/uniname/test-uninames.c: Include progname.h.
34958         (main): Call set_program_name.
34959
34960         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34961         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34962         (main): Call set_program_name.
34963
34964         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34965         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34966         (main): Call set_program_name.
34967
34968         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34969         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34970         (main): Call set_program_name.
34971
34972         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34973         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34974         (main): Call set_program_name.
34975
34976         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34977         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34978         (main): Call set_program_name.
34979
34980         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34981         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34982         (main): Call set_program_name.
34983
34984         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34985         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34986         (main): Call set_program_name.
34987
34988         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34989         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34990         (main): Call set_program_name.
34991
34992 2009-01-19  Eric Blake  <ebb9@byu.net>
34993
34994         test-unistd: test previous patch
34995         * tests/test-unistd.c: Test *_FILENO macros.
34996
34997         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34998         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34999         Guarantee a definition.
35000         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35001         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35002         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35003         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35004         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35005         Likewise.
35006         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35007         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35008         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35009         Likewise.
35010         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35011         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35012         (STDERR_FILENO): Likewise.
35013         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35014         (STDERR_FILENO): Likewise.
35015         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35016         (STDERR_FILENO): Likewise.
35017         Reported by Elbert Pol.
35018
35019 2009-01-19  Eric Blake  <ebb9@byu.net>
35020
35021         doc: mention more functions added in cygwin 1.7.0
35022         * doc/posix-functions/abort.texi (abort): Update wording related
35023         to cygwin.
35024         * doc/posix-functions/daylight.texi (daylight): Likewise.
35025         * doc/posix-functions/optarg.texi (optarg): Likewise.
35026         * doc/posix-functions/optarg.texi (opterr): Likewise.
35027         * doc/posix-functions/optarg.texi (optind): Likewise.
35028         * doc/posix-functions/optarg.texi (optopt): Likewise.
35029         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35030         worked in 1.5.x, and was withdrawn in 1.7.
35031         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35032         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35033         cygwin versions.
35034         * doc/posix-functions/perror.texi (perror): Likewise.
35035         * doc/posix-functions/printf.texi (printf): Likewise.
35036         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35037         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35038         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35039         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35040         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35041         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35042         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35043         Likewise.
35044         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35045         Likewise.
35046         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35047         this function.
35048         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35049         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35050         Likewise.
35051         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35052         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35053         * doc/posix-functions/confstr.texi (confstr): Likewise.
35054         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35055         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35056         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35057         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35058         * doc/posix-functions/fputws.texi (fputws): Likewise.
35059         * doc/posix-functions/fwide.texi (fwide): Likewise.
35060         * doc/posix-functions/getwc.texi (getwc): Likewise.
35061         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35062         * doc/posix-functions/putwc.texi (putwc): Likewise.
35063         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35064         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35065         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35066         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35067         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35068         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35069         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35070         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35071         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35072         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35073         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35074
35075 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35076
35077         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35078         * lib/ioctl.c: Include <sys/ioctl.h>.
35079
35080 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35081
35082         * modules/getdate-tests (Depends-on): Add progname.
35083         * tests/test-getdate.c: Use progname module, to avoid link errors
35084         on non-glibc systems.
35085
35086 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35087
35088         * modules/filenamecat-tests (Depends-on): Add progname.
35089         * modules/fstrcmp-tests (Depends-on): Likewise.
35090
35091         * tests/test-filenamecat.c: Use progname module, to avoid link
35092         errors on non-glibc systems.
35093         * tests/test-fstrcmp.c: Likewise.
35094
35095 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35096
35097         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35098         * lib/gettimeofday.c: Move extern declaration out of function.
35099
35100 2009-01-18  Bruno Haible  <bruno@clisp.org>
35101
35102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35103         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35104         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35105
35106 2009-01-18  Bruno Haible  <bruno@clisp.org>
35107
35108         * lib/strftime.c (MEMPCPY): Remove unused macro.
35109         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35110
35111 2009-01-18  Martin Lambers  <marlam@marlam.de>
35112
35113         New module 'link'.
35114         * lib/unistd.in.h (link): New declaration.
35115         * lib/link.c: New file.
35116         * m4/link.m4: New file.
35117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35118         HAVE_LINK.
35119         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35120         * modules/link: New file.
35121         * doc/posix-functions/link.texi: Mention the new module.
35122
35123 2009-01-18  Bruno Haible  <bruno@clisp.org>
35124
35125         * tests/test-avltree_list.c (main): Call set_program_name.
35126         * tests/test-avltree_oset.c (main): Likewise.
35127         * tests/test-obstack-printf.c: Include progname.h.
35128         (main): Call set_program_name.
35129         * tests/test-quotearg.c: Include progname.h.
35130         (main): Call set_program_name.
35131         * tests/test-xmemdup0.c: Include progname.h.
35132         (main): Call set_program_name.
35133
35134 2009-01-18  Bruno Haible  <bruno@clisp.org>
35135
35136         New module 'alphasort'.
35137         * lib/dirent.in.h (alphasort): New declaration.
35138         * lib/alphasort.c: New file, from glibc with modifications.
35139         * m4/alphasort.m4: New file.
35140         * modules/alphasort: New file.
35141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35142         HAVE_ALPHASORT.
35143         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35144         HAVE_ALPHASORT.
35145         * doc/posix-functions/alphasort.texi: Mention the new module and the
35146         portability problems.
35147
35148 2009-01-18  Bruno Haible  <bruno@clisp.org>
35149
35150         New module 'scandir'.
35151         * lib/dirent.in.h (scandir): New declaration.
35152         * lib/scandir.c: New file, from glibc with modifications.
35153         * m4/scandir.m4: New file.
35154         * modules/scandir: New file.
35155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35156         HAVE_SCANDIR.
35157         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35158         HAVE_SCANDIR.
35159         * doc/posix-functions/scandir.texi: Mention the new module and the
35160         portability problems.
35161
35162 2009-01-17  Bruno Haible  <bruno@clisp.org>
35163
35164         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35165         Update documentation.
35166         (func_remove_suffix): Escape all dots in the suffix. Update
35167         documentation.
35168         (func_filter_filelist): Update documentation.
35169         Reported by Ralf Wildenhues.
35170
35171 2009-01-17  Bruno Haible  <bruno@clisp.org>
35172
35173         * modules/dprintf-posix-tests: New file.
35174         * tests/test-dprintf-posix.sh: New file.
35175         * tests/test-dprintf-posix.c: New file.
35176
35177         New modules 'dprintf', 'dprintf-posix'.
35178         * lib/stdio.in.h (dprintf): New declaration.
35179         * lib/dprintf.c: New file.
35180         * m4/dprintf.m4: New file.
35181         * m4/dprintf-posix.m4: New file.
35182         * modules/dprintf: New file.
35183         * modules/dprintf-posix: New file.
35184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35185         HAVE_DPRINTF, REPLACE_DPRINTF.
35186         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35187         HAVE_DPRINTF, REPLACE_DPRINTF.
35188         * doc/posix-functions/dprintf.texi: Mention the new modules.
35189
35190 2009-01-17  Bruno Haible  <bruno@clisp.org>
35191
35192         * modules/vdprintf-posix-tests: New file.
35193         * tests/test-vdprintf-posix.sh: New file.
35194         * tests/test-vdprintf-posix.c: New file.
35195
35196         New modules 'vdprintf', 'vdprintf-posix'.
35197         * lib/stdio.in.h (vdprintf): New declaration.
35198         * lib/vdprintf.c: New file.
35199         * m4/vdprintf.m4: New file.
35200         * m4/vdprintf-posix.m4: New file.
35201         * modules/vdprintf: New file.
35202         * modules/vdprintf-posix: New file.
35203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35204         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35205         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35206         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35207         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35208
35209 2009-01-17  Bruno Haible  <bruno@clisp.org>
35210
35211         Fix replacement of fopen on mingw.
35212         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35213         mingw.
35214
35215 2009-01-17  Bruno Haible  <bruno@clisp.org>
35216
35217         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35218         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35219
35220 2009-01-17  Bruno Haible  <bruno@clisp.org>
35221
35222         Avoid test-fflush2.sh failure on mingw.
35223         * tests/test-fflush2.c: Include binary-io.h.
35224         (main): Put standard input into binary mode.
35225         * modules/fflush-tests (Depends-on): Add binary-io.
35226
35227 2009-01-17  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/wchar.in.h: In another particular situation, include only the
35230         system's <wchar.h> file.
35231         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35232         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35233         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35234
35235 2009-01-17  Bruno Haible  <bruno@clisp.org>
35236
35237         Support for stripping executables in --enable-relocatable.
35238         * build-aux/install-reloc: Expect one more argument, or an environment
35239         variable RELOC_STRIP_PROG. If set, strip the destination program and
35240         its wrapper.
35241         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35242         RELOC_STRIP_PROG.
35243         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35244         to set RELOCATABLE_STRIP.
35245         * NEWS: Mention the new Makefile requirement.
35246
35247 2009-01-17  Bruno Haible  <bruno@clisp.org>
35248
35249         * build-aux/install-reloc: Remove debugging information left over by
35250         C compiler on MacOS X.
35251
35252 2009-01-17  Bruno Haible  <bruno@clisp.org>
35253
35254         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35255         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35256         _NSGetExecutablePath.
35257
35258 2009-01-16  Jim Meyering  <meyering@redhat.com>
35259
35260         strerror: avoid warnings about discarding "const"
35261         * lib/strerror.c (rpl_strerror): Instead of returning a const
35262         string from each and every "case", use a variable, and add a single
35263         cast after the switch.
35264
35265 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35266
35267         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35268
35269 2009-01-16  Bruno Haible  <bruno@clisp.org>
35270
35271         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35272         array initializer syntax that also works in C++ mode.
35273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35274
35275 2009-01-16  Jim Meyering  <meyering@redhat.com>
35276
35277         poll: suppress a warning
35278         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35279         to ignore "...unsigned expression < 0 is always false" warnings.
35280
35281 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35282
35283         poll: remove declarations of unused variables
35284         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35285         sockbuf and optlen.
35286
35287 2009-01-15  Bruno Haible  <bruno@clisp.org>
35288
35289         Make fflush-after-ungetc POSIX compliant on BSD systems.
35290         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35291         (clear_ungetc_buffer): Implement also for other systems.
35292         (rpl_fflush): On glibc systems, invoke
35293         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35294         clear_ungetc_buffer after fetching the stream's position, not before.
35295
35296 2009-01-15  Bruno Haible  <bruno@clisp.org>
35297
35298         Make fflush-after-ungetc POSIX compliant on glibc systems.
35299         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35300         after ungetc.
35301         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35302         (rpl_fflush): On glibc systems, simply call the system's fflush
35303         function after clearing the ungetc buffer.
35304         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35305         Instead, lseek only to the end of file, then use the system's fseeko
35306         for the rest. On glibc systems, reset the EOF indicator bit.
35307
35308 2009-01-15  Jim Meyering  <meyering@redhat.com>
35309
35310         openmp.m4: revert quote-adding change, for portability to older autoconf
35311         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35312         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35313         Simon Josefsson noticed the problem when using autoconf-2.61.
35314
35315 2009-01-15  Bruno Haible  <bruno@clisp.org>
35316
35317         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35318         * tests/test-fflush2.c (ASSERT): Always fail.
35319         (main): Add two tests for fflush() after ungetc(), taking into account
35320         the Austin Group's clarification.
35321         Suggested by Eric Blake.
35322
35323 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35324
35325         mktime.m4: remove K&R-style function prototypes
35326         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35327         for the Sun C++ compiler.
35328
35329 2009-01-14  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35332         while including <wchar.h>.
35333         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35334         the system's <wchar.h> file.
35335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35336
35337 2009-01-14  Bruno Haible  <bruno@clisp.org>
35338
35339         * m4/csharp.m4: Don't mention gettext on the serial number line.
35340         * m4/csharpexec.m4: Likewise.
35341         * m4/eaccess.m4: Likewise.
35342         * m4/javaexec.m4: Likewise.
35343         * m4/sig_atomic_t.m4: Likewise.
35344         * m4/tmpdir.m4: Likewise.
35345         * m4/intldir.m4: Bump gettext version.
35346         * m4/lib-ld.m4: Likewise.
35347
35348 2009-01-14  Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/progname.c (set_program_name): Add more comments.
35351         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35352
35353 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35354
35355         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35356         were sys/stat.h does not define it.
35357
35358 2009-01-14  Jim Meyering  <meyering@redhat.com>
35359
35360         many *.m4 files: improve m4 quoting
35361         99% of this change was performed by running the following commands:
35362         git ls-files | grep '\.m4$' | xargs perl -pi \
35363           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35364           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35365           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35366           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35367         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35368         The remainder were to add Copyright dates, increment serial numbers,
35369         undo some changes in comments, exclude m4/intl.m4, and add quotes
35370         around the "1" in ",1" where the unusual spacing prohibited the
35371         above regexps from doing the job.  For more details, see
35372         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35373         * m4/acl.m4: Modified.
35374         * m4/afs.m4: Likewise.
35375         * m4/alloca.m4: Likewise.
35376         * m4/argp.m4: Likewise.
35377         * m4/argz.m4: Likewise.
35378         * m4/atexit.m4: Likewise.
35379         * m4/bison-i18n.m4: Likewise.
35380         * m4/bison.m4: Likewise.
35381         * m4/byteswap.m4: Likewise.
35382         * m4/c-stack.m4: Likewise.
35383         * m4/c-strtod.m4: Likewise.
35384         * m4/calloc.m4: Likewise.
35385         * m4/canonicalize-lgpl.m4: Likewise.
35386         * m4/chown.m4: Likewise.
35387         * m4/clock_time.m4: Likewise.
35388         * m4/codeset.m4: Likewise.
35389         * m4/copy-file.m4: Likewise.
35390         * m4/csharp.m4: Likewise.
35391         * m4/csharpcomp.m4: Likewise.
35392         * m4/csharpexec.m4: Likewise.
35393         * m4/d-ino.m4: Likewise.
35394         * m4/d-type.m4: Likewise.
35395         * m4/dirfd.m4: Likewise.
35396         * m4/double-slash-root.m4: Likewise.
35397         * m4/eaccess.m4: Likewise.
35398         * m4/eealloc.m4: Likewise.
35399         * m4/environ.m4: Likewise.
35400         * m4/errno_h.m4: Likewise.
35401         * m4/euidaccess.m4: Likewise.
35402         * m4/execute.m4: Likewise.
35403         * m4/fatal-signal.m4: Likewise.
35404         * m4/fchdir.m4: Likewise.
35405         * m4/fcntl_h.m4: Likewise.
35406         * m4/fileblocks.m4: Likewise.
35407         * m4/filenamecat.m4: Likewise.
35408         * m4/findprog.m4: Likewise.
35409         * m4/flexmember.m4: Likewise.
35410         * m4/fnmatch.m4: Likewise.
35411         * m4/fopen.m4: Likewise.
35412         * m4/fpending.m4: Likewise.
35413         * m4/fprintf-posix.m4: Likewise.
35414         * m4/free.m4: Likewise.
35415         * m4/frexp.m4: Likewise.
35416         * m4/frexpl.m4: Likewise.
35417         * m4/fsusage.m4: Likewise.
35418         * m4/ftruncate.m4: Likewise.
35419         * m4/gc-camellia.m4: Likewise.
35420         * m4/gc-random.m4: Likewise.
35421         * m4/gc.m4: Likewise.
35422         * m4/getaddrinfo.m4: Likewise.
35423         * m4/getcwd-abort-bug.m4: Likewise.
35424         * m4/getcwd-path-max.m4: Likewise.
35425         * m4/getdate.m4: Likewise.
35426         * m4/getdomainname.m4: Likewise.
35427         * m4/getgroups.m4: Likewise.
35428         * m4/gethostname.m4: Likewise.
35429         * m4/gethrxtime.m4: Likewise.
35430         * m4/getline.m4: Likewise.
35431         * m4/getloadavg.m4: Likewise.
35432         * m4/getndelim2.m4: Likewise.
35433         * m4/getpass.m4: Likewise.
35434         * m4/gettext.m4: Likewise.
35435         * m4/gettime.m4: Likewise.
35436         * m4/gettimeofday.m4: Likewise.
35437         * m4/gnulib-common.m4: Likewise.
35438         * m4/group-member.m4: Likewise.
35439         * m4/host-os.m4: Likewise.
35440         * m4/iconv.m4: Likewise.
35441         * m4/iconv_open.m4: Likewise.
35442         * m4/inet_ntop.m4: Likewise.
35443         * m4/inet_pton.m4: Likewise.
35444         * m4/inline.m4: Likewise.
35445         * m4/intldir.m4: Likewise.
35446         * m4/intlmacosx.m4: Likewise.
35447         * m4/intmax.m4: Likewise.
35448         * m4/intmax_t.m4: Likewise.
35449         * m4/inttypes.m4: Likewise.
35450         * m4/inttypes_h.m4: Likewise.
35451         * m4/inttypes-pri.m4: Likewise.
35452         * m4/isapipe.m4: Likewise.
35453         * m4/isnand.m4: Likewise.
35454         * m4/isnanf.m4: Likewise.
35455         * m4/isnanl.m4: Likewise.
35456         * m4/javacomp.m4: Likewise.
35457         * m4/javaexec.m4: Likewise.
35458         * m4/jm-winsz1.m4: Likewise.
35459         * m4/jm-winsz2.m4: Likewise.
35460         * m4/lchown.m4: Likewise.
35461         * m4/lcmessage.m4: Likewise.
35462         * m4/ldexpl.m4: Likewise.
35463         * m4/lib-ld.m4: Likewise.
35464         * m4/lib-link.m4: Likewise.
35465         * m4/libsigsegv.m4: Likewise.
35466         * m4/link-follow.m4: Likewise.
35467         * m4/localcharset.m4: Likewise.
35468         * m4/locale-fr.m4: Likewise.
35469         * m4/locale-ja.m4: Likewise.
35470         * m4/locale-tr.m4: Likewise.
35471         * m4/locale-zh.m4: Likewise.
35472         * m4/lock.m4: Likewise.
35473         * m4/longlong.m4: Likewise.
35474         * m4/ls-mntd-fs.m4: Likewise.
35475         * m4/lstat.m4: Likewise.
35476         * m4/malloc.m4: Likewise.
35477         * m4/mathl.m4: Likewise.
35478         * m4/mbrtowc.m4: Likewise.
35479         * m4/mbstate_t.m4: Likewise.
35480         * m4/mbswidth.m4: Likewise.
35481         * m4/memchr.m4: Likewise.
35482         * m4/memcmp.m4: Likewise.
35483         * m4/memcpy.m4: Likewise.
35484         * m4/memmem.m4: Likewise.
35485         * m4/memmove.m4: Likewise.
35486         * m4/mempcpy.m4: Likewise.
35487         * m4/memrchr.m4: Likewise.
35488         * m4/memset.m4: Likewise.
35489         * m4/minmax.m4: Likewise.
35490         * m4/mkdir-slash.m4: Likewise.
35491         * m4/mkdtemp.m4: Likewise.
35492         * m4/mktime.m4: Likewise.
35493         * m4/mmap-anon.m4: Likewise.
35494         * m4/mountlist.m4: Likewise.
35495         * m4/nanosleep.m4: Likewise.
35496         * m4/nls.m4: Likewise.
35497         * m4/nocrash.m4: Likewise.
35498         * m4/open.m4: Likewise.
35499         * m4/openat.m4: Likewise.
35500         * m4/openmp.m4: Likewise.
35501         * m4/pathmax.m4: Likewise.
35502         * m4/perl.m4: Likewise.
35503         * m4/physmem.m4: Likewise.
35504         * m4/pipe.m4: Likewise.
35505         * m4/po.m4: Likewise.
35506         * m4/poll.m4: Likewise.
35507         * m4/posixtm.m4: Likewise.
35508         * m4/posixver.m4: Likewise.
35509         * m4/printf-frexp.m4: Likewise.
35510         * m4/printf-frexpl.m4: Likewise.
35511         * m4/printf-posix.m4: Likewise.
35512         * m4/printf-posix-rpl.m4: Likewise.
35513         * m4/printf.m4: Likewise.
35514         * m4/progtest.m4: Likewise.
35515         * m4/putenv.m4: Likewise.
35516         * m4/readline.m4: Likewise.
35517         * m4/readlink.m4: Likewise.
35518         * m4/readutmp.m4: Likewise.
35519         * m4/realloc.m4: Likewise.
35520         * m4/regex.m4: Likewise.
35521         * m4/relocatable.m4: Likewise.
35522         * m4/relocatable-lib.m4: Likewise.
35523         * m4/rename-dest-slash.m4: Likewise.
35524         * m4/rename.m4: Likewise.
35525         * m4/rmdir-errno.m4: Likewise.
35526         * m4/rmdir.m4: Likewise.
35527         * m4/roundf.m4: Likewise.
35528         * m4/roundl.m4: Likewise.
35529         * m4/rpmatch.m4: Likewise.
35530         * m4/save-cwd.m4: Likewise.
35531         * m4/selinux-selinux-h.m4: Likewise.
35532         * m4/setenv.m4: Likewise.
35533         * m4/settime.m4: Likewise.
35534         * m4/sig2str.m4: Likewise.
35535         * m4/sig_atomic_t.m4: Likewise.
35536         * m4/signalblocking.m4: Likewise.
35537         * m4/signbit.m4: Likewise.
35538         * m4/sigpipe.m4: Likewise.
35539         * m4/sockets.m4: Likewise.
35540         * m4/sockpfaf.m4: Likewise.
35541         * m4/st_dm_mode.m4: Likewise.
35542         * m4/stat-time.m4: Likewise.
35543         * m4/stdbool.m4: Likewise.
35544         * m4/stdint.m4: Likewise.
35545         * m4/stdint_h.m4: Likewise.
35546         * m4/stpcpy.m4: Likewise.
35547         * m4/stpncpy.m4: Likewise.
35548         * m4/strcase.m4: Likewise.
35549         * m4/strchrnul.m4: Likewise.
35550         * m4/strcspn.m4: Likewise.
35551         * m4/strdup.m4: Likewise.
35552         * m4/strftime.m4: Likewise.
35553         * m4/strndup.m4: Likewise.
35554         * m4/strnlen.m4: Likewise.
35555         * m4/strpbrk.m4: Likewise.
35556         * m4/strptime.m4: Likewise.
35557         * m4/strsep.m4: Likewise.
35558         * m4/strtod.m4: Likewise.
35559         * m4/strtoimax.m4: Likewise.
35560         * m4/strtok_r.m4: Likewise.
35561         * m4/strtol.m4: Likewise.
35562         * m4/strtoll.m4: Likewise.
35563         * m4/strtoul.m4: Likewise.
35564         * m4/strtoull.m4: Likewise.
35565         * m4/strtoumax.m4: Likewise.
35566         * m4/strverscmp.m4: Likewise.
35567         * m4/threadlib.m4: Likewise.
35568         * m4/timegm.m4: Likewise.
35569         * m4/tm_gmtoff.m4: Likewise.
35570         * m4/tmpdir.m4: Likewise.
35571         * m4/tmpfile.m4: Likewise.
35572         * m4/tzset.m4: Likewise.
35573         * m4/uintmax_t.m4: Likewise.
35574         * m4/unlinkdir.m4: Likewise.
35575         * m4/unlocked-io.m4: Likewise.
35576         * m4/uptime.m4: Likewise.
35577         * m4/userspec.m4: Likewise.
35578         * m4/utimbuf.m4: Likewise.
35579         * m4/utime.m4: Likewise.
35580         * m4/utimes-null.m4: Likewise.
35581         * m4/utimes.m4: Likewise.
35582         * m4/vararrays.m4: Likewise.
35583         * m4/vasnprintf.m4: Likewise.
35584         * m4/vfprintf-posix.m4: Likewise.
35585         * m4/vprintf-posix.m4: Likewise.
35586         * m4/wait-process.m4: Likewise.
35587         * m4/wchar_t.m4: Likewise.
35588         * m4/wint_t.m4: Likewise.
35589         * m4/write-any-file.m4: Likewise.
35590         * m4/yield.m4: Likewise.
35591
35592 2009-01-13  Bruno Haible  <bruno@clisp.org>
35593
35594         Avoid test-copy-file.sh failures when ACL support insufficient.
35595         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35596         TESTS_ENVIRONMENT.
35597         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35598         Reported by Jim Meyering.
35599
35600 2009-01-13  Bruno Haible  <bruno@clisp.org>
35601
35602         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35603         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35604         * modules/unistdio/u8-printf-parse (Files): Likewise.
35605         * modules/unistdio/u32-printf-parse (Files): Likewise.
35606         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35607
35608 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35609
35610         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35611         and m4/inttypes_h.m4 too.
35612
35613 2009-01-12  Eric Blake  <ebb9@byu.net>
35614
35615         tests: IRIX 6.2 cc can't compile -0.0 into .data
35616         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35617         rather than at compile-time.
35618         * tests/test-floorl.c (minus_zero): Likewise.
35619         * tests/test-frexpl.c (minus_zero): Likewise.
35620         * tests/test-isnan.c (minus_zerol): Likewise.
35621         * tests/test-isnanl.h (minus_zero): Likewise.
35622         * tests/test-ldexpl.c (minus_zero): Likewise.
35623         * tests/test-roundl.c (minus_zero): Likewise.
35624         * tests/test-signbit.c (minus_zerol): Likewise.
35625         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35626         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35627         * tests/test-truncl.c (minus_zero): Likewise.
35628         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35629         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35630         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35631
35632 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35633
35634         regex: fix glibc bug 9697
35635         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35636         handling.
35637
35638 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35639
35640         regex: fix glibc bug 697
35641         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35642         being NULL also if there are no backreferences.
35643
35644 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35645
35646         regex: merge glibc changes
35647         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35648         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35649         re_string_skip_chars, re_string_reconstruct): Likewise.
35650         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35651
35652 2009-01-07  Jim Meyering  <meyering@redhat.com>
35653
35654         poll: filter through cppi
35655         * lib/poll.c: Indent cpp directives to reflect nesting.
35656
35657 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35658
35659         poll: don't return uninitialized
35660         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35661
35662 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35663
35664         avoid compile failure on AIX 6.1
35665         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35666         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35667
35668 2009-01-04  Jim Meyering  <meyering@redhat.com>
35669
35670         remove duplicate inclusion of <stdio.h>
35671         * tests/test-fprintf-posix.c: Likewise.
35672         * tests/test-printf-posix.c: Likewise.
35673         * tests/test-snprintf-posix.c: Likewise.
35674         * tests/test-sprintf-posix.c: Likewise.
35675         * tests/test-vasprintf-posix.c: Likewise.
35676         * tests/test-vfprintf-posix.c: Likewise.
35677         * tests/test-vprintf-posix.c: Likewise.
35678         * tests/test-vsnprintf-posix.c: Likewise.
35679         * tests/test-vsprintf-posix.c: Likewise.
35680
35681 2009-01-03  Jim Meyering  <meyering@redhat.com>
35682
35683         gnulib-tool: fix sed-based filtering
35684         * gnulib-tool (func_filter_filelist): Remove extra backslash
35685         in sed_fff_filter definition.
35686
35687 2009-01-02  Jim Meyering  <meyering@redhat.com>
35688
35689         strftime: avoid compilation failure on Solaris 2.6
35690         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35691         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35692         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35693         be available.  Reported by Tom G. Christensen.  Details in
35694         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35695
35696 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35697             Bruno Haible  <bruno@clisp.org>
35698
35699         Speed up gnulib-tool by doing more string processing through shell
35700         built-ins.
35701         * gnulib-tool (fast_func_append): New variable.
35702         (func_remove_prefix, func_remove_suffix): New functions.
35703         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35704         (func_filter_filelist): New function.
35705         (func_get_dependencies): Use func_remove_suffix instead of sed.
35706         (func_get_automake_snippet): Use func_filter_filelist instead of a
35707         subshell and sed invocation.
35708
35709 2009-01-01  Bruno Haible  <bruno@clisp.org>
35710
35711         Fix a security bug.
35712         * gnulib-tool (func_import, import, update): Don't allow the characters
35713         '"', '$', '`', '\' in macro arguments that become part of commands that
35714         are evaluated.
35715
35716 2009-01-01  Bruno Haible  <bruno@clisp.org>
35717
35718         * gnulib-tool (func_reset_sigpipe): Add more comments.
35719
35720 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35721
35722         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35723         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35724         already know the answer.
35725
35726 2009-01-01  Jim Meyering  <meyering@redhat.com>
35727
35728         * lib/version-etc.c (version_etc_va): Update copyright year.
35729
35730 2008-12-30  Bruno Haible  <bruno@clisp.org>
35731
35732         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35733         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35734         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35735
35736 2008-12-29  Eric Blake  <ebb9@byu.net>
35737
35738         multiarch: avoid autoconf AC_REQUIRE bug
35739         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35740         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35741         2.63 and older.
35742         Reported by Bruno Haible, and analyzed in
35743         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35744
35745 2008-12-29  Bruno Haible  <bruno@clisp.org>
35746
35747         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35748         files in subdirectories correctly.
35749         Reported by Ralf Wildenhues.
35750
35751 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35752
35753         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35754         rather than 'join FILE -', for Solaris join.
35755
35756 2008-12-29  Bruno Haible  <bruno@clisp.org>
35757
35758         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35759         quoting.
35760         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35761         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35762         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35763         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35764         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35765         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35766         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35767         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35768         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35769         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35770         * m4/nls.m4 (AM_NLS): Likewise.
35771         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35772         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35773         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35774         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35775         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35776         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35777         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35778         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35779         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35780         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35781         * m4/xsize.m4 (gl_XSIZE): Likewise.
35782         Suggested by Jim Meyering.
35783
35784 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35785
35786         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35787         * lib/parse-duration.c: use a switch instead of cascading if's.
35788
35789 2008-12-29  Eric Blake  <ebb9@byu.net>
35790
35791         wchar.h: supply WEOF on Irix 5.3
35792         * lib/wchar.in.h (wint_t): Also supply WEOF.
35793         * lib/wctype.in.h (wint_t): Likewise.
35794         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35795         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35796         Reported by Tom G. Christensen.
35797
35798 2008-12-26  Bruno Haible  <bruno@clisp.org>
35799
35800         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35801         i486, i586, i686.
35802
35803 2008-12-26  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35806
35807 2008-12-26  Bruno Haible  <bruno@clisp.org>
35808
35809         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35810         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35811         not __STDC_CONSTANT_MACROS.
35812         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35813
35814 2008-12-25  Bruno Haible  <bruno@clisp.org>
35815
35816         Add support for universal builds to vasnprintf.
35817         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35818         universal builds, guess no.
35819         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35820         * modules/vasprintf-posix (Depends-on): Likewise.
35821         * modules/fprintf-posix (Depends-on): Likewise.
35822         * modules/vfprintf-posix (Depends-on): Likewise.
35823         * modules/snprintf-posix (Depends-on): Likewise.
35824         * modules/vsnprintf-posix (Depends-on): Likewise.
35825         * modules/sprintf-posix (Depends-on): Likewise.
35826         * modules/vsprintf-posix (Depends-on): Likewise.
35827         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35828         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35829         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35830         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35831         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35832         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35833         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35834
35835         Add support for universal builds to <inttypes.h>.
35836         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35837         _SCNu64_PREFIX): In Apple
35838         universal builds, define directly, using _LP64.
35839         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35840         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35841         * modules/inttypes (Depends-on): Add multiarch.
35842         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35843
35844         Add support for universal builds to <stdint.h>.
35845         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35846         universal builds, define directly, using _LP64.
35847         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35848         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35849         and size_t.
35850         * modules/stdint (Depends-on): Add multiarch.
35851         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35852
35853         New module 'multiarch'.
35854         * modules/multiarch: New file.
35855         * m4/multiarch.m4: New file.
35856
35857 2008-12-25  Bruno Haible  <bruno@clisp.org>
35858
35859         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35860
35861 2008-12-25  Bruno Haible  <bruno@clisp.org>
35862
35863         * modules/btowc (License): Relicense under LGPLv2+.
35864         * modules/mbsinit (License): Likewise.
35865         * modules/mbrtowc (License): Likewise.
35866         * modules/wcrtomb (License): Likewise.
35867         * modules/streq (License): Likewise.
35868         Reported by David Lutterkort <lutter@redhat.com>.
35869
35870 2008-12-23  Bruno Haible  <bruno@clisp.org>
35871
35872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35873
35874 2008-12-23  Bruno Haible  <bruno@clisp.org>
35875
35876         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35878         GETADDRINFO_LIB, not in LIBS.
35879         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35880         * modules/canon-host (Link): Likewise.
35881         * NEWS: Mention the change.
35882         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35883         GETADDRINFO_LIB.
35884
35885 2008-12-22  Bruno Haible  <bruno@clisp.org>
35886
35887         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35888         * doc/posix-functions/iswalpha_l.texi: Likewise.
35889         * doc/posix-functions/iswblank_l.texi: Likewise.
35890         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35891         * doc/posix-functions/iswctype_l.texi: Likewise.
35892         * doc/posix-functions/iswdigit_l.texi: Likewise.
35893         * doc/posix-functions/iswgraph_l.texi: Likewise.
35894         * doc/posix-functions/iswlower_l.texi: Likewise.
35895         * doc/posix-functions/iswprint_l.texi: Likewise.
35896         * doc/posix-functions/iswpunct_l.texi: Likewise.
35897         * doc/posix-functions/iswspace_l.texi: Likewise.
35898         * doc/posix-functions/iswupper_l.texi: Likewise.
35899         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35900         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35901         * doc/posix-functions/open_wmemstream.texi: Likewise.
35902         * doc/posix-functions/swscanf.texi: Likewise.
35903         * doc/posix-functions/towctrans_l.texi: Likewise.
35904         * doc/posix-functions/towlower.texi: Likewise.
35905         * doc/posix-functions/towlower_l.texi: Likewise.
35906         * doc/posix-functions/towupper.texi: Likewise.
35907         * doc/posix-functions/towupper_l.texi: Likewise.
35908         * doc/posix-functions/vfwprintf.texi: Likewise.
35909         * doc/posix-functions/vfwscanf.texi: Likewise.
35910         * doc/posix-functions/vswscanf.texi: Likewise.
35911         * doc/posix-functions/vwprintf.texi: Likewise.
35912         * doc/posix-functions/vwscanf.texi: Likewise.
35913         * doc/posix-functions/wcpcpy.texi: Likewise.
35914         * doc/posix-functions/wcpncpy.texi: Likewise.
35915         * doc/posix-functions/wcscasecmp.texi: Likewise.
35916         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35917         * doc/posix-functions/wcscoll_l.texi: Likewise.
35918         * doc/posix-functions/wcsdup.texi: Likewise.
35919         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35920         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35921         * doc/posix-functions/wcsnlen.texi: Likewise.
35922         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35923         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35924         * doc/posix-functions/wctrans_l.texi: Likewise.
35925         * doc/posix-functions/wctype_l.texi: Likewise.
35926         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35927         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35928         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35929         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35930         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35931         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35932         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35933         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35934         * doc/glibc-functions/wcschrnul.texi: Likewise.
35935         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35936         * doc/glibc-functions/wcstod_l.texi: Likewise.
35937         * doc/glibc-functions/wcstof_l.texi: Likewise.
35938         * doc/glibc-functions/wcstol_l.texi: Likewise.
35939         * doc/glibc-functions/wcstold_l.texi: Likewise.
35940         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35941         * doc/glibc-functions/wcstoq.texi: Likewise.
35942         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35943         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35944         * doc/glibc-functions/wcstouq.texi: Likewise.
35945         * doc/glibc-functions/wmempcpy.texi: Likewise.
35946
35947 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35948             Eric Blake  <ebb9@byu.net>
35949             Paolo Bonzini  <bonzini@gnu.org>
35950             Bruno Haible  <bruno@clisp.org>
35951
35952         Make c-stack work on Haiku.
35953         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35954         (c_stack_action): Use SA_ONSTACK flag.
35955
35956 2008-12-22  Bruno Haible  <bruno@clisp.org>
35957
35958         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35959
35960 2008-12-22  Bruno Haible  <bruno@clisp.org>
35961
35962         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35963         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35964         being overridden.
35965         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35966         New macros.
35967         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35969         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35970         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35971
35972 2008-12-22  Bruno Haible  <bruno@clisp.org>
35973
35974         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35975         from test code.
35976
35977 2008-12-22  Eric Blake  <ebb9@byu.net>
35978
35979         Avoid gcc warnings on cygwin.
35980         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35981         Avoid unused variable.
35982         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35983         Likewise.
35984
35985 2008-12-22  Bruno Haible  <bruno@clisp.org>
35986
35987         Remove HAVE_MBRTOWC conditionals.
35988         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35989         (mbscasecmp): Assume mbrtowc function.
35990         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35991         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35992         * lib/mbschr.c: Include mbuiter.h unconditionally.
35993         (mbschr): Assume mbrtowc function.
35994         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35995         (mbscspn): Assume mbrtowc function.
35996         * lib/mbslen.c: Include mbuiter.h unconditionally.
35997         (mbslen): Assume mbrtowc function.
35998         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35999         (mbsncasecmp): Assume mbrtowc function.
36000         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36001         (mbsnlen): Assume mbrtowc function.
36002         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36003         (mbspbrk): Assume mbrtowc function.
36004         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36005         (mbspcasecmp): Assume mbrtowc function.
36006         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36007         (mbsrchr): Assume mbrtowc function.
36008         * lib/mbssep.c: Include mbuiter.h unconditionally.
36009         (mbssep): Assume mbrtowc function.
36010         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36011         (mbsspn): Assume mbrtowc function.
36012         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36013         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36014         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36015         (mbstok_r): Assume mbrtowc function.
36016         * lib/propername.c: Include mbuiter.h unconditionally.
36017         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36018         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36019         (trim2): Assume mbrtowc function.
36020         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36021         (mbsnwidth): Assume mbrtowc function.
36022         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36023         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36024         fallback definitions.
36025         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36026
36027 2008-12-22  Bruno Haible  <bruno@clisp.org>
36028
36029         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36030
36031 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36032
36033         * modules/regex: Request emulations for the mb*/wc* functions we need.
36034         * m4/regex.m4: Don't look for those functions here.
36035         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36036
36037 2008-12-22  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36040
36041 2008-12-21  Bruno Haible  <bruno@clisp.org>
36042
36043         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36044         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36045         (Include): Remove conditionalization.
36046         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36047         (Include): Remove conditionalization.
36048         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36049         (Include): Remove conditionalization.
36050         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36051         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36052         * NEWS: Mention the change.
36053         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36054         via Sergey Poznyakoff <gray@gnu.org.ua>.
36055
36056 2008-12-21  Bruno Haible  <bruno@clisp.org>
36057
36058         * MODULES.html.sh (Extended multibyte and wide character utilities
36059         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36060         wcrtomb, wcsrtombs.
36061         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36062         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36063         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36064         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36065
36066 2008-12-21  Bruno Haible  <bruno@clisp.org>
36067
36068         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36069
36070 2008-12-21  Bruno Haible  <bruno@clisp.org>
36071
36072         * modules/wcsnrtombs-tests: New file.
36073         * tests/test-wcsnrtombs1.sh: New file.
36074         * tests/test-wcsnrtombs2.sh: New file.
36075         * tests/test-wcsnrtombs3.sh: New file.
36076         * tests/test-wcsnrtombs4.sh: New file.
36077         * tests/test-wcsnrtombs.c: New file.
36078
36079         New module 'wcsnrtombs'.
36080         * lib/wchar.in.h (wcsnrtombs): New declaration.
36081         * lib/wcsnrtombs.c: New file.
36082         * lib/wcsrtombs-state.c: New file.
36083         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36084         (internal_state): Remove variable.
36085         * m4/wcsnrtombs.m4: New file.
36086         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36087         compilation units.
36088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36089         HAVE_WCSNRTOMBS.
36090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36091         HAVE_WCSNRTOMBS.
36092         * modules/wcsnrtombs: New file.
36093         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36094         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36095
36096 2008-12-21  Bruno Haible  <bruno@clisp.org>
36097
36098         * modules/wcsrtombs-tests: New file.
36099         * tests/test-wcsrtombs1.sh: New file.
36100         * tests/test-wcsrtombs2.sh: New file.
36101         * tests/test-wcsrtombs3.sh: New file.
36102         * tests/test-wcsrtombs4.sh: New file.
36103         * tests/test-wcsrtombs.c: New file.
36104
36105         New module 'wcsrtombs'.
36106         * lib/wchar.in.h (wcsrtombs): New declaration.
36107         * lib/wcsrtombs.c: New file.
36108         * m4/wcsrtombs.m4: New file.
36109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36110         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36112         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36113         * modules/wcsrtombs: New file.
36114         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36115         bugs.
36116
36117 2008-12-21  Bruno Haible  <bruno@clisp.org>
36118
36119         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36120         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36122         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36123         if not correct.
36124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36125         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36126         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36127         m4/locale-zh.m4, m4/codeset.m4.
36128         * doc/posix-functions/wcrtomb.texi: Document the bug.
36129
36130 2008-12-21  Bruno Haible  <bruno@clisp.org>
36131
36132         Work around a btowc() bug on IRIX 6.5.
36133         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36134         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36135         REPLACE_WTOBC if not.
36136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36137         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36138         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36139
36140 2008-12-21  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/wcrtomb-tests: New file.
36143         * tests/test-wcrtomb.sh: New file.
36144         * tests/test-wcrtomb.c: New file.
36145
36146         New module 'wcrtomb'.
36147         * lib/wchar.in.h (wcrtomb): New declaration.
36148         * lib/wcrtomb.c: New file.
36149         * m4/wcrtomb.m4: New file.
36150         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36151         HAVE_WCRTOMB.
36152         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36153         HAVE_WCRTOMB.
36154         * modules/wcrtomb: New file.
36155         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36156
36157 2008-12-21  Bruno Haible  <bruno@clisp.org>
36158
36159         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36160         * modules/mbsrtowcs (Files): Likewise.
36161         * modules/wctob (Files): Likewise.
36162         * modules/c-strcase-tests (Files): Likewise.
36163         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36164         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36165         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36166         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36167         * modules/vasnprintf-posix-tests (Files): Likewise.
36168
36169 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36170
36171         gitlog-to-changelog: pass all command-line arguments to git-log
36172         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36173         it is sometimes convenient to filter the commits in various ways.
36174         gitlog-to-changelog only allows --since to specify a start date,
36175         but git-log itself supports many other filtering mechanisms.
36176         At the moment, I want to filter by branch name.  Rather than
36177         adding a --branch option to gitlog-to-changelog, it seems more
36178         flexible to simply pass all options directly to git-log and let
36179         git do the work.  Notice that this effectively makes --since a
36180         redundant option for gitlog-to-changelog, but removing it would
36181         require current usage to change since calls would then require
36182         an additional '--'.
36183
36184 2008-12-21  Bruno Haible  <bruno@clisp.org>
36185
36186         * modules/mbsnrtowcs-tests: New file.
36187         * tests/test-mbsnrtowcs1.sh: New file.
36188         * tests/test-mbsnrtowcs2.sh: New file.
36189         * tests/test-mbsnrtowcs3.sh: New file.
36190         * tests/test-mbsnrtowcs4.sh: New file.
36191         * tests/test-mbsnrtowcs.c: New file.
36192
36193         New module 'mbsnrtowcs'.
36194         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36195         * lib/mbsnrtowcs.c: New file.
36196         * lib/mbsrtowcs-state.c: New file.
36197         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36198         (internal_state): Remove variable.
36199         * m4/mbsnrtowcs.m4: New file.
36200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36201         compilation units.
36202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36203         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36204         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36205         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36206         * modules/mbsnrtowcs: New file.
36207         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36208         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36209         portability problem.
36210
36211 2008-12-21  Bruno Haible  <bruno@clisp.org>
36212
36213         Work around mbsrtowcs bug.
36214         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36215         (gl_FUNC_MBSRTOWCS): Invoke it.
36216         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36217         m4/locale-zh.m4.
36218         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36219
36220 2008-12-21  Bruno Haible  <bruno@clisp.org>
36221
36222         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36223
36224 2008-12-21  Bruno Haible  <bruno@clisp.org>
36225
36226         Update doc for AIX.
36227         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36228         16-bit wchar_t type.
36229         * doc/posix-functions/btowc.texi: Likewise.
36230         * doc/posix-functions/fgetwc.texi: Likewise.
36231         * doc/posix-functions/fgetws.texi: Likewise.
36232         * doc/posix-functions/fputwc.texi: Likewise.
36233         * doc/posix-functions/fputws.texi: Likewise.
36234         * doc/posix-functions/fwide.texi: Likewise.
36235         * doc/posix-functions/fwprintf.texi: Likewise.
36236         * doc/posix-functions/fwscanf.texi: Likewise.
36237         * doc/posix-functions/getwchar.texi: Likewise.
36238         * doc/posix-functions/getwc.texi: Likewise.
36239         * doc/posix-functions/iswalnum.texi: Likewise.
36240         * doc/posix-functions/iswalpha.texi: Likewise.
36241         * doc/posix-functions/iswblank.texi: Likewise.
36242         * doc/posix-functions/iswcntrl.texi: Likewise.
36243         * doc/posix-functions/iswctype.texi: Likewise.
36244         * doc/posix-functions/iswdigit.texi: Likewise.
36245         * doc/posix-functions/iswgraph.texi: Likewise.
36246         * doc/posix-functions/iswlower.texi: Likewise.
36247         * doc/posix-functions/iswprint.texi: Likewise.
36248         * doc/posix-functions/iswpunct.texi: Likewise.
36249         * doc/posix-functions/iswspace.texi: Likewise.
36250         * doc/posix-functions/iswupper.texi: Likewise.
36251         * doc/posix-functions/iswxdigit.texi: Likewise.
36252         * doc/posix-functions/mbrtowc.texi: Likewise.
36253         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36254         * doc/posix-functions/mbstowcs.texi: Likewise.
36255         * doc/posix-functions/mbtowc.texi: Likewise.
36256         * doc/posix-functions/putwchar.texi: Likewise.
36257         * doc/posix-functions/putwc.texi: Likewise.
36258         * doc/posix-functions/swprintf.texi: Likewise.
36259         * doc/posix-functions/tolower.texi: Likewise.
36260         * doc/posix-functions/toupper.texi: Likewise.
36261         * doc/posix-functions/towctrans.texi: Likewise.
36262         * doc/posix-functions/ungetwc.texi: Likewise.
36263         * doc/posix-functions/vswprintf.texi: Likewise.
36264         * doc/posix-functions/wcrtomb.texi: Likewise.
36265         * doc/posix-functions/wcscat.texi: Likewise.
36266         * doc/posix-functions/wcschr.texi: Likewise.
36267         * doc/posix-functions/wcscmp.texi: Likewise.
36268         * doc/posix-functions/wcscoll.texi: Likewise.
36269         * doc/posix-functions/wcscpy.texi: Likewise.
36270         * doc/posix-functions/wcscspn.texi: Likewise.
36271         * doc/posix-functions/wcsftime.texi: Likewise.
36272         * doc/posix-functions/wcslen.texi: Likewise.
36273         * doc/posix-functions/wcsncat.texi: Likewise.
36274         * doc/posix-functions/wcsncmp.texi: Likewise.
36275         * doc/posix-functions/wcsncpy.texi: Likewise.
36276         * doc/posix-functions/wcspbrk.texi: Likewise.
36277         * doc/posix-functions/wcsrchr.texi: Likewise.
36278         * doc/posix-functions/wcsrtombs.texi: Likewise.
36279         * doc/posix-functions/wcsspn.texi: Likewise.
36280         * doc/posix-functions/wcsstr.texi: Likewise.
36281         * doc/posix-functions/wcstod.texi: Likewise.
36282         * doc/posix-functions/wcstof.texi: Likewise.
36283         * doc/posix-functions/wcstoimax.texi: Likewise.
36284         * doc/posix-functions/wcstok.texi: Likewise.
36285         * doc/posix-functions/wcstold.texi: Likewise.
36286         * doc/posix-functions/wcstoll.texi: Likewise.
36287         * doc/posix-functions/wcstol.texi: Likewise.
36288         * doc/posix-functions/wcstombs.texi: Likewise.
36289         * doc/posix-functions/wcstoull.texi: Likewise.
36290         * doc/posix-functions/wcstoul.texi: Likewise.
36291         * doc/posix-functions/wcstoumax.texi: Likewise.
36292         * doc/posix-functions/wcswidth.texi: Likewise.
36293         * doc/posix-functions/wcsxfrm.texi: Likewise.
36294         * doc/posix-functions/wctob.texi: Likewise.
36295         * doc/posix-functions/wctomb.texi: Likewise.
36296         * doc/posix-functions/wctrans.texi: Likewise.
36297         * doc/posix-functions/wctype.texi: Likewise.
36298         * doc/posix-functions/wcwidth.texi: Likewise.
36299         * doc/posix-functions/wmemchr.texi: Likewise.
36300         * doc/posix-functions/wmemcmp.texi: Likewise.
36301         * doc/posix-functions/wmemcpy.texi: Likewise.
36302         * doc/posix-functions/wmemmove.texi: Likewise.
36303         * doc/posix-functions/wmemset.texi: Likewise.
36304         * doc/posix-functions/wprintf.texi: Likewise.
36305         * doc/posix-functions/wscanf.texi: Likewise.
36306
36307 2008-12-21  Bruno Haible  <bruno@clisp.org>
36308
36309         Update doc for HP-UX 11.11.
36310         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36311         in HP-UX version 11.00, not in all versions of HP-UX 11.
36312         * doc/posix-functions/fwide.texi: Likewise.
36313         * doc/posix-functions/fwprintf.texi: Likewise.
36314         * doc/posix-functions/fwscanf.texi: Likewise.
36315         * doc/posix-functions/inet_ntop.texi: Likewise.
36316         * doc/posix-functions/inet_pton.texi: Likewise.
36317         * doc/posix-functions/mbrlen.texi: Likewise.
36318         * doc/posix-functions/mbrtowc.texi: Likewise.
36319         * doc/posix-functions/mbsinit.texi: Likewise.
36320         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36321         * doc/posix-functions/swprintf.texi: Likewise.
36322         * doc/posix-functions/swscanf.texi: Likewise.
36323         * doc/posix-functions/towctrans.texi: Likewise.
36324         * doc/posix-functions/vfwprintf.texi: Likewise.
36325         * doc/posix-functions/vswprintf.texi: Likewise.
36326         * doc/posix-functions/vwprintf.texi: Likewise.
36327         * doc/posix-functions/wcrtomb.texi: Likewise.
36328         * doc/posix-functions/wcsrtombs.texi: Likewise.
36329         * doc/posix-functions/wcsstr.texi: Likewise.
36330         * doc/posix-functions/wctob.texi: Likewise.
36331         * doc/posix-functions/wctrans.texi: Likewise.
36332         * doc/posix-functions/wmemchr.texi: Likewise.
36333         * doc/posix-functions/wmemcmp.texi: Likewise.
36334         * doc/posix-functions/wmemcpy.texi: Likewise.
36335         * doc/posix-functions/wmemmove.texi: Likewise.
36336         * doc/posix-functions/wmemset.texi: Likewise.
36337         * doc/posix-functions/wprintf.texi: Likewise.
36338         * doc/posix-functions/wscanf.texi: Likewise.
36339
36340 2008-12-21  Bruno Haible  <bruno@clisp.org>
36341
36342         Work around a portability problem.
36343         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36344         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36345
36346 2008-12-20  Bruno Haible  <bruno@clisp.org>
36347
36348         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36349         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36350         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36352         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36353
36354         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36355         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36356         set.
36357         (GNULIB_defined_mbstate_t): New macro.
36358         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36359         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36360         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36361         reuses the system's mbrtowc function but works around the bugs.
36362         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36363         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36364         macros.
36365         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36366         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36367         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36368         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36369         REPLACE_MBSINIT if mbsinit needs to be overridden.
36370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36371         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36372         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36373         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36374         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36375         m4/locale-zh.m4.
36376         (Depends): Add mbsinit.
36377         * modules/mbsinit (Depends): Add mbrtowc.
36378         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36379
36380 2008-12-20  Bruno Haible  <bruno@clisp.org>
36381
36382         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36383         so that there are no conversion errors on AIX.
36384         * tests/test-mbsrtowcs.c (main): LIkewise.
36385
36386 2008-12-20  Bruno Haible  <bruno@clisp.org>
36387
36388         Work around wctob bug on Solaris <= 9.
36389         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36390         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36392         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36393         * modules/wctob (Files): Add m4/locale-fr.m4.
36394         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36395
36396 2008-12-20  Bruno Haible  <bruno@clisp.org>
36397
36398         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36399         /dev/null.
36400         * tests/test-select-in.sh: Likewise.
36401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36402
36403 2008-12-20  Bruno Haible  <bruno@clisp.org>
36404
36405         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36406         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36407         Cygwin 1.5.x.
36408
36409 2008-12-20  Bruno Haible  <bruno@clisp.org>
36410
36411         Ensure mbstate_t is defined on HP-UX 11.11.
36412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36413         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36414         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36415         AC_USE_SYSTEM_EXTENSIONS.
36416         * modules/fnmatch (Depends-on): Add extensions.
36417         * modules/mbrlen (Depends-on): Likewise.
36418         * modules/mbrtowc (Depends-on): Likewise.
36419         * modules/mbsinit (Depends-on): Likewise.
36420         * modules/mbsrtowcs (Depends-on): Likewise.
36421         * modules/mbswidth (Depends-on): Likewise.
36422         * modules/quotearg (Depends-on): Likewise.
36423         * modules/strftime (Depends-on): Likewise.
36424
36425 2008-12-20  Bruno Haible  <bruno@clisp.org>
36426
36427         Ensure wctob is declared on IRIX 6.5.
36428         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36429         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36430         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36432         of HAVE_WCTOB.
36433         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36434         HAVE_WCTOB.
36435         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36436
36437 2008-12-19  Bruno Haible  <bruno@clisp.org>
36438
36439         * modules/mbsrtowcs-tests: New file.
36440         * tests/test-mbsrtowcs1.sh: New file.
36441         * tests/test-mbsrtowcs2.sh: New file.
36442         * tests/test-mbsrtowcs3.sh: New file.
36443         * tests/test-mbsrtowcs4.sh: New file.
36444         * tests/test-mbsrtowcs.c: New file.
36445
36446         New module 'mbsrtowcs'.
36447         * lib/wchar.in.h (mbsrtowcs): New declaration.
36448         * lib/mbsrtowcs.c: New file.
36449         * m4/mbsrtowcs.m4: New file.
36450         * modules/mbsrtowcs: New file.
36451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36452         HAVE_MBSRTOWCS.
36453         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36454         HAVE_MBSRTOWCS.
36455         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36456
36457 2008-12-19  Bruno Haible  <bruno@clisp.org>
36458
36459         New module 'mbrlen'.
36460         * lib/wchar.in.h (mbrlen): New declaration.
36461         * lib/mbrlen.c: New file.
36462         * m4/mbrlen.m4: New file.
36463         * modules/mbrlen: New file.
36464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36465         HAVE_MBRLEN.
36466         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36467         HAVE_MBRLEN.
36468         * doc/posix-functions/mbrlen.texi: Document the new module.
36469
36470 2008-12-19  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36473         * modules/mbrtowc (Depends-on): Add verify.
36474         Suggested by Paul Eggert.
36475
36476 2008-12-18  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/mbsinit-tests: New file.
36479         * tests/test-mbsinit.sh: New file.
36480         * tests/test-mbsinit.c: New file.
36481
36482 2008-12-18  Bruno Haible  <bruno@clisp.org>
36483
36484         * modules/mbrtowc-tests: New file.
36485         * tests/test-mbrtowc1.sh: New file.
36486         * tests/test-mbrtowc2.sh: New file.
36487         * tests/test-mbrtowc3.sh: New file.
36488         * tests/test-mbrtowc4.sh: New file.
36489         * tests/test-mbrtowc.c: New file.
36490
36491         New module 'mbrtowc'.
36492         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36493         mbsinit and mbrtowc.
36494         (mbrtowc): New declaration.
36495         * lib/mbrtowc.c: New file.
36496         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36497         * modules/mbrtowc: New file.
36498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36499         HAVE_MBRTOWC.
36500         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36501         HAVE_MBRTOWC.
36502         * doc/posix-functions/mbrtowc.texi: Document the new module.
36503
36504 2008-12-18  Bruno Haible  <bruno@clisp.org>
36505
36506         New module 'wctob'.
36507         * lib/wchar.in.h (wctob): New declaration.
36508         * lib/wctob.c: New file.
36509         * m4/wctob.m4: New file.
36510         * modules/wctob: New file.
36511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36512         HAVE_WCTOB.
36513         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36514         * doc/posix-functions/wctob.texi: Document the new module.
36515
36516 2008-12-18  Bruno Haible  <bruno@clisp.org>
36517
36518         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36519         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36520
36521 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36522
36523         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36524         G. Christensen" <tgc@jupiterrise.com>.
36525
36526         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36527         G. Christensen" <tgc@jupiterrise.com>.
36528
36529         * lib/flock.c: Need to include string.h.  Reported by "Tom
36530         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36531         <ebb9@byu.net>.
36532
36533 2008-12-18  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/locale-ja.m4: New file, from GNU gettext.
36536
36537 2008-12-17  Bruno Haible  <bruno@clisp.org>
36538
36539         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36540         Suggested by Eric Blake.
36541
36542 2008-12-17  Bruno Haible  <bruno@clisp.org>
36543
36544         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36545
36546 2008-12-17  Bruno Haible  <bruno@clisp.org>
36547
36548         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36549         * modules/mbsinit (Depends-on): Add verify.
36550         Suggested by Paul Eggert.
36551
36552 2008-12-17  Bruno Haible  <bruno@clisp.org>
36553
36554         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36555         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36556         gl_FUNC_MBRTOWC.
36557         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36558         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36559         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36560         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36561         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36562         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36563         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36564         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36565         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36566         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36567         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36568         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36569         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36570         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36571         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36572         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36573         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36574         * modules/trim (configure.ac): Likewise.
36575
36576 2008-12-17  Bruno Haible  <bruno@clisp.org>
36577
36578         * modules/btowc-tests: New file.
36579         * tests/test-btowc1.sh: New file.
36580         * tests/test-btowc2.sh: New file.
36581         * tests/test-btowc.c: New file.
36582
36583         New module 'btowc'.
36584         * lib/wchar.in.h (btowc): New declaration.
36585         * lib/btowc.c: New file.
36586         * m4/btowc.m4: New file.
36587         * modules/btowc: New file.
36588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36589         HAVE_BTOWC.
36590         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36591         * doc/posix-functions/btowc.texi: Document the new module.
36592
36593 2008-12-17  Bruno Haible  <bruno@clisp.org>
36594
36595         New module 'mbsinit'.
36596         * lib/wchar.in.h (mbsinit): New declaration.
36597         * lib/mbsinit.c: New file.
36598         * m4/mbsinit.m4: New file.
36599         * modules/mbsinit: New file.
36600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36601         HAVE_MBSINIT.
36602         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36603         HAVE_MBSINIT.
36604         * doc/posix-functions/mbsinit.texi: Document the new module.
36605
36606 2008-12-16  Bruno Haible  <bruno@clisp.org>
36607
36608         * lib/unistd.in.h: Add comment.
36609         * tests/test-environ.c: Don't include <stdlib.h>.
36610
36611 2008-12-16  Bruno Haible  <bruno@clisp.org>
36612
36613         * lib/parse-duration.h (parse_duration): Document return value
36614         convention.
36615         * lib/parse-duration.c: Include specification header first. Add
36616         comments.
36617         (_): Remove macro.
36618         (parse_year_month_day, parse_hour_minute_second): Move side effects
36619         outside of strchr call.
36620         (parse_non_iso8601): Move side effects outside of isspace call.
36621         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36622         call.
36623
36624 2008-12-16  Bruno Haible  <bruno@clisp.org>
36625
36626         * tests/test-parse-duration.sh: Produce no output when the test
36627         succeeds.
36628
36629 2008-12-16  Bruno Haible  <bruno@clisp.org>
36630
36631         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36632         expressions.
36633
36634 2008-12-15  Bruno Haible  <bruno@clisp.org>
36635
36636         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36637         * doc/glibc-functions/flistxattr.texi: Likewise.
36638         * doc/glibc-functions/fopencookie.texi: Likewise.
36639         * doc/glibc-functions/fremovexattr.texi: Likewise.
36640         * doc/glibc-functions/fsetxattr.texi: Likewise.
36641         * doc/glibc-functions/getxattr.texi: Likewise.
36642         * doc/glibc-functions/lgetxattr.texi: Likewise.
36643         * doc/glibc-functions/listxattr.texi: Likewise.
36644         * doc/glibc-functions/llistxattr.texi: Likewise.
36645         * doc/glibc-functions/lremovexattr.texi: Likewise.
36646         * doc/glibc-functions/lsetxattr.texi: Likewise.
36647         * doc/glibc-functions/removexattr.texi: Likewise.
36648         * doc/glibc-functions/setxattr.texi: Likewise.
36649         * doc/posix-functions/open_memstream.texi: Likewise.
36650
36651 2008-12-15  Eric Blake  <ebb9@byu.net>
36652
36653         Update doc for cygwin 1.7.
36654         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36655         functions.
36656         * doc/posix-functions/fchmodat.texi: Likewise.
36657         * doc/posix-functions/fchownat.texi: Likewise.
36658         * doc/posix-functions/fdopendir.texi: Likewise.
36659         * doc/posix-functions/fmemopen.texi: Likewise.
36660         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36661         * doc/posix-functions/fstatat.texi: Likewise.
36662         * doc/posix-functions/futimens.texi: Likewise.
36663         * doc/posix-functions/gai_strerror.texi: Likewise.
36664         * doc/posix-functions/getaddrinfo.texi: Likewise.
36665         * doc/posix-functions/getnameinfo.texi: Likewise.
36666         * doc/posix-functions/if_freenameindex.texi: Likewise.
36667         * doc/posix-functions/if_indextoname.texi: Likewise.
36668         * doc/posix-functions/if_nameindex.texi: Likewise.
36669         * doc/posix-functions/if_nametoindex.texi: Likewise.
36670         * doc/posix-functions/insque.texi: Likewise.
36671         * doc/posix-functions/linkat.texi: Likewise.
36672         * doc/posix-functions/llrint.texi: Likewise.
36673         * doc/posix-functions/llrintf.texi: Likewise.
36674         * doc/posix-functions/llrintl.texi: Likewise.
36675         * doc/posix-functions/lockf.texi: Likewise.
36676         * doc/posix-functions/lrintl.texi: Likewise.
36677         * doc/posix-functions/mkdirat.texi: Likewise.
36678         * doc/posix-functions/mkfifoat.texi: Likewise.
36679         * doc/posix-functions/mknodat.texi: Likewise.
36680         * doc/posix-functions/mq_close.texi: Likewise.
36681         * doc/posix-functions/mq_getattr.texi: Likewise.
36682         * doc/posix-functions/mq_notify.texi: Likewise.
36683         * doc/posix-functions/mq_open.texi: Likewise.
36684         * doc/posix-functions/mq_receive.texi: Likewise.
36685         * doc/posix-functions/mq_send.texi: Likewise.
36686         * doc/posix-functions/mq_setattr.texi: Likewise.
36687         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36688         * doc/posix-functions/mq_timedsend.texi: Likewise.
36689         * doc/posix-functions/mq_unlink.texi: Likewise.
36690         * doc/posix-functions/open_memstream.texi: Likewise.
36691         * doc/posix-functions/openat.texi: Likewise.
36692         * doc/posix-functions/posix_fadvise.texi: Likewise.
36693         * doc/posix-functions/posix_fallocate.texi: Likewise.
36694         * doc/posix-functions/posix_madvise.texi: Likewise.
36695         * doc/posix-functions/posix_memalign.texi: Likewise.
36696         * doc/posix-functions/posix_openpt.texi: Likewise.
36697         * doc/posix-functions/readlinkat.texi: Likewise.
36698         * doc/posix-functions/remque.texi: Likewise.
36699         * doc/posix-functions/renameat.texi: Likewise.
36700         * doc/posix-functions/rintl.texi: Likewise.
36701         * doc/posix-functions/sem_unlink.texi: Likewise.
36702         * doc/posix-functions/shm_open.texi: Likewise.
36703         * doc/posix-functions/shm_unlink.texi: Likewise.
36704         * doc/posix-functions/signgam.texi: Likewise.
36705         * doc/posix-functions/sigset.texi: Likewise.
36706         * doc/posix-functions/stpcpy.texi: Likewise.
36707         * doc/posix-functions/stpncpy.texi: Likewise.
36708         * doc/posix-functions/strerror.texi: Likewise.
36709         * doc/posix-functions/strtod.texi: Likewise.
36710         * doc/posix-functions/symlinkat.texi: Likewise.
36711         * doc/posix-functions/unlinkat.texi: Likewise.
36712         * doc/posix-functions/utimensat.texi: Likewise.
36713         * doc/glibc-functions/bindresvport.texi: Likewise.
36714         * doc/glibc-functions/dn_expand.texi: Likewise.
36715         * doc/glibc-functions/exp10.texi: Likewise.
36716         * doc/glibc-functions/exp10f.texi: Likewise.
36717         * doc/glibc-functions/fgetxattr.texi: Likewise.
36718         * doc/glibc-functions/flistxattr.texi: Likewise.
36719         * doc/glibc-functions/fopencookie.texi: Likewise.
36720         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36721         * doc/glibc-functions/fremovexattr.texi: Likewise.
36722         * doc/glibc-functions/fsetxattr.texi: Likewise.
36723         * doc/glibc-functions/getifaddrs.texi: Likewise.
36724         * doc/glibc-functions/getxattr.texi: Likewise.
36725         * doc/glibc-functions/lgetxattr.texi: Likewise.
36726         * doc/glibc-functions/listxattr.texi: Likewise.
36727         * doc/glibc-functions/llistxattr.texi: Likewise.
36728         * doc/glibc-functions/lremovexattr.texi: Likewise.
36729         * doc/glibc-functions/lsetxattr.texi: Likewise.
36730         * doc/glibc-functions/pow10.texi: Likewise.
36731         * doc/glibc-functions/pow10f.texi: Likewise.
36732         * doc/glibc-functions/rcmd_af.texi: Likewise.
36733         * doc/glibc-functions/removexattr.texi: Likewise.
36734         * doc/glibc-functions/res_init.texi: Likewise.
36735         * doc/glibc-functions/res_mkquery.texi: Likewise.
36736         * doc/glibc-functions/res_query.texi: Likewise.
36737         * doc/glibc-functions/res_querydomain.texi: Likewise.
36738         * doc/glibc-functions/res_send.texi: Likewise.
36739         * doc/glibc-functions/rresvport_af.texi: Likewise.
36740         * doc/glibc-functions/setxattr.texi: Likewise.
36741         * doc/glibc-functions/strcasestr.texi: Likewise.
36742
36743 2008-12-15  Bruno Haible  <bruno@clisp.org>
36744
36745         Fix compilation error on OSF/1 4.0.
36746         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36747         <sys/time.h>, simply delegate to the system header.
36748         Reported by Daniel Richard G. <oss@teragram.com>.
36749
36750 2008-12-15  Bruno Haible  <bruno@clisp.org>
36751
36752         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36753         * doc/posix-functions/fchmodat.texi: Likewise.
36754         * doc/posix-functions/fchownat.texi: Likewise.
36755         * doc/posix-functions/fdopendir.texi: Likewise.
36756         * doc/posix-functions/fstatat.texi: Likewise.
36757         * doc/posix-functions/mkdirat.texi: Likewise.
36758         * doc/posix-functions/unlinkat.texi: Likewise.
36759
36760 2008-12-14  Bruno Haible  <bruno@clisp.org>
36761
36762         Update doc for POSIX:2008.
36763         * doc/posix-functions/faccessat.texi: New file.
36764         * doc/posix-functions/fchmodat.texi: New file.
36765         * doc/posix-functions/fchownat.texi: New file.
36766         * doc/posix-functions/fdopendir.texi: New file.
36767         * doc/posix-functions/fstatat.texi: New file.
36768         * doc/posix-functions/futimens.texi: New file.
36769         * doc/posix-functions/linkat.texi: New file.
36770         * doc/posix-functions/mkdirat.texi: New file.
36771         * doc/posix-functions/mkfifoat.texi: New file.
36772         * doc/posix-functions/mknodat.texi: New file.
36773         * doc/posix-functions/open_wmemstream.texi: New file.
36774         * doc/posix-functions/openat.texi: New file.
36775         * doc/posix-functions/psiginfo.texi: New file.
36776         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36777         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36778         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36779         * doc/posix-functions/readlinkat.texi: New file.
36780         * doc/posix-functions/renameat.texi: New file.
36781         * doc/posix-functions/strerror_l.texi: New file.
36782         * doc/posix-functions/symlinkat.texi: New file.
36783         * doc/posix-functions/unlinkat.texi: New file.
36784         * doc/posix-functions/utimensat.texi: New file.
36785         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36786
36787 2008-12-14  Bruno Haible  <bruno@clisp.org>
36788
36789         Update doc for POSIX:2008.
36790         * doc/posix-functions/alphasort.texi: Renamed from
36791         doc/glibc-functions/alphasort.texi.
36792         * doc/posix-functions/dirfd.texi: Renamed from
36793         doc/glibc-functions/dirfd.texi.
36794         * doc/posix-functions/dprintf.texi: Renamed from
36795         doc/glibc-functions/dprintf.texi.
36796         * doc/posix-functions/duplocale.texi: Renamed from
36797         doc/glibc-functions/duplocale.texi.
36798         * doc/posix-functions/fexecve.texi: Renamed from
36799         doc/glibc-functions/fexecve.texi.
36800         * doc/posix-functions/fmemopen.texi: Renamed from
36801         doc/glibc-functions/fmemopen.texi.
36802         * doc/posix-functions/freelocale.texi: Renamed from
36803         doc/glibc-functions/freelocale.texi.
36804         * doc/posix-functions/getdate_err.texi: Renamed from
36805         doc/glibc-functions/getdate_err.texi.
36806         * doc/posix-functions/isalnum_l.texi: Renamed from
36807         doc/glibc-functions/isalnum_l.texi.
36808         * doc/posix-functions/isalpha_l.texi: Renamed from
36809         doc/glibc-functions/isalpha_l.texi.
36810         * doc/posix-functions/isblank_l.texi: Renamed from
36811         doc/glibc-functions/isblank_l.texi.
36812         * doc/posix-functions/iscntrl_l.texi: Renamed from
36813         doc/glibc-functions/iscntrl_l.texi.
36814         * doc/posix-functions/isdigit_l.texi: Renamed from
36815         doc/glibc-functions/isdigit_l.texi.
36816         * doc/posix-functions/isgraph_l.texi: Renamed from
36817         doc/glibc-functions/isgraph_l.texi.
36818         * doc/posix-functions/islower_l.texi: Renamed from
36819         doc/glibc-functions/islower_l.texi.
36820         * doc/posix-functions/isprint_l.texi: Renamed from
36821         doc/glibc-functions/isprint_l.texi.
36822         * doc/posix-functions/ispunct_l.texi: Renamed from
36823         doc/glibc-functions/ispunct_l.texi.
36824         * doc/posix-functions/isspace_l.texi: Renamed from
36825         doc/glibc-functions/isspace_l.texi.
36826         * doc/posix-functions/isupper_l.texi: Renamed from
36827         doc/glibc-functions/isupper_l.texi.
36828         * doc/posix-functions/iswalnum_l.texi: Renamed from
36829         doc/glibc-functions/iswalnum_l.texi.
36830         * doc/posix-functions/iswalpha_l.texi: Renamed from
36831         doc/glibc-functions/iswalpha_l.texi.
36832         * doc/posix-functions/iswblank_l.texi: Renamed from
36833         doc/glibc-functions/iswblank_l.texi.
36834         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36835         doc/glibc-functions/iswcntrl_l.texi.
36836         * doc/posix-functions/iswctype_l.texi: Renamed from
36837         doc/glibc-functions/iswctype_l.texi.
36838         * doc/posix-functions/iswdigit_l.texi: Renamed from
36839         doc/glibc-functions/iswdigit_l.texi.
36840         * doc/posix-functions/iswgraph_l.texi: Renamed from
36841         doc/glibc-functions/iswgraph_l.texi.
36842         * doc/posix-functions/iswlower_l.texi: Renamed from
36843         doc/glibc-functions/iswlower_l.texi.
36844         * doc/posix-functions/iswprint_l.texi: Renamed from
36845         doc/glibc-functions/iswprint_l.texi.
36846         * doc/posix-functions/iswpunct_l.texi: Renamed from
36847         doc/glibc-functions/iswpunct_l.texi.
36848         * doc/posix-functions/iswspace_l.texi: Renamed from
36849         doc/glibc-functions/iswspace_l.texi.
36850         * doc/posix-functions/iswupper_l.texi: Renamed from
36851         doc/glibc-functions/iswupper_l.texi.
36852         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36853         doc/glibc-functions/iswxdigit_l.texi.
36854         * doc/posix-functions/isxdigit_l.texi: Renamed from
36855         doc/glibc-functions/isxdigit_l.texi.
36856         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36857         doc/glibc-functions/mbsnrtowcs.texi.
36858         * doc/posix-functions/mkdtemp.texi: Renamed from
36859         doc/glibc-functions/mkdtemp.texi.
36860         * doc/posix-functions/newlocale.texi: Renamed from
36861         doc/glibc-functions/newlocale.texi.
36862         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36863         doc/glibc-functions/nl_langinfo_l.texi.
36864         * doc/posix-functions/open_memstream.texi: Renamed from
36865         doc/glibc-functions/open_memstream.texi.
36866         * doc/posix-functions/opterr.texi: Renamed from
36867         doc/glibc-functions/opterr.texi.
36868         * doc/posix-functions/optind.texi: Renamed from
36869         doc/glibc-functions/optind.texi.
36870         * doc/posix-functions/optopt.texi: Renamed from
36871         doc/glibc-functions/optopt.texi.
36872         * doc/posix-functions/psignal.texi: Renamed from
36873         doc/glibc-functions/psignal.texi.
36874         * doc/posix-functions/scandir.texi: Renamed from
36875         doc/glibc-functions/scandir.texi.
36876         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36877         doc/glibc-functions/sched_get_priority_min.texi.
36878         * doc/posix-functions/signgam.texi: Renamed from
36879         doc/glibc-functions/signgam.texi.
36880         * doc/posix-functions/stpcpy.texi: Renamed from
36881         doc/glibc-functions/stpcpy.texi.
36882         * doc/posix-functions/stpncpy.texi: Renamed from
36883         doc/glibc-functions/stpncpy.texi.
36884         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36885         doc/glibc-functions/strcasecmp_l.texi.
36886         * doc/posix-functions/strcoll_l.texi: Renamed from
36887         doc/glibc-functions/strcoll_l.texi.
36888         * doc/posix-functions/strfmon_l.texi: Renamed from
36889         doc/glibc-functions/strfmon_l.texi.
36890         * doc/posix-functions/strftime_l.texi: Renamed from
36891         doc/glibc-functions/strftime_l.texi.
36892         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36893         doc/glibc-functions/strncasecmp_l.texi.
36894         * doc/posix-functions/strndup.texi: Renamed from
36895         doc/glibc-functions/strndup.texi.
36896         * doc/posix-functions/strnlen.texi: Renamed from
36897         doc/glibc-functions/strnlen.texi.
36898         * doc/posix-functions/strsignal.texi: Renamed from
36899         doc/glibc-functions/strsignal.texi.
36900         * doc/posix-functions/strxfrm_l.texi: Renamed from
36901         doc/glibc-functions/strxfrm_l.texi.
36902         * doc/posix-functions/timer_gettime.texi: Renamed from
36903         doc/glibc-functions/timer_gettime.texi.
36904         * doc/posix-functions/tolower_l.texi: Renamed from
36905         doc/glibc-functions/tolower_l.texi.
36906         * doc/posix-functions/toupper_l.texi: Renamed from
36907         doc/glibc-functions/toupper_l.texi.
36908         * doc/posix-functions/towctrans_l.texi: Renamed from
36909         doc/glibc-functions/towctrans_l.texi.
36910         * doc/posix-functions/towlower_l.texi: Renamed from
36911         doc/glibc-functions/towlower_l.texi.
36912         * doc/posix-functions/towupper_l.texi: Renamed from
36913         doc/glibc-functions/towupper_l.texi.
36914         * doc/posix-functions/uselocale.texi: Renamed from
36915         doc/glibc-functions/uselocale.texi.
36916         * doc/posix-functions/vdprintf.texi: Renamed from
36917         doc/glibc-functions/vdprintf.texi.
36918         * doc/posix-functions/wcpcpy.texi:
36919         Renamed from doc/glibc-functions/wcpcpy.texi.
36920         * doc/posix-functions/wcpncpy.texi: Renamed from
36921         doc/glibc-functions/wcpncpy.texi.
36922         * doc/posix-functions/wcscasecmp.texi: Renamed from
36923         doc/glibc-functions/wcscasecmp.texi.
36924         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36925         doc/glibc-functions/wcscasecmp_l.texi.
36926         * doc/posix-functions/wcscoll_l.texi: Renamed from
36927         doc/glibc-functions/wcscoll_l.texi.
36928         * doc/posix-functions/wcsdup.texi: Renamed from
36929         doc/glibc-functions/wcsdup.texi.
36930         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36931         doc/glibc-functions/wcsncasecmp.texi.
36932         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36933         doc/glibc-functions/wcsncasecmp_l.texi.
36934         * doc/posix-functions/wcsnlen.texi: Renamed from
36935         doc/glibc-functions/wcsnlen.texi.
36936         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36937         doc/glibc-functions/wcsnrtombs.texi.
36938         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36939         doc/glibc-functions/wcsxfrm_l.texi.
36940         * doc/posix-functions/wctrans_l.texi: Renamed from
36941         doc/glibc-functions/wctrans_l.texi.
36942         * doc/posix-functions/wctype_l.texi: Renamed from
36943         doc/glibc-functions/wctype_l.texi.
36944         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36945         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36946         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36947         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36948         these subsections.
36949         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36950         Remove sections.
36951
36952 2008-12-14  Bruno Haible  <bruno@clisp.org>
36953
36954         Update doc for POSIX:2008.
36955         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36956
36957 2008-12-14  Bruno Haible  <bruno@clisp.org>
36958
36959         Update doc for POSIX:2008.
36960         * doc/pastposix-functions/bcmp.texi: Renamed from
36961         doc/posix-functions/bcmp.texi.
36962         * doc/pastposix-functions/bcopy.texi: Renamed from
36963         doc/posix-functions/bcopy.texi.
36964         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36965         doc/posix-functions/bsd_signal.texi.
36966         * doc/pastposix-functions/bzero.texi: Renamed from
36967         doc/posix-functions/bzero.texi.
36968         * doc/pastposix-functions/ecvt.texi: Renamed from
36969         doc/posix-functions/ecvt.texi.
36970         * doc/pastposix-functions/fcvt.texi: Renamed from
36971         doc/posix-functions/fcvt.texi.
36972         * doc/pastposix-functions/ftime.texi: Renamed from
36973         doc/posix-functions/ftime.texi.
36974         * doc/pastposix-functions/gcvt.texi: Renamed from
36975         doc/posix-functions/gcvt.texi.
36976         * doc/pastposix-functions/getcontext.texi: Renamed from
36977         doc/posix-functions/getcontext.texi.
36978         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36979         doc/posix-functions/gethostbyaddr.texi.
36980         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36981         doc/posix-functions/gethostbyname.texi.
36982         * doc/pastposix-functions/getwd.texi: Renamed from
36983         doc/posix-functions/getwd.texi.
36984         * doc/pastposix-functions/h_errno.texi: Renamed from
36985         doc/posix-functions/h_errno.texi.
36986         * doc/pastposix-functions/index.texi: Renamed from
36987         doc/posix-functions/index.texi.
36988         * doc/pastposix-functions/makecontext.texi: Renamed from
36989         doc/posix-functions/makecontext.texi.
36990         * doc/pastposix-functions/mktemp.texi: Renamed from
36991         doc/posix-functions/mktemp.texi.
36992         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36993         doc/posix-functions/pthread_attr_getstackaddr.texi.
36994         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36995         doc/posix-functions/pthread_attr_setstackaddr.texi.
36996         * doc/pastposix-functions/rindex.texi: Renamed from
36997         doc/posix-functions/rindex.texi.
36998         * doc/pastposix-functions/scalb.texi: Renamed from
36999         doc/posix-functions/scalb.texi.
37000         * doc/pastposix-functions/setcontext.texi: Renamed from
37001         doc/posix-functions/setcontext.texi.
37002         * doc/pastposix-functions/swapcontext.texi: Renamed from
37003         doc/posix-functions/swapcontext.texi.
37004         * doc/pastposix-functions/ualarm.texi: Renamed from
37005         doc/posix-functions/ualarm.texi.
37006         * doc/pastposix-functions/usleep.texi: Renamed from
37007         doc/posix-functions/usleep.texi.
37008         * doc/pastposix-functions/vfork.texi: Renamed from
37009         doc/posix-functions/vfork.texi.
37010         * doc/pastposix-functions/wcswcs.texi: Renamed from
37011         doc/posix-functions/wcswcs.texi.
37012         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37013         (Function Substitutes): Update.
37014
37015 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37016
37017         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37018         m4/strerror.m4.
37019
37020 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37021             Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37024
37025 2008-12-13  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/strtoull (Depends-on): Remove unistd.
37028
37029 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37030
37031         * modules/strtoull (Depends-on): Add stdlib.
37032
37033 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37034
37035         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37036
37037 2008-12-10  Jim Meyering  <meyering@redhat.com>
37038
37039         gl_ASSERT: don't say assertions are disabled when they're not
37040         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37041         "checking whether to enable assertions... no", when they are in
37042         fact enabled.  This is solely a bug in the output of configure.
37043         In spite of saying "no", NDEBUG was not defined in that case.
37044         Also, as noted by Eric Blake, leave assertions enabled upon
37045         --enable-assert=INVALID.
37046
37047 2008-12-10  Bruno Haible  <bruno@clisp.org>
37048
37049         Change MODULES.html to refer to POSIX:2008 where possible.
37050         * MODULES.html.sh (POSIX2008_URL): New variable.
37051         (posix_headers): Remove sys/timeb, ucontext.
37052         (posix2001_headers): New variable.
37053         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37054         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37055         index, makecontext, mktemp, pthread_attr_getstackaddr,
37056         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37057         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37058         (posix2001_functions): New variable.
37059         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37060         otherwise.
37061
37062 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37063
37064         add missing include to parse-duration.c
37065         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37066         * modules/parse-duration (Depends-on): Add xalloc.
37067
37068         fix sed script reading maint.mk
37069         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37070         (syntax-check-rules): Use it.
37071
37072 2008-12-09  Bruno Haible  <bruno@clisp.org>
37073
37074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37075         MacOS X 10.4/PowerPC.
37076         Reported by Simon Josefsson.
37077
37078 2008-12-08  Jim Meyering  <meyering@redhat.com>
37079
37080         work around mingw's lack of some S_IF definitions
37081         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37082         Reported by Simon Josefsson.
37083
37084 2008-12-08  Bruno Haible  <bruno@clisp.org>
37085
37086         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37087         applied to variables. Needed on MacOS X 10.4/PowerPC.
37088         Reported by Simon Josefsson.
37089
37090 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37091         and Eric Blake  <ebb9@byu.net>
37092
37093         assert: honor --enable-assert
37094         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37095         order to honor --enable-assert, rather than treating it as a
37096         synonym for --disable-assert.
37097
37098 2008-12-08  Jim Meyering  <meyering@redhat.com>
37099
37100         * lib/posixtm.c: Remove now-useless declaration of mktime.
37101
37102         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37103
37104 2008-12-07  Bruno Haible  <bruno@clisp.org>
37105
37106         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37107         test_once): Mark functions as static.
37108         * tests/test-tls.c (test_tls): Likewise.
37109
37110 2008-12-07  Bruno Haible  <bruno@clisp.org>
37111
37112         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37113         iconv_register_autodetect.
37114
37115 2008-12-07  Jim Meyering  <meyering@redhat.com>
37116
37117         posixtm.c: avoid a warning
37118         * lib/posixtm.c (posixtime): Don't initialize tm0.
37119         It's no longer needed to placate gcc4's -Wuninitialized,
37120         and the attempt to placate would elicit a new warning.
37121
37122         unicodeio.c: mark unused parameters
37123         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37124         (fallback_failure_callback): Likewise.
37125
37126 2008-12-07  Bruno Haible  <bruno@clisp.org>
37127
37128         * gnulib-tool (func_create_testdir): When building the tests
37129         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37130         Reported by Simon Josefsson.
37131
37132 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37133
37134         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37135
37136 2008-12-06  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37139         Suggested by Eric Blake.
37140
37141 2008-12-06  Bruno Haible  <bruno@clisp.org>
37142
37143         Fix a c-stack test failure on MacOS X.
37144         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37145         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37146         handler for SIGBUS as well.
37147         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37148         install a signal handler for SIGBUS as well.
37149         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37150
37151 2008-12-06  Bruno Haible  <bruno@clisp.org>
37152
37153         Advocacy documentation.
37154         * doc/gnulib-intro.texi (Benefits): New section.
37155         * doc/gnulib.texi: Update.
37156
37157 2008-12-06  Bruno Haible  <bruno@clisp.org>
37158
37159         Document the 'manywarnings' module.
37160         * doc/manywarnings.texi: New file.
37161         * doc/gnulib.texi: Include it.
37162
37163 2008-12-05  Eric Blake  <ebb9@byu.net>
37164
37165         tests: silence some gcc warnings
37166         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37167         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37168         type mismatches.
37169
37170 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37171             Bruno Haible  <bruno@clisp.org>
37172
37173         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37174
37175 2008-11-29  Jim Meyering  <meyering@redhat.com>
37176
37177         unicodeio.c: mark unused parameters
37178         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37179         (fallback_failure_callback): Likewise.
37180
37181         fts: fix a thinko
37182         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37183         (set_stat_type): Return S_IF*-valued "type" directly.
37184         Prompted by James Youngman's spotting a related bug.
37185         Confirmed by further testing through find.
37186
37187         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37188         * lib/fts.c (D_TYPE): Define.
37189         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37190         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37191         (s_ifmt_shift_bits): New function.
37192         (set_stat_type): New function.
37193         (fts_build): When not calling fts_stat, call set_stat_type
37194         to propagate dirent.d_type info to fts_read caller.
37195         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37196         fts_statp->st_mode type information may be valid.
37197
37198 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37199
37200         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37201         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37202         <sds@gnu.org>.
37203
37204 2008-11-20  Bruno Haible  <bruno@clisp.org>
37205
37206         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37207         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37208         INCLUDE_NEXT.
37209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37210         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37211         * modules/math (Makefile.am): Substitute
37212         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37214
37215 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37216             Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/stdint.in.h: Define all type macros so that their expansion is
37219         a single typedef'ed token. Fixes a compilation failure in Boost which
37220         does "using ::int8_t;".
37221
37222 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37223
37224         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37225         gl_MANYWARN_ALL_GCC.
37226         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37227         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37228         * modules/manywarnings: New file.
37229         * MODULES.html.sh: Mention manywarnings module.
37230
37231 2008-11-18  Bruno Haible  <bruno@clisp.org>
37232
37233         * doc/gnulib-tool.texi (Unit tests): New section.
37234
37235 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37236
37237         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37238         paths like 'lib/po/foo.po'.
37239
37240 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37241
37242         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37243         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37244
37245 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37246
37247         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37248         parameter works.
37249
37250 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37251
37252         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37253
37254 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37255
37256         * modules/parse-duration-tests: New file.
37257         * tests/test-parse-duration.sh: New file.
37258         * tests/test-parse-duration.c: New file.
37259
37260         New module 'parse-duration'.
37261         * lib/parse-duration.h: New file.
37262         * lib/parse-duration.c: New file.
37263         * modules/parse-duration: New file.
37264
37265 2008-11-17  Bruno Haible  <bruno@clisp.org>
37266
37267         * tests/test-select-out.sh: Comment out the first pipe test.
37268         Reported by Simon Josefsson.
37269
37270 2008-11-17  Bruno Haible  <bruno@clisp.org>
37271
37272         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37274         gl_HOSTENT.
37275
37276 2008-11-17  Bruno Haible  <bruno@clisp.org>
37277
37278         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37279         -lnetwork and -lnet. Needed for Haiku and BeOS.
37280
37281 2008-11-16  Bruno Haible  <bruno@clisp.org>
37282
37283         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37284
37285 2008-11-16  Bruno Haible  <bruno@clisp.org>
37286
37287         Avoid test failure on Haiku.
37288         * tests/test-fsync.c: Include <errno.h>.
37289         (main): Don't require that fsync (0) fails.
37290
37291 2008-11-15  Bruno Haible  <bruno@clisp.org>
37292
37293         New module 'hostent'.
37294         * modules/hostent: New file.
37295         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37296
37297 2008-11-15  Bruno Haible  <bruno@clisp.org>
37298
37299         New module 'servent'.
37300         * modules/servent: New file.
37301         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37302
37303 2008-11-15  Bruno Haible  <bruno@clisp.org>
37304
37305         Avoid generating same test program with two different rules.
37306         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37307         test-frexp to test-frexp-nolibm.
37308         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37309         test-frexpl to test-frexpl-nolibm.
37310
37311 2008-11-15  Bruno Haible  <bruno@clisp.org>
37312
37313         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37314         $(FREXPL_LIBM).
37315
37316 2008-11-15  Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/netdb.in.h: Activate the definitions also when the system's
37319         <netdb.h> has 'struct addrinfo'.
37320         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37321         EAI_OVERFLOW or AI_NUMERICSERV.
37322         * doc/posix-headers/netdb.texi: Document the problem.
37323
37324 2008-11-15  Bruno Haible  <bruno@clisp.org>
37325
37326         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37327
37328         Make the 'sched' module work on platforms where <sched.h> exists but
37329         is incomplete (such as Haiku).
37330         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37331         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37332         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37333         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37334         HAVE_STRUCT_SCHED_PARAM.
37335         * modules/sched (Depends-on): Add include_next.
37336         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37337         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37338         * doc/posix-headers/sched.texi: Document the issue.
37339
37340 2008-11-13  Jim Meyering  <meyering@redhat.com>
37341
37342         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37343         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37344         test would fail due to the difference in the Report bugs to ...
37345         line.  The expected address is empty, "<>", while the actual
37346         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37347
37348 2008-11-12  Bruno Haible  <bruno@clisp.org>
37349
37350         lstat: don't compile lstat.c on systems lacking lstat
37351         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37352         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37353         Reported by Daniel P. Berrange via Jim Meyering.
37354
37355 2008-11-12  Jim Meyering  <meyering@redhat.com>
37356
37357         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37358
37359 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37360
37361         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37362         instead.
37363
37364 2008-11-12  Bruno Haible  <bruno@clisp.org>
37365
37366         * lib/unicodeio.c: Include unistr.h.
37367         (utf8_wctomb): Remove function.
37368         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37369
37370 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37371
37372         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37373         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37374         <bruno@clisp.org>.
37375         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37376
37377 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37378
37379         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37380         * doc/gnulib.texi: Add section for warnings.
37381
37382 2008-11-11  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/sockets.h: Add a comment.
37385
37386 2008-11-11  Karl Berry  <karl@gnu.org>
37387
37388         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37389
37390 2008-11-11  Eric Blake  <ebb9@byu.net>
37391
37392         fdl.texi: avoid git symlinks
37393         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37394
37395 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37396
37397         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37398
37399 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37400
37401         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37402         (gl_WARN_ADD): Substitute $2 if literal.
37403
37404 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37405
37406         * m4/warning.m4: Remove.
37407
37408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37409
37410         * m4/warnings.m4: Almost complete rewrite. :-)
37411
37412 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37413
37414         * modules/warnings: New module.
37415         * m4/warnings.m4: New file.
37416         * MODULES.html.sh: Mention warnings module.
37417         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37418         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37419
37420 2008-11-10  Eric Blake  <ebb9@byu.net>
37421
37422         fdl.texi: make a symlink to the latest version
37423         * doc/standards.texi: Revert today's earlier change.
37424         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37425         * doc/fdl.texi: ...and replace this with a symlink to the newer
37426         fdl-1.3.texi.
37427
37428 2008-11-10  Bruno Haible  <bruno@clisp.org>
37429
37430         * tests/test-select-fd.c (main): Accept the result file name as fourth
37431         argument.
37432         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37433         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37434
37435 2008-11-10  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37438         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37439         as autoconf-substituted macros.
37440         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37442         gl_NETDB_H_DEFAULTS. Set these variables.
37443         * modules/netdb (Makefile.am): Substitute these variables.
37444
37445 2008-11-10  Eric Blake  <ebb9@byu.net>
37446
37447         standards.texi: include correct file for FDL 1.3
37448         * doc/standards.texi (GNU Free Documentation License): Change
37449         include file to pull in FDL 1.3, not 1.2.
37450
37451         fdl.texi: revert accidental change to license
37452         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37453
37454 2008-11-10  Bruno Haible  <bruno@clisp.org>
37455
37456         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37457         cross-compiling guesses also when the native compile gives no result.
37458
37459 2008-11-10  Bruno Haible  <bruno@clisp.org>
37460
37461         * lib/spawni.c (__spawni): Force variable into the stack.
37462
37463 2008-11-10  Bruno Haible  <bruno@clisp.org>
37464
37465         Add support for Haiku.
37466         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37467         glibc and BeOS, but also on Haiku.
37468         * lib/fpurge.c (fpurge): Likewise.
37469         * lib/freadable.c (freadable): Likewise.
37470         * lib/freadahead.c (freadahead): Likewise.
37471         * lib/freading.c (freading): Likewise.
37472         * lib/freadptr.c (freadptr): Likewise.
37473         * lib/freadseek.c (freadptrinc): Likewise.
37474         * lib/fseeko.c (rpl_fseeko): Likewise.
37475         * lib/fseterr.c (fseterr): Likewise.
37476         * lib/fwritable.c (fwritable): Likewise.
37477         * lib/fwriting.c (fwriting): Likewise.
37478         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37479
37480 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37481
37482         * lib/config.charset: Treat Haiku like BeOS.
37483
37484 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37485
37486         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37487         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37488
37489 2008-11-08  Bruno Haible  <bruno@clisp.org>
37490
37491         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37492         AC_CACHE_CHECK.
37493
37494 2008-11-08  Bruno Haible  <bruno@clisp.org>
37495
37496         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37497
37498 2008-11-08  Bruno Haible  <bruno@clisp.org>
37499
37500         * tests/test-select-fd.c: New file.
37501         * tests/test-select-in.sh: New file.
37502         * tests/test-select-out.sh: New file.
37503         * tests/test-select-stdin.c: New file.
37504         * modules/select-tests (Files): Add the new files.
37505         (Depends-on): Add gettimeofday.
37506         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37507         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37508         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37509
37510 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37511             Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37514
37515 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37516
37517         * build-aux/pmccabe2html: Added support for C++ source files.
37518
37519 2008-11-05  Ben Pfaff  <blp@gnu.org>
37520
37521         Fix lib/close.c build on Windows.
37522         * modules/close (Files): Add lib/w32sock.h.
37523
37524 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37525
37526         Accept Bison's NEWS format.
37527         * build-aux/announce-gen (print_news_deltas): Tweak
37528         $re_prefix.
37529
37530 2008-11-04  Bruno Haible  <bruno@clisp.org>
37531
37532         * modules/random_r (Maintainer): Add glibc.
37533
37534 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37535
37536         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37537         by karl@freefriends.org (Karl Berry).
37538         * doc/alloca.texi: Likewise.
37539         * doc/c-ctype.texi: Likewise.
37540         * doc/c-strcase.texi: Likewise.
37541         * doc/c-strcaseeq.texi: Likewise.
37542         * doc/c-strcasestr.texi: Likewise.
37543         * doc/c-strstr.texi: Likewise.
37544         * doc/c-strtod.texi: Likewise.
37545         * doc/c-strtold.texi: Likewise.
37546         * doc/ctime.texi: Likewise.
37547         * doc/error.texi: Likewise.
37548         * doc/fdl.texi: Likewise.
37549         * doc/gcd.texi: Likewise.
37550         * doc/getdate.texi: Likewise.
37551         * doc/gnulib-intro.texi: Likewise.
37552         * doc/gnulib-tool.texi: Likewise.
37553         * doc/gnulib.texi: Likewise.
37554         * doc/inet_ntoa.texi: Likewise.
37555         * doc/maintain.texi: Likewise.
37556         * doc/make-stds.texi: Likewise.
37557         * doc/quote.texi: Likewise.
37558         * doc/regexprops-generic.texi: Likewise.
37559         * doc/standards.texi: Likewise.
37560         * doc/verify.texi: Likewise.
37561         * doc/visibility.texi: Likewise.
37562         * doc/gnulib.texi (GNU Free Documentation License): Include
37563         fdl-1.3.texi instead of fdl.texi.
37564
37565 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37566
37567         * doc/fdl-1.3.texi: New file, from
37568         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37569         * modules/fdl-1.3: Add.
37570         * MODULES.html.sh: Add fdl-1.3.
37571
37572 2008-11-03  Bruno Haible  <bruno@clisp.org>
37573
37574         Make determination of absolute name of header file work with AIX xlc.
37575         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37576         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37577         preprocessing.
37578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37579         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37580
37581 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37582
37583         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37584         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37585         <ludo@gnu.org>.
37586
37587 2008-11-02  Bruno Haible  <bruno@clisp.org>
37588
37589         Mark 'strpbrk' obsolete.
37590         * modules/strpbrk (Status, Notice): New sections.
37591         * modules/strtok_r (Depends-on): Add strpbrk.
37592
37593 2008-11-02  Bruno Haible  <bruno@clisp.org>
37594
37595         Mark 'strdup' obsolete.
37596         * modules/strdup (Status, Notice): New sections.
37597         * modules/findprog (Depends-on): Add strdup.
37598         * modules/getaddrinfo (Depends-on): Likewise.
37599         * modules/localename (Depends-on): Likewise.
37600         * modules/relocatable-lib (Depends-on): Likewise.
37601         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37602         * modules/relocatable-prog (Depends-on): Likewise.
37603         * modules/trim (Depends-on): Likewise.
37604         * modules/unictype/gen-ctype (Depends-on): Likewise.
37605         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37606
37607 2008-11-02  Bruno Haible  <bruno@clisp.org>
37608
37609         Mark 'strcspn' obsolete.
37610         * modules/strcspn (Status, Notice): New sections.
37611
37612 2008-11-02  Bruno Haible  <bruno@clisp.org>
37613
37614         Mark 'rmdir' obsolete.
37615         * modules/rmdir (Status, Notice): New sections.
37616         * modules/clean-temp (Depends-on): Add rmdir.
37617         * modules/openat (Depends-on): Likewise.
37618
37619 2008-11-02  Bruno Haible  <bruno@clisp.org>
37620
37621         Mark 'raise' obsolete.
37622         * modules/raise (Status, Notice): New sections.
37623         (Include): Specify <signal.h>.
37624         * modules/stdio (Depends-on): Add raise.
37625         * modules/write (Depends-on): Likewise.
37626
37627 2008-11-02  Bruno Haible  <bruno@clisp.org>
37628
37629         Mark 'memset' obsolete.
37630         * modules/memset (Status, Notice): New sections.
37631
37632 2008-11-02  Bruno Haible  <bruno@clisp.org>
37633
37634         Mark 'memmove' obsolete.
37635         * modules/memmove (Status, Notice): New sections.
37636         * modules/argp (Depends-on): Add memmove.
37637         * modules/argz (Depends-on): Likewise.
37638         * modules/canonicalize (Depends-on): Likewise.
37639         * modules/canonicalize-lgpl (Depends-on): Likewise.
37640         * modules/fts (Depends-on): Likewise.
37641         * modules/getcwd (Depends-on): Likewise.
37642         * modules/human (Depends-on): Likewise.
37643         * modules/regex (Depends-on): Likewise.
37644         * modules/striconveh (Depends-on): Likewise.
37645         * modules/trim (Depends-on): Likewise.
37646         * modules/unistr/u8-move (Depends-on): Likewise.
37647         * modules/unistr/u16-move (Depends-on): Likewise.
37648         * modules/unistr/u32-move (Depends-on): Likewise.
37649
37650 2008-11-02  Bruno Haible  <bruno@clisp.org>
37651
37652         Mark 'memcpy' obsolete.
37653         * modules/memcpy (Status, Notice): New sections.
37654
37655 2008-11-02  Bruno Haible  <bruno@clisp.org>
37656
37657         Mark 'memcmp' obsolete.
37658         * modules/memcmp (Status, Notice): New sections.
37659         * modules/argmatch (Depends-on): Add memchr.
37660         * modules/backupfile (Depends-on): Likewise.
37661         * modules/c-strcasestr (Depends-on): Likewise.
37662         * modules/crypto/des (Depends-on): Likewise.
37663         * modules/csharpcomp (Depends-on): Likewise.
37664         * modules/fnmatch (Depends-on): Likewise.
37665         * modules/git-merge-changelog (Depends-on): Likewise.
37666         * modules/isnand (Depends-on): Likewise.
37667         * modules/isnand-nolibm (Depends-on): Likewise.
37668         * modules/isnanf (Depends-on): Likewise.
37669         * modules/isnanf-nolibm (Depends-on): Likewise.
37670         * modules/isnanl (Depends-on): Likewise.
37671         * modules/isnanl-nolibm (Depends-on): Likewise.
37672         * modules/mbchar (Depends-on): Likewise.
37673         * modules/memcoll (Depends-on): Likewise.
37674         * modules/quotearg (Depends-on): Likewise.
37675         * modules/regex (Depends-on): Likewise.
37676         * modules/relocatable-prog (Depends-on): Likewise.
37677         * modules/same (Depends-on): Likewise.
37678         * modules/signbit (Depends-on): Likewise.
37679         * modules/strcasestr-simple (Depends-on): Likewise.
37680         * modules/unictype/gen-ctype (Depends-on): Likewise.
37681         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37682         * modules/uniname/uniname (Depends-on): Likewise.
37683         * modules/unistr/u8-cmp (Depends-on): Likewise.
37684
37685 2008-11-02  Bruno Haible  <bruno@clisp.org>
37686
37687         Mark 'memchr' obsolete.
37688         * modules/memchr (Status, Notice): New sections.
37689         * modules/argp (Depends-on): Add memchr.
37690         * modules/base64 (Depends-on): Likewise.
37691         * modules/c-strcasestr (Depends-on): Likewise.
37692         * modules/chdir-long (Depends-on): Likewise.
37693         * modules/fnmatch (Depends-on): Likewise.
37694         * modules/getsubopt (Depends-on): Likewise.
37695         * modules/git-merge-changelog (Depends-on): Likewise.
37696         * modules/glob (Depends-on): Likewise.
37697         * modules/strcasestr-simple (Depends-on): Likewise.
37698         * modules/strnlen (Depends-on): Likewise.
37699
37700 2008-11-02  Bruno Haible  <bruno@clisp.org>
37701
37702         Mark 'atexit' obsolete.
37703         * modules/atexit (Status, Notice): New sections.
37704         * modules/chdir-long (Depends-on): Add atexit.
37705         * modules/wait-process (Depends-on): Likewise.
37706
37707 2008-11-02  Bruno Haible  <bruno@clisp.org>
37708
37709         * gnulib-tool: New option --with-obsolete.
37710         (func_usage): Document it.
37711         (func_modules_transitive_closure): Drop obsolete dependencies if
37712         incobsolete is not true.
37713         (func_import): Read and save the incobsolete variable to the cache.
37714
37715 2008-11-02  Bruno Haible  <bruno@clisp.org>
37716
37717         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37718         * gnulib-tool: New option --extract-status.
37719         (func_usage): Document it.
37720         (sed_extract_prog): Recognize it.
37721         (func_get_status): New function.
37722
37723 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37724
37725         * modules/sockets (License): Change from LGPL to LGPLv2+.
37726
37727 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37728
37729         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37730
37731 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37732
37733         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37734         Mention times and sys_times.
37735         * modules/sys_times, modules/sys_times-tests: New modules.
37736         * modules/times, modules/times-tests: Likewise
37737         * m4/sys_times_h.m4: New file.
37738         * lib/sys_times.in.h: Likewise
37739         * lib/times.c: Likewise.
37740         * tests/test-sys_times.c: Likewise.
37741         * tests/test-times.c: Likewise.
37742         * doc/posix-headers/sys_times.texi: Update.
37743         * doc/posix-functions/times.texi: Update.
37744
37745 2008-10-28  Jim Meyering  <meyering@redhat.com>
37746
37747         * modules/tempname (Depends-on): Add lstat.
37748
37749         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37750
37751 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37752
37753         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37754         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37755         using idiom used elsewhere in gnulib.
37756
37757 2008-10-27  Jim Meyering  <meyering@redhat.com>
37758
37759         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37760
37761 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37762
37763         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37764         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37765         programs.
37766         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37767
37768 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37769
37770         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37771
37772 2008-10-27  Bruno Haible  <bruno@clisp.org>
37773
37774         * tests/test-lstat.c: Include <stdio.h>.
37775
37776 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37777
37778         * modules/lstat-tests: New module.
37779         * tests/test-lstat.c: New file.
37780
37781 2008-10-26  Jim Meyering  <meyering@redhat.com>
37782
37783         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37784
37785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37786             Bruno Haible  <bruno@clisp.org>
37787
37788         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37789         * modules/configmake (Include): Add a note that the include must come
37790         after all system headers.
37791         * lib/javaversion.c: Include configmake.h after all other includes.
37792
37793 2008-10-26  Bruno Haible  <bruno@clisp.org>
37794
37795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37796         HAVE_STRUCT_RANDOM_DATA to 1.
37797         (gl_STDLIB_H): Simplify.
37798
37799 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37800
37801         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37802         substitute HAVE_STRUCT_RANDOM_DATA.
37803         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37804         random_data.
37805         * modules/stdlib (Makefile.am): Substitute
37806         HAVE_STRUCT_RANDOM_DATA.
37807
37808 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37809
37810         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37811         * doc/gnulib-intro.texi (Copyright): Likewise.
37812
37813 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37814
37815         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37816         findings.
37817
37818 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37819             Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/unistd.in.h: Include <winsock2.h>.
37822         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37823         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37824         Provide dummy declarations.
37825         (gethostname): Override.
37826         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37827         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37828         gl_PREREQ_SYS_H_WINSOCK2.
37829         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37830         * doc/posix-functions/gethostname.texi: More details.
37831
37832 2008-10-25  Bruno Haible  <bruno@clisp.org>
37833
37834         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37835         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37836         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37837
37838         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37839         here ...
37840         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37841         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37842         gl_UNISTD_H_DEFAULTS.
37843
37844 2008-10-25  Eric Blake  <ebb9@byu.net>
37845
37846         signbit: avoid spurious compiler failure
37847         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37848         declarations inside function.
37849
37850 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37851             Bruno Haible  <bruno@clisp.org>
37852
37853         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37854         * modules/random_r (Depends-on): Add stdint.
37855
37856 2008-10-24  Bruno Haible  <bruno@clisp.org>
37857
37858         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37859         Eggert.
37860         * modules/strerror (License): Likewise.
37861
37862 2008-10-24  Jim Meyering  <meyering@redhat.com>
37863
37864         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37865         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37866
37867 2008-10-24  Eric Blake  <ebb9@byu.net>
37868
37869         getgroups: fix compilation when getgroups is available
37870         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37871         but with <config.h> override of getgroups disabled.
37872
37873 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37874
37875         * doc/gnulib.texi (Header files): Add note about C++ problems.
37876         Explained by Bruno Haible <bruno@clisp.org>.
37877
37878 2008-10-23  Bruno Haible  <bruno@clisp.org>
37879
37880         Define a dummy SA_NODEFER macro on Interix.
37881         * lib/signal.in.h (SA_NODEFER): Define fallback.
37882         Reported by Aleksey Cheusov <cheusov@tut.by> via
37883         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37884
37885 2008-10-23  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/freadahead (License): Change to LGPLv2+.
37888         Suggested by Simon Josefsson.
37889
37890 2008-10-23  Jim Meyering  <meyering@redhat.com>
37891
37892         random_r: new module
37893         * modules/random_r: New file.
37894         * m4/random_r.m4: New file.
37895         * lib/random_r.c: New file, from glibc.
37896         * modules/random_r-tests: New file.
37897         * tests/test-random_r.c: New file.
37898         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37899          Declare.
37900         (RAND_MAX): Define.
37901         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37902         * modules/stdlib: Substitute them, too.
37903         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37904         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37905         * doc/glibc-functions/random_r.texi: Likewise.
37906         * doc/glibc-functions/setstate_r.texi: Likewise.
37907         * doc/glibc-functions/srandom_r.texi: Likewise.
37908         * config/srclist.txt: Mention it.
37909
37910 2008-10-23  David Lutterkort  <lutter@redhat.com>
37911
37912         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37913         link requirement
37914
37915 2008-10-23  Jim Meyering  <meyering@redhat.com>
37916
37917         selinux-h: mark parameters of stub functions as intentionally unused
37918         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37919         * lib/se-context.in.h: Likewise.
37920
37921 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37922
37923         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37924
37925 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37926
37927         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37928
37929 2008-10-22  Eric Blake  <ebb9@byu.net>
37930
37931         glthread/thread: avoid compiler warning
37932         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37933         Add unreachable abort to silence compiler.
37934
37935 2008-10-22  Eric Blake  <ebb9@byu.net>
37936
37937         netdb: also supply struct addrinfo for cygwin 1.5.x
37938         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37939         older cygwin.
37940         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37941         cygwin.
37942         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37943
37944 2008-10-22  Bruno Haible  <bruno@clisp.org>
37945
37946         * users.txt: Update entry about pspp.
37947
37948 2008-10-21  Bruno Haible  <bruno@clisp.org>
37949
37950         Simplification.
37951         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37952         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37953
37954         Simplification.
37955         * lib/ioctl.c (ioctl): Don't undefine.
37956         * lib/socket.c (socket): Don't undefine.
37957
37958         Remove unused module indicator macros.
37959         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37960         GNULIB_$1 as a C macro.
37961
37962         * doc/posix-functions/close.texi: Undo last change.
37963         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37964         Windows platforms.
37965
37966 2008-10-21  Bruno Haible  <bruno@clisp.org>
37967
37968         Add gethostname() declaration to <unistd.h>.
37969         * lib/unistd.in.h (gethostname): New declaration.
37970         * lib/gethostname.c: Include <unistd.h>.
37971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37972         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37974         and HAVE_GETHOSTNAME.
37975         * modules/gethostname (Depends-on): Add unistd.
37976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37977         (Include): Specify <unistd.h>.
37978         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37979         HAVE_GETHOSTNAME.
37980         * tests/test-gethostname.c: Include <unistd.h> first.
37981
37982 2008-10-21  Bruno Haible  <bruno@clisp.org>
37983
37984         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37985         * modules/select-tests (Depends-on): Likewise.
37986         Reported by Simon Josefsson.
37987
37988 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37989
37990         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37991         * lib/accept.c: New file, based on winsock.c.
37992         * lib/bind.c: New file, based on winsock.c.
37993         * lib/connect.c: New file, based on winsock.c.
37994         * lib/getpeername.c: New file, based on winsock.c.
37995         * lib/getsockname.c: New file, based on winsock.c.
37996         * lib/getsockopt.c: New file, based on winsock.c.
37997         * lib/ioctl.c: New file, based on winsock.c.
37998         * lib/listen.c: New file, based on winsock.c.
37999         * lib/recv.c: New file, based on winsock.c.
38000         * lib/recvfrom.c: New file, based on winsock.c.
38001         * lib/send.c: New file, based on winsock.c.
38002         * lib/sendto.c: New file, based on winsock.c.
38003         * lib/setsockopt.c: New file, based on winsock.c.
38004         * lib/shutdown.c: New file, based on winsock.c.
38005         * lib/socket.c: New file, based on winsock.c.
38006         * lib/w32sock.h: New file, based on winsock.c.
38007         * lib/winsock.c: Remove file.
38008         * modules/accept: Likewise.
38009         * modules/bind: Likewise.
38010         * modules/connect: Likewise.
38011         * modules/getpeername: Likewise.
38012         * modules/getsockname: Likewise.
38013         * modules/getsockopt: Likewise.
38014         * modules/ioctl: Likewise.
38015         * modules/listen: Likewise.
38016         * modules/recv: Likewise.
38017         * modules/recvfrom: Likewise.
38018         * modules/send: Likewise.
38019         * modules/sendto: Likewise.
38020         * modules/setsockopt: Likewise.
38021         * modules/shutdown: Likewise.
38022         * modules/socket: Use socket.c instead of winsock.c.
38023         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38024         * doc/posix-functions/accept.texi: Doc fix.
38025         * doc/posix-functions/bind.texi: Doc fix.
38026         * doc/posix-functions/close.texi: Doc fix.
38027         * doc/posix-functions/connect.texi: Doc fix.
38028         * doc/posix-functions/getpeername.texi: Doc fix.
38029         * doc/posix-functions/getsockname.texi: Doc fix.
38030         * doc/posix-functions/getsockopt.texi: Doc fix.
38031         * doc/posix-functions/ioctl.texi: Doc fix.
38032         * doc/posix-functions/listen.texi: Doc fix.
38033         * doc/posix-functions/recv.texi: Doc fix.
38034         * doc/posix-functions/recvfrom.texi: Doc fix.
38035         * doc/posix-functions/send.texi: Doc fix.
38036         * doc/posix-functions/sendto.texi: Doc fix.
38037         * doc/posix-functions/setsockopt.texi: Doc fix.
38038         * doc/posix-functions/shutdown.texi: Doc fix.
38039         * doc/posix-functions/socket.texi: Doc fix.
38040
38041 2008-10-20  Bruno Haible  <bruno@clisp.org>
38042
38043         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38044         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38045         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38046         as an alias for SIGABRT.
38047         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38048         (sigaction): Map it to SIGABRT.
38049         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38050
38051 2008-10-20  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/fts.c: Don't include lstat.h.
38054         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38055
38056         Move the lstat() declaration to <sys/stat.h>.
38057         * lib/lstat.h: Remove file.
38058         * lib/sys_stat.in.h: Add special invocation convention.
38059         (lstat): New declaration.
38060         * lib/lstat.c (orig_lstat): New function.
38061         (rpl_lstat): Use orig_lstat instead of lstat.
38062         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38063         AC_C_INLINE. Set REPLACE_LSTAT.
38064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38065         and REPLACE_LSTAT.
38066         * modules/lstat (Files): Remove lib/lstat.h.
38067         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38068         (Include): Specify <sys/stat.h> instead of lstat.h.
38069         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38070         REPLACE_LSTAT.
38071         * NEWS: Mention the change.
38072
38073 2008-10-20  Bruno Haible  <bruno@clisp.org>
38074
38075         * modules/posix_spawn-tests: New file.
38076         * tests/test-posix_spawn3.c: New file.
38077
38078 2008-10-20  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38081         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38082         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38083         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38084         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38085
38086 2008-10-20  Bruno Haible  <bruno@clisp.org>
38087
38088         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38089         of posix_spawn on AIX 5.3.
38090
38091 2008-10-20  Bruno Haible  <bruno@clisp.org>
38092
38093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38094
38095 2008-10-20  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38098         of AC_LANG_PROGRAM.
38099
38100 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38101
38102         * lib/netdb.in.h: Don't define GNU specific constants until they
38103         are supported or needed.  Reported by Bruno Haible
38104         <bruno@clisp.org>.
38105
38106 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38107
38108         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38109
38110 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38111
38112         * lib/getaddrinfo.h: Remove file.
38113         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38114         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38115         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38116         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38117         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38118         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38119         * tests/test-getaddrinfo.c: Likewise.
38120         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38121         * NEWS: Mention change.
38122
38123 2008-10-19  Bruno Haible  <bruno@clisp.org>
38124
38125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38126
38127 2008-10-19  Bruno Haible  <bruno@clisp.org>
38128
38129         * lib/wait-process.c: Include simply <sys/wait.h>.
38130         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38131         WIFSTOPPED): Remove fallback definitions.
38132         * modules/wait-process (Depends-on): Add sys_wait.
38133
38134         New module 'sys_wait'.
38135         * modules/sys_wait: New file.
38136         * lib/sys_wait.in.h: New file, partially copied from
38137         lib/wait-process.c.
38138         * m4/sys_wait_h.m4: New file.
38139         * doc/posix-headers/sys_wait.texi: Mention the new module.
38140
38141 2008-10-19  Bruno Haible  <bruno@clisp.org>
38142
38143         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38144
38145 2008-10-19  Bruno Haible  <bruno@clisp.org>
38146
38147         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38148         * lib/wait-process.c (WAIT_T): Remove type.
38149         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38150         (wait_subprocess): Update.
38151
38152 2008-10-19  Bruno Haible  <bruno@clisp.org>
38153
38154         New module 'atoll'.
38155         * modules/atoll: New file.
38156         * lib/stdlib.in.h (atoll): New declaration.
38157         * lib/atoll.c: New file, from glibc with modifications.
38158         * m4/atoll.m4: New file.
38159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38160         HAVE_ATOLL.
38161         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38162         * doc/posix-functions/atoll.texi: Mention the new module.
38163
38164 2008-10-19  Bruno Haible  <bruno@clisp.org>
38165
38166         Add strtoull() declaration to <stdlib.h>.
38167         * lib/stdlib.in.h (strtoull): New declaration.
38168         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38169         Set HAVE_STRTOULL.
38170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38171         HAVE_STRTOULL.
38172         * modules/strtoull (Depends-on): Add stdlib.
38173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38174         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38175         HAVE_STRTOULL.
38176
38177 2008-10-19  Bruno Haible  <bruno@clisp.org>
38178
38179         Add strtoll() declaration to <stdlib.h>.
38180         * lib/stdlib.in.h (strtoll): New declaration.
38181         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38182         Set HAVE_STRTOLL.
38183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38184         HAVE_STRTOLL.
38185         * modules/strtoll (Depends-on): Add stdlib.
38186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38187         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38188
38189 2008-10-19  Bruno Haible  <bruno@clisp.org>
38190
38191         * modules/bcopy (Depends-on): Add strings.
38192         (Include): Specify <strings.h>.
38193
38194 2008-10-19  Bruno Haible  <bruno@clisp.org>
38195
38196         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38197
38198 2008-10-19  Bruno Haible  <bruno@clisp.org>
38199
38200         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38201         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38202         mingw.
38203
38204 2008-10-19  Bruno Haible  <bruno@clisp.org>
38205
38206         * lib/atanl.c: Don't include isnanl.h.
38207         * lib/cosl.c: Likewise.
38208         * lib/ldexpl.c: Likewise.
38209         * lib/logl.c: Likewise.
38210         * lib/sinl.c: Likewise.
38211         * lib/sqrtl.c: Likewise.
38212         * lib/tanl.c: Likewise.
38213
38214         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38215         * lib/isnanf.h: Remove file.
38216         * lib/isnand.h: Remove file.
38217         * lib/isnanl.h: Remove file.
38218         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38219         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38220         macros.
38221         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38222         HAVE_ISNANF, don't define it as a C macro.
38223         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38224         HAVE_ISNAND, don't define it as a C macro.
38225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38226         HAVE_ISNANL, don't define it as a C macro.
38227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38228         HAVE_ISNAN[FDL].
38229         * modules/isnanf (Files): Remove lib/isnanf.h.
38230         (Depends-on): Add math.
38231         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38232         (Include): Specify <math.h> instead of isnanf.h.
38233         * modules/isnand (Files): Remove lib/isnand.h.
38234         (Depends-on): Add math.
38235         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38236         (Include): Specify <math.h> instead of isnand.h.
38237         * modules/isnanl (Files): Remove lib/isnanl.h.
38238         (Depends-on): Add math.
38239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38240         (Include): Specify <math.h> instead of isnanl.h.
38241         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38242         HAVE_ISNAN[FDL].
38243         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38244         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38245         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38246         * NEWS: Mention the change.
38247
38248 2008-10-18  Bruno Haible  <bruno@clisp.org>
38249
38250         Add getusershell(), setusershell(), endusershell() declarations to
38251         <unistd.h>.
38252         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38253         declarations.
38254         * lib/getusershell.c: Include unistd.h.
38255         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38256         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38257         HAVE_GETUSERSHELL.
38258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38259         and HAVE_GETUSERSHELL.
38260         * modules/getusershell (Depends-on): Add unistd, extensions.
38261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38262         (Include): Specify <unistd.h>.
38263         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38264         HAVE_GETUSERSHELL.
38265
38266 2008-10-18  Bruno Haible  <bruno@clisp.org>
38267
38268         Add a getloadavg() declaration to <stdlib.h>.
38269         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38270         getloadavg declaration.
38271         (getloadavg): New declaration.
38272         * lib/getloadavg.c: Include <stdlib.h> first.
38273         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38274         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38275         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38277         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38278         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38280         (Include): Specify <stdlib.h>.
38281         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38282         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38283
38284 2008-10-18  Bruno Haible  <bruno@clisp.org>
38285
38286         * lib/dirchownmod.c: Don't include lchmod.h.
38287
38288         Move the lchmod() declaration to <sys/stat.h>.
38289         * lib/lchmod.h: Remove file.
38290         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38291         (lchmod): New declaration, moved here from lib/lchown.h.
38292         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38293         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38294         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38295         and HAVE_LCHMOD.
38296         * modules/lchmod (Files): Remove lib/lchmod.h.
38297         (Depends-on): Add sys_stat, extensions.
38298         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38299         (Include): Specify <sys/stat.h> instead of lchmod.h.
38300         * modules/sys_stat (Depends-on): Add link-warning.
38301         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38302         definition of GL_LINK_WARNING.
38303         * NEWS: Mention the change.
38304
38305 2008-10-18  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/fchdir.c: Don't include dirfd.h.
38308         * lib/fts.c: Likewise.
38309         * lib/getcwd.c: Likewise.
38310         * lib/glob.c: Likewise.
38311
38312         Move the dirfd() declaration to <dirent.h>.
38313         * lib/dirfd.h: Remove file.
38314         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38315         (dirfd): New declaration.
38316         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38318         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38319         HAVE_DECL_DIRFD.
38320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38321         HAVE_DECL_DIRFD.
38322         * modules/dirfd (Files): Remove lib/dirfd.h.
38323         (Depends-on): Add dirent, extensions.
38324         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38325         (Include): Specify <dirent.h> instead of dirfd.h.
38326         * modules/dirent (Depends-on): Add link-warning.
38327         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38328         definition of GL_LINK_WARNING.
38329         * NEWS: Mention the change.
38330
38331 2008-10-18  Bruno Haible  <bruno@clisp.org>
38332
38333         Move the euidaccess() declaration to <unistd.h>.
38334         * lib/euidaccess.h: Remove file.
38335         * lib/unistd.in.h (euidaccess): New declaration.
38336         * lib/euidaccess.c: Don't include euidaccess.h.
38337         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38338         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38340         and HAVE_EUIDACCESS.
38341         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38342         (Depends-on): Add unistd.
38343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38344         (Include): Specify <unistd.h> instead of euidaccess.h.
38345         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38346         HAVE_EUIDACCESS.
38347         * NEWS: Mention the change.
38348
38349 2008-10-18  Bruno Haible  <bruno@clisp.org>
38350
38351         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38352
38353         Move the getdomainname() declaration to <unistd.h>.
38354         * lib/getdomainname.h: Remove file.
38355         * lib/unistd.in.h (getdomainname): New declaration.
38356         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38357         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38358         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38359         HAVE_GETDOMAINNAME.
38360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38361         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38362         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38363         (Depends-on): Add unistd, extensions.
38364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38365         (Includes): Specify <unistd.h> instead of getdomainname.h.
38366         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38367         HAVE_GETDOMAINNAME.
38368         * NEWS: Mention the change.
38369
38370 2008-10-18  Bruno Haible  <bruno@clisp.org>
38371
38372         * modules/dirent: New file.
38373         * m4/dirent_h.m4: New file.
38374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38375         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38376         * modules/fchdir (Files): Remove lib/dirent.in.h.
38377         (Depends-on): Add dirent.
38378         (Makefile.am): Move rules to modules/dirent.
38379         * doc/posix-headers/dirent.texi: Mention the new module.
38380
38381 2008-10-18  Bruno Haible  <bruno@clisp.org>
38382
38383         Avoid -Wunused-parameter warnings in public gnulib header files.
38384         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38385         macro.
38386         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38387
38388 2008-10-18  Bruno Haible  <bruno@clisp.org>
38389
38390         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38391         * doc/glibc-functions/error.texi: Mention the module 'error'.
38392         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38393         * doc/glibc-functions/getdomainname.texi: Mention the module
38394         'getdomainname'.
38395         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38396         * doc/glibc-functions/getpagesize.texi: Mention the module
38397         'getpagesize'.
38398         * doc/glibc-functions/getusershell.texi: Mention the module
38399         'getusershell'.
38400         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38401         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38402         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38403         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38404         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38405         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38406         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38407         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38408         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38409         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38410         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38411         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38412         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38413         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38414
38415 2008-10-17  Bruno Haible  <bruno@clisp.org>
38416
38417         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38418         HP-UX and IRIX, use -0.0L.
38419         * tests/test-ceill.c (minus_zero): Likewise.
38420         * tests/test-floorl.c (minus_zero): Likewise.
38421         * tests/test-frexpl.c (minus_zero): Likewise.
38422         * tests/test-isnan.c (minus_zerol): Likewise.
38423         * tests/test-isnanl.h (minus_zero): Likewise.
38424         * tests/test-ldexpl.c (minus_zero): Likewise.
38425         * tests/test-roundl.c (minus_zero): Likewise.
38426         * tests/test-signbit.c (minus_zerol): Likewise.
38427         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38428         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38429         * tests/test-truncl.c (minus_zero): Likewise.
38430         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38431         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38432         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38433         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38434
38435 2008-10-17  Bruno Haible  <bruno@clisp.org>
38436
38437         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38438         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38439         that it gets activated only for gcc >= 3.0.
38440         * lib/dirent.in.h: Likewise.
38441         * lib/errno.in.h: Likewise.
38442         * lib/fcntl.in.h: Likewise.
38443         * lib/float.in.h: Likewise.
38444         * lib/iconv.in.h: Likewise.
38445         * lib/inttypes.in.h: Likewise.
38446         * lib/locale.in.h: Likewise.
38447         * lib/math.in.h: Likewise.
38448         * lib/netdb.in.h: Likewise.
38449         * lib/netinet_in.in.h: Likewise.
38450         * lib/search.in.h: Likewise.
38451         * lib/signal.in.h: Likewise.
38452         * lib/spawn.in.h: Likewise.
38453         * lib/stdarg.in.h: Likewise.
38454         * lib/stdint.in.h: Likewise.
38455         * lib/stdio.in.h: Likewise.
38456         * lib/stdlib.in.h: Likewise.
38457         * lib/string.in.h: Likewise.
38458         * lib/strings.in.h: Likewise.
38459         * lib/sys_file.in.h: Likewise.
38460         * lib/sys_ioctl.in.h: Likewise.
38461         * lib/sys_select.in.h: Likewise.
38462         * lib/sys_socket.in.h: Likewise.
38463         * lib/sys_stat.in.h: Likewise.
38464         * lib/sys_time.in.h: Likewise.
38465         * lib/sysexits.in.h: Likewise.
38466         * lib/time.in.h: Likewise.
38467         * lib/unistd.in.h: Likewise.
38468         * lib/wchar.in.h: Likewise.
38469         * lib/wctype.in.h: Likewise.
38470         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38471
38472 2008-10-17  Jim Meyering  <meyering@redhat.com>
38473
38474         ignore-value: don't depend on inline module
38475         * modules/ignore-value (Depends-on): Remove 'inline'.
38476         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38477         Suggestion from Bruno Haible.
38478
38479 2008-10-17  Bruno Haible  <bruno@clisp.org>
38480
38481         New implementation of condition variables for Win32.
38482         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38483         (gl_linked_waitqueue_t): New type.
38484         (gl_cond_t): Use it.
38485         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38486         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38487         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38488         (glthread_cond_init_func, glthread_cond_wait_func,
38489         glthread_cond_timedwait_func, glthread_cond_signal_func,
38490         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38491         Reimplemented on the basis of gl_linked_waitqueue_t.
38492         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38493         gl_waitqueue_t.
38494         (gl_rwlock_t): Update.
38495         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38496
38497 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38498
38499         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38500         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38501
38502 2008-10-17  Jim Meyering  <meyering@redhat.com>
38503
38504         ignore-value: new module
38505         * modules/ignore-value: New file.
38506         * lib/ignore-value.h: New file.
38507         * MODULES.html.sh (Compiler warning management): New section,
38508         just for this module.  More to come.
38509
38510 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38511
38512         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38513         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38514         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38515
38516 2008-10-16  Jim Meyering  <meyering@redhat.com>
38517
38518         openat-die.c: avoid 'no previous prototype' warning
38519         * lib/openat-die.c: Include "openat.h".
38520         Reported by Reuben Thomas <rrt@sc3d.org>.
38521
38522 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38523
38524         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38525         * lib/netdb.in.h: Fix typo.
38526         Reported by Bruno Haible  <bruno@clisp.org>
38527
38528         * lib/netdb.in.h: Include sys/socket.h for platforms without
38529         netdb.h, to get structures like hostent on MinGW.
38530         * modules/netdb (Depends-on): Add sys_socket.
38531
38532 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38533
38534         * modules/netdb, modules/netdb-tests: New file.
38535         * m4/netdb_h.m4: New file.
38536         * lib/netdb.in.h: Add, currently just an empty file pending
38537         definitions.
38538         * tests/test-netdb.c: New file.
38539         * doc/posix-headers/netdb.texi: Mention that we replace it if
38540         needed.
38541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38542         netdb.
38543
38544 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38545
38546         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38547         with code.
38548
38549 2008-10-13  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/glthread/cond.c (glthread_cond_wait_func,
38552         glthread_cond_timedwait_func): Add a comment.
38553
38554 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38555
38556         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38557         * tests/test-select.c: Likewise,
38558
38559 2008-10-13  Bruno Haible  <bruno@clisp.org>
38560
38561         * lib/glthread/cond.c (glthread_cond_wait_func,
38562         glthread_cond_timedwait_func): Fix variable name.
38563         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38564
38565 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38566
38567         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38569         struct sockaddr.sa_len.
38570         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38571
38572 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38573
38574         * build-aux/pmccabe2html: Add css and css_url parameters.
38575
38576 2008-10-12  Bruno Haible  <bruno@clisp.org>
38577
38578         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38579         calling aclx_get.
38580         Reported by Rainer Tammer <tammer@tammer.net>.
38581
38582 2008-10-12  Bruno Haible  <bruno@clisp.org>
38583
38584         Use msvcrt aware primitives for creation/termination of Win32 threads.
38585         * lib/glthread/thread.c: Include <process.h>.
38586         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38587         (wrapper_func): Update signature.
38588         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38589
38590 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38591             Bruno Haible  <bruno@clisp.org>
38592
38593         Provide a Win32 implementation of the 'cond' module.
38594         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38595         * lib/glthread/cond.c (glthread_cond_init_func,
38596         glthread_cond_wait_func, glthread_cond_timedwait_func,
38597         glthread_cond_signal_func, glthread_cond_broadcast_func,
38598         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38599         * modules/cond (Dependencies): Add gettimeofday.
38600
38601 2008-10-11  Bruno Haible  <bruno@clisp.org>
38602
38603         Make sleep work on older versions of mingw.
38604         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38605         only whether it exists.
38606         * doc/posix-functions/sleep.texi: Mention the problem with older
38607         versions of mingw.
38608
38609 2008-10-11  Bruno Haible  <bruno@clisp.org>
38610
38611         New module 'shutdown'.
38612         * modules/shutdown: New file.
38613         * lib/sys_socket.in.h (shutdown): New declaration.
38614         * lib/winsock.c (shutdown): New function.
38615         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38616         GNULIB_SHUTDOWN.
38617         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38618         * doc/posix-functions/shutdown.texi: Document the new module.
38619
38620 2008-10-11  Jim Meyering  <meyering@redhat.com>
38621
38622         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38623
38624 2008-10-11  Bruno Haible  <bruno@clisp.org>
38625
38626         New module 'fclose'.
38627         * modules/fclose: New file.
38628         * lib/stdio.in.h (fclose): New declaration.
38629         * lib/fclose.c: New file.
38630         * m4/fclose.m4: New file.
38631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38632         REPLACE_FCLOSE.
38633         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38634         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38635         REPLACE_FCLOSE.
38636         * modules/close (Depends-on): fclose.
38637         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38638
38639 2008-10-11  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38642         set errno and don't call _close.
38643
38644 2008-10-10  Bruno Haible  <bruno@clisp.org>
38645
38646         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38647         ACL, not afterwards. Fixes test failure on Cygwin.
38648
38649 2008-10-09  Ben Pfaff  <blp@gnu.org>
38650
38651         * build-aux/announce-gen: Fix gnulib version related part of usage
38652         message.  Die with a useful error message if no tarballs are
38653         found.
38654
38655 2008-10-10  Jim Meyering  <meyering@redhat.com>
38656
38657         bootstrap: use git's --depth=N option only if it's supported
38658         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38659         recognize the --depth option.  Reported by Pádraig Brady.
38660
38661 2008-10-09  Bruno Haible  <bruno@clisp.org>
38662
38663         New module 'ioctl'.
38664         * modules/ioctl: New file.
38665         * lib/sys_socket.in.h (ioctl): Remove declaration.
38666         * lib/winsock.c: Include <sys/ioctl.h>.
38667         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38668         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38669         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38670         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38671         * doc/posix-functions/ioctl.texi: Mention the new module.
38672
38673 2008-10-09  Bruno Haible  <bruno@clisp.org>
38674
38675         New module 'sys_ioctl'.
38676         * lib/sys_ioctl.in.h: New file.
38677         * m4/sys_ioctl_h.m4: New file.
38678         * modules/sys_ioctl: New file.
38679         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38680
38681 2008-10-09  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38684         * lib/winsock.c: Include <stdarg.h>.
38685         (rpl_ioctl): Change to second argument 'int' and then varargs.
38686
38687 2008-10-09  Bruno Haible  <bruno@clisp.org>
38688
38689         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38690         when the sys_socket module is present and the system has <winsock2.h>.
38691
38692 2008-10-09  Bruno Haible  <bruno@clisp.org>
38693
38694         * doc/posix-functions/close.texi: Mention module 'close' instead of
38695         module 'sys_socket'.
38696
38697 2008-10-09  Bruno Haible  <bruno@clisp.org>
38698
38699         * doc/glibc-headers/sys_ioctl.texi: New file.
38700         * doc/gnulib.texi: Include it.
38701
38702 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38703             Bruno Haible  <bruno@clisp.org>
38704
38705         Combine the two replacements of 'close'.
38706         * lib/sys_socket.in.h (close): Define to a reminder to include
38707         <unistd.h>.
38708         (_gl_close_fd_maybe_socket): New declaration.
38709         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38710         * lib/winsock.c (close): Remove undefinition.
38711         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38712         needed for the gnulib module 'close'.
38713         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38714         define to an error symbol or to a warning, if suitable.
38715         * lib/close.c: Include <sys/socket.h>.
38716         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38717         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38718         UNISTD_H_HAVE_WINSOCK2_H.
38719         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38721         UNISTD_H_HAVE_WINSOCK2_H.
38722         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38723         (configure.ac): Set a module indicator.
38724         (Makefile.am): Substitute GNULIB_CLOSE.
38725         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38726         * modules/poll-tests (Depends-on): Add close.
38727         * modules/select-tests (Depends-on): Likewise.
38728
38729 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38730             Bruno Haible  <bruno@clisp.org>
38731
38732         New module 'close'.
38733         * modules/close: New file.
38734         * lib/unistd.in.h (close): Move declaration out of the
38735         FCHDIR_REPLACEMENT scope.
38736         (_gl_unregister_fd): New declaration.
38737         * lib/close.c: New file.
38738         * lib/fchdir.c (rpl_close): Remove function.
38739         * m4/close.m4: New file.
38740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38741         close.
38742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38743         REPLACE_CLOSE.
38744         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38745         REPLACE_CLOSE.
38746         * modules/fchdir (Depends-on): Add close.
38747
38748 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38749             Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/fcntl.in.h (open): Simplify conditionals.
38752         (_gl_register_fd): New declaration.
38753         * lib/fchdir.c (rpl_open): Remove function.
38754         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38755         also.
38756         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38758         open.
38759
38760 2008-10-09  Jim Meyering  <meyering@redhat.com>
38761
38762         GNUmakefile: use the more name-space-friendly "_version"
38763         * top/GNUmakefile (_dummy): Update.
38764         (_version): Rename from "version".
38765
38766 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38767             Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38770         rpl_close.
38771         (_gl_register_fd): New function, extracted from rpl_open.
38772         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38773         (rpl_open, rpl_opendir): Use _gl_register_fd.
38774
38775 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38776
38777         Fix organization of 'open' replacement.
38778         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38779         (gl_FUNC_OPEN): Use it.
38780         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38781
38782 2008-10-08  Bruno Haible  <bruno@clisp.org>
38783
38784         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38785
38786 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38787
38788         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38789         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38790         listen).
38791
38792 2008-10-08  Eric Blake  <ebb9@byu.net>
38793
38794         GNUmakefile: add 'make version' target
38795         * top/GNUmakefile (_curr-ver): Split version update rules...
38796         (version): ...into a target.
38797
38798 2008-10-07  Bruno Haible  <bruno@clisp.org>
38799
38800         Use a more portable replacement expression for -0.0L.
38801         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38802         instead of -0.0L. Fix m4 quotation.
38803
38804         * tests/test-signbit.c: Include <float.h>.
38805         (minus_zero): New variable.
38806         (test_signbitl): Use minus_zero instead of -zero.
38807         * modules/signbit-tests (Depends-on): Add float.
38808
38809         * tests/test-ceill.c: Include <float.h>.
38810         (zero): Remove variable.
38811         (minus_zero): New variable.
38812         (main): Use minus_zero instead of -zero.
38813         * modules/ceill-tests (Depends-on): Add float.
38814
38815         * tests/test-floorl.c: Include <float.h>.
38816         (zero): Remove variable.
38817         (minus_zero): New variable.
38818         (main): Use minus_zero instead of -zero.
38819         * modules/floorl-tests (Depends-on): Add float.
38820
38821         * tests/test-roundl.c: Include <float.h>.
38822         (zero): Remove variable.
38823         (minus_zero): New variable.
38824         (main): Use minus_zero instead of -zero.
38825         * modules/roundl-tests (Depends-on): Add float.
38826
38827         * tests/test-truncl.c: Include <float.h>.
38828         (zero): Remove variable.
38829         (minus_zero): New variable.
38830         (main): Use minus_zero instead of -zero.
38831         * modules/truncl-tests (Depends-on): Add float.
38832
38833         * tests/test-frexpl.c (zero): Remove variable.
38834         (minus_zero): New variable.
38835         (main): Use minus_zero instead of -zero.
38836         * modules/frexpl-tests (Depends-on): Add float.
38837
38838         * tests/test-isnan.c (zerol): Remove variable.
38839         (minus_zerol): New variable.
38840         (test_long_double): Use minus_zerol instead of -zerol.
38841         * modules/isnan-tests (Depends-on): Add float.
38842
38843         * tests/test-isnanl.h (zero): Remove variable.
38844         (minus_zero): New variable.
38845         (main): Use minus_zero instead of -zero.
38846         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38847         * modules/isnanl-tests (Depends-on): Add float.
38848
38849         * tests/test-ldexpl.c (zero): Remove variable.
38850         (minus_zero): New variable.
38851         (main): Use minus_zero instead of -zero.
38852         * modules/ldexpl-tests (Depends-on): Add float.
38853
38854         * tests/test-snprintf-posix.h (zerol): Remove variable.
38855         (minus_zerol): New variable.
38856         (test_function): Use minus_zerol instead of -zerol.
38857         * modules/snprintf-posix-tests (Depends-on): Add float.
38858         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38859
38860         * tests/test-sprintf-posix.h (zerol): Remove variable.
38861         (minus_zerol): New variable.
38862         (test_function): Use minus_zerol instead of -zerol.
38863         * modules/sprintf-posix-tests (Depends-on): Add float.
38864         * modules/vsprintf-posix-tests (Depends-on): Add float.
38865
38866         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38867         (minus_zerol): New variable.
38868         (test_function): Use minus_zerol instead of -zerol.
38869         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38870
38871         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38872         (minus_zerol): New variable.
38873         (test_function): Use minus_zerol instead of -zerol.
38874         * modules/vasprintf-posix-tests (Depends-on): Add float.
38875
38876 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38877
38878         * MODULES.html.sh (Support for building documentation): Mention
38879         pmccabe2html.  Sort entries.
38880
38881         Add pmccabe2html module, from gnupdf.
38882         * build-aux/pmccabe.css: New file.
38883         * build-aux/pmccabe2html: New file.
38884         * m4/pmccabe2html.m4: New file.
38885         * modules/pmccabe2html: New file.
38886
38887 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38888
38889         flock: new module
38890         * MODULES.html.sh: Add to list of modules.
38891         * lib/flock.c: flock implementation for Windows and Unix systems
38892         which have fcntl.
38893         * doc/glibc-functions/flock.texi: Update documentation.
38894         * lib/sys_file.in.h: <sys/file.h> header file.
38895         * m4/flock.m4: M4 macros.
38896         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38897         * modules/flock: flock module.
38898         * modules/flock-tests: flock tests module.
38899         * modules/sys_file: sys/file.h module.
38900         * tests/test-flock.c: test suite for flock.
38901
38902 2008-10-06  Jim Meyering  <meyering@redhat.com>
38903
38904         bootstrap: check for LT_INIT more portably still ;-)
38905         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38906         Spotted by Bruno Haible.
38907
38908 2008-10-06  Eric Blake  <ebb9@byu.net>
38909
38910         test-signbit: avoid tripping Irix cc bug on -0.0L
38911         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38912         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38913         entire testsuite consistent and avoids an Irix 6.2 bug.
38914
38915 2008-10-05  Bruno Haible  <bruno@clisp.org>
38916             Jim Meyering  <jim@meyering.net>
38917
38918         Add an option for ignoring EPIPE during close_stdout.
38919         * lib/closeout.h: Include <stdbool.h>.
38920         (close_stdout_set_ignore_EPIPE): New declaration.
38921         * lib/closeout.c: Include <stdbool.h>.
38922         (ignore_EPIPE): New variable.
38923         (close_stdout_set_ignore_EPIPE): New function.
38924         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38925         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38926         failure.
38927         * modules/closeout (Depends-on): Add stdbool.
38928
38929 2008-10-05  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/accept: New file.
38932         * modules/bind: New file.
38933         * modules/connect: New file.
38934         * modules/getpeername: New file.
38935         * modules/getsockname: New file.
38936         * modules/getsockopt: New file.
38937         * modules/listen: New file.
38938         * modules/recv: New file.
38939         * modules/recvfrom: New file.
38940         * modules/send: New file.
38941         * modules/sendto: New file.
38942         * modules/setsockopt: New file.
38943         * modules/socket: New file.
38944         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38945         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38946         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38947         the particular module is requested. Add a link warning when the
38948         particular module is not requested.
38949         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38950         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38951         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38952         the particular module is requested.
38953         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38954         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38955         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38956         * modules/sys_socket (Depends-on): Add link-warning.
38957         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38958         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38959         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38960         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38961         GL_LINK_WARNING.
38962         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38963         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38964         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38965         * doc/posix-functions/getpeername.texi: Mention the new module
38966         'getpeername'.
38967         * doc/posix-functions/getsockname.texi: Mention the new module
38968         'getsockname'.
38969         * doc/posix-functions/getsockopt.texi: Mention the new module
38970         'getsockopt'.
38971         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38972         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38973         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38974         * doc/posix-functions/send.texi: Mention the new module 'send'.
38975         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38976         * doc/posix-functions/setsockopt.texi: Mention the new module
38977         'setsockopt'.
38978         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38979         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38980         listen, connect, accept.
38981         * modules/select-tests (Depends-on): Likewise.
38982
38983 2008-10-05  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/winsock.c (strerror): Remove unused #undef.
38986         (rpl_close): Remove unused local variable.
38987
38988         * modules/sys_socket (Depends-on); Add errno.
38989
38990 2008-10-05  Bruno Haible  <bruno@clisp.org>
38991
38992         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38993         (select): Add a link warning when the 'select' module is not used.
38994         * modules/sys_select (Depends-on): Add link-warning.
38995         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38996         Suggested by Paolo Bonzini.
38997
38998 2008-10-05  Jim Meyering  <meyering@redhat.com>
38999
39000         bootstrap: check for LT_INIT more portably
39001         * build-aux/bootstrap: Avoid using grep -E, since it's not
39002         portable enough.  Suggestion from Bruno Haible.
39003
39004 2008-10-05  Bruno Haible  <bruno@clisp.org>
39005
39006         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39007         as being fixed by gnulib.
39008
39009 2008-10-05  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/select-tests: New file, mostly copied from
39012         modules/sys_select-tests.
39013         * tests/test-select.c: New file, mostly copied from
39014         tests/test-sys_select.c.
39015         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39016         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39017         (Makefile.am): Remove test_sys_select_LDADD.
39018
39019         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39020         to an undefined symbol, for an error message.
39021         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39022         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39023         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39024         winsock-select.c here.
39025         * modules/sys_select (Files): Remove lib/winsock-select.c.
39026         (Depends-on): Remove alloca.
39027         (Makefile.am): Substitute GNULIB_SELECT.
39028         * modules/select: New file.
39029         * doc/posix-functions/select.texi: Update.
39030
39031 2008-10-05  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39034         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39035         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39036         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39037         getdtablesize.
39038         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39039         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39040
39041 2008-10-05  Bruno Haible  <bruno@clisp.org>
39042
39043         * modules/getdtablesize-tests: New file.
39044         * tests/test-getdtablesize.c: New file.
39045
39046         New module 'getdtablesize'.
39047         * lib/unistd.in.h (getdtablesize): New declaration.
39048         * lib/getdtablesize.c: New file.
39049         * m4/getdtablesize.m4: New file.
39050         * modules/getdtablesize: New file.
39051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39052         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39053         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39054         HAVE_GETDTABLESIZE.
39055         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39056
39057 2008-10-05  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/sched (Makefile.am): Fix typo.
39060         Reported by Simon Josefsson.
39061
39062 2008-10-05  Jim Meyering  <meyering@redhat.com>
39063
39064         bootstrap: check for LT_INIT, too
39065         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39066         are deprecated.  Suggestion from Ralf Wildenhues.
39067
39068 2008-10-05  Bruno Haible  <bruno@clisp.org>
39069
39070         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39071         overriding them by ours.
39072         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39073
39074 2008-10-05  Jim Meyering  <meyering@redhat.com>
39075
39076         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39077         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39078         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39079
39080 2008-10-04  Bruno Haible  <bruno@clisp.org>
39081
39082         * modules/dup2 (License): Change to LGPLv2+.
39083         * modules/sleep (License): Likewise.
39084         * modules/perror (License): Likewise.
39085         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39086         Blake.
39087         * modules/signal (License): Likewise.
39088         * modules/sigprocmask (License): Likewise.
39089         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39090         Meyering.
39091
39092 2008-10-04  Bruno Haible  <bruno@clisp.org>
39093
39094         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39095         Reported by Rainer Tammer <tammer@tammer.net>.
39096
39097 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39098             Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39101         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39102         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39103
39104 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39105
39106         filevercmp: new module
39107         * lib/filevercmp.h: New function filevercmp comparing version strings.
39108         * lib/filevercmp.c: Implementation of filevercmp function.
39109         * modules/filevercmp: Module metadata.
39110         * tests/test-filevercmp.c: Unit test for new module.
39111         * modules/filevercmp-tests: Unit test metadata.
39112         * MODULES.html.sh: Add filevercmp module.
39113
39114 2008-10-03  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/c-ctype.h: Add comment.
39117         Reported by Jim Meyering.
39118
39119 2008-10-02  Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39122
39123 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39124
39125         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39126         name of bootstrap.conf accordingly.
39127
39128 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39129
39130         * build-aux/bootstrap: Install git-merge-changelog configuration
39131         items into .gitconfig if needed.
39132
39133 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39134
39135         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39136         git repository, and initialize/update it accordingly.
39137
39138 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39139
39140         * modules/fsync-tests: New file.
39141         * tests/test-fsync.c: New file.
39142
39143         New module 'fsync'.
39144         * lib/fsync.c: New file.
39145         * m4/fsync.m4: New file.
39146         * modules/fsync: New file.
39147         * lib/unistd.in.h (fsync): New declaration.
39148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39149         GNULIB_FSYNC and HAVE_FSYNC.
39150         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39151         * MODULES.html.sh (posix_functions): Add fsync.
39152         * doc/posix-functions/fsync.texi: Mention the new module.
39153
39154 2008-10-02  Jim Meyering  <meyering@redhat.com>
39155
39156         fts.c: sync with similar code from coreutils' remove.c
39157         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39158         Guard also with "#if defined __linux__", since for now at least,
39159         this code is Linux-kernel-specific.
39160
39161 2008-10-02  Jim Meyering  <meyering@redhat.com>
39162
39163         fts: bug fixes
39164         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39165         Include <sys/vfs.h>, not <sys/statfs.h>.
39166
39167         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39168         Include <sys/vfs.h>, not <sys/statfs.h>.
39169
39170 2008-10-01  Bruno Haible  <bruno@clisp.org>
39171
39172         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39174         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39175         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39176         * doc/posix-functions/posix_spawnp.texi: Likewise.
39177         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39178         whether posix_spawn actually works.
39179         * m4/pipe.m4 (gl_PIPE): Likewise.
39180         * modules/execute (Files): Add m4/posix_spawn.m4.
39181         * modules/pipe (Files): Add m4/posix_spawn.m4.
39182         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39183
39184 2008-10-01  Jim Meyering  <meyering@redhat.com>
39185
39186         remove trailing spaces
39187         * NEWS: Likewise.
39188         * lib/poll.c (poll): Likewise.
39189         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39190         * lib/winsock.c (rpl_close): Likewise.
39191         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39192         * modules/yield: Likewise.
39193         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39194         * tests/test-sys_select.c (connect_to_socket): Likewise.
39195
39196         fts.c: adjust a new interface to be more generally useful
39197         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39198         (fts_build): Adjust caller.
39199
39200 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39201
39202         * modules/cond-tests: New file.
39203         * tests/test-cond.c: New file.
39204
39205 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39206             Bruno Haible  <bruno@clisp.org>
39207
39208         * modules/cond (Dependencies): Add errno, time.
39209         * lib/glthread/cond.h: Include <time.h>.
39210         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39211         across platforms.
39212
39213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39214             Bruno Haible  <bruno@clisp.org>
39215
39216         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39217
39218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39219             Bruno Haible  <bruno@clisp.org>
39220
39221         * modules/tls-tests (Depends-on): Add thread, yield.
39222         (configure.ac): Remove all checks.
39223         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39224         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39225         gl_thread_self): Remove definitions. Include glthread/thread.h and
39226         glthread/yield.h instead.
39227         (test_tls): Pass an additional NULL argument to gl_thread_join.
39228
39229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39230             Bruno Haible  <bruno@clisp.org>
39231
39232         * modules/lock-tests (Depends-on): Add thread, yield.
39233         (configure.ac): Remove all checks.
39234         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39235         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39236         gl_thread_self): Remove definitions. Include glthread/thread.h and
39237         glthread/yield.h instead.
39238         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39239         additional NULL argument to gl_thread_join.
39240
39241 2008-09-30  Bruno Haible  <bruno@clisp.org>
39242
39243         Fix the Win32 implementation of the 'thread' module.
39244         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39245         pointer type.
39246         (gl_thread_self): Invoke gl_thread_self_func.
39247         (gl_thread_self_func): New declaration.
39248         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39249         (do_init_self_key, init_self_key): New functions.
39250         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39251         Remove some fields.
39252         (running_threads, running_lock): Remove variables.
39253         (get_current_thread_handle): New function.
39254         (gl_thread_self_func, wrapper_func, glthread_create_func,
39255         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39256         simplified.
39257
39258 2008-09-30  Bruno Haible  <bruno@clisp.org>
39259
39260         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39261         files.
39262
39263 2008-09-30  Jim Meyering  <meyering@redhat.com>
39264
39265         fts.m4: correct the test for statfs.f_type
39266         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39267         when checking for statfs.f_type.
39268
39269 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39270
39271         tests: avoid some compiler warnings
39272         * tests/test-memchr.c (main): Pass NULL indirectly.
39273         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39274
39275 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39276
39277         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39278         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39279         exactly specified dayshifts.
39280         (dayshift): New rule.
39281         (rel): Add dayshift.
39282         (relative_time_table) [tomorrow, yesterday, today, now]:
39283         Use tDAY_SHIFT in place of tDAY_UNIT.
39284         * tests/test-getdate.c: Add tests for now-disallowed countable
39285         dayshifts, e.g., "4 yesterday ago".
39286
39287 2008-09-29  Bruno Haible  <bruno@clisp.org>
39288
39289         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39290         * tests/test-posix_spawn1.in.sh: Renamed from
39291         tests/test-posix_spawn.in.sh.
39292         * tests/test-posix_spawn2.c: New file.
39293         * tests/test-posix_spawn2.in.sh: New file.
39294         * modules/posix_spawnp-tests (Files): Update.
39295         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39296
39297 2008-09-29  Bruno Haible  <bruno@clisp.org>
39298
39299         Propagate effects of putenv/setenv/unsetenv to child processes.
39300         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39301         * lib/pipe.c (create_pipe): Likewise.
39302
39303 2008-09-29  Bruno Haible  <bruno@clisp.org>
39304
39305         Enable use of shell scripts as executables in mingw.
39306         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39307         run the program as a shell script.
39308         * lib/pipe.c (create_pipe): Likewise.
39309         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39310         resulting array.
39311
39312 2008-09-29  Eric Blake  <ebb9@byu.net>
39313
39314         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39315
39316 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39317
39318         * doc/posix-functions/accept.texi: Update mingw problems.
39319         * doc/posix-functions/bind.texi: Update mingw problems.
39320         * doc/posix-functions/close.texi: Update mingw problems.
39321         * doc/posix-functions/connect.texi: Update mingw problems.
39322         * doc/posix-functions/getpeername.texi: Update mingw problems.
39323         * doc/posix-functions/getsockname.texi: Update mingw problems.
39324         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39325         * doc/posix-functions/ioctl.texi: Update mingw problems.
39326         * doc/posix-functions/listen.texi: Update mingw problems.
39327         * doc/posix-functions/recv.texi: Update mingw problems.
39328         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39329         * doc/posix-functions/select.texi: Update mingw problems.
39330         * doc/posix-functions/send.texi: Update mingw problems.
39331         * doc/posix-functions/sendto.texi: Update mingw problems.
39332         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39333         * doc/posix-functions/socket.texi: Update mingw problems.
39334
39335 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39336             Bruno Haible  <bruno@clisp.org>
39337
39338         * lib/sys_select.in.h: Include sys/time.h.
39339         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39340         * modules/sys_select: Depend on sys_time.
39341         * tests/test-sys_select.c: Test that sys/select.h defines struct
39342         timeval fully.
39343
39344 2008-09-29  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39347         * lib/sys_select.in.h: Likewise.
39348
39349 2008-09-29  Bruno Haible  <bruno@clisp.org>
39350
39351         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39352
39353 2008-09-29  Bruno Haible  <bruno@clisp.org>
39354
39355         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39356         Set LIBSOCKET instead of augmenting LIBS.
39357         * modules/sockets (Link): New section.
39358         * modules/sockets-tests (test_sockets_LDADD): New variable.
39359         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39360         * modules/poll-tests (test_poll_LDADD): New variable.
39361         * NEWS: Document the change.
39362
39363 2008-09-29  Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39366         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39367         ARPA_INET_H directly.
39368         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39369
39370 2008-09-28  Bruno Haible  <bruno@clisp.org>
39371
39372         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39373         from gl_HEADER_SYS_SOCKET.
39374         (gl_HEADER_SYS_SOCKET): Invoke it.
39375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39376
39377 2008-09-28  Bruno Haible  <bruno@clisp.org>
39378
39379         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39380         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39381         Needed on OSF/1 4.0.
39382
39383 2008-09-28  Bruno Haible  <bruno@clisp.org>
39384
39385         Override open more carefully.
39386         * lib/open.c (orig_open): New function.
39387         (rpl_open): Use orig_open instead of open.
39388         * lib/fcntl.in.h: Add special invocation convention.
39389         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39390         (gl_FUNC_OPEN): Invoke it.
39391
39392         Override freopen more carefully.
39393         * lib/freopen.c (orig_freopen): New function.
39394         (rpl_freopen): Use orig_freopen instead of freopen.
39395         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39396         (gl_FUNC_FREOPEN): Invoke it.
39397
39398         Override fopen more carefully.
39399         * lib/fopen.c (orig_fopen): New function.
39400         (rpl_fopen): Use orig_fopen instead of fopen.
39401         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39402         (gl_FUNC_FOPEN): Invoke it.
39403         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39404
39405 2008-09-28  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39408         SIGPIPE.
39409
39410 2008-09-28  Bruno Haible  <bruno@clisp.org>
39411
39412         * tests/test-sigaction.c (handler, main): Disable the check whether
39413         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39414         glibc systems with LinuxThreads.
39415
39416 2008-09-28  Bruno Haible  <bruno@clisp.org>
39417
39418         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39419
39420         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39421         with AIX xlc.
39422         * lib/fcntl.in.h (open): Likewise.
39423         Reported by Rainer Tammer <tammer@tammer.net>.
39424
39425 2008-09-28  Bruno Haible  <bruno@clisp.org>
39426
39427         * modules/posix_spawnp-tests: New file.
39428         * tests/test-posix_spawn.c: New file.
39429         * tests/test-posix_spawn.in.sh: New file.
39430
39431         New module 'posix_spawnp'.
39432         * modules/posix_spawnp: New file.
39433         * lib/spawnp.c: New file, from GNU libc with modifications.
39434         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39435
39436         New module 'posix_spawn'.
39437         * modules/posix_spawn: New file.
39438         * lib/spawn.c: New file, from GNU libc with modifications.
39439         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39440
39441         New module 'posix_spawnattr_destroy'.
39442         * modules/posix_spawnattr_destroy: New file.
39443         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39444         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39445         module.
39446
39447         New module 'posix_spawnattr_setsigmask'.
39448         * modules/posix_spawnattr_setsigmask: New file.
39449         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39450         modifications.
39451         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39452         new module.
39453
39454         New module 'posix_spawnattr_getsigmask'.
39455         * modules/posix_spawnattr_getsigmask: New file.
39456         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39457         modifications.
39458         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39459         new module.
39460
39461         New module 'posix_spawnattr_setsigdefault'.
39462         * modules/posix_spawnattr_setsigdefault: New file.
39463         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39464         modifications.
39465         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39466         new module.
39467
39468         New module 'posix_spawnattr_getsigdefault'.
39469         * modules/posix_spawnattr_getsigdefault: New file.
39470         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39471         modifications.
39472         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39473         new module.
39474
39475         New module 'posix_spawnattr_setschedpolicy'.
39476         * modules/posix_spawnattr_setschedpolicy: New file.
39477         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39478         modifications.
39479         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39480         new module.
39481
39482         New module 'posix_spawnattr_getschedpolicy'.
39483         * modules/posix_spawnattr_getschedpolicy: New file.
39484         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39485         modifications.
39486         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39487         new module.
39488
39489         New module 'posix_spawnattr_setschedparam'.
39490         * modules/posix_spawnattr_setschedparam: New file.
39491         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39492         modifications.
39493         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39494         new module.
39495
39496         New module 'posix_spawnattr_getschedparam'.
39497         * modules/posix_spawnattr_getschedparam: New file.
39498         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39499         modifications.
39500         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39501         new module.
39502
39503         New module 'posix_spawnattr_setpgroup'.
39504         * modules/posix_spawnattr_setpgroup: New file.
39505         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39506         modifications.
39507         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39508         module.
39509
39510         New module 'posix_spawnattr_getpgroup'.
39511         * modules/posix_spawnattr_getpgroup: New file.
39512         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39513         modifications.
39514         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39515         module.
39516
39517         New module 'posix_spawnattr_setflags'.
39518         * modules/posix_spawnattr_setflags: New file.
39519         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39520         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39521         module.
39522
39523         New module 'posix_spawnattr_getflags'.
39524         * modules/posix_spawnattr_getflags: New file.
39525         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39526         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39527         module.
39528
39529         New module 'posix_spawnattr_init'.
39530         * modules/posix_spawnattr_init: New file.
39531         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39532         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39533         module.
39534
39535         New module 'posix_spawn_file_actions_destroy'.
39536         * modules/posix_spawn_file_actions_destroy: New file.
39537         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39538         modifications.
39539         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39540         the new module.
39541
39542         New module 'posix_spawn_file_actions_addopen'.
39543         * modules/posix_spawn_file_actions_addopen: New file.
39544         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39545         modifications.
39546         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39547         the new module.
39548
39549         New module 'posix_spawn_file_actions_adddup2'.
39550         * modules/posix_spawn_file_actions_adddup2: New file.
39551         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39552         modifications.
39553         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39554         the new module.
39555
39556         New module 'posix_spawn_file_actions_addclose'.
39557         * modules/posix_spawn_file_actions_addclose: New file.
39558         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39559         modifications.
39560         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39561         the new module.
39562
39563         New module 'posix_spawn_file_actions_init'.
39564         * modules/posix_spawn_file_actions_init: New file.
39565         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39566         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39567         new module.
39568
39569         New module 'posix_spawn-internal'.
39570         * modules/posix_spawn-internal: New file.
39571         * lib/spawn_int.h: New file, from GNU libc with modifications.
39572         * lib/spawni.c: New file, from GNU libc with modifications.
39573         * m4/posix_spawn.m4: New file.
39574
39575         New module 'spawn'.
39576         * modules/spawn: New file.
39577         * lib/spawn.in.h: New file, from GNU libc with modifications.
39578         * m4/spawn_h.m4: New file.
39579         * doc/posix-headers/spawn.texi: Mention the new module.
39580
39581 2008-09-28  Bruno Haible  <bruno@clisp.org>
39582
39583         * modules/sched-tests: New file.
39584         * tests/test-sched.c: New file.
39585
39586         New module 'sched'.
39587         * modules/sched: New file.
39588         * lib/sched.in.h: New file.
39589         * m4/sched_h.m4: New file.
39590         * doc/posix-headers/sched.texi: Mention the new module.
39591
39592 2008-09-27  Eric Blake  <ebb9@byu.net>
39593
39594         Fix previous patch, and tweak references to $0.
39595         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39596         (func_version, func_gnulib_dir): Don't call this program
39597         gnulib-tool.
39598         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39599         with using $0 in function.
39600         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39601         (func_fatal_error): Reuse the name the user invoked us with.
39602
39603 2008-09-27  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39606         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39607         (gl_ICONV_H): Not here.
39608         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39609         instead of assigning ICONV_H directly.
39610
39611         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39613         WCHAR_H directly.
39614
39615 2008-09-27  Bruno Haible  <bruno@clisp.org>
39616
39617         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39618         * modules/arpa_inet (Depends-on): Add link-warning.
39619         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39620         * modules/unistd (Makefile.am): Likewise.
39621
39622 2008-09-26  Bruno Haible  <bruno@clisp.org>
39623
39624         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39625         variables.
39626         (func_version): Essentially copied from gnulib-tool.
39627         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39628         func_readlink): Copied from gnulib-tool.
39629
39630 2008-09-26  Bruno Haible  <bruno@clisp.org>
39631
39632         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39633         invoking git-version-gen.
39634
39635 2008-09-26  Bruno Haible  <bruno@clisp.org>
39636
39637         * posix-modules: Update to directory names changed on 2008-01-19.
39638         Remove commas in output before splitting into words. No more need to
39639         avoid 'ftruncate' since 2007-02-19.
39640
39641 2008-09-26  Bruno Haible  <bruno@clisp.org>
39642
39643         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39644
39645 2008-09-26  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39648         * modules/fwriteerror (Depends-on): Add errno.
39649
39650 2008-09-26  Bruno Haible  <bruno@clisp.org>
39651
39652         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39653         * tests/test-vc-list-files-cvs.sh: Likewise.
39654
39655 2008-09-26  Bruno Haible  <bruno@clisp.org>
39656
39657         * doc/posix-headers/sys_resource.texi: Reorder items.
39658
39659 2008-09-26  Jim Meyering  <meyering@redhat.com>
39660
39661         fts: tweak inode comparison function
39662         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39663         inode numbers, as documented.
39664
39665         fts: sort dirent entries on inode number before traversing
39666         This avoids a quadratic, seek-related performance penalty when
39667         operating on a directory containing many entries (measurable at 10k;
39668         3.5 hours at 2 million entries with a cold cache) on certain types
39669         of file systems, including ext3 and ext4, but not tmpfs.
39670         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39671         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39672         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39673         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39674         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39675         (fts_build): Set the stat.st_ino member from D_INO.
39676         If it is likely to be useful, sort dirent entries on inode number.
39677
39678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39679         and the struct statfs.f_type member.
39680         * modules/fts (Depends-on): Add d-ino.
39681
39682 2008-09-26  Bruno Haible  <bruno@clisp.org>
39683
39684         * modules/sigpipe-die (Depends-on): Add sigpipe.
39685
39686         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39687         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39688         and GNULIB_STDIO_H_SIGPIPE are set.
39689         * lib/stdio-write.c: New file.
39690         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39691         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39692         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39693         REPLACE_STDIO_WRITE_FUNCS.
39694         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39695         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39696         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39697         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39698         * modules/stdio (Files): Add lib/stdio-write.c.
39699         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39700         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39701         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39702         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39703         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39704         REPLACE_FPRINTF_POSIX.
39705         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39706         REPLACE_PRINTF_POSIX.
39707         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39708         REPLACE_VFPRINTF_POSIX.
39709         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39710         REPLACE_VPRINTF_POSIX.
39711         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39712         SIGPIPE issue.
39713         * doc/posix-functions/fputc.texi: Likewise.
39714         * doc/posix-functions/fputs.texi: Likewise.
39715         * doc/posix-functions/fwrite.texi: Likewise.
39716         * doc/posix-functions/printf.texi: Likewise.
39717         * doc/posix-functions/putc.texi: Likewise.
39718         * doc/posix-functions/putchar.texi: Likewise.
39719         * doc/posix-functions/puts.texi: Likewise.
39720         * doc/posix-functions/vfprintf.texi: Likewise.
39721         * doc/posix-functions/vprintf.texi: Likewise.
39722
39723         * modules/safe-write (Depends-on): Add write.
39724
39725         * modules/sigpipe-tests: New file.
39726         * tests/test-sigpipe.c: New file.
39727         * tests/test-sigpipe.sh: New file.
39728
39729         * modules/write: New file.
39730         * lib/unistd.in.h: Include <sys/types.h>.
39731         (write): New declaration.
39732         * lib/write.c: New file.
39733         * m4/write.m4: New file.
39734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39735         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39736         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39737         GNULIB_WRITE, REPLACE_WRITE.
39738         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39739         and the SIGPIPE issue.
39740
39741         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39742         (raise): New declaration.
39743         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39744         (ext_signal): New function.
39745         (rpl_raise): New function.
39746         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39747         GNULIB_SIGNAL_H_SIGPIPE.
39748         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39749         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39750
39751         * modules/sigpipe: New file.
39752         * m4/sigpipe.m4: New file.
39753
39754 2008-09-25  Derek Price  <derek@ximbiot.com>
39755             Bruno Haible  <bruno@clisp.org>
39756
39757         * gnulib-tool (func_import): Report all license incompatibilities, not
39758         just the first one.
39759
39760 2008-09-25  Bruno Haible  <bruno@clisp.org>
39761
39762         * gnulib-tool (func_import): When computing the edits, consider not
39763         only the Makefile.ams that exist but also those that will be generated.
39764
39765 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39766
39767         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39768         fixes gnulib-tool --test warning about duplicate dependency.
39769
39770 2008-09-25  Bruno Haible  <bruno@clisp.org>
39771
39772         * gnulib-tool: Don't ask the user to perform edits in the generated
39773         Makefile.ams.
39774         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39775         apply to the Makefile.am being generated.
39776         (func_emit_tests_Makefile_am): Execute edits that apply to the
39777         Makefile.am being generated.
39778         (func_import): Setup list of Makefile.am edits before emitting the
39779         Makefile.ams, not at the end.
39780         (func_create_testdir): Update.
39781         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39782
39783 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39784
39785         * gnulib-tool (func_import): Store the --tests-base option in the
39786         comment in gnulib-cache.m4.
39787
39788 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39789
39790         * NEWS: Document increased portability that sys_select now provides.
39791
39792         * lib/sys_select.in.h: Install select wrapper.
39793         * lib/sys_socket.in.h: Use more descriptive name when there is no
39794         select wrapper.
39795         * lib/winsock-select.c: New.
39796         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39797         Require gl_HEADER_SYS_SOCKET.
39798         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39799         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39800         * tests/test-sys_select.c: Add functional tests.
39801
39802 2008-09-24  Eric Blake  <ebb9@byu.net>
39803
39804         open, fopen: close fd leak in last patch
39805         * lib/open.c (rpl_open): Close fd before returning error.
39806         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39807         * doc/posix-functions/open.texi (open): Document that Irix also
39808         has the bug.
39809         * doc/posix-functions/fopen.texi (fopen): Likewise.
39810         Reported by Paolo Bonzini.
39811
39812 2008-09-24  Bruno Haible  <bruno@clisp.org>
39813
39814         Ensure that a filename ending in a slash cannot be used to access a
39815         non-directory.
39816         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39817         to check whether it's really a directory.
39818         * lib/fopen.c: Include fcntl.h, unistd.h.
39819         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39820         and fdopen().
39821         * modules/fopen (Depends-on): Add unistd.
39822         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39823         * tests/test-fopen.c (main): Likewise.
39824         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39825         * doc/posix-functions/fopen.texi: Likewise.
39826         Reported by Eric Blake.
39827
39828 2008-09-23  Eric Blake  <ebb9@byu.net>
39829
39830         c-stack: avoid compiler optimizations when provoking overflow
39831         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39832         recursion harder to optimize, to ensure a stack overflow occurs.
39833         * tests/test-c-stack.c (recurse): Likewise.
39834         Borrowed from libsigsegv.
39835
39836         c-stack: work around Irix sigaltstack bug
39837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39838         whether sigaltstack uses wrong end of stack_t (copied in part from
39839         libsigsegv).
39840         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39841         Irix bug, without requiring an over-allocation.
39842         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39843         bug.
39844
39845         fopen: document mingw bug on directories
39846         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39847         not allowing a stream visiting a directory, even though reading
39848         from such a stream is not portable.
39849
39850 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39851
39852         * lib/poll.c: Rewrite.
39853         * modules/poll: Depend on alloca.
39854
39855 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39856
39857         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39858         instead define prototypes for a full set of wrappers.  Ensure
39859         that Cygwin does not use the compatibility code, which is only
39860         for MinGW.
39861         * lib/winsock.c: New.
39862         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39863         * modules/sys_socket: Add lib/winsock.c.
39864
39865         * modules/poll-tests: Add errno and perror.
39866         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39867
39868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39869
39870         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39871
39872 2008-09-23  Bruno Haible  <bruno@clisp.org>
39873
39874         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39875         * doc/glibc-functions/*: Likewise.
39876
39877 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39878
39879         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39880         success.
39881
39882 2008-09-22  Eric Blake  <ebb9@byu.net>
39883             Bruno Haible  <bruno@clisp.org>
39884
39885         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39886         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39887         supply %A but mishandle pseudo-NaN.
39888         Reported by Simon Josefsson.
39889
39890 2008-09-21  Bruno Haible  <bruno@clisp.org>
39891
39892         * tests/test-lock.c (main): Tweak skip message.
39893         * tests/test-tls.c (main): Likewise.
39894
39895 2008-09-21  Bruno Haible  <bruno@clisp.org>
39896
39897         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39898         whether 'struct sigaction' has sa_sigaction here...
39899         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39900         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39901
39902 2008-09-21  Bruno Haible  <bruno@clisp.org>
39903
39904         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39905         section.
39906         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39907         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39908         the new section.
39909         (Support for obsolete systems lacking POSIX:2001): New section.
39910         (String handling <string.h>): Move strdup to the new section.
39911         Suggested by Simon Josefsson and Paolo Bonzini.
39912
39913 2008-09-21  Bruno Haible  <bruno@clisp.org>
39914
39915         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39916         exponents in %e and %g results on 'long double'. Needed for mingw's
39917         improved *printf functions.
39918         * tests/test-vasprintf-posix.c (test_function): Likewise.
39919         * tests/test-snprintf-posix.h (test_function): Likewise.
39920         * tests/test-sprintf-posix.h (test_function): Likewise.
39921         Reported by Eric Blake.
39922
39923 2008-09-21  Bruno Haible  <bruno@clisp.org>
39924
39925         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39926         * tests/test-sprintf-posix.h (test_function): Likewise.
39927
39928 2008-09-21  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/getpass (Depends-on): Add strdup-posix.
39931
39932         New module 'strdup-posix'.
39933         * modules/strdup-posix: New file.
39934         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39935         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39937         REPLACE_STRDUP.
39938         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39939         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39941         strdup-posix.
39942
39943         * modules/strdup (Depends-on): Remove malloc-posix.
39944
39945 2008-09-20  Bruno Haible  <bruno@clisp.org>
39946
39947         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39948         Wildenhues.
39949
39950 2008-09-20  Bruno Haible  <bruno@clisp.org>
39951
39952         Ensure that wint_t gets defined on IRIX 5.3.
39953         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39954         * lib/wctype.in.h (wint_t): Likewise.
39955         (__wctype_wint_t): Remove type.
39956         (isw*): Use wint_t instead of __wctype_wint_t.
39957         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39958         * modules/wchar (Files): Add m4/wint_t.m4.
39959         (Makefile.am): Substitute HAVE_WINT_T.
39960         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39961         * tests/test-wctype.c: Check that wint_t is defined.
39962         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39963         * doc/posix-headers/wctype.texi: Likewise.
39964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39965
39966 2008-09-18  Bruno Haible  <bruno@clisp.org>
39967
39968         * gnulib-tool (func_exit): Update comment.
39969
39970 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39971
39972         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39973         assumes strdup exists and does not depend on strdup to return
39974         ENOMEM on out of memory conditions.
39975
39976 2008-09-18  Bruno Haible  <bruno@clisp.org>
39977
39978         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39979         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39980         digits for the exponent.
39981
39982 2008-09-18  Jim Meyering  <meyering@redhat.com>
39983             Bruno Haible  <bruno@clisp.org>
39984
39985         * lib/vasnprintf.c (decimal_point_char): Define also if
39986         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39987
39988 2008-09-16  Bruno Haible  <bruno@clisp.org>
39989         and Eric Blake  <ebb9@byu.net>
39990
39991         vasnprintf: support Irix 5.3
39992         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39993         that mishandle long double infinity.
39994         Reported by Tom G. Christensen.
39995
39996 2008-09-16  Bruno Haible  <bruno@clisp.org>
39997
39998         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39999         Solaris 9.
40000         * doc/glibc-functions/alphasort.texi: Likewise.
40001         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40002
40003 2008-09-16  Jim Meyering  <meyering@redhat.com>
40004
40005         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40006         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40007         a umask modification leak out of a subshell.  Otherwise, the
40008         opensolaris /bin/sh would be accepted and thus cause unwarranted
40009         failures in the coreutils test suite.
40010
40011 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40012
40013         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40014         to succeed.
40015
40016 2008-09-16  Jim Meyering  <meyering@redhat.com>
40017
40018         avoid spurious test failure when library is built without ACL support
40019         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40020         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40021         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40022         * tests/test-copy-acl.sh: Likewise.
40023
40024 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40025
40026         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40027         based on character occurrence counts.
40028
40029 2008-09-15  Eric Blake  <ebb9@byu.net>
40030
40031         tests: avoid some compiler warnings
40032         * tests/test-memchr.c (main): Pass NULL indirectly.
40033         * tests/test-closein.c (main): Avoid unused variable.
40034
40035 2008-09-15  Bruno Haible  <bruno@clisp.org>
40036
40037         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40038         are missing on OpenBSD 4.0 individually.
40039         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40040
40041 2008-09-15  Bruno Haible  <bruno@clisp.org>
40042
40043         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40044         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40045         * doc/posix-functions/perror.texi: Likewise.
40046         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40047         is missing.
40048         Reported by Eric Blake.
40049
40050         * lib/errno.in.h: Use replacement values >= 2000.
40051         Reported by Eric Blake.
40052
40053 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40054
40055         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40056         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40057         limit.
40058         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40059         compareseq was aborted.
40060
40061 2008-09-14  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40064         yvec_edit_count.
40065         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40066         (fstrcmp_bounded): Simplify result computation accordingly.
40067
40068 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40069
40070         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40071         (fstrcmp): Define in terms of fstrcmp_bounded.
40072         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40073         lower_bound argument.
40074         Return quickly if the result is certainly < lower_bound.
40075         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40076
40077 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40078
40079         * lib/diffseq.h (EARLY_ABORT): New macro.
40080         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40081         evaluates to true.
40082
40083 2008-09-14  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/perror-tests: New file.
40086         * tests/test-perror.sh: New file.
40087         * tests/test-perror.c: New file.
40088
40089         New module 'perror'.
40090         * lib/stdio.in.h (perror): New declaration.
40091         * lib/perror.c: New file.
40092         * m4/perror.m4: New file.
40093         * modules/perror: New file.
40094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40095         * doc/posix-functions/perror.texi: Mention the perror module.
40096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40097         REPLACE_PERROR.
40098         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40099         REPLACE_PERROR.
40100
40101 2008-09-14  Bruno Haible  <bruno@clisp.org>
40102
40103         * modules/stdio (Makefile.am): Reorder to match the order in
40104         lib/stdio.in.h.
40105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40106
40107 2008-09-13  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40110
40111 2008-09-13  Bruno Haible  <bruno@clisp.org>
40112
40113         Extend strerror to cover the added errno values.
40114         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40115         (rpl_strerror): Provide error messages for the added errno values and
40116         for the WSA* values.
40117         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40118         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40119         strerror.
40120         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40121         * modules/strerror (Depends-on): Add errno.
40122         * doc/posix-functions/strerror.texi: Document the change.
40123         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40124         and EOVERFLOW.
40125
40126 2008-09-13  Bruno Haible  <bruno@clisp.org>
40127
40128         * modules/EOVERFLOW: Remove file.
40129         * m4/eoverflow.m4: Remove file.
40130         * modules/EOVERFLOW-tests: Remove file.
40131         * tests/test-EOVERFLOW.c: Remove file.
40132         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40133         * modules/ftell (Depends-on): Likewise.
40134         * modules/getdelim (Depends-on): Likewise.
40135         * modules/getugroups (Depends-on): Likewise.
40136         * modules/poll (Depends-on): Likewise.
40137         * modules/snprintf (Depends-on): Likewise.
40138         * modules/sprintf-posix (Depends-on): Likewise.
40139         * modules/vasnprintf (Depends-on): Likewise.
40140         * modules/vasprintf (Depends-on): Likewise.
40141         * modules/vfprintf-posix (Depends-on): Likewise.
40142         * modules/vsnprintf (Depends-on): Likewise.
40143         * modules/vsprintf-posix (Depends-on): Likewise.
40144         * modules/xvasprintf (Depends-on): Likewise.
40145         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40146         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40147         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40148         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40150         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40151         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40152         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40153         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40154         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40155         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40156         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40157         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40158         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40159         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40160         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40161         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40162         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40163         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40164         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40165         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40166         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40167         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40168         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40169         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40171         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40172         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40173         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40174         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40175         * MODULES.html.sh: Remove EOVERFLOW.
40176         * NEWS: Mention the change.
40177
40178 2008-09-13  Bruno Haible  <bruno@clisp.org>
40179
40180         * modules/errno-tests: New file.
40181         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40182
40183         * lib/errno.in.h: New file.
40184         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40185         * modules/errno: New file.
40186         * doc/posix-headers/errno.texi: Update documentation.
40187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40188
40189 2008-09-13  Bruno Haible  <bruno@clisp.org>
40190
40191         * tests/test-poll.c: Use #if for native Windows, rather than testing
40192         __MSVCRT__.
40193
40194 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40195             Bruno Haible  <bruno@clisp.org>
40196
40197         * lib/glob.c: Don't include <pwd.h> on native Windows.
40198         (WINDOWS32): New macro.
40199         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40200
40201 2008-09-13  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40204         (ETIMEDOUT): Remove macro.
40205         (glthread_cond_timedwait_multithreaded): New declaration.
40206         (glthread_cond_timedwait): Use it.
40207         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40208         (glthread_cond_timedwait_multithreaded): New function.
40209
40210 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40211
40212         * modules/poll-tests: Do not check for io.h.
40213         * tests/test-poll.c: Check for __MSVCRT__ instead.
40214
40215 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40216
40217         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40218         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40219         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40220
40221 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40222
40223         * modules/poll-tests: New.
40224         * tests/test-poll.c: New.
40225
40226 2008-09-12  Eric Blake  <ebb9@byu.net>
40227
40228         frexp: test for NetBSD failure on -0.0
40229         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40230         not all, bugs from NetBSD 3.0 have been fixed.
40231         * doc/posix-functions/frexp.texi (frexp): Document bug.
40232         Reported by Thomas Klausner.
40233
40234         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40235         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40236         literal -0.0.
40237         Reported by Jonathan C. Patschke <jp@centtech.com>.
40238
40239 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40240
40241         * lib/glthread/cond.h: Use dummy implementation also if
40242         USE_WIN32_THREADS.
40243
40244 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40245
40246         * modules/fnmatch-posix (License): Change to LGPLv2+.
40247         * modules/fnmatch-gnu (License): Likewise.
40248
40249 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40250
40251         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40252
40253 2008-09-11  Jim Meyering  <meyering@redhat.com>
40254
40255         * users.txt: Add gtk-vnc.
40256
40257 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40258
40259         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40260         rotate amounts.
40261
40262         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40263         required for 16-bit and 8-bit rotates.
40264         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40265         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40266         UINT8_MAX instead of hard-coded constants.
40267         Suggested by Paul Eggert.
40268
40269 2008-09-07  Bruno Haible  <bruno@clisp.org>
40270
40271         * tests/test-striconveh.c (main): Check behaviour when converting from
40272         UTF-7.
40273
40274         Make striconveh work better with stateful encodings.
40275         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40276         that iconv does not increment the inptr when returning -1/EINVAL.
40277
40278 2008-09-07  Bruno Haible  <bruno@clisp.org>
40279
40280         * build-aux/config.rpath: Update according to libtool-2.2.6.
40281         * build-aux/config.libpath: Likewise.
40282
40283 2008-09-06  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40286         * lib/freadptr.c (freadptr): Likewise.
40287         * lib/freadseek.c (freadptrinc): Likewise.
40288         Reported by Simon Josefsson.
40289
40290 2008-09-06  Bruno Haible  <bruno@clisp.org>
40291
40292         * modules/freadptr (License): Change to LGPLv2+.
40293         * modules/freadseek (License): Likewise.
40294         Suggested by Eric Blake.
40295
40296         * modules/memchr2 (License): Change to LGPLv2+.
40297         Approved by Eric Blake.
40298
40299 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40300             Bruno Haible  <bruno@clisp.org>
40301
40302         Make gnulib-tool work with native 'sed' on AIX.
40303         * gnulib-tool (sed_noop): New variable.
40304         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40305         func_add_or_update, func_create_testdir): Use it to initialize sed
40306         script variables.
40307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40308
40309 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40310             Bruno Haible  <bruno@clisp.org>
40311
40312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40313         also works after #include directives.
40314
40315 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40316
40317         getdate.y: reject an out-of-range timezone value
40318         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40319         the range [-24...+24].  When specified with only one or two digits,
40320         * tests/test-getdate.c: Tests for the fix.
40321         * doc/getdate.texi: Document this change.
40322
40323 2008-09-03  Bruno Haible  <bruno@clisp.org>
40324
40325         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40326
40327 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40328
40329         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40330         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40331         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40332         Blake <ebb9@byu.net>.
40333
40334         * tests/test-bitrotate.c: Add more test vectors.
40335
40336 2008-09-02  Eric Blake  <ebb9@byu.net>
40337
40338         vasnprintf-posix: handle large precision via %.*d
40339         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40340         when handling it ourselves.
40341         * tests/test-vasnprintf-posix.c (test_function): Add test.
40342         * tests/test-snprintf-posix.h (test_function): Likewise.
40343         * tests/test-sprintf-posix.h (test_function): Likewise.
40344         * tests/test-vasprintf-posix.c (test_function): Likewise.
40345         Reported by Alain Guibert.
40346
40347 2008-09-01  Eric Blake  <ebb9@byu.net>
40348
40349         c-stack: make configure-time check more robust
40350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40351         successful sigaction call.
40352         Reported by Tom G. Christensen.
40353
40354 2008-09-01  Bruno Haible  <bruno@clisp.org>
40355
40356         New module 'findprog-lgpl'.
40357         * modules/findprog-lgpl: New file.
40358         * lib/findprog-lgpl.c: New file.
40359         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40360         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40361         to decide whether to use strdup or xstrdup, concatenated_filename or
40362         xconcatenated_filename.
40363
40364 2008-09-01  Bruno Haible  <bruno@clisp.org>
40365
40366         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40367         'xconcat-filename' (GPL).
40368         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40369         (License): Change to LGPLv2+.
40370         * modules/xconcat-filename: New file.
40371         * lib/concat-filename.h (concatenated_filename): Change specification.
40372         (xconcatenated_filename): New declaration.
40373         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40374         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40375         memory situations.
40376         * lib/xconcat-filename.c: New file.
40377         * NEWS: Mention the change.
40378         * lib/findprog.c: Include concat-filename.h, not filename.h.
40379         (find_in_path): Use xconcatenated_filename instead of
40380         concatenated_filename.
40381         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40382         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40383         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40384         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40385         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40386         instead of concatenated_filename.
40387         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40388         (execute_java_class): Use xconcatenated_filename instead of
40389         concatenated_filename.
40390         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40391         * modules/javacomp (Depends-on): Likewise.
40392         * modules/javaexec (Depends-on): Likewise.
40393
40394 2008-09-01  Bruno Haible  <bruno@clisp.org>
40395
40396         Split module 'filename' into 'filename' and 'concat-filename'.
40397         * modules/filename: Keep only lib/filename.h.
40398         (License): Change to LGPLv2+.
40399         * modules/concat-filename: New file, extracted from modules/filename.
40400         * lib/filename.h (concatenated_filename): Remove declaration.
40401         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40402         * lib/concat-filename.c: Include concat-filename.h.
40403         * NEWS: Mention the change.
40404
40405 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40406
40407         * lib/bitrotate.h (rotl8, rotr8): Add.
40408
40409         * modules/bitrotate (configure.ac): Need
40410         AC_REQUIRE([AC_C_INLINE]).
40411         (Description): Mention stdint.h.  Reported by Bruno Haible
40412         <bruno@clisp.org>.
40413
40414         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40415         Paolo Bonzini <bonzini@gnu.org>.
40416
40417 2008-08-31  Bruno Haible  <bruno@clisp.org>
40418
40419         Assume Solaris specific bi-arch conventions on Solaris systems.
40420         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40421         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40423         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40424         like acl_libdirstem.
40425         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40426         acl_libdirstem.
40427         * NEWS: Mention the change.
40428         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40429
40430 2008-08-31  Jim Meyering  <meyering@redhat.com>
40431
40432         * lib/strftime.h: Add comments describing the two added arguments.
40433
40434         remove duplicate #include directives
40435         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40436         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40437
40438 2008-08-31  Bruno Haible  <bruno@clisp.org>
40439
40440         New module 'sigpipe-die'.
40441         * modules/sigpipe-die: New file.
40442         * lib/sigpipe-die.h: New file.
40443         * lib/sigpipe-die.c: New file.
40444         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40445
40446 2008-08-31  Bruno Haible  <bruno@clisp.org>
40447
40448         Don't override previously installed signal handlers.
40449         * lib/fatal-signal.c (saved_sigactions): New variable.
40450         (uninstall_handlers): Reset the signal to the saved handler, not
40451         to SIG_DFL (except when ignored).
40452         (install_handlers): Save the previous handlers.
40453
40454 2008-08-30  Bruno Haible  <bruno@clisp.org>
40455
40456         * gnulib-tool (func_reset_sigpipe): New function.
40457         (func_get_automake_snippet, func_modules_transitive_closure,
40458         func_import): Invoke it before a join command that reads from stdin,
40459         to avoid "echo: write error: Broken pipe" error messages on stderr.
40460         Reported by Sam Steingold <sds@gnu.org>.
40461
40462 2008-08-30  Bruno Haible  <bruno@clisp.org>
40463
40464         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40465         Code copied from m4/open.m4.
40466         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40467         access and the filename ends in a slash. Code copied from lib/open.c.
40468         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40469         * tests/test-fopen.c (main): Check against bug with trailing slash.
40470
40471 2008-08-29  Bruno Haible  <bruno@clisp.org>
40472
40473         Avoid some "gcc -pedantic" warnings.
40474         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40475         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40476         * lib/dirent.in.h: Likewise.
40477         * lib/fcntl.in.h: Likewise.
40478         * lib/float.in.h: Likewise.
40479         * lib/iconv.in.h: Likewise.
40480         * lib/inttypes.in.h: Likewise.
40481         * lib/locale.in.h: Likewise.
40482         * lib/math.in.h: Likewise.
40483         * lib/netinet_in.in.h: Likewise.
40484         * lib/search.in.h: Likewise.
40485         * lib/signal.in.h: Likewise.
40486         * lib/stdarg.in.h: Likewise.
40487         * lib/stdint.in.h: Likewise.
40488         * lib/stdio.in.h: Likewise.
40489         * lib/stdlib.in.h: Likewise.
40490         * lib/string.in.h: Likewise.
40491         * lib/strings.in.h: Likewise.
40492         * lib/sys_select.in.h: Likewise.
40493         * lib/sys_socket.in.h: Likewise.
40494         * lib/sys_stat.in.h: Likewise.
40495         * lib/sys_time.in.h: Likewise.
40496         * lib/sysexits.in.h: Likewise.
40497         * lib/time.in.h: Likewise.
40498         * lib/unistd.in.h: Likewise.
40499         * lib/wchar.in.h: Likewise.
40500         * lib/wctype.in.h: Likewise.
40501         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40502         * modules/fchdir (Makefile.am): Likewise.
40503         * modules/fcntl (Makefile.am): Likewise.
40504         * modules/float (Makefile.am): Likewise.
40505         * modules/iconv_open (Makefile.am): Likewise.
40506         * modules/inttypes (Makefile.am): Likewise.
40507         * modules/locale (Makefile.am): Likewise.
40508         * modules/math (Makefile.am): Likewise.
40509         * modules/netinet_in (Makefile.am): Likewise.
40510         * modules/search (Makefile.am): Likewise.
40511         * modules/signal (Makefile.am): Likewise.
40512         * modules/stdarg (Makefile.am): Likewise.
40513         * modules/stdint (Makefile.am): Likewise.
40514         * modules/stdio (Makefile.am): Likewise.
40515         * modules/stdlib (Makefile.am): Likewise.
40516         * modules/string (Makefile.am): Likewise.
40517         * modules/strings (Makefile.am): Likewise.
40518         * modules/sys_select (Makefile.am): Likewise.
40519         * modules/sys_socket (Makefile.am): Likewise.
40520         * modules/sys_stat (Makefile.am): Likewise.
40521         * modules/sys_time (Makefile.am): Likewise.
40522         * modules/sysexits (Makefile.am): Likewise.
40523         * modules/time (Makefile.am): Likewise.
40524         * modules/unistd (Makefile.am): Likewise.
40525         * modules/wchar (Makefile.am): Likewise.
40526         * modules/wctype (Makefile.am): Likewise.
40527         Reported by Reuben Thomas <rrt@sc3d.org>.
40528
40529 2008-08-29  Bruno Haible  <bruno@clisp.org>
40530
40531         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40532         any more.
40533
40534 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40535
40536         * MODULES.html.sh (Misc): Add bitrotate.
40537
40538         * modules/bitrotate: New file.
40539
40540         * lib/bitrotate.h: New file.
40541
40542         * modules/bitrotate-tests: New file.
40543
40544         * tests/test-bitrotate.c: New file.
40545
40546         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40547         on the bitrotate module.
40548
40549         * lib/arctwo.c: Use new bitrotate module.
40550
40551 2008-08-29  Jim Meyering  <meyering@redhat.com>
40552
40553         bootstrap: merge changes from coreutils
40554         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40555         of copied files.  Remove a kludge, now that this is fixed.
40556         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40557         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40558         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40559
40560 2008-08-29  Bruno Haible  <bruno@clisp.org>
40561
40562         * MODULES.html.sh: Remove --cvs-urls option.
40563
40564 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40565
40566         maint.mk: adjust to file name change
40567         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40568
40569 2008-08-28  Jim Meyering  <meyering@redhat.com>
40570
40571         * modules/getndelim2 (License): Relicense to LGPLv2+.
40572         Approved by Richard Stallman for the version of 1995, and by
40573         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40574
40575 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40576
40577         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40578         dummy if one is not available.  Do not touch them if
40579         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40580         (getc_maybe_unlocked): New.
40581         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40582
40583 2008-08-26  Eric Blake  <ebb9@byu.net>
40584
40585         doc/INSTALL: resync from autoconf
40586         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40587         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40588         moving...
40589         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40590         * INSTALL: Regenerate.
40591         * INSTALL.ISO: New file.
40592         * INSTALL.UTF-8: Likewise.
40593
40594 2008-08-26  Jim Meyering  <meyering@redhat.com>
40595
40596         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40597         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40598         these definitions conditional, so that they may be overridden, too.
40599
40600 2008-08-26  Bruno Haible  <bruno@clisp.org>
40601
40602         Generate INSTALL file variants with prettier quotes.
40603         * doc/Makefile (INSTALL_PRELUDE): New macro.
40604         (INSTALL): Use it.
40605         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40606
40607 2008-08-26  Bruno Haible  <bruno@clisp.org>
40608
40609         Run makeinfo in an English locale.
40610         * doc/Makefile (MAKEINFO): New variable.
40611
40612 2008-08-26  Bruno Haible  <bruno@clisp.org>
40613
40614         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40615         Suggested by Eric Blake.
40616
40617 2008-08-25  Bruno Haible  <bruno@clisp.org>
40618
40619         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40620
40621 2008-08-25  Eric Blake  <ebb9@byu.net>
40622
40623         c-stack: test that stack overflow can be caught
40624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40625         that platform allows handling stack overflow; at least OS/2 EMX
40626         has sigaltstack, but crashes before transferring control to
40627         handler on stack overflow.
40628         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40629         check for HAVE_STACK_OVERFLOW_HANDLING.
40630         Reported by Elbert Pol.
40631
40632 2008-08-25  Bruno Haible  <bruno@clisp.org>
40633
40634         * doc/posix-functions/strftime.texi: Fix description of strftime
40635         module.
40636
40637 2008-08-24  Bruno Haible  <bruno@clisp.org>
40638
40639         * tests/uniwidth/test-uc_width2.c: New file.
40640         * tests/uniwidth/test-uc_width2.sh: New file.
40641         * modules/uniwidth/width-tests (Files): Add the new files.
40642         (TESTS): Add uniwidth/test-uc_width2.sh.
40643         (TESTS_ENVIRONMENT): New variable.
40644         (check_PROGRAMS): Add test-uc_width2.
40645         (test_uc_width2_SOURCES): New variable.
40646
40647         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40648         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40649         not 0x00AB.
40650         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40651
40652 2008-08-22  Eric Blake  <ebb9@byu.net>
40653
40654         test-lock, test-tls: mention why a test is skipped
40655         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40656         skipped.
40657         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40658
40659         count-one-bits: relax license
40660         * modules/count-one-bits (License): Relicense to LGPLv2+.
40661         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40662
40663 2008-08-22  Andreas Schwab  <schwab@suse.de>
40664
40665         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40666         Remove spurious space in assignment.
40667
40668 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40669
40670         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40671         Paul Eggert <eggert@CS.UCLA.EDU>.
40672
40673 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40674
40675         * modules/gettext: Add m4/threadlib.m4.
40676
40677 2008-08-19  Eric Blake  <ebb9@byu.net>
40678
40679         test-c-stack: fix compilation failure on FreeBSD 5.0
40680         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40681         headers before <sys/resource.h>.
40682         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40683         the bug.
40684         Reported by Nelson H. F. Beebe.
40685
40686         strverscmp: migrate from "strverscmp.h" to <string.h>
40687         * modules/string (Makefile.am): Add new hooks.
40688         * modules/strverscmp (Files): Remove strverscmp.h.
40689         (Depends-on): Add string.
40690         (configure.ac): Add indicator.
40691         (Include): Mention new header.
40692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40693         defaults.
40694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40695         results.
40696         * lib/strverscmp.h: Delete.
40697         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40698         * tests/test-strverscmp.c (includes): Adjust client.
40699         * lib/check-version.c (includes): Likewise.
40700         * NEWS: Document the change.
40701
40702         strverscmp: add unit test
40703         * modules/strverscmp-tests: New file.
40704         * tests/test-strverscmp.c: Likewise.
40705
40706 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40707
40708         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40709         regarding Windows crypto stuff, from Mono.
40710
40711 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40712
40713         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40714         if present, for intel RND.  Return error on failures.
40715
40716 2008-08-18  Ben Pfaff  <blp@gnu.org>
40717
40718         gitlog-to-changelog: give better diagnostic for failed pipe-open
40719         * build-aux/gitlog-to-changelog: Improve error message: suggest
40720         that the version of Git may be too old.
40721
40722 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40723
40724         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40725         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40726
40727 2008-08-18  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40730         pthread_in_use().
40731
40732 2008-08-18  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/glthread/threadlib.c: Include <pthread.h>.
40735
40736 2008-08-18  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40739         glthread_recursive_lock_* macros.
40740         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40741         Fix syntax error.
40742
40743 2008-08-18  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/glthread/thread.c: Avoid forcing a context switch right after
40746         thread creation.
40747
40748 2008-08-17  Bruno Haible  <bruno@clisp.org>
40749
40750         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40751         * lib/glthread/thread.h: Provide Win32 specific implementation.
40752         * modules/thread (Files): Add lib/glthread/thread.c.
40753         (Depends-on): Add lock.
40754         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40755
40756 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40757
40758         New module 'yield'.
40759         * modules/yield: New file.
40760         * lib/glthread/yield.h: New file.
40761         * m4/yield.m4: New file.
40762         * MODULES.html.sh (Multithreading): Add yield.
40763
40764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40765
40766         New module 'thread'.
40767         * modules/thread: New file.
40768         * lib/glthread/thread.h: New file.
40769         * m4/thread.m4: New file.
40770         * MODULES.html.sh (Multithreading): Add thread.
40771
40772 2008-08-17  Bruno Haible  <bruno@clisp.org>
40773
40774         * lib/glthread/lock.h: Include <stdlib.h> always.
40775         * lib/glthread/tls.h: Likewise.
40776         * lib/glthread/cond.h: Likewise.
40777
40778 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40779
40780         New module 'cond'.
40781         * modules/cond: New file.
40782         * lib/glthread/cond.h: New file.
40783         * lib/glthread/cond.c: New file.
40784         * m4/cond.m4: New file.
40785         * MODULES.html.sh (Multithreading): Add cond.
40786
40787 2008-08-16  Eric Blake  <ebb9@byu.net>
40788
40789         c-stack: fix regression on Irix 5.3 from 2008-06-21
40790         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40791         sa_sigaction...
40792         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40793         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40794         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40795         * modules/signal (Makefile.am): Use the value.
40796         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40797         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40798         * doc/posix-headers/signal.texi (signal.h): Document this
40799         portability issue.
40800         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40801         Reported by Tom G. Christensen.
40802
40803 2008-08-17  Bruno Haible  <bruno@clisp.org>
40804
40805         New module 'threadlib'.
40806         * modules/threadlib: New file.
40807         * lib/glthread/threadlib.c: New file, extracted from
40808         lib/glthread/lock.c.
40809         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40810         functions.
40811         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40812         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40813         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40814         macros.
40815         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40816         (gl_DISABLE_THREADS): Remove macro.
40817         * modules/lock (Files): Remove build-aux/config.rpath.
40818         (Depends-on): Remove havelib. Add threadlib.
40819         (configure.ac-early): Remove section.
40820         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40821         * modules/tls (Depends-on): Remove lock. Add threadlib.
40822         (Link): New section, copied from threadlib.
40823         * MODULES.html.sh (Multithreading): Add threadlib.
40824
40825 2008-08-14  Bruno Haible  <bruno@clisp.org>
40826
40827         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40828         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40829         glthread_rwlock_unlock, glthread_rwlock_destroy,
40830         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40831         glthread_recursive_lock_destroy): Define as macros always.
40832         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40833         glthread_lock_lock.
40834         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40835         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40836         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40837         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40838         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40839         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40840         (glthread_recursive_lock_lock_func): Renamed from
40841         glthread_recursive_lock_lock.
40842         (glthread_recursive_lock_unlock_func): Renamed from
40843         glthread_recursive_lock_unlock.
40844         (glthread_recursive_lock_destroy_func): Renamed from
40845         glthread_recursive_lock_destroy.
40846
40847 2008-08-14  Bruno Haible  <bruno@clisp.org>
40848
40849         * lib/glthread/lock.h: Renamed from lib/lock.h.
40850         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40851         * lib/glthread/tls.h: Renamed from lib/tls.h.
40852         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40853         * lib/fstrcmp.c: Update includes.
40854         * lib/strsignal.c: Update includes.
40855         * modules/lock (Files, Makefile.am): Update.
40856         (Include): Change to "glthread/lock.h".
40857         * modules/tls (Files, Makefile.am): Update.
40858         (Include): Change to "glthread/tls.h".
40859         * tests/test-lock.c: Update includes.
40860         * tests/test-tls.c: Update includes.
40861         * NEWS: Mention the renamed header files.
40862
40863 2008-08-11  Jim Meyering  <meyering@redhat.com>
40864
40865         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40866
40867 2008-08-11  Eric Blake  <ebb9@byu.net>
40868
40869         test-c-stack: avoid C99-ism
40870         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40871         before statement.
40872         Reported by Alain Guibert.
40873
40874 2008-08-10  Jim Meyering  <meyering@redhat.com>
40875
40876         ensure that return value of uinttostr et al are not ignored
40877         * lib/inttostr.h (__GNUC_PREREQ): Define.
40878         (__attribute_warn_unused_result__): Define.
40879         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40880
40881 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40882
40883         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40884         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40885
40886 2008-08-07  Jim Meyering  <meyering@redhat.com>
40887
40888         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40889
40890         * modules/mkstemp (License): Relicense under LGPLv2+.
40891         * modules/tempname (License): Likewise.
40892
40893 2008-08-06  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/poll.c (poll): Further micro-optimization.
40896
40897 2008-08-06  Jim Meyering  <meyering@redhat.com>
40898
40899         inet_pton.c: use locale-independent tolower
40900         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40901         (inet_pton6): Use c_tolower rather than tolower.
40902         * modules/inet_pton (Depends-on): Add c-ctype.
40903
40904 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40905
40906         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40907         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40908
40909 2008-08-06  Jim Meyering  <meyering@redhat.com>
40910
40911         * modules/inet_pton (License): Relicense under LGPLv2+.
40912
40913 2008-08-03  Bruno Haible  <bruno@clisp.org>
40914
40915         Additional non-aborting API for lock and tls.
40916         * lib/lock.h: Include <errno.h>.
40917         (glthread_lock_init): New macro/function.
40918         (gl_lock_init): Define as wrapper around glthread_lock_init.
40919         (glthread_lock_lock): New macro/function.
40920         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40921         (glthread_lock_unlock): New macro/function.
40922         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40923         (glthread_lock_destroy): New macro/function.
40924         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40925         (glthread_rwlock_init): New macro/function.
40926         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40927         (glthread_rwlock_rdlock): New macro/function.
40928         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40929         (glthread_rwlock_wrlock): New macro/function.
40930         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40931         (glthread_rwlock_unlock): New macro/function.
40932         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40933         (glthread_rwlock_destroy): New macro/function.
40934         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40935         (glthread_recursive_lock_init): New macro/function.
40936         (gl_recursive_lock_init): Define as wrapper around
40937         glthread_recursive_lock_init.
40938         (glthread_recursive_lock_lock): New macro/function.
40939         (gl_recursive_lock_lock): Define as wrapper around
40940         glthread_recursive_lock_lock.
40941         (glthread_recursive_lock_unlock): New macro/function.
40942         (gl_recursive_lock_unlock): Define as wrapper around
40943         glthread_recursive_lock_unlock.
40944         (glthread_recursive_lock_destroy): New macro/function.
40945         (gl_recursive_lock_destroy): Define as wrapper around
40946         glthread_recursive_lock_destroy.
40947         (glthread_once): New macro/function.
40948         (gl_once): Define as wrapper around glthread_once.
40949         Update function declarations.
40950         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40951         glthread_rwlock_init. Return error code.
40952         (glthread_rwlock_rdlock_multithreaded): Renamed from
40953         glthread_rwlock_rdlock. Return error code.
40954         (glthread_rwlock_wrlock_multithreaded): Renamed from
40955         glthread_rwlock_wrlock. Return error code.
40956         (glthread_rwlock_unlock_multithreaded): Renamed from
40957         glthread_rwlock_unlock. Return error code.
40958         (glthread_rwlock_destroy_multithreaded): Renamed from
40959         glthread_rwlock_destroy. Return error code.
40960         (glthread_recursive_lock_init_multithreaded): Renamed from
40961         glthread_recursive_lock_init. Return error code.
40962         (glthread_recursive_lock_lock_multithreaded): Renamed from
40963         glthread_recursive_lock_lock. Return error code.
40964         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40965         glthread_recursive_lock_unlock. Return error code.
40966         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40967         glthread_recursive_lock_destroy. Return error code.
40968         (glthread_once_call): Make static.
40969         (glthread_once_multithreaded): Renamed from glthread_once.
40970         * lib/tls.h: Include <errno.h>.
40971         (glthread_tls_key_init): New macro/function.
40972         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40973         (glthread_tls_set): New macro/function.
40974         (gl_tls_set): Define as wrapper around glthread_tls_set.
40975         (glthread_tls_key_destroy): New macro/function.
40976         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40977         Update function declarations.
40978         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40979         glthread_tls_get.
40980         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40981
40982 2008-08-04  Eric Blake  <ebb9@byu.net>
40983
40984         gnumakefile: use space, not TAB, outside of targets
40985         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40986
40987 2008-08-02  Jim Meyering  <meyering@redhat.com>
40988
40989         getdate.y: avoid locale-dependent date parsing failure
40990         In Turkish locales, getdate would fail to recognize keywords
40991         containing a lowercase "i".  The solution is not to rely on
40992         locale-sensitive case-conversion.
40993         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40994         (lookup_word): Use c_toupper in place of toupper.
40995         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40996         Reported by Vefa Bicakci <bicave@superonline.com> in
40997         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40998         * modules/getdate (Depends-on): Add c-ctype.
40999
41000 2008-08-02  Bruno Haible  <bruno@clisp.org>
41001
41002         * gnulib-tool (func_import): When updating or creating a .gitignore
41003         file, prepend each added line with a slash, and ignore leading slashes
41004         from the existing lines.
41005         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41006
41007 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41008
41009         Portability fix for GNU make 3.79.1.
41010         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41011         versions do not understand.
41012
41013 2008-08-01  Bruno Haible  <bruno@clisp.org>
41014
41015         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41016         * tests/test-isnanf.h (zero): New variable.
41017         (main): Avoid literal -0.0f.
41018         * tests/test-isnand.h (zero): New variable.
41019         (main): Avoid literal -0.0.
41020         * tests/test-isnanl.h (zero): New variable.
41021         (main): Avoid literal -0.0L.
41022         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41023         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41024         -0.0, -0.0L.
41025         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41026         (test_signbitd): Avoid literal -0.0.
41027         (test_signbitl): Avoid literal -0.0L.
41028         * tests/test-ceilf1.c (zero): New variable.
41029         (main): Avoid literal -0.0f.
41030         * tests/test-ceill.c (zero): New variable.
41031         (main): Avoid literal -0.0L.
41032         * tests/test-floorf1.c (zero): New variable.
41033         (main): Avoid literal -0.0f.
41034         * tests/test-floorl.c (zero): New variable.
41035         (main): Avoid literal -0.0L.
41036         * tests/test-roundf1.c (zero): New variable.
41037         (main): Avoid literal -0.0f.
41038         * tests/test-round1.c (zero): New variable.
41039         (main): Avoid literal -0.0.
41040         * tests/test-roundl.c (zero): New variable.
41041         (main): Avoid literal -0.0L.
41042         * tests/test-truncf1.c (zero): New variable.
41043         (main): Avoid literal -0.0f.
41044         * tests/test-trunc1.c (zero): New variable.
41045         (main): Avoid literal -0.0.
41046         * tests/test-truncl.c (zero): New variable.
41047         (main): Avoid literal -0.0L.
41048         * tests/test-frexp.c (zero): New variable.
41049         (main): Avoid literal -0.0.
41050         * tests/test-frexpl.c (zero): New variable.
41051         (main): Avoid literal -0.0L.
41052         * tests/test-ldexpl.c (zero): New variable.
41053         (main): Avoid literal -0.0L.
41054         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41055         (zerod, zerol): New variables.
41056         (test_function): Avoid literals -0.0, -0.0L.
41057         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41058         (zerod, zerol): New variables.
41059         (test_function): Avoid literals -0.0, -0.0L.
41060         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41061         (zerod, zerol): New variables.
41062         (test_function): Avoid literals -0.0, -0.0L.
41063         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41064         (zerod, zerol): New variables.
41065         (test_function): Avoid literals -0.0, -0.0L.
41066         * tests/test-strtod.c (zero): New variable.
41067         (main): Avoid literal -0.0.
41068         Reported by Jonathan C. Patschke <jp@centtech.com>.
41069
41070 2008-07-31  Jim Meyering  <meyering@redhat.com>
41071
41072         sha256.h: correct definition of SHA224_DIGEST_SIZE
41073         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41074         Reported by Paulie Pena IV <paulie4@gmail.com>.
41075         Define as 224 / 8, rather than as a literal.
41076         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41077         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41078         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41079
41080 2008-07-31  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41083         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41084         Reported by Jonathan Patschke <jp@centtech.com>.
41085
41086 2008-07-31  Bruno Haible  <bruno@clisp.org>
41087
41088         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41089         Reported by Paolo Bonzini <bonzini@gnu.org>.
41090
41091 2008-07-30  Eric Blake  <ebb9@byu.net>
41092
41093         test-strtod: allow compilation without -lm
41094         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41095         Reported by Dennis Clarke <blastwave@gmail.com>.
41096
41097 2008-07-28  Jim Meyering  <meyering@redhat.com>
41098
41099         bootstrap: work also when there are no .po files in po/
41100         * build-aux/bootstrap (update_po_files): Complete the change
41101         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41102
41103 2008-07-27  Jim Meyering  <meyering@redhat.com>
41104
41105         * users.txt: Add zile.
41106
41107 2008-07-26  Ben Pfaff  <blp@gnu.org>
41108
41109         Add missing dependencies on new m4/exponent[fdl].m4 files.
41110         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41111         * modules/isnand-nolibm: Add m4/exponentd.m4.
41112         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41113         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41114         m4/isnan[fdl].m4, because the macros actually used moved.
41115         Reported by Jim Meyering.
41116
41117 2008-07-14  Ben Pfaff  <blp@gnu.org>
41118
41119         Add isinf module.
41120         * lib/isinf.c: New file.
41121         * lib/math.in.h: Define isinf macro if we have decided to replace
41122         it.
41123         * m4/isinf.m4: New file.
41124         * m4/math_h.m4: Initialize and substitute variables for isinf
41125         module.
41126         * modules/isinf: New file.
41127         * modules/isinf-tests: New file.
41128         * modules/math: Add substitutions for new module.
41129         * tests/test-isinf.c: New file.
41130         * doc/posix-functions/isinf.texi: Mention new module.
41131         * MODULES.html.sh: Mention new module.
41132
41133 2008-07-14  Ben Pfaff  <blp@gnu.org>
41134
41135         Factor out some macros for use by additional modules.
41136         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41137         exponentf.m4.
41138         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41139         exponentd.m4.
41140         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41141         file exponentl.m4.
41142         * m4/exponentf.m4: New file.
41143         * m4/exponentd.m4: New file.
41144         * m4/exponentl.m4: New file.
41145         * modules/isnanf: Use new file m4/exponentf.m4.
41146         * modules/isnand: Use new file m4/exponentd.m4.
41147         * modules/isnanl: Use new file m4/exponentl.m4.
41148
41149 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41150
41151         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41152         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41153         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41154         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41155
41156         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41157         readlink on platforms without PATH_MAX.
41158
41159 2008-07-21  Eric Blake  <ebb9@byu.net>
41160
41161         Warn, not fail, on stale version.
41162         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41163
41164         Don't allow installation with stale devel version number.
41165         * top/GNUmakefile (_is-install-target): New macro.
41166         (_curr-ver): Forbid installation with stale version number.
41167
41168 2008-07-20  Bruno Haible  <bruno@clisp.org>
41169
41170         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41171         TESTS_ENVIRONMENT.
41172         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41173
41174 2008-07-20  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/c-stack.h (c_stack_action): Add documentation.
41177         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41178
41179 2008-07-20  Bruno Haible  <bruno@clisp.org>
41180
41181         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41182         * modules/readlink (License): Likewise.
41183
41184 2008-07-17  Eric Blake  <ebb9@byu.net>
41185
41186         * modules/c-stack (Link): Fix typo.
41187
41188         Make c-stack use libsigsegv, when available.
41189         * modules/c-stack (Depends-on): Add libsigsegv.
41190         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41191         needed.
41192         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41193         (segv_handler, overflow_handler, c_stack_action)
41194         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41195         implementation when libsigsegv is available, but only when using
41196         the library is necessary.
41197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41198         comment, explaining why XSI check fails on Linux.
41199         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41200         * tests/test-c-stack2.sh: Tweak skip message.
41201         * NEWS: Document new link-time requirements.
41202
41203 2008-07-16  Eric Blake  <ebb9@byu.net>
41204
41205         c-stack: Expose false positives when not using libsigsegv.
41206         * modules/c-stack-tests (Files): Expand test.
41207         * tests/test-c-stack.c (main): Add means to conditionally trigger
41208         non-overflow SIGSEGV.
41209         * tests/test-c-stack2.sh: New file.
41210
41211 2008-07-14  Bruno Haible  <bruno@clisp.org>
41212
41213         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41214         Reported by Eric Blake.
41215
41216 2008-07-14  Sam Steingold  <sds@gnu.org>
41217             Bruno Haible  <bruno@clisp.org>
41218
41219         New module libsigsegv.
41220         * modules/libsigsegv: New file.
41221         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41222         modifications.
41223         * MODULES.html.sh (Signal handling): New section.
41224
41225 2008-07-14  Bruno Haible  <bruno@clisp.org>
41226
41227         * modules/unictype/ctype-* (Description): Add the word "function".
41228         Improves the resulting doc in MODULES.html.
41229
41230 2008-07-12  Ben Pfaff  <blp@gnu.org>
41231
41232         Add longlong module.
41233         * modules/longlong: New file.
41234
41235 2008-07-12  Bruno Haible  <bruno@clisp.org>
41236
41237         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41238         to empty.
41239
41240 2008-07-10  Ben Pfaff  <blp@gnu.org>
41241
41242         Add isnan module.
41243         * doc/posix-functions/isnan.texi: Mention new module.
41244         * lib/math.in.h: Define isnan macro if we have decided to replace
41245         it.
41246         * m4/isnan.m4: New file.
41247         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41248         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41249         also.
41250         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41251         redundancy.
41252         * m4/math_h.m4: Initialize and substitute variables for isnan
41253         module.
41254         * modules/isnan: New file.
41255         * modules/isnan-tests: New file.
41256         * modules/math: Add substitutions for new module.
41257         * tests/test-isnan.c: New file.
41258         * MODULES.html.sh: Mention new module.
41259
41260 2008-07-10  Ben Pfaff  <blp@gnu.org>
41261
41262         Add isnanf module.
41263         * lib/isnanf.m4: New file.
41264         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41265         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41266         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41267         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41268         * modules/isnanf: New file.
41269         * modules/isnanf-tests: New file.
41270         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41271         files.
41272         * tests/test-isnanf-nolibm.c: factored most of its contents into
41273         new file tests/test-isnanf.h.
41274         * tests/test-isnanf.h: New file.
41275         * tests/test-isnanf.c: New file.
41276         * MODULES.html.sh: Mention new module.
41277         * doc/glibc-functions/isnanf.texi: Mention new module.
41278
41279 2008-07-10  Ben Pfaff  <blp@gnu.org>
41280
41281         Add isnand module.
41282         * lib/isnand.h: New file.
41283         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41284         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41285         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41286         functionality also.
41287         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41288         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41289         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41290         * modules/isnand: New file.
41291         * modules/isnand-tests: New file.
41292         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41293         files.
41294         * tests/test-isnand-nolibm.c: factored most of its contents into
41295         new file tests/test-isnand.h.
41296         * tests/test-isnand.h: New file.
41297         * tests/test-isnand.c: New file.
41298         * MODULES.html.sh: Mention new module.
41299
41300 2008-07-10  Ben Pfaff  <blp@gnu.org>
41301
41302         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41303         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41304         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41305         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41306         * modules/isnanf-nolibm: Update references to renamed files.
41307         * modules/isnand-nolibm: Likewise.
41308         * modules/isnanf-nolibm-tests: Likewise.
41309         * modules/isnand-nolibm-tests: Likewise.
41310         * lib/frexp.c: Likewise.
41311         * lib/isfinite.c: Likewise.
41312         * lib/signbitd.c: Likewise.
41313         * lib/signbitf.c: Likewise.
41314         * lib/vasnprintf.c: Likewise.
41315         * tests/test-ceilf1.c: Likewise.
41316         * tests/test-ceilf2.c: Likewise.
41317         * tests/test-floorf1.c: Likewise.
41318         * tests/test-floorf2.c: Likewise.
41319         * tests/test-frexp.c: Likewise.
41320         * tests/test-round1.c: Likewise.
41321         * tests/test-round2.c: Likewise.
41322         * tests/test-roundf1.c: Likewise.
41323         * tests/test-strtod.c: Likewise.
41324         * tests/test-trunc1.c: Likewise.
41325         * tests/test-trunc2.c: Likewise.
41326         * tests/test-truncf1.c: Likewise.
41327         * tests/test-truncf2.c: Likewise.
41328         * NEWS: Mention the renamed header files.
41329
41330 2008-07-11  Jim Meyering  <meyering@redhat.com>
41331
41332         vc-list-files: make the last-resort awk code more portable
41333         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41334         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41335         does not support it.
41336
41337 2008-07-10  Eric Blake  <ebb9@byu.net>
41338
41339         Work with tar's bootstrap.
41340         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41341         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41342         an m4 comment.
41343
41344 2008-07-09  Jim Meyering  <meyering@redhat.com>
41345
41346         posix-shell.m4: fix typo that made this test malfunction
41347         * m4/posix-shell.m4: Remove capitalization in variable name.
41348
41349 2008-07-08  Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/onceonly.m4: Update comments.
41352         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41353
41354 2008-07-04  Jim Meyering  <meyering@redhat.com>
41355
41356         * users.txt: Add vc-dwim.
41357         (bison, coreutils): Use the gitweb URL.
41358
41359 2008-07-03  Jim Meyering  <meyering@redhat.com>
41360
41361         * users.txt: Add libffcall.  From Sam Steingold.
41362
41363 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41364
41365         getdate.y: do not ignore TZ with relative day, month or year offset
41366         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41367         relative-date-handling, since otherwise, the latter would clobber the
41368         sole output (an updated Start value) of the tz-handling block.
41369         * tests/test-getdate.c: Tests for the fix
41370
41371 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41372
41373         Recognize 'foo_LIBRARIES += libgnu.a'.
41374         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41375         makefile snippet has already specified an installation location,
41376         also using '+='.
41377
41378 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41379
41380         getdate.y: factor out common actions
41381         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41382         Use them in place of open-coded actions.
41383
41384 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41385
41386         Add self-test for getdate module.
41387         * modules/getdate-tests: New file.
41388         * tests/test-getdate.c: New file.
41389
41390 2008-06-29  Bruno Haible  <bruno@clisp.org>
41391
41392         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41393         .gitignore.
41394         Reported by Sylvain Beucler <beuc@beuc.net>.
41395
41396 2008-06-29  Bruno Haible  <bruno@clisp.org>
41397
41398         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41399         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41400
41401 2008-06-29  Bruno Haible  <bruno@clisp.org>
41402
41403         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41404         EXTRA_DIST.
41405         Reported by Sylvain Beucler <beuc@beuc.net>.
41406
41407 2008-06-26  Jim Meyering  <meyering@redhat.com>
41408
41409         make several modules depend on the "open" module
41410         This provides slightly increased consistency when opening-for-write
41411         the name of a non-directory spelled with a trailing slash.
41412         * modules/chdir-safer: Likewise.
41413         * modules/chown: Likewise.
41414         * modules/clean-temp: Likewise.
41415         * modules/copy-file: Likewise.
41416         * modules/fchdir: Likewise.
41417         * modules/fcntl-safer: Likewise.
41418         * modules/pipe: Likewise.
41419         * modules/utime: Likewise.
41420         Prompted by Eric Blake and Bruno Haible.
41421
41422 2008-06-24  Andreas Schwab  <schwab@suse.de>
41423
41424         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41425         literals can be used as initializers for global variables.
41426
41427 2008-06-23  Eric Blake  <ebb9@byu.net>
41428
41429         Make gnulib-cache.m4 easier to diff.
41430         * gnulib-tool (func_import): Allow newlines when reading cached
41431         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41432
41433 2008-06-23  Bruno Haible  <bruno@clisp.org>
41434
41435         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41436         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41437         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41438         m4/signalblocking.m4.
41439         (gl_PREREQ_SIGACTION): Don't invoke it.
41440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41441         gl_PREREQ_SIG_HANDLER_H.
41442         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41443         Don't check for sigaction here.
41444
41445 2008-06-23  Bruno Haible  <bruno@clisp.org>
41446
41447         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41448         (install_handlers): Don't set the SA_RESETHAND flag.
41449
41450 2008-06-23  Bruno Haible  <bruno@clisp.org>
41451
41452         * m4/sigaction.m4: Comment fixes.
41453         * lib/signal.in.h: Likewise.
41454
41455 2008-06-23  Eric Blake  <ebb9@byu.net>
41456
41457         Fix typo.
41458         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41459
41460         Avoid SA_ namespace.
41461         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41462         Reported by Ralf Wildenhues.
41463
41464         Avoid test failure due to SA_RESTORER.
41465         * tests/test-sigaction.c (SA_MASK): New macro.
41466         (main): Avoid failing due to extension flags being set.
41467         Reported by Jim Meyering.
41468
41469         Revert use of sig-handler.h in sigprocmask.c.
41470         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41471         it requires the existence of struct sigaction.
41472         * lib/sigprocmask.c (handler_t): Restore typedef.
41473         (rpl_signal, old_handlers): Use local type.
41474
41475 2008-06-22  Bruno Haible  <bruno@clisp.org>
41476
41477         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41478         conditionally.
41479         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41480
41481 2008-06-22  Bruno Haible  <bruno@clisp.org>
41482
41483         * doc/posix-functions/siginterrupt.texi: Move note.
41484
41485         * lib/signal.in.h (SA_RESTART): New macro.
41486         * lib/sigaction.c: Update comment.
41487
41488         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41489
41490         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41491         (gl_PREREQ_SIGPROCMASK): Invoke it.
41492         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41493
41494         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41495
41496         * lib/sigprocmask.c: Update a comment.
41497
41498 2008-06-21  Eric Blake  <ebb9@byu.net>
41499
41500         Use sigaction module rather than signal().
41501         * modules/c-stack (Depends-on): Add sigaction.
41502         * modules/fatal-signal (Depends-on): Likewise.
41503         * modules/nanosleep (Depends-on): Likewise.
41504         * modules/sigprocmask (Files): Add sig-handler.h.
41505         * modules/sigaction (Files): Likewise.
41506         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41507         Eggert.
41508         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41509         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41510         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41511         (init_fatal_signals): Likewise.
41512         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41513         (siginterrupt): Delete fallback.
41514         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41515         instead.
41516         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41517         siginterrupt.
41518
41519         New module sigaction, for mingw.
41520         * modules/sigaction: New module...
41521         * modules/sigaction-tests: ...and its test.
41522         * m4/sigaction.m4: New file.
41523         * lib/sigaction.c: Likewise.
41524         * tests/test-sigaction.c: Likewise.
41525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41526         * modules/signal (Makefile.am): Likewise.
41527         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41528         needed.
41529         * doc/posix-headers/signal.texi (signal.h): Mention provided
41530         types.
41531         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41532         that sigaction is preferable.
41533         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41534         module.
41535         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41536         sigaction.
41537
41538         Improve robustness of sigprocmask by overriding signal.
41539         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41540         is in use.
41541         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41542         (SIGKILL, SIGSTOP): Provide fallbacks.
41543         (rpl_signal): Implement.
41544         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41545         signal can be called inside handlers.
41546
41547         Fix nanosleep module on mingw.
41548         * modules/nanosleep (Depends-on): Add sys_select.
41549         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41550
41551         Fix licensing of sigprocmask.
41552         * modules/raise (License): Relicense as LGPL.
41553
41554 2008-06-21  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41557         result if it contains question marks.
41558         Reported by Michael Geng <linux@michaelgeng.de>.
41559
41560 2008-06-19  Bruno Haible  <bruno@clisp.org>
41561
41562         Fix CVS-ism.
41563         * doc/gnulib.texi: Include updated-stamp.texi.
41564         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41565         (updated-stamp.texi): New rule.
41566         (gnulib.info): Depend on it.
41567         * doc/.gitignore: Add updated-stamp.texi.
41568         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41569
41570 2008-06-19  Bruno Haible  <bruno@clisp.org>
41571
41572         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41573         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41574
41575 2008-06-19  Eric Blake  <ebb9@byu.net>
41576
41577         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41578         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41579         Reported by Stepan Kasal.
41580
41581 2008-06-18  Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41584         Reported by Eric Blake.
41585
41586 2008-06-18  Eric Blake  <ebb9@byu.net>
41587
41588         Work around cygwin 1.5.25 strsignal bug.
41589         * tests/test-strsignal.c: Allow for const char *.
41590         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41591
41592 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41593
41594         * users.txt: Update URL to article and add author/date
41595         information.
41596
41597 2008-06-17  Bruno Haible  <bruno@clisp.org>
41598
41599         New macro gl_DISABLE_THREADS.
41600         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41601         if the user did not pass --enable-threads or --disable-threads option.
41602         (gl_DISABLE_THREADS): New macro.
41603         Reported by Eric Blake <ebb9@byu.net>.
41604
41605 2008-06-17  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41608         when the macro ignores it.
41609         Based on a patch by Eric Blake <ebb9@byu.net>.
41610
41611 2008-06-17  Bruno Haible  <bruno@clisp.org>
41612
41613         * modules/tls (License): Change to LGPLv2+.
41614         Reported by Eric Blake.
41615
41616 2008-06-17  Eric Blake  <ebb9@byu.net>
41617
41618         Simplify c-stack prerequisites.
41619         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41621         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41622         check.
41623         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41624         <sys/resource.h>.
41625
41626         Move c-stack test into testsuite.
41627         * modules/c-stack-tests: New file.
41628         * lib/c-stack.c [DEBUG]: Move test program...
41629         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41630         fail test if sigaltstack is lacking.
41631         * tests/test-c-stack.sh: New driver file.
41632
41633 2008-06-16  Eric Blake  <ebb9@byu.net>
41634
41635         Use raise module consistently.
41636         * modules/fatal-signal (Depends-on): Add raise.
41637         * modules/sigprocmask (Depends-on): Likewise.
41638         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41639         * lib/sigprocmask.c (sigprocmask): Likewise.
41640         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41641         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41642
41643         Fix compliance bug in sigpending.
41644         * lib/sigprocmask.c (sigpending): Return pending array via
41645         parameter, not return value.
41646
41647 2008-06-14  Eric Blake  <ebb9@byu.net>
41648
41649         Improve obstack-printf test code.
41650         * tests/test-obstack-printf.c (test_function): Fix comment, and
41651         simplify usage of obstack_* in macros.  Add a test for coverage.
41652         Reported by Bruno Haible.
41653
41654 2008-06-14  Bruno Haible  <bruno@clisp.org>
41655
41656         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41657         array size as a constant, not as a const variable.
41658         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41659         AC_USE_SYSTEM_EXTENSIONS.
41660         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41661         Test whether the obstack_printf function actually exists.
41662         * modules/obstack-printf (Depends-on): Add extensions.
41663         (Include): Remove obstack.h.
41664         * modules/obstack-printf-posix (Depends-on): Add extensions.
41665         (Include): Remove obstack.h.
41666
41667 2008-06-13  Eric Blake  <ebb9@byu.net>
41668
41669         Add obstack-printf and obstack-printf-posix modules.
41670         * modules/obstack-printf: New file.
41671         * modules/obstack-printf-posix: Likewise.
41672         * MODULES.html.sh (Misc): Mention them.
41673         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41674         Likewise.
41675         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41676         Likewise.
41677         * modules/stdio (Makefile.am): Accomodate new modules.
41678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41679         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41680         Declare.
41681         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41682         functions.
41683         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41684         (gl_REPLACE_OBSTACK_PRINTF): New macros
41685         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41686         * tests/test-obstack-printf.c: New file.
41687         * modules/obstack-printf-tests: Likewise.
41688         * modules/obstack-printf-posix-tests: Likewise.
41689
41690 2008-06-11  Bruno Haible  <bruno@clisp.org>
41691
41692         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41693         * lib/open.c: Include errno.h.
41694         (open): Fail when attempting to write to a file that has a trailing
41695         slash.
41696         * tests/test-open.c (main): Test against trailing slash bug.
41697         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41698
41699 2008-06-10  Bruno Haible  <bruno@clisp.org>
41700
41701         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41702         for $? to work inside the trap command, with various /bin/sh-s.
41703         * tests/test-vc-list-files-cvs.sh: Likewise.
41704
41705 2008-06-10  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/acl-internal.h: Don't include gettext.h here.
41708         * lib/set-mode-acl.c: Include gettext.h here.
41709         * lib/copy-acl.c: Likewise.
41710
41711 2008-06-10  Bruno Haible  <bruno@clisp.org>
41712
41713         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41714         * lib/wait-process.c (wait_subprocess): Likewise.
41715         * lib/execute.h (execute): Add termsigp argument.
41716         * lib/execute.c (execute): Likewise.
41717         * lib/csharpcomp.c (compile_csharp_using_pnet,
41718         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41719         * lib/csharpexec.c (execute_csharp_using_pnet,
41720         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41721         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41722         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41723         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41724         is_jikes_present): Update.
41725         * lib/javaexec.c (execute_java_class): Update.
41726         * lib/javaversion.c (execute_and_read_line): Update.
41727         * NEWS: Document the changes.
41728         Reported by Eric Blake.
41729
41730 2008-06-10  Eric Blake  <ebb9@byu.net>
41731
41732         Add missing include.
41733         * tests/test-strstr.c (includes): Add <signal.h>.
41734         * tests/test-strcasestr.c (includes): Likewise.
41735         * tests/test-memmem.c (includes): Likewise.
41736
41737 2008-06-10  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/wait-process.c (wait_subprocess): Add an assertion.
41740
41741 2008-06-10  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41744
41745 2008-06-10  Bruno Haible  <bruno@clisp.org>
41746
41747         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41748         using alarm().
41749         * tests/test-strcasestr.c (main): Likewise.
41750         * tests/test-strstr.c (main): Likewise.
41751
41752 2008-06-09  Bruno Haible  <bruno@clisp.org>
41753
41754         Work around the Solaris 10 ACE ACLs ABI change.
41755         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41756         declare if ACL_NO_TRIVIAL is present.
41757         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41758         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41759         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41760         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41761         define if ACL_NO_TRIVIAL is present.
41762         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41763         and use the current ABI.
41764         (file_has_acl): Use same #if condition as elsewhere.
41765         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41766         in use, and use the current ABI.
41767         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41768         Reported by Jim Meyering.
41769
41770 2008-06-09  Eric Blake  <ebb9@byu.net>
41771
41772         Work around environments that (stupidly) ignore SIGALRM.
41773         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41774         before using alarm().
41775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41777         Reported by Ian Beckwith <ianb@erislabs.net>.
41778
41779         Produce autobuild blurb earlier in log.
41780         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41781
41782 2008-06-09  Jim Meyering  <meyering@redhat.com>
41783         and OndÅ™ej Vašík  <ovasik@redhat.com>
41784
41785         utimens.c: correct kernel bug work-around
41786         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41787         failure, not success, and the kernel bug we're trying to work
41788         around affects not just the utimensat call, but also the fallback
41789         futimens call.
41790         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41791         not success.
41792         [HAVE_FUTIMENS]: Use the same work-around, here.
41793
41794 2008-06-09  Jim Meyering  <meyering@redhat.com>
41795
41796         add more guards around definition of ACE_-related code
41797         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41798         ALLOW and ACE_OWNER are also defined.
41799
41800 2008-06-08  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/acl-internal.h: Add me as co-author.
41803         * lib/file-has-acl.c: Likewise.
41804         * lib/set-mode-acl.c: Likewise.
41805         * lib/copy-acl.c: Likewise.
41806
41807 2008-06-08  Bruno Haible  <bruno@clisp.org>
41808
41809         Add support for AIX ACLs.
41810         * lib/acl-internal.h (acl_nontrivial): New declaration.
41811         * lib/file-has-acl.c (acl_nontrivial): New function.
41812         (file_has_acl): Add implementation using AIX 4 ACL API.
41813         * lib/set-mode-acl.c (qset_acl): Likewise.
41814         * lib/copy-acl.c (qcopy_acl): Likewise.
41815
41816 2008-06-08  Bruno Haible  <bruno@clisp.org>
41817
41818         Add support for HP-UX ACLs.
41819         * lib/acl-internal.h (acl_nontrivial): New declaration.
41820         * lib/file-has-acl.c (acl_nontrivial): New function.
41821         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41822         * lib/set-mode-acl.c (qset_acl): Likewise.
41823         * lib/copy-acl.c (qcopy_acl): Likewise.
41824
41825 2008-06-08  Bruno Haible  <bruno@clisp.org>
41826
41827         Add support for Cygwin ACLs.
41828         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41829         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41830         the chmod_or_fchmod call.
41831         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41832
41833 2008-06-08  Bruno Haible  <bruno@clisp.org>
41834
41835         Fix bug with setuid modes in Solaris 10+ code.
41836         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41837         succeeded, when the mode contains some special bits.
41838
41839 2008-06-08  Bruno Haible  <bruno@clisp.org>
41840
41841         Add support for Solaris 7..10 ACLs.
41842         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41843         declarations.
41844         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41845         functions.
41846         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41847         * lib/set-mode-acl.c (qset_acl): Likewise.
41848         * lib/copy-acl.c (qcopy_acl): Likewise.
41849
41850 2008-06-08  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41853         declaration.
41854         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41855         (acl_access_nontrivial): Remove MacOS X case.
41856         (file_has_acl): Use acl_extended_nontrivial.
41857         * lib/copy-acl.c (qcopy_acl): Likewise.
41858
41859 2008-06-08  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41862
41863 2008-06-08  Jim Meyering  <meyering@redhat.com>
41864
41865         * modules/acl (Maintainer): Add Bruno Haible.
41866
41867 2008-06-07  Bruno Haible  <bruno@clisp.org>
41868
41869         Improve support for Tru64 ACLs.
41870         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41871         ACL on OSF/1.
41872
41873 2008-06-07  Bruno Haible  <bruno@clisp.org>
41874
41875         Add support for MacOS X ACLs.
41876         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41877         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41878         * lib/set-mode-acl.c (qset_acl): Likewise.
41879         * lib/copy-acl.c (qcopy_acl): Likewise.
41880
41881 2008-06-07  Bruno Haible  <bruno@clisp.org>
41882
41883         Fix memory leak introduced on 2008-05-22.
41884         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41885         use.
41886
41887 2008-06-07  Bruno Haible  <bruno@clisp.org>
41888
41889         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41890         to construct an empty ACL.
41891
41892 2008-06-07  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41895         precisely.
41896         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41897
41898 2008-06-07  Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41901         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41902
41903 2008-06-07  Bruno Haible  <bruno@clisp.org>
41904
41905         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41906         regardless of POSIX.
41907         * doc/posix-functions/_longjmp.texi: Likewise.
41908         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41909         SystemV platform in this case.
41910
41911 2008-06-06  Eric Blake  <ebb9@byu.net>
41912
41913         Document abort() bugs.
41914         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41915
41916         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41917         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41918         sigsetjmp.
41919         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41920         siglongjmp, but only as a macro.
41921         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41922         is obsolete.
41923         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41924
41925         Tweak documentation to cover cygwin argz bugs.
41926         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41927         argz bug fix; no code change needed since no cygwin releases
41928         occurred between the last fix and the bug being tested.
41929         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41930         module and recently fixed cygwin bugs.
41931         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41932         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41933         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41934         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41935         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41936         Likewise.
41937         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41938         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41939         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41940         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41941         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41942         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41943         Likewise.
41944
41945         Avoid gcc warning on cygwin.
41946         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41947         !ACL_NO_TRIVIAL]: Avoid unused variable.
41948
41949 2008-06-05  Eric Blake  <ebb9@byu.net>
41950
41951         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41952         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41953         git-version-gen fails to come up with a version.
41954         Reported by Simon Josefsson.
41955
41956 2008-06-05  Jim Meyering  <meyering@redhat.com>
41957             Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         utimens.c: work around a probable Linux kernel bug
41960         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41961         appears to be a kernel bug that causes utimensat to return 280
41962         instead of 0, indicating success.
41963
41964 2008-06-04  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41967         2008-06-01 commit.
41968
41969 2008-06-04  Bruno Haible  <bruno@clisp.org>
41970
41971         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41972         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41973         (file_has_acl): Use it. Save errno afterwards.
41974         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41975
41976 2008-06-03  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41979         draft code. Simplify #ifs.
41980         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41981         Put Solaris code after POSIX-draft code. Fix comments regarding
41982         Solaris 10, HP-UX. Mention Cygwin.
41983         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41984
41985 2008-06-03  Eric Blake  <ebb9@byu.net>
41986
41987         Provide fallback for older kernels.
41988         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41989         Provide runtime fallback if kernel lacks support.
41990         Reported by Mike Frysinger.
41991
41992 2008-06-02  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41995         it exists.
41996
41997 2008-06-02  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42000         * lib/copy-acl.c (qcopy_acl): Update comment.
42001
42002 2008-06-02  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42005         like ACL APIs.
42006
42007 2008-06-02  Bruno Haible  <bruno@clisp.org>
42008
42009         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42010         * tests/test-set-mode-acl.sh: Likewise.
42011         * tests/test-copy-acl.sh: Likewise.
42012         * tests/test-copy-file.sh: Likewise.
42013
42014 2008-06-02  Bruno Haible  <bruno@clisp.org>
42015
42016         * tests/test-file-has-acl.sh: Remove unused code.
42017
42018 2008-06-01  Bruno Haible  <bruno@clisp.org>
42019
42020         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42021         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42022         messages.
42023         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42024
42025 2008-06-01  Bruno Haible  <bruno@clisp.org>
42026
42027         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42028         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42029         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42030         APIs.
42031         * modules/acl-tests (configure.ac): Remove tests now contained in
42032         m4/acl.m4.
42033
42034 2008-06-02  Jim Meyering  <meyering@redhat.com>
42035
42036         announce-gen: use a better key-server host name
42037         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42038         it may be more consistently reliable.  Suggested by Werner Koch
42039         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42040
42041 2008-06-01  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42044         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42045
42046 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42047
42048         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42049
42050 2008-06-01  Bruno Haible  <bruno@clisp.org>
42051
42052         New ACL tests.
42053         * tests/test-file-has-acl.sh: New file.
42054         * tests/test-file-has-acl.c: New file.
42055         * tests/test-set-mode-acl.sh: New file.
42056         * tests/test-set-mode-acl.c: New file.
42057         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42058         * tests/test-copy-acl.c: New file.
42059         * modules/acl-tests: New file, based on modules/copy-file-tests.
42060         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42061         (Depends-on): Add acl-tests.
42062         (configure.ac): Remove checks.
42063         (Makefile.am): Don't create test-sameacls program here any more.
42064
42065 2008-06-01  Bruno Haible  <bruno@clisp.org>
42066
42067         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42068         * tests/test-sameacls.c: Include progname.h.
42069         (main): Invoke set_program_name. Portability fixes for MacOS X,
42070         Solaris, HP-UX.
42071
42072 2008-06-01  Bruno Haible  <bruno@clisp.org>
42073
42074         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42075         function.
42076         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42077
42078 2008-06-01  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/rpmatch (Depends-on): Add strdup.
42081
42082 2008-06-01  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/pipe.c: Include unistd-safer.h.
42085         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42086         * modules/pipe (Depends-on): Add unistd-safer.
42087
42088 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42089
42090         * modules/autobuild (configure.ac): Call AB_INIT.
42091
42092 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42093
42094         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42095         Suggested by Bruno Haible <bruno@clisp.org>.
42096
42097 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42098
42099         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42100         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42101         <bruno@clisp.org>.
42102
42103 2008-05-29  Eric Blake  <ebb9@byu.net>
42104
42105         Prefer new POSIX 200x interfaces over futimesat.
42106         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42107         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42108         when available.
42109         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42110
42111 2008-05-28  Bruno Haible  <bruno@clisp.org>
42112
42113         * modules/stpcpy (License): Change to LGPLv2+.
42114         Requested by David Lutterkort <dlutter@redhat.com>.
42115
42116 2008-05-27  Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42119         current mingw.
42120         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42121
42122 2008-05-27  Bruno Haible  <bruno@clisp.org>
42123
42124         * modules/iconv_open (Link): New section, from module 'iconv'.
42125         * modules/striconv (Link): Likewise.
42126         * modules/striconveh (Link): Likewise.
42127         * modules/xstriconv (Link): Likewise.
42128         * modules/unicodeio (Link): Likewise.
42129         * modules/propername (Link): Likewise.
42130         Reported by Jim Meyering.
42131
42132 2008-05-26  Jim Meyering  <meyering@redhat.com>
42133
42134         sha256: do not artificially restrict buffer length to be < 2^32
42135         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42136         uint32_t to size_t.
42137         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42138         to match.
42139
42140         avoid unaligned access errors, e.g., on sparc
42141         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42142         direct access through a possibly-unaligned uint64* pointer.
42143         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42144         direct access through a possibly-unaligned uint32* pointer.
42145         Prompted by this patch from Tom "spot" Callaway:
42146         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42147
42148         sha512.c: fix typo in comment
42149         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42150
42151 2008-05-25  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42154         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42155         (Makefile.am): Update lib_SOURCES.
42156
42157 2008-05-25  Bruno Haible  <bruno@clisp.org>
42158
42159         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42160
42161 2008-05-25  Jim Meyering  <meyering@redhat.com>
42162
42163         useless-if-before-free: freed expr may have white-space differences
42164         * build-aux/useless-if-before-free: Recognize cases in which the
42165         freed expression differs from the tested one in embedded white
42166         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42167         $1 was used, so we can't make any regexp shy.  Improved tests now
42168         detect this.
42169
42170         useless-if-before-free: accept white space in the expression.
42171         * build-aux/useless-if-before-free: For now, any white space
42172         in the expression must be identical in the free argument.
42173
42174         useless-if-before-free: efficiency tweak
42175         * build-aux/useless-if-before-free: Make the expression-matching
42176         regexp "shy".
42177         Make the *outer* regexp shy, not the expr-matching one.
42178
42179         update code-in-comment to accept cast of free arg
42180         * build-aux/useless-if-before-free: Update regexp.
42181
42182 2008-05-25  Bruno Haible  <bruno@clisp.org>
42183
42184         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42185         * modules/copy-file-tests (Files, Makefile.am): Update.
42186         * tests/test-copy-file.c (func_test_copy): Update.
42187
42188 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42189
42190         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42191
42192 2008-05-23  Bruno Haible  <bruno@clisp.org>
42193
42194         Improve support for ACLs on OSF/1.
42195         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42196         Remove fallback for unknown flavors of ACLs.
42197
42198 2008-05-22  Bruno Haible  <bruno@clisp.org>
42199
42200         Add support for ACLs on OSF/1.
42201         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42202         replacements.
42203         (acl_free_text): New macro fallback.
42204         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42205         acl_free.
42206         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42207         acl_free_text function. Require AC_C_INLINE.
42208
42209 2008-05-22  Bruno Haible  <bruno@clisp.org>
42210
42211         Make copy_acl work on MacOS X 10.5.
42212         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42213         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42214         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42215         If MODE_INSIDE_ACL, don't assume that every system has the same text
42216         representation for ACLs as FreeBSD.
42217         * lib/copy-acl.c (copy_acl): Add support for platforms with
42218         !MODE_INSIDE_ACL.
42219         * lib/file-has-acl.c (file_has_acl): Likewise.
42220         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42221         FreeBSD, MacOS X, or IRIX, respectively.
42222
42223 2008-05-22  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/acl.h: Don't include <sys/acl.h>.
42226         (GETACLCNT): Move fallback to lib/acl-internal.h.
42227         * lib/acl-internal.h: Include <sys/acl.h> here.
42228         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42229
42230 2008-05-22  Bruno Haible  <bruno@clisp.org>
42231
42232         Split off copy_acl function to separate file.
42233         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42234         * lib/acl.c (copy_acl): Moved function to separate file.
42235         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42236         * modules/acl (Files): Add lib/copy-acl.c.
42237         (Makefiles.am): Augment lib_SOURCES.
42238
42239 2008-05-22  Bruno Haible  <bruno@clisp.org>
42240
42241         * modules/copy-file-tests: New file.
42242         * tests/test-copy-file.sh: New file.
42243         * tests/test-copy-file.c: New file.
42244         * tests/test-copy-file-sameacls.c: New file.
42245
42246 2008-05-22  Eric Blake  <ebb9@byu.net>
42247
42248         Avoid gcc warning.
42249         * tests/test-memcmp.c (main): Pass NULL indirectly.
42250
42251 2008-05-21  Bruno Haible  <bruno@clisp.org>
42252
42253         Add reference doc about ACLs.
42254         * doc/acl-resources.txt: New file.
42255         * doc/acl-cygwin.txt: New file.
42256
42257 2008-05-21  Bruno Haible  <bruno@clisp.org>
42258
42259         Avoid one more warning from gcc.
42260         * lib/vasnprintf.c (IF_LINT): Update comments.
42261         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42262
42263 2008-05-21  Jim Meyering  <meyering@redhat.com>
42264
42265         avoid a warning from gcc
42266         * lib/vasnprintf.c (IF_LINT): Define.
42267         (scale10_round_decimal_long_double):
42268         Use it to avoid a "may be used uninitialized" warning.
42269         (scale10_round_decimal_double): Likewise.
42270
42271 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42272
42273         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42274         declared.
42275
42276 2008-05-20  Bruno Haible  <bruno@clisp.org>
42277
42278         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42279         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42280
42281 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42282
42283         * modules/memcmp-tests: New file.
42284         * tests/test-memcmp.c: New file.
42285
42286 2008-05-19  Bruno Haible  <bruno@clisp.org>
42287
42288         * modules/propername (Notice, configure.ac): Put quoted "..." into
42289         --keyword option.
42290         * lib/propername.h: Update comments accordingly.
42291         Reported by Eric Blake.
42292
42293 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42294
42295         * modules/getpass-gnu (Depends-on): Add fseeko.
42296
42297 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42298
42299         * modules/base64-tests: New file.
42300
42301 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42302
42303         * lib/base64.c (base64_decode_ctx): If a decode context structure
42304         was passed in use it to ignore newlines.  If a context structure
42305         was _not_ passed in, continue to treat newlines as garbage (this
42306         is the historical behavior).  Formerly base64_decode.
42307         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42308         takes a decode context structure.
42309         * lib/base64.h (base64_decode): Macro for four-argument calls.
42310         (base64_decode_alloc): Likewise.
42311         * lib/base64.c (base64_decode_ctx): If a decode context structure
42312         was passed in use it to ignore newlines.  If a context structure
42313         was _not_ passed in, continue to treat newlines as garbage (this
42314         is the historical behavior).  Formerly base64_decode.
42315         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42316         takes a decode context structure.
42317         * lib/base64.h (base64_decode): Macro for four-argument calls.
42318         (base64_decode_alloc): Likewise.
42319
42320 2008-05-19  Jim Meyering  <meyering@redhat.com>
42321
42322         avoid a warning from gcc
42323         * lib/trim.c (IF_LINT): Define.
42324         (trim2): Use it to avoid a "may be used uninitialized" warning.
42325
42326         Fix doc typo.
42327         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42328
42329 2008-05-19  Bruno Haible  <bruno@clisp.org>
42330
42331         * doc/glibc-functions/getpass.texi: Document limits of other
42332         implementations.
42333
42334 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42335             Bruno Haible <bruno@clisp.org>
42336
42337         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42338
42339 2008-05-18  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/propername: New file, from GNU gettext.
42342         * lib/propername.h: New file, from GNU gettext.
42343         * lib/propername.c: New file, from GNU gettext.
42344         * MODULES.html.sh (Internationalization functions): Add propername.
42345
42346 2008-05-16  Jim Meyering  <meyering@redhat.com>
42347             Bruno Haible  <bruno@clisp.org>
42348
42349         Avoid some warnings from "gcc -Wshadow".
42350         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42351
42352 2008-05-15  Eric Blake  <ebb9@byu.net>
42353
42354         Extend previous patch to cygwin 1.7.0.
42355         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42356         fast implementation in cygwin >= 1.7.0.
42357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42359
42360 2008-05-15  Bruno Haible  <bruno@clisp.org>
42361
42362         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42363         implementation in glibc >= 2.9.
42364         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42366
42367 2008-05-15  Bruno Haible  <bruno@clisp.org>
42368
42369         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42370         (Unicode string functions): Add unilbrk/*.
42371         Reported by Karl Berry.
42372
42373 2008-05-15  Eric Blake  <ebb9@byu.net>
42374
42375         Fix violation of <stdbool.h> replacement in regex.
42376         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42377         * lib/regexec.c (re_search_internal): Likewise.
42378         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42379
42380 2008-05-15  Jim Meyering  <meyering@redhat.com>
42381
42382         avoid distracting test output when git or cvs is not found
42383         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42384         * tests/test-vc-list-files-git.sh: Likewise.
42385
42386 2008-05-15  Eric Blake  <ebb9@byu.net>
42387
42388         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42389         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42390         glibc version.
42391         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42392         * doc/posix-functions/strstr.texi (strstr): Likewise.
42393         * lib/str-two-way.h (MAX): Sychronize with glibc.
42394
42395 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42396
42397         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42398         opr.ctx_type.
42399         (calc_first): Initialize constraint field.
42400         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42401         Fix grammar.
42402         (duplicate_node): Merge constraint field for all node types.
42403         (calc_eclosure_iter): Look at constraint field for all node types.
42404         * lib/regex_internal.c (create_cd_newstate): Don't look at
42405         opr.ctx_type.
42406
42407 2008-05-14  Bruno Haible  <bruno@clisp.org>
42408
42409         Help GCC to do better code generation.
42410         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42411         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42412         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42413         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42414         Declare with attribute 'malloc' if supported.
42415
42416 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42417
42418         use "echo STR|wc -c" rather than unportable "expr length STR"
42419         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42420         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42421
42422 2008-05-14  Jim Meyering  <meyering@redhat.com>
42423
42424         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42425         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42426         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42427         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42428         via Collin Lasse.
42429
42430 2008-05-14  Eric Blake  <ebb9@byu.net>
42431
42432         Avoid quadratic growth in gl_LIBSOURCES.
42433         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42434         Suggested by Bruno Haible.
42435
42436         Test xmemdup0.
42437         * modules/xmemdup0-tests: New file.
42438         * tests/test-xmemdup0.c: Likewise.
42439
42440 2008-05-13  Eric Blake  <ebb9@byu.net>
42441
42442         Split xmemdup0 into its own module.
42443         * modules/xmemdup0: New file.
42444         * lib/xmemdup0.h: Likewise.
42445         * lib/xmemdup0.c: Likewise.
42446         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42447         * lib/xalloc.h (xmemdup0): Remove.
42448         * lib/xmalloc.c (xmemdup0): Likewise.
42449
42450 2008-05-13  Eric Blake  <ebb9@byu.net>
42451             Bruno Haible  <bruno@clisp.org>
42452
42453         Reduce number of forks required during autoconf.
42454         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42455         and gl_LIBSOURCES_DIR.
42456         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42457         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42458         m4_syscmd per file.
42459         <m4_foreach_w>: Move...
42460         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42461
42462 2008-05-13  Eric Blake  <ebb9@byu.net>
42463
42464         * gnulib-tool: Fix various comment typos.
42465
42466 2008-05-12  Bruno Haible  <bruno@clisp.org>
42467
42468         Tailor the linebreaking algorithm.
42469         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42470
42471 2008-05-12  Bruno Haible  <bruno@clisp.org>
42472
42473         Update to Unicode 5.0.0.
42474         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42475         LBP_JV, LBP_JT. Redistribute values.
42476         (unilbrk_table): Change size.
42477         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42478         Unicode TR#14 rev. 22.
42479         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42480         LBP_JV, LBP_JT. Redistribute values.
42481         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42482         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42483         Update.
42484         * lib/unilbrk/lbrkprop1.h: Regenerated.
42485         * lib/unilbrk/lbrkprop2.h: Regenerated.
42486         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42487         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42488         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42489         Likewise.
42490         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42491         Likewise.
42492         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42493         result.
42494         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42495         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42496         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42497         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42498         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42499         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42500
42501 2008-05-11  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42504
42505 2008-05-11  Bruno Haible  <bruno@clisp.org>
42506
42507         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42508         * modules/unilbrk/gen-lbrk: New file.
42509
42510 2008-05-11  Bruno Haible  <bruno@clisp.org>
42511
42512         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42513         * m4/sha512.m4 (gl_SHA512): Likewise.
42514
42515 2008-05-11  Jim Meyering  <meyering@redhat.com>
42516
42517         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42518         * modules/crypto/sha256: New file.
42519         * modules/crypto/sha512: Likewise.
42520         * lib/sha256.c: Likewise.
42521         * lib/sha256.h: Likewise.
42522         * lib/sha512.c: Likewise.
42523         * lib/sha512.h: Likewise.
42524         * lib/u64.h: Likewise.
42525         * m4/sha256.m4: Likewise.
42526         * m4/sha512.m4: Likewise.
42527         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42528
42529 2008-05-10  Bruno Haible  <bruno@clisp.org>
42530
42531         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42532         (Input/Output <stdio.h>): Add xprintf.
42533         (Signal handling <signal.h>): Add strsignal.
42534         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42535         (Core language properties): Add func.
42536         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42537         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42538         strings.
42539         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42540         (Input/output): New section.
42541         (File system functions): Add openat-die, stat-macros.
42542         (Networking functions): Add sockets.
42543         (Unicode string functions): Add unictype/*.
42544         (Support for building libraries and executables): Add gperf.
42545         (Support for building documentation): Add agpl-3.0.
42546         (Misc): Add nocrash.
42547
42548 2008-05-10  Bruno Haible  <bruno@clisp.org>
42549
42550         * modules/unictype/gen-ctype: New file.
42551
42552 2008-05-10  Jim Meyering  <meyering@redhat.com>
42553
42554         Make chdir-safer.c more efficient on a system with no symlinks.
42555         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42556         also if ELOOP is zero.  Suggested by Bruno Haible.
42557
42558         Make chdir-safer.c slightly safer.
42559         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42560         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42561
42562         Avoid compile failure on systems without ELOOP (like mingw).
42563         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42564         Reported by Bruno Haible.
42565
42566 2008-05-10  Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42569         (is_utf8_encoding): Use a case-insensitive comparison.
42570         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42571         streq.
42572
42573 2008-05-10  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42576         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42577         * lib/unilbrk/ulc-common.h (iconv_string_length,
42578         iconv_string_keeping_offsets): Remove declarations.
42579         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42580         Don't include <iconv.h>, streq.h, xsize.h.
42581         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42582         conversion.
42583         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42584         <iconv.h>, streq.h, xsize.h.
42585         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42586         conversion.
42587         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42588         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42589         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42590         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42591
42592 2008-05-10  Bruno Haible  <bruno@clisp.org>
42593
42594         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42595         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42596
42597         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42598         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42599
42600         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42601         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42602
42603         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42604         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42605
42606         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42607         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42608
42609         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42610         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42611
42612         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42613         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42614
42615         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42616         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42617
42618 2008-05-10  Bruno Haible  <bruno@clisp.org>
42619
42620         Split up 'linebreak' module.
42621         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42622         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42623         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42624         modifications.
42625         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42626         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42627         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42628         lib/linebreak.c.
42629         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42630         lib/linebreak.c.
42631         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42632         lib/linebreak.c.
42633         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42634         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42635         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42636         lib/linebreak.c.
42637         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42638         lib/linebreak.c.
42639         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42640         lib/linebreak.c.
42641         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42642         lib/linebreak.c.
42643         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42644         lib/linebreak.c.
42645         * modules/unilbrk/base: New file.
42646         * modules/unilbrk/tables: New file.
42647         * modules/unilbrk/u8-possible-linebreaks: New file.
42648         * modules/unilbrk/u16-possible-linebreaks: New file.
42649         * modules/unilbrk/u32-possible-linebreaks: New file.
42650         * modules/unilbrk/ulc-common: New file.
42651         * modules/unilbrk/ulc-possible-linebreaks: New file.
42652         * modules/unilbrk/u8-width-linebreaks: New file.
42653         * modules/unilbrk/u16-width-linebreaks: New file.
42654         * modules/unilbrk/u32-width-linebreaks: New file.
42655         * modules/unilbrk/ulc-width-linebreaks: New file.
42656         * lib/linebreak.h: Remove file.
42657         * lib/linebreak.c: Remove file.
42658         * m4/linebreak.m4: Remove file.
42659         * modules/linebreak: Remove file.
42660         * NEWS: Mention the changes.
42661
42662 2008-05-09  Eric Blake  <ebb9@byu.net>
42663
42664         Add xmemdup0.
42665         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42666         implementation.
42667         * lib/xmalloc.c (xmemdup0): New C implementation.
42668
42669 2008-05-08  Bruno Haible  <bruno@clisp.org>
42670
42671         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42672
42673 2008-05-07  Eric Blake  <ebb9@byu.net>
42674
42675         Support cross-compilation of <wctype.h>.
42676         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42677         AC_CACHE_CHECK.
42678
42679 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42680
42681         * build-aux/vc-list-files: Add support for bzr.
42682
42683 2008-05-03  Jim Meyering  <meyering@redhat.com>
42684
42685         avoid failed assertion with tight malloc
42686         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42687
42688 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42689
42690         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42691         are needed from arpa/inet.h.
42692         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42693         Reported by Bruno Haible.
42694
42695 2008-05-02  Jim Meyering  <meyering@redhat.com>
42696
42697         avoid compilation error on FreeBSD 6
42698         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42699
42700 2008-05-01  Jim Meyering  <meyering@redhat.com>
42701
42702         useless-if-before-free: correct --help's exit status description
42703         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42704         for one or more matches, etc.  Reported by Bruno Haible.
42705
42706         vc-list-files: make the stand-alone gnulib test work
42707         * modules/vc-list-files-tests (configure.ac):
42708         Define and AC_SUBST abs_aux_dir.
42709         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42710         $(abs_top_srcdir) to each script and having each of them
42711         duplicate the work of setting PATH, set PATH here, using
42712         the new variable, abs_aux_dir instead.
42713         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42714         * tests/test-vc-list-files-git.sh: Likewise.
42715         Reported by Bruno Haible.
42716
42717 2008-05-01  Bruno Haible  <bruno@clisp.org>
42718
42719         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42720         reallocation. Rename 'done' to 'found_delimiter'.
42721
42722 2008-05-01  Jim Meyering  <meyering@redhat.com>
42723
42724         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42725         * build-aux/vc-list-files: Use `...`, not $(...).
42726
42727 2008-04-30  Jim Meyering  <meyering@redhat.com>
42728
42729         add tests for vc-list-files
42730         * modules/vc-list-files-tests: New module.
42731         * tests/test-vc-list-files-cvs.sh: New file.
42732         * tests/test-vc-list-files-git.sh: New file.
42733
42734         avoid a warning from gcc
42735         * lib/getndelim2.c (IF_LINT): Define.
42736         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42737
42738         vc-list-files: work properly with build-aux/cvsu, too
42739         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42740         to all cvs-based clauses.
42741
42742         vc-list-files: work properly in the CVS+awk case, too
42743         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42744
42745         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42746         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42747         take more than one file argument, so .  Add quotes, just in case $dir
42748         ever contains a shell meta-character.  Prompted by Soren Hansen in
42749         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42750
42751 2008-04-29  Eric Blake  <ebb9@byu.net>
42752
42753         Optimize getndelim2 to use block operations when possible.
42754         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42755         freadseek, and memchr2.
42756         * lib/getndelim2.c (getndelim2): Use them for block reads.
42757
42758 2008-04-29  Bruno Haible  <bruno@clisp.org>
42759
42760         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42761         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42762         * modules/inet_ntop (Depends-on): Add extensions.
42763         * modules/inet_pton (Depends-on): Likewise.
42764         Reported by Simon Josefsson.
42765
42766 2008-04-29  Jim Meyering  <meyering@redhat.com>
42767
42768         When the is more than one match in a block, match all of them.
42769         * build-aux/useless-if-before-free: Iterate through each block
42770         until there are no more matches.
42771
42772         Fix broken useless-if-before-free script.
42773         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42774         the expression to match cast of argument to free-like function.
42775
42776 2008-04-29  Eric Blake  <ebb9@byu.net>
42777
42778         Use new header.
42779         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42780
42781 2008-04-29  Jim Meyering  <meyering@redhat.com>
42782
42783         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42784         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42785         by gnulib to exist and to declare e.g., inet_ntop.
42786         Don't include "inet_ntop.h", now removed.
42787
42788         * m4/arpa_inet_h.m4: Remove trailing blanks.
42789
42790 2008-04-29  Eric Blake  <ebb9@byu.net>
42791
42792         Silence valgrind on safe reads beyond potential array bounds.
42793         * lib/rawmemchr.valgrind: New file.
42794         * lib/strchrnul.valgrind: Likewise.
42795         * modules/rawmemchr (Files): Distribute new file.
42796         * modules/strchrnul (Files): Likewise.
42797         Suggested by Bruno Haible.
42798
42799 2008-04-29  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42802         (inet_ntop, inet_pton): Change portability warning's wording.
42803         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42804         Invoke gl_CHECK_NEXT_HEADERS.
42805         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42806         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42807         set ARPA_INET_H.
42808         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42809         * modules/arpa_inet (Description): No longer only for systems that
42810         lack it.
42811         (Depends-on): Add include_next.
42812         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42813         HAVE_ARPA_INET_H.
42814
42815 2008-04-29  Jim Meyering  <meyering@redhat.com>
42816
42817         * modules/mkdir (License): Re-license as LGPLv2+.
42818
42819 2008-04-29  Bruno Haible  <bruno@clisp.org>
42820
42821         * modules/rawmemchr (Maintainer): Set to Eric.
42822         * modules/strchrnul (Maintainer): Likewise.
42823
42824 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42825
42826         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42827         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42828
42829         * modules/arpa_inet (arpa/inet.h): Use them.
42830
42831 2008-04-28  Eric Blake  <ebb9@byu.net>
42832
42833         Test getndelim2.
42834         * modules/getndelim2-tests: New file.
42835         * tests/test-getndelim2.c: Likewise.
42836         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42837         stream.
42838         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42839
42840         * MODULES.html.sh: Document new module.
42841
42842 2008-04-20  Bruno Haible  <bruno@clisp.org>
42843
42844         * lib/c-stack.c (die): Use raise.
42845         * modules/c-stack (Depends-on): Add raise.
42846
42847 2008-04-28  Bruno Haible  <bruno@clisp.org>
42848
42849         Expect rpmatch to be declared.
42850         * lib/yesno.c (rpmatch): Remove declaration.
42851
42852         Declare rpmatch.
42853         * lib/stdlib.in.h (rpmatch): New declaration.
42854         * lib/rpmatch.c: Include <stdlib.h> first.
42855         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42856         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42858         HAVE_RPMATCH.
42859         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42860         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42861         (Include): Set to <stdlib.h>.
42862         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42863         HAVE_RPMATCH.
42864         * NEWS: Document the change.
42865
42866 2008-04-28  Bruno Haible  <bruno@clisp.org>
42867
42868         Change rpmatch to use nl_langinfo when appropriate.
42869         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42870         (N_): New macro.
42871         (localized_pattern): New function/macro.
42872         (try): Remove match, nomatch arguments. Copy the pattern into safe
42873         memory before caching it.
42874         (rpmatch): Use localized_pattern. Add translator comments.
42875         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42876         Suggested by Eric Blake.
42877         * modules/rpmatch (Depends-on): Add stdbool.
42878
42879 2008-04-28  Eric Blake  <ebb9@byu.net>
42880
42881         Add rawmemchr module, matching glibc.
42882         * modules/string (Makefile.am): New indicator.
42883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42884         * lib/string.in.h (rawmemchr): Declare when appropriate.
42885         * modules/rawmemchr: New file.
42886         * m4/rawmemchr.m4: Likewise.
42887         * lib/rawmemchr.c: Likewise.
42888         * modules/rawmemchr-tests: Likewise.
42889         * tests/test-rawmemchr.c: Likewise.
42890         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42891         module.
42892         * modules/strchrnul (Depends-on): Add rawmemchr.
42893         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42894
42895         Whitespace cleanup.
42896         * tests/test-strchrnul.c: Reindent.
42897         * lib/strchrnul.c: Likewise.
42898
42899         Optimize and test strchrnul.
42900         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42901         * modules/strchrnul-tests: New file.
42902         * tests/test-strchrnul.c: Likewise.
42903
42904         Remove intprops dependency.
42905         * modules/memchr (Depends-on): Remove intprops.
42906         * modules/memrchr (Depends-on): Likewise.
42907         * modules/memchr2 (Depends-on): Likewise.
42908         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42909         * lib/memrchr.c (__memrchr): Likewise.
42910         * lib/memrchr2.c (memchr2): Likewise.
42911         Reported by Simon Josefsson.
42912
42913 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42914
42915         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42916         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42917
42918 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42919
42920         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42921
42922         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42923
42924         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42925
42926         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42927         declarations.
42928         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42929
42930         * m4/inet_pton.m4: Don't check for header files.
42931
42932         * m4/inet_ntop.m4: Don't check for header files.
42933
42934 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42935
42936         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42937         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42938         trigger for cygwin).
42939         Reported by Bruno Haible  <bruno@clisp.org>.
42940
42941 2008-04-28  Bruno Haible  <bruno@clisp.org>
42942
42943         * doc/posix-functions/strdup.texi: Mention mingw problem.
42944
42945 2008-04-27  Bruno Haible  <bruno@clisp.org>
42946
42947         * modules/stat-time-tests (Depends-on): Add sleep.
42948         * tests/test-stat-time.c (force_unlink): New function.
42949         (cleanup): Use it.
42950         (test_mtime): Remove the ctime related tests.
42951         (test_ctime): New function, containing the ctime related tests.
42952         (main): Call test_ctime, except on native Windows platforms.
42953
42954 2008-04-27  Bruno Haible  <bruno@clisp.org>
42955
42956         * lib/rpmatch.c (rpmatch): Add some comments.
42957         Reported by James Youngman <jay@gnu.org>.
42958
42959 2008-04-27  Bruno Haible  <bruno@clisp.org>
42960
42961         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42962         quiet NaNs.
42963
42964 2008-04-27  Bruno Haible  <bruno@clisp.org>
42965
42966         Make test-yesno.sh work on mingw.
42967         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42968         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42969         (main): Set stdin to binary mode.
42970         * modules/yesno-tests (Depends-on): Add binary-io.
42971
42972 2008-04-27  Bruno Haible  <bruno@clisp.org>
42973
42974         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42975         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42976         argument that lie outside the IEEE 854 domain.
42977         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42978         (gl_ISFINITE): Use it.
42979         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42980
42981 2008-04-27  Bruno Haible  <bruno@clisp.org>
42982
42983         Allow local renaming in config.h.
42984         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42985
42986 2008-04-27  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/memchr.c (__memchr): Change type of 'i'.
42989         * lib/memchr2.c (memchr2): Likewise.
42990
42991 2008-04-26  Eric Blake  <ebb9@byu.net>
42992         and Bruno Haible  <bruno@clisp.org>
42993
42994         Optimize and test memrchr.
42995         * modules/memrchr (Depends-on): Add intprops.
42996         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42997         * modules/memrchr-tests: New file.
42998         * tests/test-memrchr.c: New file.
42999
43000 2008-04-26  Bruno Haible  <bruno@clisp.org>
43001
43002         Add tentative support for DragonFly BSD.
43003         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43004         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43005         fp.
43006         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43007         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43008         * lib/fpurge.c (fpurge): Likewise.
43009         * lib/freadable.c (freaadable): Likewise.
43010         * lib/freadahead.c (freadahead): Likewise.
43011         * lib/freading.c (freading): Likewise.
43012         * lib/freadptr.c (freadptr): Likewise.
43013         * lib/freadseek.c (freadptrinc): Likewise.
43014         * lib/fseeko.c (fseeko): Likewise.
43015         * lib/fseterr.c (fseterr): Likewise.
43016         * lib/fwritable.c (fwritable): Likewise.
43017         * lib/fwriting.c (fwriting): Likewise.
43018
43019 2008-04-26  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/stdio-impl.h: New file.
43022         * lib/fbufmode.c: Include stdio-impl.h.
43023         (fbufmode): Use fp_, remove redundant #defines.
43024         * lib/fflush.c: Include stdio-impl.h.
43025         (clear_ungetc_buffer): Remove redundant #defines.
43026         * lib/fpurge.c: Include stdio-impl.h.
43027         (fpurge): Remove redundant #defines.
43028         * lib/freadable.c: Include stdio-impl.h.
43029         (freadable): Remove redundant #defines.
43030         * lib/freadahead.c: Include stdio-impl.h.
43031         (freadahead): Remove redundant #defines.
43032         * lib/freading.c: Include stdio-impl.h.
43033         (freading): Remove redundant #defines.
43034         * lib/freadptr.c: Include stdio-impl.h.
43035         (freadptr): Remove redundant #defines.
43036         * lib/freadseek.c: Include stdio-impl.h.
43037         (freadptrinc): Remove redundant #defines.
43038         * lib/fseeko.c: Include stdio-impl.h.
43039         (rpl_fseeko): Remove redundant #defines.
43040         * lib/fseterr.c: Include stdio-impl.h.
43041         (fseterr): Remove redundant #defines.
43042         * lib/fwritable.c: Include stdio-impl.h.
43043         (fwritable: Remove redundant #defines.
43044         * lib/fwriting.c: Include stdio-impl.h.
43045         (fwriting): Remove redundant #defines.
43046         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43047         * modules/fflush (Files): Likewise.
43048         * modules/fpurge (Files): Likewise.
43049         * modules/freadable (Files): Likewise.
43050         * modules/freadahead (Files): Likewise.
43051         * modules/freading (Files): Likewise.
43052         * modules/freadptr (Files): Likewise.
43053         * modules/freadseek (Files): Likewise.
43054         * modules/fseeko (Files): Likewise.
43055         * modules/fseterr (Files): Likewise.
43056         * modules/fwritable (Files): Likewise.
43057         * modules/fwriting (Files): Likewise.
43058
43059 2008-04-26  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43062         restore_seek_optimization, update_fpos_cache): New functions, extracted
43063         from rpl_fflush.
43064         (rpl_fflush): Use them.
43065         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43066         (gl_REPLACE_FFLUSH): Use it.
43067
43068 2008-04-26  Bruno Haible  <bruno@clisp.org>
43069
43070         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43071         on Solaris.
43072         * tests/test-xstrtoimax.sh: Likewise.
43073         * tests/test-xstrtoumax.sh: Likewise.
43074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43075
43076 2008-04-26  Bruno Haible  <bruno@clisp.org>
43077
43078         * modules/memchr-tests: New file.
43079         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43080
43081 2008-04-26  Eric Blake  <ebb9@byu.net>
43082             Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/memchr.c: Include intprops.h.
43085         (__memchr): Optimize parallel detection of matching bytes. Rename local
43086         variables. Add explanatory comments.
43087
43088 2008-04-26  Bruno Haible  <bruno@clisp.org>
43089
43090         Fix module 'memchr', broken since 2000-10-28.
43091         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43092
43093 2008-04-26  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43096         comments.
43097
43098 2008-04-25  Eric Blake  <ebb9@byu.net>
43099
43100         Use native fstatat on cygwin 1.7.0.
43101         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43102         first.
43103
43104 2008-04-23  Eric Blake  <ebb9@byu.net>
43105
43106         Improve memchr2 performance.
43107         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43108         NUL bytes.
43109         * modules/memchr2 (Depends-on): Use intprops.h.
43110
43111 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43112
43113         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43114         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43115         <blp@cs.stanford.edu>.
43116
43117 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43118
43119         * lib/arpa_inet.in.h: New file.
43120
43121         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43122         (Makefile.am): Sed in substitute header file.
43123
43124         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43125         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43126
43127         * modules/inet_ntop (configure.ac): Use
43128         gl_ARPA_INET_MODULE_INDICATOR.
43129
43130         * modules/inet_pton (configure.ac): Use
43131         gl_ARPA_INET_MODULE_INDICATOR.
43132
43133 2008-04-22  Jim Meyering  <meyering@redhat.com>
43134
43135         * modules/verify (License): Re-license as LGPLv2+.
43136
43137 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43138
43139         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43140         parameter to void* as per POSIX standard (MinGW uses char*).
43141
43142 2008-04-21  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43145         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43146         Define to replacements if REPLACE_ISWCNTRL is 1.
43147         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43148         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43149         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43150         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43151         what it fixes.
43152         * doc/posix-functions/iswalpha.texi: Likewise.
43153         * doc/posix-functions/iswblank.texi: Likewise.
43154         * doc/posix-functions/iswcntrl.texi: Likewise.
43155         * doc/posix-functions/iswdigit.texi: Likewise.
43156         * doc/posix-functions/iswgraph.texi: Likewise.
43157         * doc/posix-functions/iswlower.texi: Likewise.
43158         * doc/posix-functions/iswprint.texi: Likewise.
43159         * doc/posix-functions/iswpunct.texi: Likewise.
43160         * doc/posix-functions/iswspace.texi: Likewise.
43161         * doc/posix-functions/iswupper.texi: Likewise.
43162         * doc/posix-functions/iswxdigit.texi: Likewise.
43163         Reported by Alain Guibert.
43164
43165 2008-04-21  Bruno Haible  <bruno@clisp.org>
43166
43167         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43168         Patch by Alain Guibert.
43169
43170 2008-04-21  Bruno Haible  <bruno@clisp.org>
43171
43172         Fix test failures on mingw.
43173         * tests/test-xstrtol.c (print_no_progname): New function.
43174         (main): Install it in error_print_progname hook.
43175         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43176         * tests/test-xstrtoimax.sh: Likewise.
43177         * tests/test-xstrtoumax.sh: Likewise.
43178
43179 2008-04-21  Bruno Haible  <bruno@clisp.org>
43180
43181         Fix test failure on mingw.
43182         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43183
43184 2008-04-21  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43187         Actually assign a value.
43188
43189 2008-04-20  Bruno Haible  <bruno@clisp.org>
43190
43191         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43192         take 2.
43193         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43194         'canonicalize-lgpl' module is also used.
43195         * lib/canonicalize-lgpl.c: Undo last change.
43196         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43197
43198 2008-04-20  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43201         config.h. Provide _mkdir based fallback for mingw.
43202         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43203         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43204         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43205         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43206         rather than defining mkdir in config.h.
43207         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43208         (gl_SYS_STAT_H_DEFAULTS): New macro.
43209         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43210         HAVE_IO_H any more.
43211         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43212         HAVE_DECL_MKDIR and HAVE_IO_H.
43213
43214 2008-04-20  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/isapipe.c: Port to native Windows platforms.
43217
43218 2008-04-20  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43221
43222 2008-04-21  Eric Blake  <ebb9@byu.net>
43223
43224         Work around preprocessors that don't handle UINTMAX_MAX.
43225         * lib/memchr2.c (memchr2): Avoid embedded #if.
43226         Reported by Alain Guibert, fix suggested by Bruno Haible.
43227
43228 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43229
43230         * doc/posix-functions/strftime.texi (strftime): Explain better
43231         Windows incompatibility.  Suggested by Micah Cowan
43232         <micah@cowan.name>.
43233
43234 2008-04-20  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43237         unistr/u8-mblen.
43238
43239 2008-04-20  Bruno Haible  <bruno@clisp.org>
43240
43241         Fix test failure on platforms with non-GNU iconv.
43242         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43243         (U_TO_U8): Use it, rather than u16_to_u8.
43244         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43245         units at the end of the input string.
43246         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43247
43248 2008-04-20  Bruno Haible  <bruno@clisp.org>
43249
43250         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43251         when the resulting length is 0.
43252         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43253
43254 2008-04-20  Bruno Haible  <bruno@clisp.org>
43255
43256         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43257         works.
43258         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43259
43260 2008-04-20  Bruno Haible  <bruno@clisp.org>
43261
43262         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43263         * modules/tsearch-tests (configure.ac): Test for initstate function.
43264
43265 2008-04-20  Bruno Haible  <bruno@clisp.org>
43266
43267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43268         for nlink_t if missing.
43269         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43270
43271 2008-04-19  Bruno Haible  <bruno@clisp.org>
43272
43273         Work around snprintf bug on Linux libc5.
43274         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43276         gl_SNPRINTF_SIZE1.
43277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43278         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43279         that test failed.
43280         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43281         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43282         * modules/snprintf (Files): Add m4/printf.m4.
43283         * modules/vsnprintf (Files): Likewise.
43284         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43285         * doc/posix-functions/vsnprintf.texi: Likewise.
43286
43287 2008-04-19  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43290         from 0.0058 to less than 10^-7.
43291
43292 2008-04-19  Bruno Haible  <bruno@clisp.org>
43293
43294         Fix rounding when a precision is given.
43295         * lib/vasnprintf.c (is_borderline): New function.
43296         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43297         9...9x.
43298         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43299         %e, %g.
43300         * tests/test-vasprintf-posix.c (test_function): Likewise.
43301         * tests/test-snprintf-posix.h (test_function): Likewise.
43302         * tests/test-sprintf-posix.h (test_function): Likewise.
43303         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43304         * tests/test-printf-posix.h (test_function): Likewise.
43305         * tests/test-printf-posix.output: Update.
43306         Reported by John Darrington <john@darrington.wattle.id.au> via
43307         Ben Pfaff <blp@cs.stanford.edu>.
43308
43309 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43310
43311         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43312         Suggested by Bruno Haible <bruno@clisp.org>.
43313
43314 2008-04-17  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43317         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43318         implementation.
43319         Patch by Bruce Merry <bmerry@gmail.com>.
43320
43321 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43322
43323         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43324         doesn't work under Windows.
43325
43326 2008-04-16  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43329         New macros.
43330         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43331         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43332         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43333         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43334         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43335         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43336         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43337         macros.
43338         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43339         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43340         Northern Sotho, Uighur.
43341
43342 2008-04-16  Bruno Haible  <bruno@clisp.org>
43343
43344         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43345         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43346         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43347         Reported by Daniel Bergström <daniel@octocode.com>.
43348
43349 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43350             Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43353         function.
43354         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43355         New functions, mostly extracted from gl_locale_name_default.
43356         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43357
43358 2008-04-16  Eric Blake  <ebb9@byu.net>
43359
43360         Adjust strtod detection to catch glibc 2.7 bug.
43361         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43362         Reported by John Gatewood Ham.
43363
43364 2008-04-16  Bruno Haible  <bruno@clisp.org>
43365
43366         Add tentative support for Linux libc5.
43367         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43368         * lib/fpurge.c (fpurge): Likewise.
43369         * lib/freadable.c (freadable): Likewise.
43370         * lib/freadahead.c (freadahead): Likewise.
43371         * lib/freading.c (freading): Likewise.
43372         * lib/freadptr.c (freadptr): Likewise.
43373         * lib/freadseek.c (freadptrinc): Likewise.
43374         * lib/fseeko.c (rpl_fseeko): Likewise.
43375         * lib/fseterr.c (fseterr): Likewise.
43376         * lib/fwritable.c (fwritable): Likewise.
43377         * lib/fwriting.c (fwriting): Likewise.
43378         Reported by Alain Guibert <alguibert+bts@free.fr>.
43379
43380 2008-04-15  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/mathl (configure.ac): Define module indicator.
43383
43384 2008-04-15  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/logl.c (logl): Remove unused variables.
43387
43388 2008-04-15  Bruno Haible  <bruno@clisp.org>
43389
43390         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43391         fails.
43392
43393 2008-04-15  Bruno Haible  <bruno@clisp.org>
43394
43395         * lib/trim.c (trim2): Fix argument of isspace() macro.
43396
43397 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43398
43399         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43400         to 0.
43401         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43402
43403 2008-04-14  Bruno Haible  <bruno@clisp.org>
43404
43405         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43406         AC_LANG_PROGRAM argument.
43407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43408         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43410         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43411         * m4/math_h.m4 (gl_MATH_H): Likewise.
43412         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43415         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43416         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43417         * m4/regex.m4 (gl_REGEX): Likewise.
43418         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43419         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43421         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43426
43427 2008-04-14  Jim Meyering  <meyering@redhat.com>
43428
43429         test-strtod: fix typos: s/abs/fabs/
43430         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43431
43432 2008-04-13  Bruno Haible  <bruno@clisp.org>
43433
43434         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43435         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43436         module is also used and while not building the reloc-wrapper.
43437
43438 2008-04-13  Bruno Haible  <bruno@clisp.org>
43439
43440         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43441
43442 2008-04-13  Bruno Haible  <bruno@clisp.org>
43443
43444         Fix AIX compilation failure introduced on 2008-04-02.
43445         * tests/test-frexp.c (exp): Undefine before redefining.
43446         * tests/test-frexpl.c (exp): Likewise.
43447
43448 2008-04-13  Bruno Haible  <bruno@clisp.org>
43449
43450         Work around a HP-UX stdio bug.
43451         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43452         * tests/test-ftello.c (main): Likewise.
43453         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43454         * doc/posix-functions/ftello.texi: Likewise.
43455
43456 2008-04-13  Bruno Haible  <bruno@clisp.org>
43457
43458         Make test-signbit pass on HP-UX/hppa.
43459         * tests/test-signbit.c (minus_zerol): New variable.
43460         (test_signbitl): Use it.
43461
43462 2008-04-13  Bruno Haible  <bruno@clisp.org>
43463
43464         Make truncl work on OSF/1 4.0.
43465         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43466         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43467         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43469         HAVE_DECL_TRUNCL.
43470         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43471         HAVE_DECL_TRUNCL.
43472         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43473
43474 2008-04-13  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43477
43478 2008-04-13  Bruno Haible  <bruno@clisp.org>
43479
43480         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43481         expression, so as to avoid HP-UX 11 cc compiler bug.
43482
43483 2008-04-13  Bruno Haible  <bruno@clisp.org>
43484
43485         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43486
43487 2008-04-13  Bruno Haible  <bruno@clisp.org>
43488
43489         * lib/git-merge-changelog.c: Remove empty declaration outside of
43490         functions.
43491
43492 2008-04-13  Bruno Haible  <bruno@clisp.org>
43493
43494         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43495
43496 2008-04-13  Bruno Haible  <bruno@clisp.org>
43497
43498         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43499         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43501         also if it exists but lacks definitions of the SHUT_* macros.
43502         * modules/sys_socket (Description): Update.
43503         Reported by Elbert Pol <e.pol@chello.nl>.
43504
43505 2008-04-13  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/localcharset.c (OS2): Don't redefine if already defined.
43508         Reported by Elbert Pol <e.pol@chello.nl>.
43509
43510 2008-04-13  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/binary-io.h [__EMX__]: Include <io.h>.
43513         Reported by Elbert Pol <e.pol@chello.nl>.
43514
43515 2008-04-12  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/fpucw.h: Enable the definitions also for x86_64.
43518         Needed for NetBSD/x86_64.
43519         Reported by Thomas Klausner <tk@giga.or.at>.
43520
43521 2008-04-12  Bruno Haible  <bruno@clisp.org>
43522
43523         * tests/test-strtod.c: Include isnand.h.
43524         (main): Use isnand instead of isnan.
43525         Reported by Jim Meyering.
43526
43527 2008-04-12  Bruno Haible  <bruno@clisp.org>
43528
43529         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43530         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43531
43532 2008-04-12  Jim Meyering  <meyering@redhat.com>
43533
43534         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43535
43536 2008-04-12  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43539         Reported by Elbert Pol <e.pol@chello.nl>.
43540
43541 2008-04-12  Eric Blake  <ebb9@byu.net>
43542
43543         Work around Solaris 10 math.h bug.
43544         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43545         (gl_MATH_H_DEFAULTS): Set up default.
43546         * modules/math (Makefile.am): Replace new indicators.
43547         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43548         * tests/test-math.c (main): Test this.
43549         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43550         * doc/posix-headers/math.texi (math.h): Mention bug.
43551         Reported by Nelson H. F. Beebe and Jim Meyering.
43552
43553 2008-04-11  Bruno Haible  <bruno@clisp.org>
43554
43555         Adapt to future versions of Apple GCC.
43556         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43557         Reported by Peter O'Gorman <peter@pogma.com>.
43558
43559 2008-04-11  Bruno Haible  <bruno@clisp.org>
43560
43561         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43562
43563 2008-04-11  Bruno Haible  <bruno@clisp.org>
43564
43565         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43566
43567         * modules/getaddrinfo-tests (Makefile.am): Define
43568         test_getaddrinfo_LDADD.
43569
43570 2008-04-11  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43573         (init): Fix syntax error.
43574         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43575         is declared.
43576
43577 2008-04-11  Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43580         * modules/glob (Depends-on): Add stdbool.
43581
43582 2008-04-11  Bruno Haible  <bruno@clisp.org>
43583
43584         * lib/trim.c: Include <string.h>.
43585
43586 2008-04-11  Eric Blake  <ebb9@byu.net>
43587
43588         Avoid compile failure on OS/2.
43589         * lib/regex_internal.h (internal_function): Disable optimization
43590         on OS/2 (__EMX__), where it caused compiler error.
43591         Reported by Elbert Pol.
43592
43593 2008-04-11  Bruno Haible  <bruno@clisp.org>
43594
43595         Flush the standard error stream before aborting. Needed on mingw.
43596         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43597         * tests/test-array_list.c (ASSERT): Likewise.
43598         * tests/test-array_oset.c (ASSERT): Likewise.
43599         * tests/test-avltree_list.c (ASSERT): Likewise.
43600         * tests/test-avltree_oset.c (ASSERT): Likewise.
43601         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43602         * tests/test-binary-io.c (ASSERT): Likewise.
43603         * tests/test-byteswap.c (ASSERT): Likewise.
43604         * tests/test-c-ctype.c (ASSERT): Likewise.
43605         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43606         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43607         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43608         * tests/test-c-strstr.c (ASSERT): Likewise.
43609         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43610         * tests/test-canonicalize.c (ASSERT): Likewise.
43611         * tests/test-carray_list.c (ASSERT): Likewise.
43612         * tests/test-ceilf1.c (ASSERT): Likewise.
43613         * tests/test-ceilf2.c (ASSERT): Likewise.
43614         * tests/test-ceill.c (ASSERT): Likewise.
43615         * tests/test-count-one-bits.c (ASSERT): Likewise.
43616         * tests/test-fbufmode.c (ASSERT): Likewise.
43617         * tests/test-fflush2.c (ASSERT): Likewise.
43618         * tests/test-floorf1.c (ASSERT): Likewise.
43619         * tests/test-floorf2.c (ASSERT): Likewise.
43620         * tests/test-floorl.c (ASSERT): Likewise.
43621         * tests/test-fopen.c (ASSERT): Likewise.
43622         * tests/test-fpending.c (ASSERT): Likewise.
43623         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43624         * tests/test-fpurge.c (ASSERT): Likewise.
43625         * tests/test-freadable.c (ASSERT): Likewise.
43626         * tests/test-freadahead.c (ASSERT): Likewise.
43627         * tests/test-freading.c (ASSERT): Likewise.
43628         * tests/test-freadptr.c (ASSERT): Likewise.
43629         * tests/test-freadptr2.c (ASSERT): Likewise.
43630         * tests/test-freadseek.c (ASSERT): Likewise.
43631         * tests/test-freopen.c (ASSERT): Likewise.
43632         * tests/test-frexp.c (ASSERT): Likewise.
43633         * tests/test-frexpl.c (ASSERT): Likewise.
43634         * tests/test-fseek.c (ASSERT): Likewise.
43635         * tests/test-fseeko.c (ASSERT): Likewise.
43636         * tests/test-fstrcmp.c (ASSERT): Likewise.
43637         * tests/test-ftell.c (ASSERT): Likewise.
43638         * tests/test-ftello.c (ASSERT): Likewise.
43639         * tests/test-func.c (ASSERT): Likewise.
43640         * tests/test-fwritable.c (ASSERT): Likewise.
43641         * tests/test-fwriting.c (ASSERT): Likewise.
43642         * tests/test-getdelim.c (ASSERT): Likewise.
43643         * tests/test-getline.c (ASSERT): Likewise.
43644         * tests/test-i-ring.c (ASSERT): Likewise.
43645         * tests/test-iconv-utf.c (ASSERT): Likewise.
43646         * tests/test-iconv.c (ASSERT): Likewise.
43647         * tests/test-isfinite.c (ASSERT): Likewise.
43648         * tests/test-isnand.c (ASSERT): Likewise.
43649         * tests/test-isnanf.c (ASSERT): Likewise.
43650         * tests/test-isnanl.h (ASSERT): Likewise.
43651         * tests/test-ldexpl.c (ASSERT): Likewise.
43652         * tests/test-linked_list.c (ASSERT): Likewise.
43653         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43654         * tests/test-localename.c (ASSERT): Likewise.
43655         * tests/test-lseek.c (ASSERT): Likewise.
43656         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43657         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43658         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43659         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43660         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43661         * tests/test-mbschr.c (ASSERT): Likewise.
43662         * tests/test-mbscspn.c (ASSERT): Likewise.
43663         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43664         * tests/test-mbspbrk.c (ASSERT): Likewise.
43665         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43666         * tests/test-mbsrchr.c (ASSERT): Likewise.
43667         * tests/test-mbsspn.c (ASSERT): Likewise.
43668         * tests/test-mbsstr1.c (ASSERT): Likewise.
43669         * tests/test-mbsstr2.c (ASSERT): Likewise.
43670         * tests/test-mbsstr3.c (ASSERT): Likewise.
43671         * tests/test-memchr2.c (ASSERT): Likewise.
43672         * tests/test-memmem.c (ASSERT): Likewise.
43673         * tests/test-open.c (ASSERT): Likewise.
43674         * tests/test-printf-frexp.c (ASSERT): Likewise.
43675         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43676         * tests/test-printf-posix.c (ASSERT): Likewise.
43677         * tests/test-quotearg.c (ASSERT): Likewise.
43678         * tests/test-rbtree_list.c (ASSERT): Likewise.
43679         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43680         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43681         * tests/test-round1.c (ASSERT): Likewise.
43682         * tests/test-roundf1.c (ASSERT): Likewise.
43683         * tests/test-roundl.c (ASSERT): Likewise.
43684         * tests/test-signbit.c (ASSERT): Likewise.
43685         * tests/test-sleep.c (ASSERT): Likewise.
43686         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43687         * tests/test-snprintf.c (ASSERT): Likewise.
43688         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43689         * tests/test-stat-time.c (ASSERT): Likewise.
43690         * tests/test-strcasestr.c (ASSERT): Likewise.
43691         * tests/test-strerror.c (ASSERT): Likewise.
43692         * tests/test-striconv.c (ASSERT): Likewise.
43693         * tests/test-striconveh.c (ASSERT): Likewise.
43694         * tests/test-striconveha.c (ASSERT): Likewise.
43695         * tests/test-strsignal.c (ASSERT): Likewise.
43696         * tests/test-strstr.c (ASSERT): Likewise.
43697         * tests/test-strtod.c (ASSERT): Likewise.
43698         * tests/test-trunc1.c (ASSERT): Likewise.
43699         * tests/test-trunc2.c (ASSERT): Likewise.
43700         * tests/test-truncf1.c (ASSERT): Likewise.
43701         * tests/test-truncf2.c (ASSERT): Likewise.
43702         * tests/test-truncl.c (ASSERT): Likewise.
43703         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43704         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43705         * tests/test-vasnprintf.c (ASSERT): Likewise.
43706         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43707         * tests/test-vasprintf.c (ASSERT): Likewise.
43708         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43709         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43710         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43711         * tests/test-vsnprintf.c (ASSERT): Likewise.
43712         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43713         * tests/test-wcwidth.c (ASSERT): Likewise.
43714         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43715         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43716         * tests/test-xvasprintf.c (ASSERT): Likewise.
43717         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43718         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43719         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43720         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43721         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43722         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43723         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43724         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43725         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43726         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43727         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43728         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43729         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43730         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43731         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43732         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43733         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43734         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43735         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43736         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43737         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43738         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43739         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43740         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43741         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43742         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43743         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43744         * tests/unictype/test-combining.c (ASSERT): Likewise.
43745         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43746         * tests/unictype/test-digit.c (ASSERT): Likewise.
43747         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43748         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43749         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43750         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43751         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43752         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43753         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43754         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43755         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43756         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43757         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43758         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43759         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43760         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43761         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43762         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43763         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43764         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43765         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43766         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43767         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43768         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43769         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43770         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43771         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43772         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43773         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43774         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43775         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43776         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43777         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43778         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43779         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43780         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43781         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43782         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43783         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43784         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43785         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43786         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43787         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43788         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43789         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43790         Reported by Eric Blake.
43791
43792 2008-04-11  Bruno Haible  <bruno@clisp.org>
43793
43794         * lib/wchar.in.h: Tweak comment.
43795
43796 2008-04-11  Bruno Haible  <bruno@clisp.org>
43797
43798         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43799         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43800         gl_COMMON.
43801         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43802
43803 2008-04-11  Bruno Haible  <bruno@clisp.org>
43804
43805         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43806
43807 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43808
43809         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43810         of attempting to use non-existing /dev/*random.  Based on patch
43811         from Adam Strzelecki <ono@java.pl> in
43812         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43813
43814 2008-04-08  Bruno Haible  <bruno@clisp.org>
43815
43816         Add tentative support for emx+gcc.
43817         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43818         * lib/fpurge.c (fpurge): Likewise.
43819         * lib/freadable.c (freadable): Likewise.
43820         * lib/freadahead.c (freadahead): Likewise.
43821         * lib/freading.c (freading): Likewise.
43822         * lib/freadptr.c (freadptr): Likewise.
43823         * lib/freadseek.c (freadptrinc): Likewise.
43824         * lib/fseeko.c (rpl_fseeko): Likewise.
43825         * lib/fseterr.c (fseterr): Likewise.
43826         * lib/fwritable.c (fwritable): Likewise.
43827         * lib/fwriting.c (fwriting): Likewise.
43828         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43829
43830 2008-04-09  Eric Blake  <ebb9@byu.net>
43831
43832         Avoid some autoconf warnings.
43833         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43834         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43835         * m4/afs.m4 (gl_AFS): Likewise.
43836         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43837         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43839         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43840         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43841         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43842         (AC_CHECK_DECLS_ONCE): Likewise.
43843         Rename file...
43844         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43845         gnulib-tool requires autoconf 2.59 or better.
43846         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43847
43848 2008-04-08  Eric Blake  <ebb9@byu.net>
43849
43850         Use 'git describe --match' if present (added in git 1.5.5).
43851         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43852         if possible.
43853
43854 2008-04-08  Bruno Haible  <bruno@clisp.org>
43855
43856         Add tentative support for OpenServer.
43857         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43858         _ptr, _cnt.
43859         * lib/fpurge.c (fpurge): Likewise.
43860         * lib/freadable.c (freadable): Likewise.
43861         * lib/freadahead.c (freadahead): Likewise.
43862         * lib/freading.c (freading): Likewise.
43863         * lib/freadptr.c (freadptr): Likewise.
43864         * lib/freadseek.c (freadptrinc): Likewise.
43865         * lib/fseeko.c (rpl_fseeko): Likewise.
43866         * lib/fseterr.c (fseterr): Likewise.
43867         * lib/fwritable.c (fwritable): Likewise.
43868         * lib/fwriting.c (fwriting): Likewise.
43869         Reported by Roger Cornelius <rac@tenzing.org> and
43870         Brian K. White <brian@aljex.com>.
43871
43872 2008-04-06  Jim Meyering  <meyering@redhat.com>
43873
43874         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43875
43876 2008-04-06  Bruno Haible  <bruno@clisp.org>
43877
43878         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43879         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43880         * tests/test-printf-posix.sh: Likewise.
43881         * tests/test-vfprintf-posix.sh: Likewise.
43882         * tests/test-vprintf-posix.sh: Likewise.
43883         * tests/test-xprintf-posix.sh: Likewise.
43884
43885 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43886
43887         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43888         hide error from 'ls', needed on OS/2.
43889         Report by Elbert Pol <elbert.pol@gmail.com>.
43890
43891 2008-04-04  Eric Blake  <ebb9@byu.net>
43892
43893         Make test-fseeko.c failures meaningful.
43894         * tests/test-fseeko.c: Print line number on failure.
43895         * tests/test-fseek.c: Likewise.
43896         Reported by Nelson H. F. Beebe.
43897
43898         Improve strtod bug detection check.
43899         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43900         required for Solaris 10.
43901         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43902
43903 2008-04-04  Bruno Haible  <bruno@clisp.org>
43904
43905         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43906         by m4/setenv.m4.
43907
43908 2008-04-03  Eric Blake  <ebb9@byu.net>
43909
43910         Ensure sane .version contents.
43911         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43912         version string.
43913         * build-aux/git-version-gen: Improve documentation.
43914
43915         Make GNU make output nicer.
43916         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43917         MAKECMDGOALS to enforce message for all command line targets.  Set
43918         srcdir for use in maint.mk.
43919
43920         Another maintainer tweak.
43921         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43922         a target that regenerates version.
43923
43924 2008-04-03  Jim Meyering  <meyering@redhat.com>
43925
43926         vc-list-files: don't cause coreutils "make po-check" failure
43927         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43928
43929 2008-04-03  Eric Blake  <ebb9@byu.net>
43930
43931         Allow VPATH usage of vc-list-files.
43932         * build-aux/vc-list-files (scriptversion): Add timestamp.
43933         (options): Add --help, --version, -C.
43934         (CVS): Support installed cvsu.
43935
43936 2008-04-02  Bruno Haible  <bruno@clisp.org>
43937
43938         Avoid some "statement with no effect" warnings from gcc.
43939         * tests/test-wctype.c (main): Explicitly ignore unused values.
43940         Reported by Jim Meyering.
43941
43942 2008-04-02  Jim Meyering  <meyering@redhat.com>
43943
43944         Avoid some warnings from "gcc -Wshadow".
43945         * tests/test-frexp.c (exp): Define to a different identifier.
43946         * tests/test-frexpl.c (exp): Likewise.
43947
43948 2008-04-03  Jim Meyering  <meyering@redhat.com>
43949
43950         bootstrap: remove dangling *.[ch] symlinks from lib
43951         * build-aux/bootstrap [dangling symlink removal]: Move find's
43952         -depth option to precede all others, to avoid a warning.
43953         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43954
43955 2008-04-02  Bruno Haible  <bruno@clisp.org>
43956
43957         Avoid some warnings from "gcc -Wshadow".
43958         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43959         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43960         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43961         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43962         Reported by Jim Meyering.
43963
43964 2008-04-01  Bruno Haible  <bruno@clisp.org>
43965
43966         Fix test to work on IRIX 6.5 with cc.
43967         * tests/test-math.c (numeric_equal): New function.
43968         (main): Use it.
43969
43970 2008-04-01  Bruno Haible  <bruno@clisp.org>
43971
43972         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43973
43974 2008-04-01  Bruno Haible  <bruno@clisp.org>
43975
43976         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43977         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43978         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43979         (Depends-on): Remove math.
43980
43981         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43982         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43983         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43984         (Depends-on): Remove math.
43985
43986         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43987         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43988         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43989         (Depends-on): Remove math.
43990         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43991         (Depends-on): Remove math.
43992
43993         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43994         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43995         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43996         (Depends-on): Remove math.
43997         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43998         (Depends-on): Remove math.
43999
44000         * tests/test-round1.c: Include nan.h.
44001         (main): Use NaNd instead of NAN.
44002         * modules/round-tests (Files): Add tests/nan.h.
44003
44004         * tests/test-trunc1.c: Include nan.h.
44005         (main): Use NaNd instead of NAN.
44006         * modules/trunc-tests (Files): Add tests/nan.h.
44007
44008         * tests/test-roundf1.c: Include nan.h.
44009         (main): Use NaNf instead of NAN.
44010         * modules/roundf-tests (Files): Add tests/nan.h.
44011
44012         * tests/test-truncf1.c: Include nan.h.
44013         (main): Use NaNf instead of NAN.
44014         * modules/truncf-tests (Files): Add tests/nan.h.
44015
44016         * tests/test-ceilf1.c: Include nan.h.
44017         (main): Use NaNf instead of NAN.
44018         * modules/ceilf-tests (Files): Add tests/nan.h.
44019
44020         * tests/test-floorf1.c: Include nan.h.
44021         (main): Use NaNf instead of NAN.
44022         * modules/floorf-tests (Files): Add tests/nan.h.
44023
44024         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44025         (main): Use NaNf instead of NAN.
44026         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44027
44028         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44029         (main): Use NaNd instead of NAN.
44030         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44031
44032         * tests/test-frexp.c: Include nan.h.
44033         (main): Use NaNd instead of NAN.
44034         * modules/frexp-tests (Files): Add tests/nan.h.
44035
44036         * lib/isnan.c: Don't include <math.h>.
44037         (FUNC): Don't use NAN macro.
44038         * modules/isnand-nolibm (Depends-on): Remove math.
44039         * modules/isnanf-nolibm (Depends-on): Remove math.
44040         * modules/isnanl (Depends-on): Remove math.
44041         * modules/isnanl-nolibm (Depends-on): Remove math.
44042
44043         * tests/nan.h: New file.
44044
44045 2008-04-01  Eric Blake  <ebb9@byu.net>
44046
44047         Fix typos.
44048         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44049         values to be the right type.
44050
44051         For now, cater to gnulib strtod inaccuracies.
44052         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44053         fractional results.  While not as nice from a QoI perspective, it
44054         is a quicker patch than correctly implementing decimal to binary
44055         rounding.
44056
44057 2008-03-31  Eric Blake  <ebb9@byu.net>
44058
44059         Guarantee a definition of NAN.
44060         * lib/math.in.h (NAN): Define if missing.
44061         * tests/test-math.c (main): Test it.
44062         * doc/posix-headers/math.texi (math.h): Document this.
44063         * lib/isnan.c (rpl_isnand): Use it.
44064         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44065         * tests/test-floorf1.c (NaN): Likewise.
44066         * tests/test-frexp.c (NaN): Likewise.
44067         * tests/test-isnand.c (NaN): Likewise.
44068         * tests/test-isnanf.c (NaN): Likewise.
44069         * tests/test-round1.c (NaN): Likewise.
44070         * tests/test-roundf1.c (NaN): Likewise.
44071         * tests/test-snprintf-posix.h (NaN): Likewise.
44072         * tests/test-sprintf-posix.h (NaN): Likewise.
44073         * tests/test-trunc1.c (NaN): Likewise.
44074         * tests/test-truncf1.c (NaN): Likewise.
44075         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44076         * tests/test-vasprintf-posix.c (NaN): Likewise.
44077         * modules/isnand-nolibm (Depends-on): Add math.
44078         * modules/isnanf-nolibm (Depends-on): Likewise.
44079         * modules/isnanl (Depends-on): Likewise.
44080         * modules/isnanl-nolibm (Depends-on): Likewise.
44081         * modules/snprintf-posix-tests (Depends-on): Likewise.
44082         * modules/sprintf-posix-tests (Depends-on): Likewise.
44083         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44084         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44085         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44086         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44087
44088 2008-03-31  Bruno Haible  <bruno@clisp.org>
44089
44090         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44091         * doc/posix-functions/strtod.texi: Likewise.
44092
44093 2008-03-31  Bruno Haible  <bruno@clisp.org>
44094
44095         * tests/test-strtod.c (main): Don't use C99 syntax.
44096
44097 2008-03-31  Bruno Haible  <bruno@clisp.org>
44098
44099         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44100         Reported by Eric Blake.
44101
44102 2008-03-31  Jim Meyering  <meyering@redhat.com>
44103
44104         Don't compare actual signbit return values.
44105         * tests/test-strtod.c (main): Rather, compare only their
44106         zero/non-zero nature.
44107
44108 2008-03-31  Eric Blake  <ebb9@byu.net>
44109
44110         More strtod documentation.
44111         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44112         failures as distinct bugs.
44113
44114 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44117         Problem reported by Erik Benada in
44118         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44119
44120 2008-03-30  Bruno Haible  <bruno@clisp.org>
44121
44122         * tests/test-strtod.c: Add comments about which assertion fails on which
44123         platform.
44124         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44125
44126 2008-03-30  Eric Blake  <ebb9@byu.net>
44127
44128         Test signbit behavior on zeros.
44129         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44130         (test_signbitd, test_signbitl): Likewise.
44131
44132         More strtod touchups.
44133         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44134         sign of negative underflow, for now.  Use .5, not .1.
44135         * doc/posix-functions/strtod.texi (strtod): Mention these
44136         limitations.
44137         Reported by Jim Meyering.
44138
44139 2008-03-30  Bruno Haible  <bruno@clisp.org>
44140
44141         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44142         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44143
44144 2008-03-30  Bruno Haible  <bruno@clisp.org>
44145
44146         Avoid failure when attempting to return empty iconv results on some
44147         platforms.
44148         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44149         allocation, don't report ENOMEM when the resulting string is empty.
44150
44151 2008-03-30  Bruno Haible  <bruno@clisp.org>
44152
44153         Fix buffer overrun.
44154         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44155         Don't consider the width for tmp_length. Check count against tmp_length
44156         before doing the padding. Ensure enough allocation during padding.
44157
44158 2008-03-30  Eric Blake  <ebb9@byu.net>
44159
44160         strtod touchups.
44161         * lib/strtod.c (strtod): Avoid compiler warnings.
44162         Reported by Jim Meyering.
44163
44164 2008-03-30  Bruno Haible  <bruno@clisp.org>
44165
44166         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44167         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44168         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44169         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44170         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44171         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44172         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44173         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44174
44175         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44176         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44177         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44178         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44179         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44180         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44181         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44182         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44183
44184         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44185         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44186         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44187         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44188         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44189         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44190         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44191         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44192
44193         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44194         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44195
44196         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44197         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44198
44199         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44200         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44201
44202         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44204         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44205
44206         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44208         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44209
44210         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44212         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44213
44214         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44216         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44217
44218         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44219         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44221         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44222         (Depends-on): Add EOVERFLOW.
44223         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44224         (Depends-on): Add EOVERFLOW.
44225         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44226         (Depends-on): Add EOVERFLOW.
44227         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44228         (Depends-on): Add EOVERFLOW.
44229         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44230         (Depends-on): Add EOVERFLOW.
44231         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44232         (Depends-on): Add EOVERFLOW.
44233         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44234         (Depends-on): Add EOVERFLOW.
44235         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44236         (Depends-on): Add EOVERFLOW.
44237
44238         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44240         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44241
44242         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44244         * modules/snprintf (Depends-on): Add EOVERFLOW.
44245
44246         * lib/poll.c (EOVERFLOW): Remove fallback.
44247         * modules/poll (Depends-on): Add EOVERFLOW.
44248
44249         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44250         * modules/getugroups (Depends-on): Add EOVERFLOW.
44251
44252         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44253         * modules/getdelim (Depends-on): Add EOVERFLOW.
44254
44255         * lib/ftell.c (EOVERFLOW): Remove fallback.
44256         * modules/ftell (Depends-on): Add EOVERFLOW.
44257
44258         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44260         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44261
44262         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44263
44264         * modules/EOVERFLOW-tests: New file.
44265         * tests/test-EOVERFLOW.c: New file.
44266
44267         * modules/EOVERFLOW: New file.
44268         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44269
44270 2008-03-30  Bruno Haible  <bruno@clisp.org>
44271
44272         Fix bug introduced on 2007-06-10.
44273         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44274         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44275
44276 2008-03-30  Bruno Haible  <bruno@clisp.org>
44277
44278         Improve freadseek's efficiency after ungetc.
44279         * lib/freadseek.c: Include freadahead.h.
44280         (freadptrinc): New function, extracted from freadseek.
44281         (freadseek): Use it in a loop. Use freadahead to determine the number
44282         of loop iterations.
44283         * modules/freadseek (Depends-on): Add freadahead.
44284         (configure.ac): Require AC_C_INLINE.
44285
44286 2008-03-30  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/freadseek.c (freadseek): Don't ignore the return value of
44289         freadptr.
44290
44291 2008-03-29  Eric Blake  <ebb9@byu.net>
44292
44293         Add hex float support.
44294         * modules/strtod (Depends-on): Add c-ctype.
44295         (Link): Mention POW_LIB.
44296         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44297         whitespace between 'e' and exponent.
44298         * tests/test-strtod.c (main): Enable hex float tests.
44299         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44300         now provides.
44301
44302         Document various strtod bugs, with some fixes.
44303         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44304         "-0x", "inf", "nan", and hex constants.
44305         * doc/posix-functions/atof.texi (atof): Likewise.
44306         * modules/stdlib (Makefile.am): Support strtod.
44307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44308         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44309         detect additional strtod bugs.
44310         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44311         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44312         bool where appropriate.  Parse 'inf' and 'nan'.
44313         * tests/test-strtod.c: New file.
44314         * modules/strtod (Depends-on): Add stdbool, stdlib.
44315         (configure.ac): Turn on module indicator.
44316         * modules/strtod-tests: New module.
44317
44318 2008-03-29  Eric Blake  <ebb9@byu.net>
44319
44320         Fix ftell on mingw.
44321         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44322         * modules/ftell-tests (Depends-on): Add binary-io.
44323         * modules/ftello-tests (Depends-on): Likewise.
44324         * tests/test-ftell.c (main): Enhance test to cover behavior after
44325         ungetc.  Enforce binary mode.
44326         * tests/test-ftello.c (main): Likewise.
44327
44328         Pass test-freadseek on cygwin.
44329         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44330         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44331         ungetc buffer.
44332
44333         * tests/test-fflush2.c (main): Fix typo.
44334
44335 2008-03-29  Bruno Haible  <bruno@clisp.org>
44336
44337         * tests/test-fflush2.c (main): Temporarily disable the contents of
44338         this test.
44339         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44340         Reported by Eric Blake.
44341
44342 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44343
44344         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44345         (GC_SHA224_DIGEST_SIZE): Add.
44346
44347         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44348         (gc_hash_digest_length): Likewise.
44349         (gc_hash_buffer): Likewise.
44350
44351 2008-03-25  Bruno Haible  <bruno@clisp.org>
44352
44353         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44354         detail which gettext release to use.
44355         Reported by Simon Josefsson.
44356
44357 2008-03-26  Jim Meyering  <meyering@redhat.com>
44358
44359         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44360         * modules/gnumakefile (clean-GNUmakefile): Also, use
44361         test ... && ... || : syntax rather than if-then ... fi.
44362
44363         gnumakefile: Don't double-quote-expand $(VPATH) value.
44364         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44365
44366 2008-03-24  Eric Blake  <ebb9@byu.net>
44367
44368         Alter GNUmakefile to install into top directory.
44369         * modules/maintainer-makefile: Split, and add dependency...
44370         * modules/gnumakefile: to this new module.
44371         * build-aux/GNUmakefile: Move...
44372         * top/GNUmakefile: ...here.
44373         * build-aux/maint.mk: Move...
44374         * top/maint.mk: ...here.
44375         * MODULES.html.sh (Support for maintaining...): Document new
44376         module.
44377
44378 2008-03-23  Bruno Haible  <bruno@clisp.org>
44379
44380         * gnulib-tool: New options --vc-files, --no-vc-files.
44381         (func_usage): Document them.
44382         (vc_files): New variable.
44383         (func_import): Consider vc_files.
44384         (func_create_testdir): Set vc_files to empty.
44385         Suggested by Jim Meyering and Karl Berry.
44386
44387 2008-03-23  Bruno Haible  <bruno@clisp.org>
44388
44389         Fix regex compilation error on HP-UX 11.
44390         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44391         * modules/regex (Files): Add m4/mbstate_t.m4.
44392         Reported by Ton Voon <ton.voon@altinity.com>.
44393
44394 2008-03-23  Bruno Haible  <bruno@clisp.org>
44395
44396         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44397
44398 2008-03-23  Eric Blake  <ebb9@byu.net>
44399             Bruno Haible  <bruno@clisp.org>
44400
44401         Install files from top/ in the destination directory.
44402         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44403         augmentation also for the files from top/.
44404         (func_import, func_create_testdir): Rewrite file names:
44405         top/filename -> filename.
44406
44407 2008-03-23  Bruno Haible  <bruno@clisp.org>
44408
44409         Tweak "gnulib --version" output.
44410         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44411
44412 2008-03-23  Bruno Haible  <bruno@clisp.org>
44413
44414         Tweak "gnulib --version" output.
44415         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44416         rather than contents of ChangeLog, when possible.
44417
44418 2008-03-21  Eric Blake  <ebb9@byu.net>
44419
44420         More --version tweaks.
44421         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44422         date of last ChangeLog entry.
44423
44424 2008-03-21  Jim Meyering  <meyering@redhat.com>
44425
44426         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44427
44428 2008-03-20  Eric Blake  <ebb9@byu.net>
44429
44430         VPATH fix.
44431         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44432
44433 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44434
44435         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44436         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44437
44438 2008-03-20  Eric Blake  <ebb9@byu.net>
44439
44440         Sync GNUmakefile with coreutils.
44441         * build-aux/GNUmakefile (have-Makefile): Rename...
44442         (_have-Makefile): ...to this, for namespace consideration.
44443         (GNUmakefile.cfg): Include, if present.
44444         (_autoreconf): Define a default.
44445         (_is-dist-target): New rule for rebuilds to pick up intra-release
44446         version.
44447         (maint-cfg.mk): Rename...
44448         (cfg.mk): ...to this.
44449
44450 2008-03-18  Jim Meyering  <meyering@redhat.com>
44451
44452         New script and module: mktempd
44453         * MODULES.html.sh (maint+release support): Add mktempd.
44454         * build-aux/mktempd: New file.
44455         * modules/mktempd: New file.
44456
44457 2008-03-15  Jim Meyering  <meyering@redhat.com>
44458
44459         Undo last change.
44460         * lib/sha1.c, lib/md5.c: 63 != ~63.
44461         Reported by Andreas Schwab.
44462
44463         sha1.c, md5.c: Hoist a redundant expression.
44464         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44465         "ctx->buflen" only once, before calling *_process_block.
44466         * lib/md5.c (md5_process_bytes): Likewise.
44467
44468 2008-03-14  Eric Blake  <ebb9@byu.net>
44469
44470         Bump copyright year in files generated by gnulib-tool.
44471         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44472         gnulib-tool, rather than hard-coding it.
44473
44474         Fix 'gnulib-tool --version' output to work with git.
44475         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44476         (startup): ...here.
44477         (func_version): Use it to invoke git-version-gen, rather than
44478         relying on CVS keyword expansion.  Modernize wording.
44479         (cvsdatestamp, last_checkin_date, version): Kill unused
44480         variables.
44481
44482 2008-03-12  Jim Meyering  <meyering@redhat.com>
44483
44484         Recognize optional cast of the argument to free.
44485         * build-aux/useless-if-before-free: Update regexps.
44486
44487         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44488
44489 2008-03-11  Bruno Haible  <bruno@clisp.org>
44490
44491         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44492         by a single package.
44493         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44494         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44495         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44496         Reported by Sam Steingold <sds@gnu.org>.
44497
44498 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44499
44500         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44501         repositories.
44502
44503 2008-03-11  Bruno Haible  <bruno@clisp.org>
44504
44505         Avoid conflicts between local macro definitions.
44506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44507         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44508
44509 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44510             Bruno Haible  <bruno@clisp.org>
44511
44512         Make va_copy work with some version of xlc on AIX 5.1.
44513         * lib/stdarg.in.h: New file.
44514         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44515         On AIX, use a <stdarg.h> file substitute.
44516         * modules/stdarg (Files): Add lib/stdarg.in.h.
44517         (Depends-on): Add include_next.
44518         (Makefile.am): Build a stdarg.h substitute if requested.
44519         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44520
44521 2008-03-10  Bruno Haible  <bruno@clisp.org>
44522
44523         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44525         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44526
44527 2008-03-10  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/stdlib (Depends-on): Add include_next, remove
44530         absolute-header.
44531
44532 2008-03-09  Bruno Haible  <bruno@clisp.org>
44533
44534         * lib/freadahead.h (freadahead): Document more precisely.
44535         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44536         the sum of both buffer sizes.
44537         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44538         * NEWS: Document the change.
44539
44540 2008-03-09  Bruno Haible  <bruno@clisp.org>
44541
44542         Extend freadptr to return also the buffer size.
44543         * lib/freadptr.h (freadptr): Add sizep argument.
44544         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44545         (freadptr): Add sizep argument. Determine buffer size like freadahead
44546         does.
44547         * tests/test-freadptr.c: Don't include freadahead.h.
44548         (main): Adapt for new calling convention of freadptr.
44549         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44550         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44551         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44552         tests/test-freadptr2.sh.
44553         (Depends): Remove freadahead.
44554         (TESTS): Add test-freadptr2.sh.
44555         (check_PROGRAMS): Add test-freadptr2.
44556
44557 2008-03-09  Bruno Haible  <bruno@clisp.org>
44558
44559         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44560         Report and solution by Simon Josefsson.
44561
44562 2008-03-06  Bruno Haible  <bruno@clisp.org>
44563
44564         Make fflush after ungetc work on BSD platforms.
44565         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44566         * tests/test-fflush2.c: New file.
44567         * tests/test-fflush2.sh: New file.
44568         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44569         tests/test-fflush2.c.
44570         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44571         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44572
44573 2008-03-06  Eric Blake  <ebb9@byu.net>
44574
44575         Likewise for ftello.
44576         * modules/ftello (Dependencies): Add extensions.
44577         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44578
44579 2008-03-06  Bruno Haible  <bruno@clisp.org>
44580
44581         * modules/fseeko (Dependencies): Add extensions.
44582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44583         Needed on glibc systems.
44584
44585 2008-03-06  Bruno Haible  <bruno@clisp.org>
44586
44587         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44588         email address.
44589         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44590
44591 2008-03-06  Bruno Haible  <bruno@clisp.org>
44592
44593         * users.txt: Add libgnupdf.
44594
44595 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44596
44597         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44598         (Header File Substitutes, Function Substitutes,
44599         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44600         (Build robot for gnulib): Fix typo.
44601
44602 2008-03-06  Bruno Haible  <bruno@clisp.org>
44603
44604         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44605         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44606
44607 2008-03-06  Bruno Haible  <bruno@clisp.org>
44608
44609         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44610         * doc/gnulib.texi: Include it.
44611
44612 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44613
44614         * modules/func (License): Change license to unlimited; there was
44615         no LGPL parts in the module anyway.
44616
44617 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44618
44619         * modules/__func__: Renamed to modules/func.
44620         * modules/__func__-tests: Renamed to modules/func-tests.
44621         * tests/test-__func__.c: Renamed to tests/test-func.c.
44622         * m4/__func__.m4: Renamed to m4/func.m4.
44623         * doc/gnulib.texi (__func__): Section renamed to func.
44624         Suggested by Eric Blake <ebb9@byu.net>.
44625
44626 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44627
44628         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44629         about __func__.  Make example self-contained.  Suggested by Eric
44630         Blake <ebb9@byu.net>.
44631
44632         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44633         Suggested by Eric Blake <ebb9@byu.net>.
44634
44635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44636
44637         * modules/__func__: New file.
44638         * modules/__func__-tests: New file.
44639         * tests/test-__func__.c: New file.
44640         * m4/__func__.m4: New file.
44641         * doc/gnulib.texi (__func__): Document __func__ module.
44642
44643 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44644
44645         * modules/byteswap (License): Re-license as LGPLv2+.
44646
44647 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44648
44649         * doc/Makefile: Add pdf target.
44650
44651 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44652
44653         * modules/inline (License): Use 'unlimited', since there are only
44654         *.m4 files in this module.
44655
44656 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44657             Bruno Haible  <bruno@clisp.org>
44658
44659         Add support for HP C 7.1 on OpenVMS 8.3.
44660         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44661
44662 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44663
44664         Update VMS specifics.
44665         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44666
44667 2008-03-02  Jim Meyering  <meyering@redhat.com>
44668
44669         Remove the last dependency on the "free" module.
44670         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44671         Reported by Bob Proulx.
44672
44673         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44674
44675         Remove useless "if" tests before free.  Deprecate "free" module.
44676         * doc/posix-functions/free.texi: Mention that this
44677         module is no longer useful.
44678         * modules/free (Notice): Say this module is obsolete.
44679         * modules/readutmp (Depends-on): Remove free.
44680         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44681         * lib/putenv.c (putenv): Likewise.
44682         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44683         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44684         * tests/test-c-strcasestr.c (main): Likewise.
44685         * tests/test-c-strstr.c (main): Likewise.
44686         * tests/test-mbscasestr1.c (main): Likewise.
44687         * tests/test-mbscasestr2.c (main): Likewise.
44688         * tests/test-mbsstr1.c (main): Likewise.
44689         * tests/test-mbsstr2.c (main): Likewise.
44690         * tests/test-memmem.c (main): Likewise.
44691         * tests/test-strcasestr.c (main): Likewise.
44692         * tests/test-striconv.c (main): Likewise.
44693         * tests/test-striconveh.c (main): Likewise.
44694         * tests/test-striconveha.c (main): Likewise.
44695         * tests/test-strstr.c (main): Likewise.
44696
44697         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44698
44699         bootstrap: sync from coreutils again
44700         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44701
44702 2008-03-01  Jim Meyering  <meyering@redhat.com>
44703
44704         bootstrap: sync from coreutils
44705         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44706         also when the target doesn't exist.
44707
44708 2008-03-01  Eric Blake  <ebb9@byu.net>
44709
44710         Fix bugs in last patch.
44711         * lib/memchr2.c (memchr2): Fix typo.
44712         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44713         extension.
44714         Reported by Bruce Korb.
44715
44716         New module 'memchr2'.
44717         * modules/memchr2: New file.
44718         * modules/memchr2-tests: Likewise.
44719         * lib/memchr2.h: Likewise.
44720         * lib/memchr2.c: Likewise, based on memchr.c.
44721         * tests/test-memchr2.c: New test.
44722         * MODULES.html.sh (String handling): Add memchr2.
44723
44724 2008-02-29  Bruno Haible  <bruno@clisp.org>
44725
44726         * modules/freadseek-tests: New file.
44727         * tests/test-freadseek.sh: New file.
44728         * tests/test-freadseek.c: New file.
44729
44730         New module 'freadseek'.
44731         * modules/freadseek: New file.
44732         * lib/freadseek.h: New file.
44733         * lib/freadseek.c: New file.
44734         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44735
44736 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44737
44738         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44739         wydawca.
44740
44741         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44742         program_invocation_name and program_invocation_short_name are
44743         present.
44744
44745 2008-02-28  Bruno Haible  <bruno@clisp.org>
44746
44747         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44748         * tests/test-freadptr.sh: Also test non-seekable stdin.
44749
44750 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44751
44752         * build-aux/bootstrap (source_base, m4_base)
44753         (doc_base, tests_base): New variables.
44754         (gnulib_tool_options): Do not hardcode base directories, use
44755         the above variables instead.
44756
44757 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44758
44759         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44760
44761 2008-02-28  Bruno Haible  <bruno@clisp.org>
44762
44763         * modules/freadptr-tests: New file.
44764         * tests/test-freadptr.sh: New file.
44765         * tests/test-freadptr.c: New file.
44766
44767         New module 'freadptr'.
44768         * modules/freadptr: New file.
44769         * lib/freadptr.h: New file.
44770         * lib/freadptr.c: New file.
44771         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44772
44773 2008-02-26  Karl Berry  <karl@freefriends.org>
44774
44775         Sync from Libtool:
44776         * libltdl/argz.c (argz_add, argz_count): New functions.
44777         * libltdl/argz.in.h: Declare them.
44778         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44779
44780 2008-02-22  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44783         is a pointer type.  Needed for HP-UX 10.
44784         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44785         * doc/posix-functions/gmtime_r.texi: Likewise.
44786         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44787
44788 2008-02-24  Bruno Haible  <bruno@clisp.org>
44789
44790         * modules/environ-tests: New file.
44791         * tests/test-environ.c: New file.
44792
44793         New module 'environ'.
44794         * modules/environ: New file.
44795         * lib/unistd.in.h (environ): New declaration.
44796         * m4/environ.m4: New file.
44797         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44798         after use.
44799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44800         HAVE_DECL_ENVIRON.
44801         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44802         HAVE_DECL_ENVIRON.
44803         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44804         wrong claim that 'environ' is missing on some systems.
44805         * modules/execute (Depends-on): Add environ.
44806         * lib/execute.c (environ): Remove fallback declaration.
44807         * modules/pipe (Depends-on): Add environ.
44808         * lib/pipe.c (environ): Remove fallback declaration.
44809         * modules/setenv (Depends-on): Add environ.
44810         * lib/setenv.c (environ): Remove fallback declaration.
44811         * modules/unsetenv (Depends-on): Add environ.
44812         * lib/unsetenv.c (environ): Remove fallback declaration.
44813         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44814         m4/environ.m4.
44815         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44816         (gl_PREREQ_UNSETENV): Likewise.
44817
44818 2008-02-24  Bruno Haible  <bruno@clisp.org>
44819
44820         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44821
44822 2008-02-20  Bob Proulx  <bob@proulx.com>
44823
44824         Enable use of older two part flavor 'git describe'.
44825         * build-aux/git-version-gen: If using the older two part flavor of
44826         git version then recreate the third part now present in the
44827         newer three part flavor of git describe.
44828
44829 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44830
44831         * lib/fts.c (fts_build): Typo correction to comment.
44832
44833 2008-02-17  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44836         generating no-op conflicts.
44837
44838 2008-02-17  Bruno Haible  <bruno@clisp.org>
44839
44840         Speed up by 10%.
44841         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44842         result_entries, rather than an index-based loop.
44843
44844 2008-02-17  Bruno Haible  <bruno@clisp.org>
44845
44846         Speed up by 25%.
44847         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44848         'hashcode_cached'.
44849         (entry_create): New function.
44850         (entry_hashcode): Use the cached hashcode if possible.
44851         (read_changelog_file, try_split_merged_entry): Use entry_create.
44852
44853 2008-02-17  Bruno Haible  <bruno@clisp.org>
44854
44855         Speed up from O(n^2) to O(n) for long ChangeLog files.
44856         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44857         (read_changelog_file): Change implementation of entries_reversed list
44858         to rbtreehash.
44859         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44860
44861 2008-02-17  Bruno Haible  <bruno@clisp.org>
44862
44863         New option --split-merged-entry.
44864         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44865         (find_paragraph_end, try_split_merged_entry): New functions.
44866         (long_options): Add option --split-merged-entry.
44867         (usage): Document option --split-merged-entry.
44868         (main): Implement option --split-merged-entry.
44869         Reported by Eric Blake.
44870
44871 2008-02-17  Bruno Haible  <bruno@clisp.org>
44872
44873         * lib/git-merge-changelog.c: Include c-strstr.h.
44874         (main): Support the "git pull --rebase" situation.
44875         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44876         Reported by Eric Blake.
44877
44878 2008-02-16  Eric Blake  <ebb9@byu.net>
44879
44880         Avoid doubling \ in common case of "c-maybe" quoting style.
44881         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44882         eliding outer quotes.
44883         * lib/quotearg.h: Document this.
44884         * tests/test-quotearg.c (result_strings, inputs, results_g)
44885         (flag_results, locale_results): Test it by adding a new string to
44886         each test group.
44887         (compare_strings): Test new string.
44888
44889 2008-02-13  Eric Blake  <ebb9@byu.net>
44890
44891         Avoid trigraph quoting in default output.
44892         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44893         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44894         unless explicitly requested.
44895         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44896
44897 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44898
44899         Don't rely on signed integer overflowing to negative value.
44900         * lib/getugroups.c (getugroups): Include <limits.h>.
44901         Instead, compare against INT_MAX, and increment only if the test passes.
44902
44903 2008-02-13  Jim Meyering  <meyering@redhat.com>
44904         and Eric Blake  <ebb9@byu.net>
44905
44906         Avoid shadowing warning and compile errors on Linux.
44907         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44908         forwarding macros on Linux.
44909         (dcgettext): Define a stub, for Linux.
44910         (results_g, main): Avoid warnings.
44911
44912 2008-02-12  Eric Blake  <ebb9@byu.net>
44913
44914         Silence warning in last patch.
44915         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44916
44917         Quotearg part 4: add tests, fix c-maybe colon quoting.
44918         * lib/quotearg.h: Improve documentation.
44919         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44920         escapes when adding outer quotes.  When quoting trigraphs, use
44921         valid C notation.  When quoting NUL, omit extra characters if next
44922         character is not digit.  Alter prototype.
44923         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44924         callers.
44925         * modules/quotearg-tests: New module.
44926         * tests/test-quotearg.c: New test.
44927
44928 2008-02-07  Eric Blake  <ebb9@byu.net>
44929
44930         Quotearg part 3: add flag to control outer quote elision.
44931         * lib/quotearg.h (c_maybe_quoting_style): New style.
44932         (enum quoting_flags): Better documentation of flags.
44933         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44934         c-maybe style.
44935         (quotearg_buffer_restyled): Handle new flag to elide outer
44936         quotes.
44937
44938         Quotearg part 2: add flag that can control NUL elision.
44939         * lib/quotearg.h (set_quoting_flags): New prototype.
44940         * lib/quotearg.c (struct quoting_options): Add flag field.
44941         (set_quoting_flags): New function.
44942         (quotearg_buffer_restyled): Add flags parameter.
44943         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44944         (quotearg_n_options): Set the flag, since length cannot be
44945         returned.
44946         (quoting_options_from_style): Default flags correctly.
44947
44948         Quotearg part 1: more wrappers, restore quotearg_char state.
44949         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44950         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44951         (quotearg_colon_mem): New wrappers.
44952         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44953         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44954         functions.
44955         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44956         (quotearg_colon_mem): New functions.
44957
44958 2008-02-11  Bruno Haible  <bruno@clisp.org>
44959
44960         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44961         library in the current directory: it does not work with parallel make.
44962         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44963
44964 2008-02-11  Bruno Haible  <bruno@clisp.org>
44965
44966         * .gitattributes: New file.
44967
44968 2008-02-11  Jim Meyering  <meyering@redhat.com>
44969
44970         useless-if-before-free: Fix reversed exit values.
44971         * build-aux/useless-if-before-free: Use correct values
44972         for EXIT_MATCH and EXIT_NO_MATCH.
44973
44974         * build-aux/useless-if-before-free: Close stdout carefully.
44975
44976 2008-02-10  Bruno Haible  <bruno@clisp.org>
44977
44978         New module 'git-merge-changelog'.
44979         * modules/git-merge-changelog: New file.
44980         * lib/git-merge-changelog.c: New file.
44981
44982 2008-02-10  Jim Meyering  <meyering@redhat.com>
44983
44984         useless-if-before-free: New option: --list (-l).
44985
44986         useless-if-before-free: Don't exit immediately upon open failure.
44987         * build-aux/useless-if-before-free: Exit 2 for errors.
44988         Upon failure to open a file, don't exit immediately.
44989         Rather, just warn and continue with any remaining files.
44990
44991 2008-02-10  Bruno Haible  <bruno@clisp.org>
44992
44993         New abstract list operation 'node_set_value'.
44994         * lib/gl_list.h (gl_list_node_set_value): New function.
44995         (struct gl_list_implementation): New field node_set_value.
44996         * lib/gl_list.c (gl_list_node_set_value): New function.
44997         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44998         (gl_array_list_implementation): Update.
44999         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45000         (gl_carray_list_implementation): Update.
45001         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45002         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45003         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45004         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45005         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45006         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45007         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45008         Update.
45009         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45010         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45011         (gl_sublist_list_implementation): Update.
45012
45013 2008-02-10  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45016         Needed when ELEMENT is #defined to 'some_type *'.
45017
45018 2008-02-10  Jim Meyering  <meyering@redhat.com>
45019
45020         New script and module: useless-if-before-free
45021         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45022         * build-aux/useless-if-before-free: New file.
45023         * modules/useless-if-before-free: New file.
45024
45025         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45026
45027         xstrtol_error: Fix typo.
45028         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45029         s/exit_failure/exit_status/.
45030
45031 2008-02-09  Jim Meyering  <meyering@redhat.com>
45032
45033         New script and module: gitlog-to-changelog
45034         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45035         * modules/gitlog-to-changelog: New file.
45036         * build-aux/gitlog-to-changelog: New file.
45037
45038 2008-02-08  Jim Meyering  <meyering@redhat.com>
45039
45040         Avoid two "parameter unused" warnings.
45041         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45042         Mark "st" as used.
45043
45044         Use "git COMMAND", not "git-COMMAND".
45045         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45046         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45047         * build-aux/git-version-gen: Use "git status", not "git-status".
45048
45049 2008-02-07  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45052         Avoids a crash on Windows Vista.
45053         Reported by Adam Strzelecki <ono@java.pl> via
45054         Simon Josefsson <simon@josefsson.org>.
45055
45056 2008-02-06  Bruno Haible  <bruno@clisp.org>
45057
45058         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45059         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45060         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45062         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45064         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45065         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45073         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45074         left-adjust flag.
45075         * tests/test-snprintf-posix.h (test_function): Likewise.
45076         * tests/test-sprintf-posix.h (test_function): Likewise.
45077         * tests/test-vasprintf-posix.c (test_function): Likewise.
45078         * doc/posix-functions/fprintf.texi: Update.
45079         * doc/posix-functions/printf.texi: Update.
45080         * doc/posix-functions/snprintf.texi: Update.
45081         * doc/posix-functions/sprintf.texi: Update.
45082         * doc/posix-functions/vfprintf.texi: Update.
45083         * doc/posix-functions/vprintf.texi: Update.
45084         * doc/posix-functions/vsnprintf.texi: Update.
45085         * doc/posix-functions/vsprintf.texi: Update.
45086         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45087
45088 2008-02-06  Bruno Haible  <bruno@clisp.org>
45089
45090         Fix bug introduced on 2008-01-26.
45091         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45092
45093 2008-02-06  Bruno Haible  <bruno@clisp.org>
45094
45095         Fix bug introduced on 2007-06-10.
45096         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45097         !NEED_PRINTF_FLAG_ZERO.
45098
45099 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45100
45101         getloadavg: use libperfstat on AIX5
45102         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45103
45104 2008-02-03  Bruno Haible  <bruno@clisp.org>
45105
45106         * lib/diffseq.h: Add comments about required #includes.
45107         Reported by Michael Biggs <gnulib@doubleplum.net>.
45108
45109 2008-02-01  Bruno Haible  <bruno@clisp.org>
45110
45111         * users.txt: Add gnuit.
45112
45113 2008-01-31  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/md4.c (set_uint32): Mark as inline.
45116         * lib/md5.c (set_uint32): Likewise.
45117         * lib/sha1.c (set_uint32): Likewise.
45118         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45119         * m4/md5.m4 (gl_MD5): Likewise.
45120         * m4/sha1.m4 (gl_SHA1): Likewise.
45121
45122 2008-01-31  Jim Meyering  <meyering@redhat.com>
45123
45124         Use "sizeof VAR", rather than a literal "4".
45125         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45126         * lib/md4.c (md4_read_ctx): Likewise.
45127         * lib/sha1.c (sha1_read_ctx): Likewise.
45128
45129 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45130
45131         * tests/test-sha1.c: New file, based on test-md5.c.
45132
45133         * modules/crypto/sha1-tests: New file.
45134
45135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45136
45137         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45138
45139 2008-01-31  Jim Meyering  <meyering@redhat.com>
45140
45141         Prefer "sizeof v" over the equivalent "4".
45142         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45143         * lib/md5.c (set_uint32): Likewise.
45144         * lib/sha1.c (set_uint32): Likewise.
45145
45146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45147
45148         * lib/sha1.c (set_uint32): Mark function as static.
45149
45150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45151
45152         md2: clarify comments to say that alignment is not required.
45153         * lib/md2.h: Remove warning about alignment in comment.
45154         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45155         never been required.
45156
45157 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45158
45159         md4: adapt alignment constraint fix from sha1.
45160         * lib/md4.c (set_uint32): New function, from sha1.c
45161         (md4_read_ctx): Use it.
45162         (md4_finish_ctx): Doc fix.
45163         * lib/md4.h: Doc fix.
45164
45165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45166
45167         md5: adapt alignment constraint fix from sha1.
45168         * lib/md5.c (set_uint32): New function, from sha1.c
45169         (md5_read_ctx): Use it.
45170         (md5_finish_ctx): Doc fix.
45171         * lib/md5.h: Doc fix.
45172
45173 2008-01-30  Peter Palfrader  <weasel@debian.org>
45174
45175         sha1: remove the result buffer alignment constraint
45176         * lib/sha1.c (set_uint32): New function.
45177         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45178         constraint.
45179         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45180         * lib/sha1.h: Likewise.
45181
45182 2008-01-30  Andreas Schwab  <schwab@suse.de>
45183             Bruno Haible  <bruno@clisp.org>
45184
45185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45186         correct definition of LDBL_MIN_EXP.
45187
45188 2008-01-30  Karl Berry  <karl@gnu.org>
45189
45190         * config/srclist-update: try to preserve x bit on updates.
45191         * config/srclistvars.sh: update for karl.
45192
45193 2008-01-29  Jim Meyering  <meyering@redhat.com>
45194
45195         vasnprintf.c: Avoid warning about unused label
45196         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45197         "overflow" label definition and associated code with the
45198         same cpp condition that guards the sole use of that label.
45199
45200 2008-01-26  Bruno Haible  <bruno@clisp.org>
45201
45202         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45203         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45204         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45205         * lib/isnanl-nolibm.h (isnanl): Likewise.
45206         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45207
45208 2008-01-26  Bruno Haible  <bruno@clisp.org>
45209
45210         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45211         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45212
45213 2008-01-26  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45216         GCC >= 4.0 built-in.
45217         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45218
45219 2008-01-26  Bruno Haible  <bruno@clisp.org>
45220
45221         Rename isnan, applicable to 'double' only, to isnand.
45222         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45223         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45224         (configure.ac): Update.
45225         (Include): Replace "isnan.h" with "isnand.h".
45226         * m4/isnand.m4: Renamed from m4/isnan.m4.
45227         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45228         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45229         instead of isnan.c.
45230         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45231         instead of HAVE_ISNAN_IN_LIBC.
45232         (isnand): Renamed from isnan.
45233         * lib/isnand.c: New file.
45234         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45235         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45236         (Makefile.am): Update.
45237         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45238         Include isnand.h instead of isnan.h.
45239         (main): Test isnand instead of isnan.
45240         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45241         isnan-nolibm.
45242         * modules/frexp (Depends-on): Likewise.
45243         * modules/frexp-tests (Depends-on): Likewise.
45244         * modules/frexp-nolibm (Depends-on): Likewise.
45245         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45246         * modules/isfinite (Depends-on): Likewise.
45247         * modules/round-tests (Depends-on): Likewise.
45248         * modules/signbit (Depends-on): Likewise.
45249         * modules/signbit-tests (Depends-on): Likewise.
45250         * modules/snprintf-posix (Depends-on): Likewise.
45251         * modules/sprintf-posix (Depends-on): Likewise.
45252         * modules/trunc-tests (Depends-on): Likewise.
45253         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45260         * modules/vasnprintf-posix (Depends-on): Likewise.
45261         * modules/vasprintf-posix (Depends-on): Likewise.
45262         * modules/vfprintf-posix (Depends-on): Likewise.
45263         * modules/vsnprintf-posix (Depends-on): Likewise.
45264         * modules/vsprintf-posix (Depends-on): Likewise.
45265         * lib/frexp.c: Include isnand.h instead of isnan.h.
45266         (ISNAN): Set to isnand instead of isnan.
45267         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45268         (gl_isfinited): Use isnand instead of isnan.
45269         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45270         (gl_signbitd): Use isnand instead of isnan.
45271         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45272         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45273         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45274         (main): Use isnand instead of isnan.
45275         * tests/test-round1.c: Include isnand.h.
45276         (main): Use isnand instead of isnan.
45277         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45278         (ISNAN): Set to isnand instead of isnan.
45279         * tests/test-trunc1.c: Include isnand.h.
45280         (main): Use isnand instead of isnan.
45281         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45282         (equal): Use isnand instead of isnan.
45283         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45284         isnand-nolibm.
45285         * NEWS: Mention the change.
45286
45287 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45288             Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45291         the GCC builtins for signbits are present and set
45292         REPLACE_SIGNBIT_USING_GCC if so.
45293         * lib/math.in.h (signbit): Define using GCC builtins if
45294         REPLACE_SIGNBIT_USING_GCC is set.
45295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45296         REPLACE_SIGNBIT_USING_GCC.
45297         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45298
45299 2008-01-25  Jim Meyering  <meyering@redhat.com>
45300
45301         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45302         * lib/poll.c: Include <config.h>, not "config.h".
45303         * tests/test-getaddrinfo.c: Likewise.
45304
45305 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45306
45307         * modules/sockets-tests: New file.
45308
45309 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45310
45311         * modules/sockets: New module, can be used to call WSA_Startup and
45312         WSA_Cleanup when needed.
45313
45314         * lib/sockets.h, lib/sockets.c: New files.
45315
45316         * m4/sockets.m4: New file.
45317
45318         * tests/test-sockets.c: New file.
45319
45320 2008-01-19  Bruno Haible  <bruno@clisp.org>
45321
45322         * doc/posix-headers: Renamed from doc/headers.
45323         * doc/posix-functions: Renamed from doc/functions.
45324         * doc/gnulib.texi: Update.
45325
45326 2008-01-19  Bruno Haible  <bruno@clisp.org>
45327
45328         * doc/glibc-functions/strcasestr.texi: Include contents of
45329         doc/functions/strcasestr.texi, fixing the list of platforms.
45330         * doc/functions/strcasestr.texi: Remove file.
45331
45332 2008-01-19  Bruno Haible  <bruno@clisp.org>
45333
45334         * doc/glibc-functions/memmem.texi: Include contents of
45335         doc/functions/memmem.texi.
45336         * doc/functions/memmem.texi: Remove file.
45337
45338 2008-01-18  Bruno Haible  <bruno@clisp.org>
45339
45340         * doc/glibc-functions/*.texi: New files.
45341         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45342         to use the new files.
45343
45344 2008-01-17  Bruno Haible  <bruno@clisp.org>
45345
45346         * tests/test-gethostname.c (main): Fix printf statement.
45347
45348 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45349
45350         * modules/gethostname-tests: New file.
45351
45352         * tests/test-gethostname.c: New file.
45353
45354 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45355
45356         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45357         used by the UNAME case.  Reported by Bruno Haible
45358         <bruno@clisp.org>.
45359
45360 2008-01-17  Eric Blake  <ebb9@byu.net>
45361
45362         Convert c-strcasestr to be more efficient.
45363         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45364         (Depends-on): Add c-strcase, remove malloca, strnlen.
45365         * tests/test-c-strcasestr.c (main): Enhance test.
45366         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45367
45368 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45369
45370         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45371         Use it in creating po/Makevars.
45372
45373 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45374
45375         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45376         Applications that requires it should initialize libgcrypt
45377         manually.
45378
45379 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45380
45381         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45382
45383 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45384
45385         Fix problem with getdate on mingw32 reported by Simon Josefsson
45386         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45387         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45388         tzname", when deciding whether to declare tzname.
45389         * lib/strftime.c (tzname): Likewise.
45390
45391 2008-01-15  Bruno Haible  <bruno@clisp.org>
45392
45393         Work around a MacOS X 10.5 bug in frexpl().
45394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45395         * doc/functions/frexpl.texi: Document the bug.
45396         Reported by Elias Pipping <pipping@gentoo.org>.
45397
45398 2008-01-14  Eric Blake  <ebb9@byu.net>
45399
45400         Touch up previous patch.
45401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45402         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45403
45404         Convert strcasestr module to use Two-Way algorithm.
45405         * modules/strcasestr-simple: New module, based on the old
45406         strcasestr, but with Two-Way rather than KMP.
45407         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45408         * lib/string.in.h (rpl_strcasestr): Declare.
45409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45410         performance.
45411         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45412         * modules/string (Makefile.am): Support strcasestr.
45413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45414         * modules/strcasestr-tests (Depends-on): Check for alarm.
45415         * tests/test-strcasestr.c: Augment test.
45416         * lib/str-two-way.h: Clean up stray macro.
45417         * NEWS: Document new module.
45418         * MODULES.html.sh (string handling): Likewise.
45419         * doc/functions/strcasestr.texi: New file.
45420         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45421         here, since it is not a POSIX function.
45422
45423 2008-01-14  Colin Watson  <cjwatson@debian.org>
45424             Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45427         works fine; if not, set REPLACE_STRSIGNAL.
45428         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45430         REPLACE_STRSIGNAL.
45431         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45432         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45433         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45434
45435 2008-01-14  Bruno Haible  <bruno@clisp.org>
45436
45437         * modules/strsignal (Include): Change to <string.h>.
45438
45439 2008-01-14  Colin Watson  <cjwatson@debian.org>
45440
45441         * modules/argp (Notice): Add a notice recommending to change
45442         XGETTEXT_OPTIONS.
45443         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45444
45445 2008-01-13  Colin Watson  <cjwatson@debian.org>
45446
45447         * modules/strsignal-tests: New file.
45448         * tests/test-strsignal.c: New file.
45449
45450         * lib/strsignal.c: New file, from glibc with modifications.
45451         * lib/siglist.h: New file, from glibc with modifications.
45452         * lib/string.in.h (strsignal): New declaration.
45453         * m4/strsignal.m4: New file.
45454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45455         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45456         * modules/strsignal: New file.
45457         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45458         HAVE_DECL_STRSIGNAL.
45459
45460 2008-01-13  Bruno Haible  <bruno@clisp.org>
45461
45462         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45463         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45464         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45466
45467 2008-01-13  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45470         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45471         * lib/argp.h (__attribute__): Likewise.
45472         * lib/c-stack.c (__attribute__): Likewise.
45473         * lib/error.h (__attribute__): Likewise.
45474         * lib/fts.c (__attribute__): Likewise.
45475         * lib/openat.h (__attribute__): Likewise.
45476         * lib/stdio.in.h (__attribute__): Likewise.
45477         * lib/string.in.h (__attribute__): Likewise.
45478         * lib/utimens.c (__attribute__): Likewise.
45479         * lib/vasnprintf.h (__attribute__): Likewise.
45480         * lib/xalloc.h (__attribute__): Likewise.
45481         * lib/xprintf.h (__attribute__): Likewise.
45482         * lib/xstrtol.h (__attribute__): Likewise.
45483         * lib/xvasprintf.h (__attribute__): Likewise.
45484
45485 2008-01-12  Bruno Haible  <bruno@clisp.org>
45486
45487         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45488         * doc/glibc-headers/a.out.texi: New file.
45489         * doc/glibc-headers/aliases.texi: New file.
45490         * doc/glibc-headers/alloca.texi: New file.
45491         * doc/glibc-headers/ar.texi: New file.
45492         * doc/glibc-headers/argp.texi: New file.
45493         * doc/glibc-headers/argz.texi: New file.
45494         * doc/glibc-headers/byteswap.texi: New file.
45495         * doc/glibc-headers/crypt.texi: New file.
45496         * doc/glibc-headers/endian.texi: New file.
45497         * doc/glibc-headers/envz.texi: New file.
45498         * doc/glibc-headers/err.texi: New file.
45499         * doc/glibc-headers/error.texi: New file.
45500         * doc/glibc-headers/execinfo.texi: New file.
45501         * doc/glibc-headers/fpu_control.texi: New file.
45502         * doc/glibc-headers/fstab.texi: New file.
45503         * doc/glibc-headers/fts.texi: New file.
45504         * doc/glibc-headers/getopt.texi: New file.
45505         * doc/glibc-headers/ieee754.texi: New file.
45506         * doc/glibc-headers/ifaddrs.texi: New file.
45507         * doc/glibc-headers/libintl.texi: New file.
45508         * doc/glibc-headers/mcheck.texi: New file.
45509         * doc/glibc-headers/mntent.texi: New file.
45510         * doc/glibc-headers/obstack.texi: New file.
45511         * doc/glibc-headers/paths.texi: New file.
45512         * doc/glibc-headers/printf.texi: New file.
45513         * doc/glibc-headers/pty.texi: New file.
45514         * doc/glibc-headers/resolv.texi: New file.
45515         * doc/glibc-headers/shadow.texi: New file.
45516         * doc/glibc-headers/sysexits.texi: New file.
45517         * doc/glibc-headers/ttyent.texi: New file.
45518
45519 2008-01-12  Jim Meyering  <meyering@redhat.com>
45520
45521         announce-gen: emit Gnulib's git-based version string.
45522         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45523         New option --gnulib-version=V, where V is expected to be
45524         the output of running git describe in the gnulib directory.
45525         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45526         not useful, and plan to stop publishing an xdelta file with each
45527         coreutils release.
45528
45529         * build-aux/announce-gen: Also check for lzma-compressed files.
45530
45531 2008-01-11  Bruno Haible  <bruno@clisp.org>
45532
45533         * tests/test-memmem.c (main): Increase maximum allowed time.
45534         * tests/test-strstr.c (main): Likewise.
45535
45536 2008-01-11  Bruno Haible  <bruno@clisp.org>
45537
45538         * doc/functions/memmem.texi: Add more precisions about platforms.
45539         * doc/functions/strstr.texi: Likewise.
45540
45541 2008-01-10  Eric Blake  <ebb9@byu.net>
45542
45543         * m4/strstr.m4: Delete cruft from copy-n-paste.
45544         Reported by Bruno Haible.
45545
45546 2008-01-10  Bruno Haible  <bruno@clisp.org>
45547
45548         Make c-strstr rely on strstr.
45549         * lib/c-strstr.c: Don't include str-kmp.h.
45550         (c_strstr): Define in terms of strstr.
45551         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45552         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45553
45554 2008-01-10  Bruno Haible  <bruno@clisp.org>
45555
45556         * doc/gnulib.texi (String Functions in C Locale): New section.
45557         * doc/c-ctype.texi: New file.
45558         * doc/c-strcase.texi: New file.
45559         * doc/c-strcaseeq.texi: New file.
45560         * doc/c-strcasestr.texi: New file.
45561         * doc/c-strstr.texi: New file.
45562         * doc/c-strtod.texi: New file.
45563         * doc/c-strtold.texi: New file.
45564
45565 2008-01-10  Eric Blake  <ebb9@byu.net>
45566
45567         * lib/relocatable.h: Fix a comment.
45568
45569 2008-01-10  Eric Blake  <ebb9@byu.net>
45570
45571         Share two-way algorithm.
45572         * lib/str-two-way.h: New file, merged from...
45573         * lib/memmem.c: ...here...
45574         * lib/strstr.c: ...and here.
45575         * modules/memmem (Files): Use it.
45576         * modules/strstr (Files): Likewise.
45577
45578         Avoid quadratic strstr implementations.
45579         * lib/strstr.c: New file.
45580         * m4/strstr.m4: Likewise.
45581         * modules/strstr: Likewise.
45582         * modules/strstr-tests: Likewise.
45583         * tests/test-strstr.c: Likewise.
45584         * lib/string.in.h (rpl_strstr): Declare.
45585         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45587         * modules/string (Makefile.am): Likewise.
45588         * MODULES.html.sh (string handling): Mention new module.
45589         * doc/functions/strstr.texi (strstr): Document the bug.
45590
45591 2008-01-10  Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/relocatable.h (relocate): State whether result is freshly
45594         allocated or not.
45595         * lib/relocatable.c (relocate): Return a freshly allocated string
45596         instead of a pointer to a privately held string.
45597         Reported by Sylvain Beucler <beuc@gnu.org>.
45598
45599 2008-01-10  Colin Watson  <cjwatson@debian.org>
45600
45601         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45602         s/S_ISNLK/S_ISLNK/.
45603
45604 2008-01-09  Bruno Haible  <bruno@clisp.org>
45605
45606         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45607         and other files.
45608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45609         if it's only a guess.
45610         * modules/memmem: Simplify by depending on memmem-simple.
45611
45612 2008-01-09  Bruno Haible  <bruno@clisp.org>
45613
45614         Work around OpenBSD 4.0 tdelete() bug.
45615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45616         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45617         macros and don't redefine the enum values.
45618         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45619         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45620         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45621
45622 2008-01-09  Bruno Haible  <bruno@clisp.org>
45623
45624         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45625         (main): Don't perform the tests if setlocale did not install a UTF-8
45626         locale. Needed on OpenBSD 4.0.
45627         * modules/wcwidth-tests (Depends-on): Add localcharset.
45628
45629 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45630
45631         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45632         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45633         * NEWS: announce this.
45634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45635
45636 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45637         and Eric Blake  <ebb9@byu.net>
45638
45639         Add memmem-simple module.
45640         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45641         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45642         * modules/memmem-simple: New file.
45643         * modules/memmem (Description): Tweak.
45644         * MODULES.html.sh (string handling): Mention new module.
45645         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45646         addressed by memmem-simple.
45647         * NEWS: Document the difference.
45648
45649 2008-01-09  Eric Blake  <ebb9@byu.net>
45650
45651         Give gcc some memmem optimization hints.
45652         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45653         (strcasestr): Declare as pure.
45654         * modules/memmem (Maintainer): Claim my implementation.
45655
45656 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45657
45658         Support AIX 6.1 and higher.
45659         * build-aux/config.libpath: Likewise.
45660         * build-aux/config.rpath: Likewise.
45661
45662 2008-01-08  Jim Meyering  <meyering@redhat.com>
45663             Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45666         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45667         Reported by Peter Fales in
45668         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45669
45670 2008-01-08  Bruno Haible  <bruno@clisp.org>
45671
45672         * modules/unictype/category-of (Depends-on): Add
45673         unictype/category-none.
45674         * modules/unictype/category-and-tests (Depends-on): Add
45675         unictype/category-{L,N,Lu,Nd}.
45676         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45677         * modules/unictype/category-or-tests (Depends-on): Add
45678         unictype/category-{L,N}.
45679         * modules/unictype/category-name-tests (Depends-on): Add
45680         unictype/category-{Z,Nl}.
45681         Reported by Simon Josefsson.
45682
45683 2008-01-08  Bruno Haible  <bruno@clisp.org>
45684
45685         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45686         convention better.
45687         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45688         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45689         Reported by Peter Miller <millerp@canb.auug.org.au>.
45690
45691 2008-01-08  Eric Blake  <ebb9@byu.net>
45692
45693         Rewrite memmem to guarantee linear complexity without malloc.
45694         * lib/memmem.c (memmem): Use Two-Way rather than
45695         Knuth-Morris-Pratt, to allow O(1) space usage.
45696         (critical_factorization, two_way_short_needle)
45697         (two_way_long_needle): New functions.
45698         (knuth_morris_pratt): Delete.
45699         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45700         Add stdint.
45701         * tests/test-memmem.c (main): Add tests for periodic needle and
45702         sublinear performance.
45703         * doc/functions/memmem.texi (memmem): Document other deficiencies
45704         in cygwin and older glibc.
45705
45706 2008-01-08  Bruno Haible  <bruno@clisp.org>
45707
45708         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45709         augmentation.
45710
45711 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45712
45713         Add a configure time option: --disable-acl.
45714         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45715         AC_ARG_ENABLE(acl).
45716
45717 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45718
45719         * tests/test-localename.c: Don't include obsolete "setenv.h".
45720
45721         * modules/localename-tests (Depends-on): Need unsetenv.
45722
45723 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45724
45725         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45726
45727 2008-01-06  Colin Watson  <cjwatson@debian.org>
45728
45729         * users.txt: Add man-db.
45730
45731 2008-01-07  Bruno Haible  <bruno@clisp.org>
45732
45733         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45734         previous section name.
45735
45736 2008-01-07  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/progname.c (set_program_name): Don't strip off a leading
45739         "lt-" prefix outside a .libs directory.
45740         Suggested by Paul Eggert.
45741
45742 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45743             Bruno Haible  <bruno@clisp.org>
45744
45745         Improve memory cleanup in 'relocatable' module.
45746         * lib/relocatable.h (compute_curr_prefix): Change return type to
45747         'char *'.
45748         * lib/relocatable.c (compute_curr_prefix): Change return type to
45749         'char *'. Free curr_installdir after use.
45750         (relocate): Free curr_prefix_better after use.
45751         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45752
45753 2008-01-01  Bruno Haible  <bruno@clisp.org>
45754
45755         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45756         failure on older glibc systems.
45757         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45758
45759 2008-01-05  Eric Blake  <ebb9@byu.net>
45760
45761         Avoid quadratic system memmem.
45762         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45763         Reported by Ralf Wildenhues.
45764
45765         Fix memmem test for mingw.
45766         * modules/memmem-tests (configure.ac): Check for alarm.
45767         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45768         it.
45769         * doc/functions/memmem.texi: New file.
45770         * doc/gnulib.texi (Function Substitutes): Add memmem.
45771         Reported by Bruno Haible.
45772
45773 2008-01-04  Bruno Haible  <bruno@clisp.org>
45774
45775         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45776         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45777         gl_HEADER_STRING_H_DEFAULTS.
45778
45779 2008-01-04  Eric Blake  <ebb9@byu.net>
45780
45781         Shorten duration of memmem test.
45782         * tests/test-memmem.c (main): Use alarm to declare failure if test
45783         is taking too long.
45784         Reported by Ralf Wildenhues.
45785
45786 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45787
45788         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45789         string, needed by strerror.
45790
45791 2008-01-03  Colin Watson  <cjwatson@debian.org>
45792             Bruno Haible  <bruno@clisp.org>
45793
45794         * doc/gnulib-tool.texi (Localization): New section.
45795
45796 2008-01-02  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45799         variables to 'unsigned char *' type.
45800         Reported by Paul Eggert.
45801
45802 2008-01-02  Jim Meyering  <jim@meyering.net>
45803
45804         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45805
45806 2007-12-31  Jim Meyering  <jim@meyering.net>
45807
45808         Avoid use of private FTS type name.
45809         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45810
45811 2007-12-30  Karl Berry  <karl@gnu.org>
45812
45813         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45814         work around defect in Texinfo and/or the standalone Info browser.
45815
45816 2007-12-30  Bruno Haible  <bruno@clisp.org>
45817
45818         Unify 5 copies of the KMP code.
45819         * lib/str-kmp.h: New file.
45820         * lib/c-strcasestr.c: Include str-kmp.h.
45821         (knuth_morris_pratt): Remove function.
45822         (c_strcasestr): Update.
45823         * lib/c-strstr.c: Include str-kmp.h.
45824         (knuth_morris_pratt): Remove function.
45825         (c_strcasestr): Update.
45826         * lib/mbscasestr.c: Include str-kmp.h.
45827         (knuth_morris_pratt_unibyte): Remove function.
45828         * lib/mbsstr.c: Include str-kmp.h.
45829         (knuth_morris_pratt_unibyte): Remove function.
45830         * lib/strcasestr.c: Include str-kmp.h.
45831         (knuth_morris_pratt): Remove function.
45832         (strcasestr): Update.
45833         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45834         * modules/c-strstr (Files): Likewise.
45835         * modules/mbscasestr (Files): Likewise.
45836         * modules/mbsstr (Files): Likewise.
45837         * modules/strcasestr (Files): Likewise.
45838         Suggested by Paul Eggert.
45839
45840 2007-12-30  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45843         defined.
45844
45845 2007-12-30  Bruno Haible  <bruno@clisp.org>
45846
45847         * lib/xmalloca.h: Include xalloc.h.
45848         (xnmalloca): New macro.
45849
45850 2007-12-30  Bruno Haible  <bruno@clisp.org>
45851
45852         * lib/malloca.h (nmalloca): New macro.
45853         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45854         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45855         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45856         knuth_morris_pratt_multibyte): Likewise.
45857         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45858         knuth_morris_pratt_multibyte): Likewise.
45859         * lib/memmem.c (knuth_morris_pratt): Likewise.
45860         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45861
45862 2007-12-25  Bruno Haible  <bruno@clisp.org>
45863
45864         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45865         * lib/glob.c: Don't include openat.h.
45866         (link_exists2_p): Add back the code that deals with the
45867         !GLOB_ALTDIRFUNC case.
45868         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45869         let it do the filename concatenation.
45870         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45871         * modules/glob (Depends-on): Remove openat.
45872
45873 2007-12-31  Bruno Haible  <bruno@clisp.org>
45874
45875         * modules/dirfd (License): Change to LGPLv2+.
45876         Approved by Jim Meyering.
45877
45878 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45881         when multiplying M by sizeof (size_t).
45882
45883 2007-12-10  Martin Lambers  <marlam@marlam.de>
45884
45885         Override getpagesize on mingw.
45886         * lib/getpagesize.c: New file.
45887         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45888         * modules/getpagesize (Files): Add lib/getpagesize.c.
45889         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45891         REPLACE_GETPAGESIZE.
45892         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45893
45894 2007-12-25  Bruno Haible  <bruno@clisp.org>
45895
45896         * modules/localcharset (Notice): New field.
45897         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45898         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45899
45900 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45901             Bruno Haible  <bruno@clisp.org>
45902
45903         Avoid using the syntax symbol() in formatted documentation.
45904         * MODULES.html.sh (func_module): When replacing symbol() with a
45905         hyperlink, remove the parentheses. Show an error if some remain.
45906         Recognize and render the '...' syntax.
45907         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45908         Rework. Add paragraph about GCC's inlining.
45909         * doc/alloca.texi: Likewise.
45910         * doc/error.texi: Remove parentheses from symbol reference.
45911         * doc/gnulib-intro.texi: Likewise.
45912         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45913         * modules/fnmatch (Description): Reword to say "the ... function".
45914         * modules/full-read (Description): Likewise.
45915         * modules/full-write (Description): Likewise.
45916         * modules/safe-read (Description): Likewise.
45917         * modules/safe-write (Description): Likewise.
45918         * modules/strchrnul (Description): Likewise.
45919         * modules/trim (Description): Likewise.
45920         * modules/error (Description): Remove parentheses from symbol
45921         references.
45922         * modules/verror (Description): Likewise.
45923         Reported by Karl Berry.
45924
45925 2007-12-25  Bruno Haible  <bruno@clisp.org>
45926
45927         Fixup after 2007-10-16 commit.
45928         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45929
45930 2007-12-24  Bruno Haible  <bruno@clisp.org>
45931
45932         Make --enable-relocatable work with DESTDIR.
45933         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45934         to compute installdir from destprog.
45935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45936         also set the RELOC_DESTDIR variable.
45937         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45938
45939 2007-12-24  Bruno Haible  <bruno@clisp.org>
45940
45941         Fix link error due to xalloc_die().
45942         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45943         of xreadlink.
45944         * lib/relocwrapper.c: Update comments.
45945         * build-aux/install-reloc: Remove xreadlink.c from file list.
45946         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45947         xreadlink.c.
45948         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45949
45950 2007-12-24  Bruno Haible  <bruno@clisp.org>
45951
45952         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45953         * lib/setenv.h: Remove file.
45954         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45955         lib/setenv.h.
45956         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45957         (Depends-on): Add stdlib.
45958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45959         gl_FUNC_UNSETENV.
45960         (Include): Replace setenv.h with <stdlib.h>.
45961         * modules/unsetenv: New file.
45962         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45963         * lib/unsetenv.c: Include <stdlib.h> first.
45964         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45965         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45966         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45967         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45968         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45969         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45971         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45972         * doc/functions/unsetenv.texi: Update.
45973         * modules/xsetenv (Depends-on): Add unsetenv.
45974         * modules/getdate (Depends-on): Likewise.
45975         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45976         * lib/xsetenv.c: Don't include setenv.h.
45977         * lib/getdate.y: Likewise.
45978         * lib/relocwrapper.c: Likewise.
45979         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45980         (Depends-on): Add stdlib.
45981         * NEWS: Mention the changes.
45982         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45983
45984 2007-12-23  Bruno Haible  <bruno@clisp.org>
45985
45986         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45987         indentation.
45988
45989 2007-12-23  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/c-strcasestr.c: Add more comments.
45992         * lib/c-strstr.c: Likewise.
45993         * lib/mbscasestr.c: Likewise.
45994         * lib/mbsstr.c: Likewise.
45995         * lib/strcasestr.c: Likewise.
45996         * lib/memmem.c: Likewise.
45997
45998 2007-12-23  Bruno Haible  <bruno@clisp.org>
45999
46000         * tests/test-memmem.c: Include <string.h> first.
46001
46002 2007-12-22  Bruno Haible  <bruno@clisp.org>
46003
46004         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46005         the contents of $testsbase.
46006         Reported by Ralf Wildenhues.
46007
46008 2007-12-22  Bruno Haible  <bruno@clisp.org>
46009
46010         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46011         two variables local_ldadd_before, local_ldadd_last.
46012
46013 2007-12-20  Eric Blake  <ebb9@byu.net>
46014
46015         Work around circular library issue when cross-compiling.
46016         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46017         that progname.o does not need to pull in rpl_memcmp.
46018
46019 2007-12-19  Eric Blake  <ebb9@byu.net>
46020
46021         Fix memmem to avoid O(n^2) worst-case complexity.
46022         * lib/memmem.c (knuth_morris_pratt): New function.
46023         (memmem): Use it if first few naive iterations fail.
46024         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46025         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46026         * modules/memchr (License): Likewise.
46027         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46028         malloca.
46029         * tests/test-memmem.c: Rewrite, borrowing ideas from
46030         test-mbsstr1.c; the old version wouldn't even compile!
46031         * modules/memmem-tests: New file.
46032         * lib/string.in.h (rpl_memmem): Add declaration.
46033         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46035         REPLACE_MEMMEM.
46036
46037 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46038
46039         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46040         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46041         before any system include files, and undef after them all.  This
46042         should fix a problem on VMS reported by John E. Malmberg in
46043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46044
46045 2007-12-17  Eric Blake  <ebb9@byu.net>
46046
46047         Revert addition of verify, for BSD/OS.
46048         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46049         can't handle large files, for the sake of obsolete platforms.
46050         * modules/fseeko (Depends-on): Remove verify.
46051         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46052         * doc/functions/ftello.texi (ftello): Likewise.
46053         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46054         Reported by Larry Jones.
46055
46056 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46057
46058         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46059         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46060
46061 2007-12-17  Jim Meyering  <meyering@redhat.com>
46062
46063         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46064         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46065         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46066         * modules/getcwd (Depends-on): Add openat.
46067         Reported by Petr Salinger.
46068
46069 2007-12-17  Bruno Haible  <bruno@clisp.org>
46070
46071         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46072         avoid a segmentation fault of the configure test on x86_64 systems.
46073
46074 2007-12-15  Jim Meyering  <meyering@redhat.com>
46075
46076         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46077
46078 2007-12-13  Eric Blake  <ebb9@byu.net>
46079
46080         Another fseek test.
46081         * tests/test-fseek.c (main): Also test ungetc handling.
46082         * tests/test-fseeko.c (main): Likewise.
46083         * modules/fseeko (Depends-on): Add verify.
46084         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46085         large.
46086         Reported by Larry Jones.
46087
46088         Fix fseeko on mingw.
46089         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46090         seek.
46091
46092         Beef up fseek tests.
46093         * tests/test-fseek.c (main): Also test eof handling.
46094         * tests/test-fseeko.c (main): Likewise.
46095         Reported by Larry Jones.
46096
46097 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46098
46099         Fix fseeko on BSD-based platforms.
46100         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46101         successful seek.
46102
46103 2007-12-12  Eric Blake  <ebb9@byu.net>
46104
46105         Allow circular dependency of separate libtests.a
46106         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46107         when use_libtests.
46108
46109 2007-12-11  Eric Blake  <ebb9@byu.net>
46110
46111         Fix bug with -0.0L in previous patch.
46112         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46113         * tests/test-isnan.c (main): Also test on zeroes.
46114         * tests/test-isnanf.c (main): Likewise.
46115         * tests/test-isnanl.h (main): Likewise.
46116
46117         Detect pseudo-denormals on x86 even when cross-compiling.
46118         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46119         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46120         invalid bit patterns that happen to satisfy ==.
46121
46122         Avoid link failures with separate libtests.a.
46123         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46124         last, to satisfy circular dependencies.
46125
46126 2007-12-11  Eric Blake  <ebb9@byu.net>
46127         and Bruno Haible  <bruno@clisp.org>
46128
46129         Fix OpenBSD 4.0 <float.h> handling of long double.
46130         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46131         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46132         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46133
46134 2007-12-11  Jim Meyering  <meyering@redhat.com>
46135
46136         * users.txt: Add libvirt.
46137
46138         Support versions of autoconf prior to 2.59c.
46139         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46140         if it is not already defined.
46141
46142 2007-12-09  Bruno Haible  <bruno@clisp.org>
46143
46144         Let 'gnulib-tool --import' collect sources needed for the tests in
46145         tests/ rather than in lib/.
46146         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46147         argument. If true, add rules to generate libtests.a, and put libtests.a
46148         into $(LDADD). Consider source files in subdirectories and set
46149         uses_subdirs.
46150         (func_emit_initmacro_start, func_emit_initmacro_end,
46151         func_emit_initmacro_done): Pass all arguments explicitly.
46152         (func_import): Determine two module lists main_modules,
46153         testsrelated_modules. Determine use_libtests. Determine two variables
46154         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46155         instead of just sed_transform_lib_file. Determine two variables
46156         main_files and testsrelated_files. Compute 'files' as the union of
46157         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46158         func_add_or_update. In the generated gnulib-comp.m4, collect the
46159         object files for tests/ in different variables than those for lib/.
46160         Substitute LIBTESTS_LIBDEPS.
46161         (func_create_testdir): Combine the uses_subdirs results from
46162         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46163
46164 2007-12-09  Bruno Haible  <bruno@clisp.org>
46165
46166         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46167         the build-aux directory.
46168
46169 2007-12-09  Bruno Haible  <bruno@clisp.org>
46170
46171         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46172         introduced on 2006-09-09.
46173
46174 2007-12-07  Jim Meyering  <meyering@redhat.com>
46175
46176         Let these macros work also with autoconf-2.59.
46177         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46178         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46180
46181 2007-12-06  Jim Meyering  <meyering@redhat.com>
46182
46183         Avoid a configure-time syntax error in gl_FUNC_ACL.
46184         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46185         function in each branch, before testing the cache variable.
46186
46187 2007-12-04  Eric Blake  <ebb9@byu.net>
46188
46189         Make scripts executable.
46190         * build-aux/config.guess: Add execute permissions.
46191         * build-aux/config.sub: Likewise.
46192         * build-aux/gendocs.sh: Likewise.
46193
46194         Fix frexp on mingw.
46195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46196         cross-compiling.
46197         * doc/functions/frexp.texi (frexp): Document the bug.
46198
46199         Make cygwin fseeko check more reliable.
46200         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46201         version numbers, rather than unrelated feature check.
46202         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46203         * doc/functions/ftello.texi (ftello): Likewise.
46204         Reported by Bruno Haible.
46205
46206         * m4/strerror.m4: Bump version number.
46207
46208 2007-12-03  Bruno Haible  <bruno@clisp.org>
46209
46210         * doc/functions/mprotect.texi: Mention the mingw problem.
46211
46212 2007-12-03  Eric Blake  <ebb9@byu.net>
46213
46214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46215         REPLACE_STRERROR is initialized before this macro.
46216
46217 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46218
46219         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46220         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46221         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46222         put -lsec in even for programs other than 'ls'.  This fixes a problem
46223         for gettext reported by Bruno Haible in
46224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46225         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46226         Add support for Solaris 10.  This isn't efficient, but should get the
46227         job done for now.
46228
46229 2007-12-03  James Youngman  <jay@gnu.org>
46230
46231         * doc/regexprops-generic.texi: change "an close-group" to "a
46232         close-group" and "illegal" to "not allowed".
46233
46234 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46235
46236         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46237         pr_byname.h. Needed for the rare case when the maintainer has done
46238         "make maintainer-clean" in the source directory and then attempts a
46239         build outside the source directory.
46240         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46241         scripts_byname.h.
46242
46243 2007-12-02  Martin Lambers <marlam@marlam.de>
46244             Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/getpagesize.h: Remove file.
46247         * lib/unistd.in.h: Include declaration of getpagesize here.
46248         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46249         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46250         HAVE_SYS_PARAM_H.
46251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46252         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46253         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46254         (Depends-on): Add unistd.
46255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46256         (Include): Use <unistd.h> instead of getpagesize.h.
46257         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46258         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46259         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46260         gl_GETPAGESIZE invocation, already handled by module dependency.
46261         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46262
46263 2007-12-02  Bruno Haible  <bruno@clisp.org>
46264
46265         * modules/strings-tests: New file.
46266         * tests/test-strings.c: New file.
46267
46268         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46269         * lib/strings.in.h: New file.
46270         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46271         * m4/strings_h.m4: New file.
46272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46273         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46274         * modules/strings: New file.
46275         * modules/string (Makefile.am): Update.
46276         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46277         Reported by Karl Berry.
46278
46279 2007-12-01  Eric Blake  <ebb9@byu.net>
46280
46281         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46282         accomodate fix in cygwin 1.5.25.
46283
46284 2007-12-01  Jim Meyering  <meyering@redhat.com>
46285
46286         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46287         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46288         that would inhibit utf8-optimization of a regexp containing line-
46289         or buffer-anchors, e.g., `^', `$'.
46290
46291 2007-11-30  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46294         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46295         glthread_recursive_lock_init.
46296         * lib/lock.c (glthread_recursive_lock_init)
46297         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46298         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46299
46300 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46301
46302         New function qset_acl, like set_acl but with syscall semantics.
46303         * lib/acl.h (qset_acl): New decl.
46304         * lib/acl.c (qset_acl): New function.
46305         (set_acl): Use new function.  Use more-consistent diagnostics.
46306
46307 2007-11-28  Jim Meyering  <meyering@redhat.com>
46308
46309         * modules/physmem (License): Change from GPL to LGPLv2+.
46310
46311 2007-11-26  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46314         'long double' type has excess precision.
46315         Reported by Jim Meyering in
46316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46317
46318 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46319
46320         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46321         Sync from <http://gnu.org/licenses>.
46322         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46323         with license text from same location.
46324         * doc/maintain.texi, doc/standards.texi:  Sync from
46325         <http://savannah.gnu.org/projects/gnustandards>.
46326
46327 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46328         and Jim Meyering  <meyering@redhat.com>
46329
46330         Adjust getdate' grammar to accept a slightly more regular language.
46331         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46332         Before, the former was rejected.
46333         * lib/getdate.y (digits_to_date_time): New function, factored
46334         out of ...
46335         (number): ...here.  Just call digits_to_date_time.
46336         (hybrid): New non-terminal to handle an <unsigned number,
46337         signed relative offset> sequence consistently.
46338
46339 2007-11-18  Jim Meyering  <meyering@redhat.com>
46340
46341         Pull my changes from coreutils:
46342         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46343         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46344         use of $gnulib_tool_option_extras, so that it's separated from the
46345         preceding argument.
46346
46347         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46348         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46349         parent destination directories before copying a file into place.
46350
46351 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46352
46353         bootstrap: work also with 4-argument variant of AC_INIT
46354         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46355
46356 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46357
46358         Port test-getaddrinfo to Solaris.
46359         Problem reported by Bruno Haible in
46360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46361         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46362         explanation of setting 'hints'.
46363         Don't reject an implementation merely because it returns EAI_SERVICE.
46364         (EAI_SERVICE): Define to 0 if not defined.
46365
46366 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46367
46368         The license of gnu-make and posix-shell is now "GPLed build tool".
46369         * modules/gnu-make (License): Likewise.
46370         * modules/posix-shell (License): Likewise.
46371
46372         New module posix-shell, for determining a POSIX shell
46373         or perhaps something that is close enough to a POSIX shell.
46374         * m4/posix-shell.m4: New file.
46375         * modules/posix-shell: New file.
46376
46377         * MODULES.html.sh: Mention new module.
46378
46379         New module gnu-make, for determining whether we're using GNU Make.
46380         * m4/gnu-make.m4: New file.
46381         * modules/gnu-make: New file.
46382         * MODULES.html.sh: Mention new module.
46383
46384 2007-11-14  Jim Meyering  <meyering@redhat.com>
46385
46386         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46387         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46388         use this macro to create a function _definition_.
46389         Remove useless "#undef ARGMATCH_DIE".
46390
46391 2007-11-14  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/config.charset: Update for OpenBSD 4.1.
46394         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46395
46396 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46397
46398         Document 64-bit #if problems in stdint.texi.
46399         * doc/headers/stdint.texi (stdint.h): Mention problems with
46400         64-bit-#if, and how to work around them.
46401
46402         Don't insist on 'long long int' support in the preprocessor.  It
46403         breaks too many things.  For example, PRIdMAX still uses a 'long
46404         long int' format with the latest Sun compiler, even though
46405         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46406         preprocessor problem.  This causes the latest coreutils to dump
46407         core on Solaris 10 sparc with the Sun C compiler.
46408         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46409         the troublesome expressions at configure-time, not at #if-time.
46410         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46411         preprocessor.
46412         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46413         compile-time C checks, done at 'configure'-time.
46414         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46415         * modules/inttypes (Makefile): Substitute the new symbols that
46416         gl_INTTYPES_H now generates.
46417         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46418
46419 2007-11-12  Bruno Haible  <bruno@clisp.org>
46420
46421         Tests for Unicode character classification functions.
46422
46423         * modules/unictype/bidicategory-byname-tests: New file.
46424         * modules/unictype/bidicategory-name-tests: New file.
46425         * modules/unictype/bidicategory-of-tests: New file.
46426         * modules/unictype/bidicategory-test-tests: New file.
46427         * modules/unictype/block-list-tests: New file.
46428         * modules/unictype/block-of-tests: New file.
46429         * modules/unictype/block-test-tests: New file.
46430         * modules/unictype/category-C-tests: New file.
46431         * modules/unictype/category-Cc-tests: New file.
46432         * modules/unictype/category-Cf-tests: New file.
46433         * modules/unictype/category-Cn-tests: New file.
46434         * modules/unictype/category-Co-tests: New file.
46435         * modules/unictype/category-Cs-tests: New file.
46436         * modules/unictype/category-L-tests: New file.
46437         * modules/unictype/category-Ll-tests: New file.
46438         * modules/unictype/category-Lm-tests: New file.
46439         * modules/unictype/category-Lo-tests: New file.
46440         * modules/unictype/category-Lt-tests: New file.
46441         * modules/unictype/category-Lu-tests: New file.
46442         * modules/unictype/category-M-tests: New file.
46443         * modules/unictype/category-Mc-tests: New file.
46444         * modules/unictype/category-Me-tests: New file.
46445         * modules/unictype/category-Mn-tests: New file.
46446         * modules/unictype/category-N-tests: New file.
46447         * modules/unictype/category-Nd-tests: New file.
46448         * modules/unictype/category-Nl-tests: New file.
46449         * modules/unictype/category-No-tests: New file.
46450         * modules/unictype/category-P-tests: New file.
46451         * modules/unictype/category-Pc-tests: New file.
46452         * modules/unictype/category-Pd-tests: New file.
46453         * modules/unictype/category-Pe-tests: New file.
46454         * modules/unictype/category-Pf-tests: New file.
46455         * modules/unictype/category-Pi-tests: New file.
46456         * modules/unictype/category-Po-tests: New file.
46457         * modules/unictype/category-Ps-tests: New file.
46458         * modules/unictype/category-S-tests: New file.
46459         * modules/unictype/category-Sc-tests: New file.
46460         * modules/unictype/category-Sk-tests: New file.
46461         * modules/unictype/category-Sm-tests: New file.
46462         * modules/unictype/category-So-tests: New file.
46463         * modules/unictype/category-Z-tests: New file.
46464         * modules/unictype/category-Zl-tests: New file.
46465         * modules/unictype/category-Zp-tests: New file.
46466         * modules/unictype/category-Zs-tests: New file.
46467         * modules/unictype/category-and-not-tests: New file.
46468         * modules/unictype/category-and-tests: New file.
46469         * modules/unictype/category-byname-tests: New file.
46470         * modules/unictype/category-name-tests: New file.
46471         * modules/unictype/category-none-tests: New file.
46472         * modules/unictype/category-of-tests: New file.
46473         * modules/unictype/category-or-tests: New file.
46474         * modules/unictype/category-test-withtable-tests: New file.
46475         * modules/unictype/combining-class-tests: New file.
46476         * modules/unictype/ctype-alnum-tests: New file.
46477         * modules/unictype/ctype-alpha-tests: New file.
46478         * modules/unictype/ctype-blank-tests: New file.
46479         * modules/unictype/ctype-cntrl-tests: New file.
46480         * modules/unictype/ctype-digit-tests: New file.
46481         * modules/unictype/ctype-graph-tests: New file.
46482         * modules/unictype/ctype-lower-tests: New file.
46483         * modules/unictype/ctype-print-tests: New file.
46484         * modules/unictype/ctype-punct-tests: New file.
46485         * modules/unictype/ctype-space-tests: New file.
46486         * modules/unictype/ctype-upper-tests: New file.
46487         * modules/unictype/ctype-xdigit-tests: New file.
46488         * modules/unictype/decimal-digit-tests: New file.
46489         * modules/unictype/digit-tests: New file.
46490         * modules/unictype/mirror-tests: New file.
46491         * modules/unictype/numeric-tests: New file.
46492         * modules/unictype/property-alphabetic-tests: New file.
46493         * modules/unictype/property-ascii-hex-digit-tests: New file.
46494         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46495         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46496         * modules/unictype/property-bidi-block-separator-tests: New file.
46497         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46498         * modules/unictype/property-bidi-common-separator-tests: New file.
46499         * modules/unictype/property-bidi-control-tests: New file.
46500         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46501         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46502         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46503         * modules/unictype/property-bidi-european-digit-tests: New file.
46504         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46505         * modules/unictype/property-bidi-left-to-right-tests: New file.
46506         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46507         * modules/unictype/property-bidi-other-neutral-tests: New file.
46508         * modules/unictype/property-bidi-pdf-tests: New file.
46509         * modules/unictype/property-bidi-segment-separator-tests: New file.
46510         * modules/unictype/property-bidi-whitespace-tests: New file.
46511         * modules/unictype/property-byname-tests: New file.
46512         * modules/unictype/property-combining-tests: New file.
46513         * modules/unictype/property-composite-tests: New file.
46514         * modules/unictype/property-currency-symbol-tests: New file.
46515         * modules/unictype/property-dash-tests: New file.
46516         * modules/unictype/property-decimal-digit-tests: New file.
46517         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46518         * modules/unictype/property-deprecated-tests: New file.
46519         * modules/unictype/property-diacritic-tests: New file.
46520         * modules/unictype/property-extender-tests: New file.
46521         * modules/unictype/property-format-control-tests: New file.
46522         * modules/unictype/property-grapheme-base-tests: New file.
46523         * modules/unictype/property-grapheme-extend-tests: New file.
46524         * modules/unictype/property-grapheme-link-tests: New file.
46525         * modules/unictype/property-hex-digit-tests: New file.
46526         * modules/unictype/property-hyphen-tests: New file.
46527         * modules/unictype/property-id-continue-tests: New file.
46528         * modules/unictype/property-id-start-tests: New file.
46529         * modules/unictype/property-ideographic-tests: New file.
46530         * modules/unictype/property-ids-binary-operator-tests: New file.
46531         * modules/unictype/property-ids-trinary-operator-tests: New file.
46532         * modules/unictype/property-ignorable-control-tests: New file.
46533         * modules/unictype/property-iso-control-tests: New file.
46534         * modules/unictype/property-join-control-tests: New file.
46535         * modules/unictype/property-left-of-pair-tests: New file.
46536         * modules/unictype/property-line-separator-tests: New file.
46537         * modules/unictype/property-logical-order-exception-tests: New file.
46538         * modules/unictype/property-lowercase-tests: New file.
46539         * modules/unictype/property-math-tests: New file.
46540         * modules/unictype/property-non-break-tests: New file.
46541         * modules/unictype/property-not-a-character-tests: New file.
46542         * modules/unictype/property-numeric-tests: New file.
46543         * modules/unictype/property-other-alphabetic-tests: New file.
46544         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46545         * modules/unictype/property-other-grapheme-extend-tests: New file.
46546         * modules/unictype/property-other-id-continue-tests: New file.
46547         * modules/unictype/property-other-id-start-tests: New file.
46548         * modules/unictype/property-other-lowercase-tests: New file.
46549         * modules/unictype/property-other-math-tests: New file.
46550         * modules/unictype/property-other-uppercase-tests: New file.
46551         * modules/unictype/property-paired-punctuation-tests: New file.
46552         * modules/unictype/property-paragraph-separator-tests: New file.
46553         * modules/unictype/property-pattern-syntax-tests: New file.
46554         * modules/unictype/property-pattern-white-space-tests: New file.
46555         * modules/unictype/property-private-use-tests: New file.
46556         * modules/unictype/property-punctuation-tests: New file.
46557         * modules/unictype/property-quotation-mark-tests: New file.
46558         * modules/unictype/property-radical-tests: New file.
46559         * modules/unictype/property-sentence-terminal-tests: New file.
46560         * modules/unictype/property-soft-dotted-tests: New file.
46561         * modules/unictype/property-space-tests: New file.
46562         * modules/unictype/property-terminal-punctuation-tests: New file.
46563         * modules/unictype/property-test-tests: New file.
46564         * modules/unictype/property-titlecase-tests: New file.
46565         * modules/unictype/property-unassigned-code-value-tests: New file.
46566         * modules/unictype/property-unified-ideograph-tests: New file.
46567         * modules/unictype/property-uppercase-tests: New file.
46568         * modules/unictype/property-variation-selector-tests: New file.
46569         * modules/unictype/property-white-space-tests: New file.
46570         * modules/unictype/property-xid-continue-tests: New file.
46571         * modules/unictype/property-xid-start-tests: New file.
46572         * modules/unictype/property-zero-width-tests: New file.
46573         * modules/unictype/scripts-tests: New file.
46574         * modules/unictype/syntax-c-ident-tests: New file.
46575         * modules/unictype/syntax-c-whitespace-tests: New file.
46576         * modules/unictype/syntax-java-ident-tests: New file.
46577         * modules/unictype/syntax-java-whitespace-tests: New file.
46578         * tests/unictype/test-bidi_byname.c: New file.
46579         * tests/unictype/test-bidi_name.c: New file.
46580         * tests/unictype/test-bidi_of.c: New file.
46581         * tests/unictype/test-bidi_test.c: New file.
46582         * tests/unictype/test-block_list.c: New file.
46583         * tests/unictype/test-block_of.c: New file.
46584         * tests/unictype/test-block_test.c: New file.
46585         * tests/unictype/test-categ_and.c: New file.
46586         * tests/unictype/test-categ_and_not.c: New file.
46587         * tests/unictype/test-categ_byname.c: New file.
46588         * tests/unictype/test-categ_name.c: New file.
46589         * tests/unictype/test-categ_none.c: New file.
46590         * tests/unictype/test-categ_of.c: New file.
46591         * tests/unictype/test-categ_or.c: New file.
46592         * tests/unictype/test-categ_test_withtable.c: New file.
46593         * tests/unictype/test-combining.c: New file.
46594         * tests/unictype/test-decdigit.c: New file.
46595         * tests/unictype/test-digit.c: New file.
46596         * tests/unictype/test-mirror.c: New file.
46597         * tests/unictype/test-numeric.c: New file.
46598         * tests/unictype/test-pr_byname.c: New file.
46599         * tests/unictype/test-pr_test.c: New file.
46600         * tests/unictype/test-predicate-part1.h: New file.
46601         * tests/unictype/test-predicate-part2.h: New file.
46602         * tests/unictype/test-scripts.c: New file.
46603         * tests/unictype/test-sy_c_ident.c: New file.
46604         * tests/unictype/test-sy_java_ident.c: New file.
46605
46606         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46607         for Unicode 5.0.0.
46608         * tests/unictype/test-categ_Cc.c: Likewise.
46609         * tests/unictype/test-categ_Cf.c: Likewise.
46610         * tests/unictype/test-categ_Cn.c: Likewise.
46611         * tests/unictype/test-categ_Co.c: Likewise.
46612         * tests/unictype/test-categ_Cs.c: Likewise.
46613         * tests/unictype/test-categ_L.c: Likewise.
46614         * tests/unictype/test-categ_Ll.c: Likewise.
46615         * tests/unictype/test-categ_Lm.c: Likewise.
46616         * tests/unictype/test-categ_Lo.c: Likewise.
46617         * tests/unictype/test-categ_Lt.c: Likewise.
46618         * tests/unictype/test-categ_Lu.c: Likewise.
46619         * tests/unictype/test-categ_M.c: Likewise.
46620         * tests/unictype/test-categ_Mc.c: Likewise.
46621         * tests/unictype/test-categ_Me.c: Likewise.
46622         * tests/unictype/test-categ_Mn.c: Likewise.
46623         * tests/unictype/test-categ_N.c: Likewise.
46624         * tests/unictype/test-categ_Nd.c: Likewise.
46625         * tests/unictype/test-categ_Nl.c: Likewise.
46626         * tests/unictype/test-categ_No.c: Likewise.
46627         * tests/unictype/test-categ_P.c: Likewise.
46628         * tests/unictype/test-categ_Pc.c: Likewise.
46629         * tests/unictype/test-categ_Pd.c: Likewise.
46630         * tests/unictype/test-categ_Pe.c: Likewise.
46631         * tests/unictype/test-categ_Pf.c: Likewise.
46632         * tests/unictype/test-categ_Pi.c: Likewise.
46633         * tests/unictype/test-categ_Po.c: Likewise.
46634         * tests/unictype/test-categ_Ps.c: Likewise.
46635         * tests/unictype/test-categ_S.c: Likewise.
46636         * tests/unictype/test-categ_Sc.c: Likewise.
46637         * tests/unictype/test-categ_Sk.c: Likewise.
46638         * tests/unictype/test-categ_Sm.c: Likewise.
46639         * tests/unictype/test-categ_So.c: Likewise.
46640         * tests/unictype/test-categ_Z.c: Likewise.
46641         * tests/unictype/test-categ_Zl.c: Likewise.
46642         * tests/unictype/test-categ_Zp.c: Likewise.
46643         * tests/unictype/test-categ_Zs.c: Likewise.
46644         * tests/unictype/test-ctype_alnum.c: Likewise.
46645         * tests/unictype/test-ctype_alpha.c: Likewise.
46646         * tests/unictype/test-ctype_blank.c: Likewise.
46647         * tests/unictype/test-ctype_cntrl.c: Likewise.
46648         * tests/unictype/test-ctype_digit.c: Likewise.
46649         * tests/unictype/test-ctype_graph.c: Likewise.
46650         * tests/unictype/test-ctype_lower.c: Likewise.
46651         * tests/unictype/test-ctype_print.c: Likewise.
46652         * tests/unictype/test-ctype_punct.c: Likewise.
46653         * tests/unictype/test-ctype_space.c: Likewise.
46654         * tests/unictype/test-ctype_upper.c: Likewise.
46655         * tests/unictype/test-ctype_xdigit.c: Likewise.
46656         * tests/unictype/test-decdigit.h: Likewise.
46657         * tests/unictype/test-digit.h: Likewise.
46658         * tests/unictype/test-numeric.h: Likewise.
46659         * tests/unictype/test-pr_alphabetic.c: Likewise.
46660         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46661         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46662         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46663         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46664         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46665         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46666         * tests/unictype/test-pr_bidi_control.c: Likewise.
46667         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46668         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46669         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46670         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46671         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46672         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46673         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46674         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46675         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46676         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46677         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46678         * tests/unictype/test-pr_combining.c: Likewise.
46679         * tests/unictype/test-pr_composite.c: Likewise.
46680         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46681         * tests/unictype/test-pr_dash.c: Likewise.
46682         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46683         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46684         * tests/unictype/test-pr_deprecated.c: Likewise.
46685         * tests/unictype/test-pr_diacritic.c: Likewise.
46686         * tests/unictype/test-pr_extender.c: Likewise.
46687         * tests/unictype/test-pr_format_control.c: Likewise.
46688         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46689         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46690         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46691         * tests/unictype/test-pr_hex_digit.c: Likewise.
46692         * tests/unictype/test-pr_hyphen.c: Likewise.
46693         * tests/unictype/test-pr_id_continue.c: Likewise.
46694         * tests/unictype/test-pr_id_start.c: Likewise.
46695         * tests/unictype/test-pr_ideographic.c: Likewise.
46696         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46697         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46698         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46699         * tests/unictype/test-pr_iso_control.c: Likewise.
46700         * tests/unictype/test-pr_join_control.c: Likewise.
46701         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46702         * tests/unictype/test-pr_line_separator.c: Likewise.
46703         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46704         * tests/unictype/test-pr_lowercase.c: Likewise.
46705         * tests/unictype/test-pr_math.c: Likewise.
46706         * tests/unictype/test-pr_non_break.c: Likewise.
46707         * tests/unictype/test-pr_not_a_character.c: Likewise.
46708         * tests/unictype/test-pr_numeric.c: Likewise.
46709         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46710         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46711         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46712         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46713         * tests/unictype/test-pr_other_id_start.c: Likewise.
46714         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46715         * tests/unictype/test-pr_other_math.c: Likewise.
46716         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46717         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46718         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46719         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46720         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46721         * tests/unictype/test-pr_private_use.c: Likewise.
46722         * tests/unictype/test-pr_punctuation.c: Likewise.
46723         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46724         * tests/unictype/test-pr_radical.c: Likewise.
46725         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46726         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46727         * tests/unictype/test-pr_space.c: Likewise.
46728         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46729         * tests/unictype/test-pr_titlecase.c: Likewise.
46730         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46731         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46732         * tests/unictype/test-pr_uppercase.c: Likewise.
46733         * tests/unictype/test-pr_variation_selector.c: Likewise.
46734         * tests/unictype/test-pr_white_space.c: Likewise.
46735         * tests/unictype/test-pr_xid_continue.c: Likewise.
46736         * tests/unictype/test-pr_xid_start.c: Likewise.
46737         * tests/unictype/test-pr_zero_width.c: Likewise.
46738         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46739         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46740
46741 2007-11-12  Bruno Haible  <bruno@clisp.org>
46742
46743         Unicode character classification functions.
46744         * lib/unictype.h: New file.
46745         * modules/unictype/base: New file.
46746         * modules/unictype/category-L: New file.
46747         * modules/unictype/category-Lu: New file.
46748         * modules/unictype/category-Ll: New file.
46749         * modules/unictype/category-Lt: New file.
46750         * modules/unictype/category-Lm: New file.
46751         * modules/unictype/category-Lo: New file.
46752         * modules/unictype/category-M: New file.
46753         * modules/unictype/category-Mn: New file.
46754         * modules/unictype/category-Mc: New file.
46755         * modules/unictype/category-Me: New file.
46756         * modules/unictype/category-N: New file.
46757         * modules/unictype/category-Nd: New file.
46758         * modules/unictype/category-Nl: New file.
46759         * modules/unictype/category-No: New file.
46760         * modules/unictype/category-P: New file.
46761         * modules/unictype/category-Pc: New file.
46762         * modules/unictype/category-Pd: New file.
46763         * modules/unictype/category-Ps: New file.
46764         * modules/unictype/category-Pe: New file.
46765         * modules/unictype/category-Pi: New file.
46766         * modules/unictype/category-Pf: New file.
46767         * modules/unictype/category-Po: New file.
46768         * modules/unictype/category-S: New file.
46769         * modules/unictype/category-Sm: New file.
46770         * modules/unictype/category-Sc: New file.
46771         * modules/unictype/category-Sk: New file.
46772         * modules/unictype/category-So: New file.
46773         * modules/unictype/category-Z: New file.
46774         * modules/unictype/category-Zs: New file.
46775         * modules/unictype/category-Zl: New file.
46776         * modules/unictype/category-Zp: New file.
46777         * modules/unictype/category-C: New file.
46778         * modules/unictype/category-Cc: New file.
46779         * modules/unictype/category-Cf: New file.
46780         * modules/unictype/category-Cs: New file.
46781         * modules/unictype/category-Co: New file.
46782         * modules/unictype/category-Cn: New file.
46783         * modules/unictype/category-or: New file.
46784         * modules/unictype/category-of: New file.
46785         * modules/unictype/category-test: New file.
46786         * modules/unictype/category-test-withtable: New file.
46787         * modules/unictype/category-byname: New file.
46788         * modules/unictype/category-none: New file.
46789         * modules/unictype/category-and: New file.
46790         * modules/unictype/category-and-not: New file.
46791         * modules/unictype/category-name: New file.
46792         * modules/unictype/combining-class: New file.
46793         * modules/unictype/category-all: New file.
46794         * modules/unictype/bidicategory-all: New file.
46795         * modules/unictype/bidicategory-byname: New file.
46796         * modules/unictype/bidicategory-name: New file.
46797         * modules/unictype/bidicategory-of: New file.
46798         * modules/unictype/bidicategory-test: New file.
46799         * modules/unictype/decimal-digit: New file.
46800         * modules/unictype/digit: New file.
46801         * modules/unictype/numeric: New file.
46802         * modules/unictype/mirror: New file.
46803         * modules/unictype/property-white-space: New file.
46804         * modules/unictype/property-alphabetic: New file.
46805         * modules/unictype/property-other-alphabetic: New file.
46806         * modules/unictype/property-not-a-character: New file.
46807         * modules/unictype/property-default-ignorable-code-point: New file.
46808         * modules/unictype/property-other-default-ignorable-code-point: New
46809         file.
46810         * modules/unictype/property-deprecated: New file.
46811         * modules/unictype/property-logical-order-exception: New file.
46812         * modules/unictype/property-variation-selector: New file.
46813         * modules/unictype/property-private-use: New file.
46814         * modules/unictype/property-unassigned-code-value: New file.
46815         * modules/unictype/property-uppercase: New file.
46816         * modules/unictype/property-other-uppercase: New file.
46817         * modules/unictype/property-lowercase: New file.
46818         * modules/unictype/property-other-lowercase: New file.
46819         * modules/unictype/property-titlecase: New file.
46820         * modules/unictype/property-soft-dotted: New file.
46821         * modules/unictype/property-id-start: New file.
46822         * modules/unictype/property-other-id-start: New file.
46823         * modules/unictype/property-id-continue: New file.
46824         * modules/unictype/property-other-id-continue: New file.
46825         * modules/unictype/property-xid-start: New file.
46826         * modules/unictype/property-xid-continue: New file.
46827         * modules/unictype/property-pattern-white-space: New file.
46828         * modules/unictype/property-pattern-syntax: New file.
46829         * modules/unictype/property-join-control: New file.
46830         * modules/unictype/property-grapheme-base: New file.
46831         * modules/unictype/property-grapheme-extend: New file.
46832         * modules/unictype/property-other-grapheme-extend: New file.
46833         * modules/unictype/property-grapheme-link: New file.
46834         * modules/unictype/property-bidi-control: New file.
46835         * modules/unictype/property-bidi-left-to-right: New file.
46836         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46837         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46838         * modules/unictype/property-bidi-european-digit: New file.
46839         * modules/unictype/property-bidi-eur-num-separator: New file.
46840         * modules/unictype/property-bidi-eur-num-terminator: New file.
46841         * modules/unictype/property-bidi-arabic-digit: New file.
46842         * modules/unictype/property-bidi-common-separator: New file.
46843         * modules/unictype/property-bidi-block-separator: New file.
46844         * modules/unictype/property-bidi-segment-separator: New file.
46845         * modules/unictype/property-bidi-whitespace: New file.
46846         * modules/unictype/property-bidi-non-spacing-mark: New file.
46847         * modules/unictype/property-bidi-boundary-neutral: New file.
46848         * modules/unictype/property-bidi-pdf: New file.
46849         * modules/unictype/property-bidi-embedding-or-override: New file.
46850         * modules/unictype/property-bidi-other-neutral: New file.
46851         * modules/unictype/property-hex-digit: New file.
46852         * modules/unictype/property-ascii-hex-digit: New file.
46853         * modules/unictype/property-ideographic: New file.
46854         * modules/unictype/property-unified-ideograph: New file.
46855         * modules/unictype/property-radical: New file.
46856         * modules/unictype/property-ids-binary-operator: New file.
46857         * modules/unictype/property-ids-trinary-operator: New file.
46858         * modules/unictype/property-zero-width: New file.
46859         * modules/unictype/property-space: New file.
46860         * modules/unictype/property-non-break: New file.
46861         * modules/unictype/property-iso-control: New file.
46862         * modules/unictype/property-format-control: New file.
46863         * modules/unictype/property-dash: New file.
46864         * modules/unictype/property-hyphen: New file.
46865         * modules/unictype/property-punctuation: New file.
46866         * modules/unictype/property-line-separator: New file.
46867         * modules/unictype/property-paragraph-separator: New file.
46868         * modules/unictype/property-quotation-mark: New file.
46869         * modules/unictype/property-sentence-terminal: New file.
46870         * modules/unictype/property-terminal-punctuation: New file.
46871         * modules/unictype/property-currency-symbol: New file.
46872         * modules/unictype/property-math: New file.
46873         * modules/unictype/property-other-math: New file.
46874         * modules/unictype/property-paired-punctuation: New file.
46875         * modules/unictype/property-left-of-pair: New file.
46876         * modules/unictype/property-combining: New file.
46877         * modules/unictype/property-composite: New file.
46878         * modules/unictype/property-decimal-digit: New file.
46879         * modules/unictype/property-numeric: New file.
46880         * modules/unictype/property-diacritic: New file.
46881         * modules/unictype/property-extender: New file.
46882         * modules/unictype/property-ignorable-control: New file.
46883         * modules/unictype/property-test: New file.
46884         * modules/unictype/property-byname: New file.
46885         * modules/unictype/property-all: New file.
46886         * modules/unictype/scripts: New file.
46887         * modules/unictype/scripts-all: New file.
46888         * modules/unictype/block-of: New file.
46889         * modules/unictype/block-test: New file.
46890         * modules/unictype/block-list: New file.
46891         * modules/unictype/block-all: New file.
46892         * modules/unictype/syntax-c-whitespace: New file.
46893         * modules/unictype/syntax-java-whitespace: New file.
46894         * modules/unictype/syntax-c-ident: New file.
46895         * modules/unictype/syntax-java-ident: New file.
46896         * modules/unictype/ctype-alnum: New file.
46897         * modules/unictype/ctype-alpha: New file.
46898         * modules/unictype/ctype-cntrl: New file.
46899         * modules/unictype/ctype-digit: New file.
46900         * modules/unictype/ctype-graph: New file.
46901         * modules/unictype/ctype-lower: New file.
46902         * modules/unictype/ctype-print: New file.
46903         * modules/unictype/ctype-punct: New file.
46904         * modules/unictype/ctype-space: New file.
46905         * modules/unictype/ctype-upper: New file.
46906         * modules/unictype/ctype-xdigit: New file.
46907         * modules/unictype/ctype-blank: New file.
46908         * lib/unictype/bidi_byname.c: New file.
46909         * lib/unictype/bidi_name.c: New file.
46910         * lib/unictype/bidi_of.c: New file.
46911         * lib/unictype/bidi_test.c: New file.
46912         * lib/unictype/bitmap.h: New file.
46913         * lib/unictype/block_test.c: New file.
46914         * lib/unictype/blocks.c: New file.
46915         * lib/unictype/categ_C.c: New file.
46916         * lib/unictype/categ_Cc.c: New file.
46917         * lib/unictype/categ_Cf.c: New file.
46918         * lib/unictype/categ_Cn.c: New file.
46919         * lib/unictype/categ_Co.c: New file.
46920         * lib/unictype/categ_Cs.c: New file.
46921         * lib/unictype/categ_L.c: New file.
46922         * lib/unictype/categ_Ll.c: New file.
46923         * lib/unictype/categ_Lm.c: New file.
46924         * lib/unictype/categ_Lo.c: New file.
46925         * lib/unictype/categ_Lt.c: New file.
46926         * lib/unictype/categ_Lu.c: New file.
46927         * lib/unictype/categ_M.c: New file.
46928         * lib/unictype/categ_Mc.c: New file.
46929         * lib/unictype/categ_Me.c: New file.
46930         * lib/unictype/categ_Mn.c: New file.
46931         * lib/unictype/categ_N.c: New file.
46932         * lib/unictype/categ_Nd.c: New file.
46933         * lib/unictype/categ_Nl.c: New file.
46934         * lib/unictype/categ_No.c: New file.
46935         * lib/unictype/categ_P.c: New file.
46936         * lib/unictype/categ_Pc.c: New file.
46937         * lib/unictype/categ_Pd.c: New file.
46938         * lib/unictype/categ_Pe.c: New file.
46939         * lib/unictype/categ_Pf.c: New file.
46940         * lib/unictype/categ_Pi.c: New file.
46941         * lib/unictype/categ_Po.c: New file.
46942         * lib/unictype/categ_Ps.c: New file.
46943         * lib/unictype/categ_S.c: New file.
46944         * lib/unictype/categ_Sc.c: New file.
46945         * lib/unictype/categ_Sk.c: New file.
46946         * lib/unictype/categ_Sm.c: New file.
46947         * lib/unictype/categ_So.c: New file.
46948         * lib/unictype/categ_Z.c: New file.
46949         * lib/unictype/categ_Zl.c: New file.
46950         * lib/unictype/categ_Zp.c: New file.
46951         * lib/unictype/categ_Zs.c: New file.
46952         * lib/unictype/categ_and.c: New file.
46953         * lib/unictype/categ_and_not.c: New file.
46954         * lib/unictype/categ_byname.c: New file.
46955         * lib/unictype/categ_name.c: New file.
46956         * lib/unictype/categ_none.c: New file.
46957         * lib/unictype/categ_of.c: New file.
46958         * lib/unictype/categ_or.c: New file.
46959         * lib/unictype/categ_test.c: New file.
46960         * lib/unictype/combining.c: New file.
46961         * lib/unictype/ctype_alnum.c: New file.
46962         * lib/unictype/ctype_alpha.c: New file.
46963         * lib/unictype/ctype_blank.c: New file.
46964         * lib/unictype/ctype_cntrl.c: New file.
46965         * lib/unictype/ctype_digit.c: New file.
46966         * lib/unictype/ctype_graph.c: New file.
46967         * lib/unictype/ctype_lower.c: New file.
46968         * lib/unictype/ctype_print.c: New file.
46969         * lib/unictype/ctype_punct.c: New file.
46970         * lib/unictype/ctype_space.c: New file.
46971         * lib/unictype/ctype_upper.c: New file.
46972         * lib/unictype/ctype_xdigit.c: New file.
46973         * lib/unictype/decdigit.c: New file.
46974         * lib/unictype/digit.c: New file.
46975         * lib/unictype/identsyntaxmap.h: New file.
46976         * lib/unictype/mirror.c: New file.
46977         * lib/unictype/numeric.c: New file.
46978         * lib/unictype/pr_alphabetic.c: New file.
46979         * lib/unictype/pr_ascii_hex_digit.c: New file.
46980         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46981         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46982         * lib/unictype/pr_bidi_block_separator.c: New file.
46983         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46984         * lib/unictype/pr_bidi_common_separator.c: New file.
46985         * lib/unictype/pr_bidi_control.c: New file.
46986         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46987         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46988         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46989         * lib/unictype/pr_bidi_european_digit.c: New file.
46990         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46991         * lib/unictype/pr_bidi_left_to_right.c: New file.
46992         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46993         * lib/unictype/pr_bidi_other_neutral.c: New file.
46994         * lib/unictype/pr_bidi_pdf.c: New file.
46995         * lib/unictype/pr_bidi_segment_separator.c: New file.
46996         * lib/unictype/pr_bidi_whitespace.c: New file.
46997         * lib/unictype/pr_byname.c: New file.
46998         * lib/unictype/pr_byname.gperf: New file.
46999         * lib/unictype/pr_combining.c: New file.
47000         * lib/unictype/pr_composite.c: New file.
47001         * lib/unictype/pr_currency_symbol.c: New file.
47002         * lib/unictype/pr_dash.c: New file.
47003         * lib/unictype/pr_decimal_digit.c: New file.
47004         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47005         * lib/unictype/pr_deprecated.c: New file.
47006         * lib/unictype/pr_diacritic.c: New file.
47007         * lib/unictype/pr_extender.c: New file.
47008         * lib/unictype/pr_format_control.c: New file.
47009         * lib/unictype/pr_grapheme_base.c: New file.
47010         * lib/unictype/pr_grapheme_extend.c: New file.
47011         * lib/unictype/pr_grapheme_link.c: New file.
47012         * lib/unictype/pr_hex_digit.c: New file.
47013         * lib/unictype/pr_hyphen.c: New file.
47014         * lib/unictype/pr_id_continue.c: New file.
47015         * lib/unictype/pr_id_start.c: New file.
47016         * lib/unictype/pr_ideographic.c: New file.
47017         * lib/unictype/pr_ids_binary_operator.c: New file.
47018         * lib/unictype/pr_ids_trinary_operator.c: New file.
47019         * lib/unictype/pr_ignorable_control.c: New file.
47020         * lib/unictype/pr_iso_control.c: New file.
47021         * lib/unictype/pr_join_control.c: New file.
47022         * lib/unictype/pr_left_of_pair.c: New file.
47023         * lib/unictype/pr_line_separator.c: New file.
47024         * lib/unictype/pr_logical_order_exception.c: New file.
47025         * lib/unictype/pr_lowercase.c: New file.
47026         * lib/unictype/pr_math.c: New file.
47027         * lib/unictype/pr_non_break.c: New file.
47028         * lib/unictype/pr_not_a_character.c: New file.
47029         * lib/unictype/pr_numeric.c: New file.
47030         * lib/unictype/pr_other_alphabetic.c: New file.
47031         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47032         * lib/unictype/pr_other_grapheme_extend.c: New file.
47033         * lib/unictype/pr_other_id_continue.c: New file.
47034         * lib/unictype/pr_other_id_start.c: New file.
47035         * lib/unictype/pr_other_lowercase.c: New file.
47036         * lib/unictype/pr_other_math.c: New file.
47037         * lib/unictype/pr_other_uppercase.c: New file.
47038         * lib/unictype/pr_paired_punctuation.c: New file.
47039         * lib/unictype/pr_paragraph_separator.c: New file.
47040         * lib/unictype/pr_pattern_syntax.c: New file.
47041         * lib/unictype/pr_pattern_white_space.c: New file.
47042         * lib/unictype/pr_private_use.c: New file.
47043         * lib/unictype/pr_punctuation.c: New file.
47044         * lib/unictype/pr_quotation_mark.c: New file.
47045         * lib/unictype/pr_radical.c: New file.
47046         * lib/unictype/pr_sentence_terminal.c: New file.
47047         * lib/unictype/pr_soft_dotted.c: New file.
47048         * lib/unictype/pr_space.c: New file.
47049         * lib/unictype/pr_terminal_punctuation.c: New file.
47050         * lib/unictype/pr_test.c: New file.
47051         * lib/unictype/pr_titlecase.c: New file.
47052         * lib/unictype/pr_unassigned_code_value.c: New file.
47053         * lib/unictype/pr_unified_ideograph.c: New file.
47054         * lib/unictype/pr_uppercase.c: New file.
47055         * lib/unictype/pr_variation_selector.c: New file.
47056         * lib/unictype/pr_white_space.c: New file.
47057         * lib/unictype/pr_xid_continue.c: New file.
47058         * lib/unictype/pr_xid_start.c: New file.
47059         * lib/unictype/pr_zero_width.c: New file.
47060         * lib/unictype/scripts.c: New file.
47061         * lib/unictype/sy_c_ident.c: New file.
47062         * lib/unictype/sy_c_whitespace.c: New file.
47063         * lib/unictype/sy_java_ident.c: New file.
47064         * lib/unictype/sy_java_whitespace.c: New file.
47065
47066         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47067         Unicode 5.0.0.
47068         * lib/unictype/blocks.h: Likewise.
47069         * lib/unictype/categ_C.h: Likewise.
47070         * lib/unictype/categ_Cc.h: Likewise.
47071         * lib/unictype/categ_Cf.h: Likewise.
47072         * lib/unictype/categ_Cn.h: Likewise.
47073         * lib/unictype/categ_Co.h: Likewise.
47074         * lib/unictype/categ_Cs.h: Likewise.
47075         * lib/unictype/categ_L.h: Likewise.
47076         * lib/unictype/categ_Ll.h: Likewise.
47077         * lib/unictype/categ_Lm.h: Likewise.
47078         * lib/unictype/categ_Lo.h: Likewise.
47079         * lib/unictype/categ_Lt.h: Likewise.
47080         * lib/unictype/categ_Lu.h: Likewise.
47081         * lib/unictype/categ_M.h: Likewise.
47082         * lib/unictype/categ_Mc.h: Likewise.
47083         * lib/unictype/categ_Me.h: Likewise.
47084         * lib/unictype/categ_Mn.h: Likewise.
47085         * lib/unictype/categ_N.h: Likewise.
47086         * lib/unictype/categ_Nd.h: Likewise.
47087         * lib/unictype/categ_Nl.h: Likewise.
47088         * lib/unictype/categ_No.h: Likewise.
47089         * lib/unictype/categ_P.h: Likewise.
47090         * lib/unictype/categ_Pc.h: Likewise.
47091         * lib/unictype/categ_Pd.h: Likewise.
47092         * lib/unictype/categ_Pe.h: Likewise.
47093         * lib/unictype/categ_Pf.h: Likewise.
47094         * lib/unictype/categ_Pi.h: Likewise.
47095         * lib/unictype/categ_Po.h: Likewise.
47096         * lib/unictype/categ_Ps.h: Likewise.
47097         * lib/unictype/categ_S.h: Likewise.
47098         * lib/unictype/categ_Sc.h: Likewise.
47099         * lib/unictype/categ_Sk.h: Likewise.
47100         * lib/unictype/categ_Sm.h: Likewise.
47101         * lib/unictype/categ_So.h: Likewise.
47102         * lib/unictype/categ_Z.h: Likewise.
47103         * lib/unictype/categ_Zl.h: Likewise.
47104         * lib/unictype/categ_Zp.h: Likewise.
47105         * lib/unictype/categ_Zs.h: Likewise.
47106         * lib/unictype/categ_of.h: Likewise.
47107         * lib/unictype/combining.h: Likewise.
47108         * lib/unictype/ctype_alnum.h: Likewise.
47109         * lib/unictype/ctype_alpha.h: Likewise.
47110         * lib/unictype/ctype_blank.h: Likewise.
47111         * lib/unictype/ctype_cntrl.h: Likewise.
47112         * lib/unictype/ctype_digit.h: Likewise.
47113         * lib/unictype/ctype_graph.h: Likewise.
47114         * lib/unictype/ctype_lower.h: Likewise.
47115         * lib/unictype/ctype_print.h: Likewise.
47116         * lib/unictype/ctype_punct.h: Likewise.
47117         * lib/unictype/ctype_space.h: Likewise.
47118         * lib/unictype/ctype_upper.h: Likewise.
47119         * lib/unictype/ctype_xdigit.h: Likewise.
47120         * lib/unictype/decdigit.h: Likewise.
47121         * lib/unictype/digit.h: Likewise.
47122         * lib/unictype/mirror.h: Likewise.
47123         * lib/unictype/numeric.h: Likewise.
47124         * lib/unictype/pr_alphabetic.h: Likewise.
47125         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47126         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47127         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47128         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47129         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47130         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47131         * lib/unictype/pr_bidi_control.h: Likewise.
47132         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47133         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47134         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47135         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47136         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47137         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47138         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47139         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47140         * lib/unictype/pr_bidi_pdf.h: Likewise.
47141         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47142         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47143         * lib/unictype/pr_combining.h: Likewise.
47144         * lib/unictype/pr_composite.h: Likewise.
47145         * lib/unictype/pr_currency_symbol.h: Likewise.
47146         * lib/unictype/pr_dash.h: Likewise.
47147         * lib/unictype/pr_decimal_digit.h: Likewise.
47148         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47149         * lib/unictype/pr_deprecated.h: Likewise.
47150         * lib/unictype/pr_diacritic.h: Likewise.
47151         * lib/unictype/pr_extender.h: Likewise.
47152         * lib/unictype/pr_format_control.h: Likewise.
47153         * lib/unictype/pr_grapheme_base.h: Likewise.
47154         * lib/unictype/pr_grapheme_extend.h: Likewise.
47155         * lib/unictype/pr_grapheme_link.h: Likewise.
47156         * lib/unictype/pr_hex_digit.h: Likewise.
47157         * lib/unictype/pr_hyphen.h: Likewise.
47158         * lib/unictype/pr_id_continue.h: Likewise.
47159         * lib/unictype/pr_id_start.h: Likewise.
47160         * lib/unictype/pr_ideographic.h: Likewise.
47161         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47162         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47163         * lib/unictype/pr_ignorable_control.h: Likewise.
47164         * lib/unictype/pr_iso_control.h: Likewise.
47165         * lib/unictype/pr_join_control.h: Likewise.
47166         * lib/unictype/pr_left_of_pair.h: Likewise.
47167         * lib/unictype/pr_line_separator.h: Likewise.
47168         * lib/unictype/pr_logical_order_exception.h: Likewise.
47169         * lib/unictype/pr_lowercase.h: Likewise.
47170         * lib/unictype/pr_math.h: Likewise.
47171         * lib/unictype/pr_non_break.h: Likewise.
47172         * lib/unictype/pr_not_a_character.h: Likewise.
47173         * lib/unictype/pr_numeric.h: Likewise.
47174         * lib/unictype/pr_other_alphabetic.h: Likewise.
47175         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47176         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47177         * lib/unictype/pr_other_id_continue.h: Likewise.
47178         * lib/unictype/pr_other_id_start.h: Likewise.
47179         * lib/unictype/pr_other_lowercase.h: Likewise.
47180         * lib/unictype/pr_other_math.h: Likewise.
47181         * lib/unictype/pr_other_uppercase.h: Likewise.
47182         * lib/unictype/pr_paired_punctuation.h: Likewise.
47183         * lib/unictype/pr_paragraph_separator.h: Likewise.
47184         * lib/unictype/pr_pattern_syntax.h: Likewise.
47185         * lib/unictype/pr_pattern_white_space.h: Likewise.
47186         * lib/unictype/pr_private_use.h: Likewise.
47187         * lib/unictype/pr_punctuation.h: Likewise.
47188         * lib/unictype/pr_quotation_mark.h: Likewise.
47189         * lib/unictype/pr_radical.h: Likewise.
47190         * lib/unictype/pr_sentence_terminal.h: Likewise.
47191         * lib/unictype/pr_soft_dotted.h: Likewise.
47192         * lib/unictype/pr_space.h: Likewise.
47193         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47194         * lib/unictype/pr_titlecase.h: Likewise.
47195         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47196         * lib/unictype/pr_unified_ideograph.h: Likewise.
47197         * lib/unictype/pr_uppercase.h: Likewise.
47198         * lib/unictype/pr_variation_selector.h: Likewise.
47199         * lib/unictype/pr_white_space.h: Likewise.
47200         * lib/unictype/pr_xid_continue.h: Likewise.
47201         * lib/unictype/pr_xid_start.h: Likewise.
47202         * lib/unictype/pr_zero_width.h: Likewise.
47203         * lib/unictype/scripts.h: Likewise.
47204         * lib/unictype/scripts_byname.gperf: Likewise.
47205         * lib/unictype/sy_c_ident.h: Likewise.
47206         * lib/unictype/sy_c_whitespace.h: Likewise.
47207         * lib/unictype/sy_java_ident.h: Likewise.
47208         * lib/unictype/sy_java_whitespace.h: Likewise.
47209
47210         * lib/unictype/Makefile: New file.
47211         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47212         glibc.
47213         * lib/unictype/3level.h: New file, copied from glibc.
47214         * lib/unictype/3levelbit.h: New file.
47215
47216 2007-11-11  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/gperf: New file.
47219         * modules/iconv_open (Depends-on): Add it.
47220         (Makefile.am): Remove the GPERF definition.
47221
47222 2007-11-11  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47225         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47226
47227 2007-11-11  Bruno Haible  <bruno@clisp.org>
47228
47229         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47230         (usage): Remove function.
47231
47232 2007-11-11  Bruno Haible  <bruno@clisp.org>
47233
47234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47235         gl_FUNC_CEILF_LIBS.
47236         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47237         gl_FUNC_CEIL_LIBS.
47238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47239         gl_FUNC_CEILL_LIBS.
47240         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47241         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47242         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47243
47244 2007-11-11  Bruno Haible  <bruno@clisp.org>
47245
47246         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47247         roundf were declared but do not exist on functions.
47248         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47249         roundl were declared but do not exist on functions.
47250         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47251         HAVE_FLOORL_AND_CEILL, respectively.
47252         Needed for Sun C on Solaris 10.
47253
47254 2007-11-11  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47257         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47258         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47259         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47260         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47261         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47262         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47263         HAVE_DECL_ROUNDF.
47264         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47265         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47267         of HAVE_DECL_ROUND*.
47268         * modules/math (Makefile.am): Update.
47269
47270 2007-11-10  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47273         ptrdiff_t as m4/intl.m4.
47274
47275 2007-11-10  Jim Meyering  <meyering@redhat.com>
47276
47277         Avoid link failure for the argmatch test.
47278         * tests/test-argmatch.c (usage): Define function to avoid a link
47279         failure: argmatch_die requires a usage function.
47280
47281 2007-11-09  Bruno Haible  <bruno@clisp.org>
47282
47283         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47284         * doc/functions/vsnprintf.texi: Likewise.
47285         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47286         with a size argument < 2.
47287
47288 2007-11-09  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47291         buffer. Fixes an inefficiency introduced on 2007-11-03.
47292
47293 2007-11-09  Bruno Haible  <bruno@clisp.org>
47294
47295         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47296         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47297
47298 2007-11-08  Jim Meyering  <meyering@redhat.com>
47299
47300         Change cache variable name prefix "jm_" to "gl_" everywhere.
47301         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47302         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47303         * m4/uptime.m4: s/gl_/jm_/
47304
47305 2007-11-07  Bruno Haible  <bruno@clisp.org>
47306
47307         Update to GNU gettext 0.17.
47308         * m4/intl.m4: Update to GNU gettext 0.17.
47309         * m4/po.m4: Likewise.
47310         * modules/gettext (Files): Remove m4/ulonglong.m4.
47311         (configure.ac): Require gettext infrastructure from version 0.17.
47312
47313 2007-11-06  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47316         symbolic values are not defined in a public header.
47317         * lib/freadable.c (freadable) [QNX]: Likewise.
47318         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47319         * lib/freading.c (freading) [QNX]: Likewise.
47320         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47321         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47322         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47323         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47324         Reported by Alain Magloire.
47325
47326         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47327
47328 2007-11-05  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47331         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47332         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47333         Reported by Eric Blake.
47334
47335 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47336             Bruno Haible  <bruno@clisp.org>
47337
47338         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47339         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47340         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47341         (malloc): Undefine also before including <stdlib.h>.
47342         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47343         Needed on OSF/1 4.0.
47344
47345 2007-11-05  Jim Meyering  <meyering@redhat.com>
47346
47347         git-version-gen: sync from coreutils.
47348         * build-aux/git-version-gen: Add comments.
47349         Change the first '-' to '.' in the snapshot version string,
47350         e.g., 6.9-377-08144 -> 6.9.377-08144
47351         Remove first parameter.
47352         Don't declare a version "-dirty" merely because a time
47353         stamp has changed.
47354
47355 2007-11-04  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/lock.h: Protect all macro definitions containing an 'if'
47358         statement through a "do { ... } while (0)".
47359         * lib/tls.h: Likewise.
47360
47361 2007-11-04  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47364
47365 2007-11-04  Bruno Haible  <bruno@clisp.org>
47366
47367         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47368         * modules/fprintf-posix (Depends-on): Add nocrash.
47369         * modules/snprintf-posix (Depends-on): Likewise.
47370         * modules/sprintf-posix (Depends-on): Likewise.
47371         * modules/vasnprintf-posix (Depends-on): Likewise.
47372         * modules/vasprintf-posix (Depends-on): Likewise.
47373         * modules/vfprintf-posix (Depends-on): Likewise.
47374         * modules/vsnprintf-posix (Depends-on): Likewise.
47375         * modules/vsprintf-posix (Depends-on): Likewise.
47376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47383
47384 2007-11-04  Bruno Haible  <bruno@clisp.org>
47385
47386         * modules/nocrash: New file.
47387         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47388         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47389
47390 2007-11-04  Bruno Haible  <bruno@clisp.org>
47391
47392         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47393         precision handling.
47394         * tests/test-vasprintf-posix.c (test_function): Likewise.
47395         * tests/test-snprintf-posix.h (test_function): Likewise.
47396         * tests/test-sprintf-posix.h (test_function): Likewise.
47397
47398         Fix *printf behaviour for large precisions on mingw and BeOS.
47399         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47404         gl_PRINTF_PRECISION and test its result. Invoke
47405         gl_PREREQ_VASNPRINTF_PRECISION.
47406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47413         * doc/functions/fprintf.texi: Update.
47414         * doc/functions/printf.texi: Update.
47415         * doc/functions/snprintf.texi: Update.
47416         * doc/functions/sprintf.texi: Update.
47417         * doc/functions/vfprintf.texi: Update.
47418         * doc/functions/vprintf.texi: Update.
47419         * doc/functions/vsnprintf.texi: Update.
47420         * doc/functions/vsprintf.texi: Update.
47421
47422 2007-11-04  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47425
47426 2007-11-04  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47429         Reported by Sylvain Beucler <beuc@gnu.org>.
47430
47431 2007-11-03  Bruno Haible  <bruno@clisp.org>
47432
47433         * tests/test-fprintf-posix2.sh: New file.
47434         * tests/test-fprintf-posix2.c: New file.
47435         * modules/fprintf-posix-tests (Files): Add them.
47436         (TESTS): Add test-fprintf-posix2.sh.
47437         (configure.ac): Check for getrlimit and setrlimit.
47438         (check_PROGRAMS): Add test-fprintf-posix2.
47439
47440         * tests/test-printf-posix2.sh: New file.
47441         * tests/test-printf-posix2.c: New file.
47442         * modules/printf-posix-tests (Files): Add them.
47443         (TESTS): Add test-printf-posix2.sh.
47444         (configure.ac): Check for getrlimit and setrlimit.
47445         (check_PROGRAMS): Add test-printf-posix2.
47446
47447         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47448         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47449         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47450         (decode_double): New function, copied from decode_long_double.
47451         (scale10_round_decimal_decoded): New function, extracted from
47452         scale10_round_decimal_long_double.
47453         (scale10_round_decimal_long_double): Use it.
47454         (scale10_round_decimal_double): New function.
47455         (floorlog10): New function.
47456         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47458         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47460         gl_PRINTF_ENOMEM and test its result. Invoke
47461         gl_PREREQ_VASNPRINTF_ENOMEM.
47462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47469         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47470         * modules/snprintf-posix (Depends-on): Likewise.
47471         * modules/sprintf-posix (Depends-on): Likewise.
47472         * modules/vasnprintf-posix (Depends-on): Likewise.
47473         * modules/vasprintf-posix (Depends-on): Likewise.
47474         * modules/vfprintf-posix (Depends-on): Likewise.
47475         * modules/vsnprintf-posix (Depends-on): Likewise.
47476         * modules/vsprintf-posix (Depends-on): Likewise.
47477         * doc/functions/fprintf.texi: Update.
47478         * doc/functions/printf.texi: Update.
47479         * doc/functions/snprintf.texi: Update.
47480         * doc/functions/sprintf.texi: Update.
47481         * doc/functions/vfprintf.texi: Update.
47482         * doc/functions/vprintf.texi: Update.
47483         * doc/functions/vsnprintf.texi: Update.
47484         * doc/functions/vsprintf.texi: Update.
47485
47486 2007-11-03  Bruno Haible  <bruno@clisp.org>
47487
47488         * modules/frexp-nolibm-tests: New file.
47489
47490         * modules/frexp-nolibm: New file.
47491         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47492
47493 2007-11-03  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47496         value is C99 compliant.
47497         Needed for OSF/1 5.1.
47498
47499 2007-11-03  Bruno Haible  <bruno@clisp.org>
47500
47501         Fix out-of-memory handling of vasnprintf.
47502         * lib/printf-parse.c: Include <errno.h>.
47503         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47504         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47505         is already set.
47506
47507 2007-11-02  Eric Blake  <ebb9@byu.net>
47508
47509         Fix tests on cygwin.
47510         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47511
47512 2007-11-01  Bruno Haible  <bruno@clisp.org>
47513
47514         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47515         warning.
47516         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47517         needed for POSIX compatibility.
47518
47519 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47522         for compatibility with GNU.
47523
47524 2007-11-01  Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47527         (putenv): Renamed from rpl_putenv. Change argument type from
47528         'const char *' to 'char *'.
47529         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47530         of defining putenv in config.h, just set REPLACE_PUTENV.
47531         * modules/putenv (Depends-on): Add stdlib.
47532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47533         (Include): Use <stdlib.h>.
47534         * lib/stdlib.in.h (putenv): New declaration.
47535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47536         REPLACE_PUTENV.
47537         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47538         REPLACE_PUTENV.
47539         Needed for MacOS X 10.5.0.
47540         Reported by Peter O'Gorman <peter@pogma.com>.
47541
47542 2007-11-01  Jim Meyering  <meyering@redhat.com>
47543
47544         Treat an empty date string exactly like "0".
47545         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47546         if the remaining date string (to be parsed) is empty, use "0".
47547         Reported by Mischa Molhoek and discussed in this thread:
47548         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47549
47550 2007-10-31  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47553         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47554         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47555         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47556         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47557         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47558
47559 2007-10-31  Bruno Haible  <bruno@clisp.org>
47560
47561         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47562         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47563         (AC_TYPE_LONG_LONG_INT): Use it.
47564         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47565         it as well.
47566         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47567         to m4/longlong.m4.
47568         * modules/stdint (Files): Remove m4/ulonglong.m4.
47569         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47570         m4/ulonglong.m4.
47571         * modules/strtoumax (Files): Likewise.
47572
47573 2007-10-30  Bruno Haible  <bruno@clisp.org>
47574
47575         * modules/xvasprintf-posix: New file.
47576         Suggested by Eric Blake.
47577
47578 2007-10-30  Bruno Haible  <bruno@clisp.org>
47579
47580         * modules/xprintf-posix-tests: New file.
47581         * tests/test-xprintf-posix.sh: New file.
47582         * tests/test-xprintf-posix.c: New file.
47583         * tests/test-xfprintf-posix.c: New file.
47584
47585         * modules/xprintf-posix: New file.
47586
47587 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47588
47589         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47590         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47591         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47592
47593 2007-10-29  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47596         contain the special marker '_cv_'.
47597         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47598         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47599         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47600         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47601         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47602         Reported by Ralf Wildenhues.
47603
47604 2007-10-29  Bruno Haible  <bruno@clisp.org>
47605
47606         * gnulib-tool (func_import): When --lgpl is not specified, set
47607         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47608         GPLv3.
47609         Reported by Simon Josefsson.
47610
47611 2007-10-28  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47614         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47615         HAVE_DECL_ISFINITE.
47616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47617         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47618         HAVE_DECL_ISFINITE.
47619
47620 2007-10-28  Bruno Haible  <bruno@clisp.org>
47621
47622         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47623         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47624
47625 2007-10-28  Bruno Haible  <bruno@clisp.org>
47626
47627         Fix link errors with Sun C 5.0 on Solaris 10.
47628         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47629         function is declared but not present in the compiler's libm.
47630         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47631         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47632         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47633         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47634         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47635         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47636         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47638         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47639         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47640         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47641         HAVE_DECL_FLOORL.
47642
47643 2007-10-28  Bruno Haible  <bruno@clisp.org>
47644
47645         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47646         gl_FUNC_FLOORL. Cache the result.
47647         (gl_FUNC_FLOORL): Use it.
47648         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47649         gl_FUNC_CEILL. Cache the result.
47650         (gl_FUNC_CEILL): Use it.
47651
47652         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47653         gl_FUNC_FLOOR. Cache the result.
47654         (gl_FUNC_FLOOR): Use it.
47655         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47656         gl_FUNC_CEIL. Cache the result.
47657         (gl_FUNC_CEIL): Use it.
47658
47659         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47660         gl_FUNC_FLOORF. Cache the result.
47661         (gl_FUNC_FLOORF): Use it.
47662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47663         gl_FUNC_CEILF. Cache the result.
47664         (gl_FUNC_CEILF): Use it.
47665
47666 2007-10-28  Bruno Haible  <bruno@clisp.org>
47667
47668         * gnulib-tool: Allow specifying the LGPL version number through
47669         --lgpl=2 or --lgpl=3.
47670         (func_usage): Document --lgpl with argument.
47671         Handle --lgpl=... arguments.
47672         (func_import): Recognize also gl_LGPL calls with an argument. When
47673         --lgpl=2 is used and the module's license is just LGPL, report an
47674         error. Set sed_transform_lib_file according to the lgpl variable. In
47675         the generated files, use --lgpl or gl_LGPL invocations with argument,
47676         if necessary.
47677         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47678         an LGPv2+ license.
47679         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47680         gl_LGPL macro.
47681
47682 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47683             Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47686         (u16_uctomb_aux): Likewise.
47687         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47688         !HAVE_INLINE.
47689         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47690
47691 2007-10-28  Bruno Haible  <bruno@clisp.org>
47692
47693         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47694         Invoke AM_GETTEXT_OPTION if it exists.
47695         * modules/vasprintf: Likewise.
47696         * modules/verror: Likewise.
47697         * modules/xprintf: Likewise.
47698         * modules/xvasprintf: Likewise.
47699
47700 2007-10-27  Ben Pfaff  <blp@gnu.org>
47701
47702         * lib/math.in.h: Define isfinite macro and prototypes for
47703         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47704         implementations.
47705         * m4/math_h.m4: New substitutions for isfinite module.
47706         * lib/isfinite.c: New file.
47707         * m4/isfinite.m4: New file.
47708         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47709         * modules/isfinite: New file.
47710         * modules/isfinite-tests: New file.
47711         * tests/tests-isfinite.c: New file.
47712         * doc/functions/isfinite.texi: Mention isfinite module.
47713         * MODULES.html.sh: Mention new module.
47714
47715 2007-10-27  Ben Pfaff  <blp@gnu.org>
47716
47717         Ralf Wildenhues reported that Tru64 4.0D declares the round
47718         functions but does not have definitions.
47719         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47720         cannot be found in any library, set the output variable to
47721         "missing" instead of "".
47722         * m4/round.m4: Also use our substitute if we cannot find round in
47723         any library, even if it is declared.
47724         * m4/roundf.m4: Likewise for roundf.
47725         * m4/roundl.m4: Likewise for roundl.
47726         * lib/math.in.h: Undefine roundf, round, roundl before defining
47727         their replacements, to allow for hypothetical systems where these
47728         may be defined as macros but not available in libraries.
47729
47730 2007-10-27  Bruno Haible  <bruno@clisp.org>
47731
47732         * doc/gnulib.texi: Invoke @firstparagraphindent.
47733         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47734         changes in gnulib.
47735         (Source changes): New section.
47736
47737 2007-10-26  Bruno Haible  <bruno@clisp.org>
47738
47739         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47740         borrowed from autoconf.
47741
47742 2007-10-26  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47745         strerror returned the empty string. Needed on HP-UX 11.00.
47746
47747 2007-10-24  Micah Cowan  <micah@cowan.name>
47748
47749         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47750         * build-aux/bootstrap: Remove support for now-unnecessary option,
47751         --cvs-user, and envvars CVS_USER, CVS_RSH.
47752
47753 2007-10-24  Jim Meyering  <meyering@redhat.com>
47754
47755         Avoid diagnostics from sha1sum when there is no cached checksum.
47756         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47757         if the po.s1 file hasn't been created yet.
47758
47759         * build-aux/bootstrap: Sync from coreutils:
47760         2007-10-24  Jim Meyering  <meyering@redhat.com>
47761         Get gnulib from the git repository, not from an obsolete cvs one.
47762         * build-aux/bootstrap: Suggestion from Micah Cowan.
47763         2007-10-04  Jim Meyering  <jim@meyering.net>
47764         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47765         (update_po_files): Work also when there are no .po files in po/.
47766
47767 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47768
47769         * README: Append ".git" to git and cg examples.
47770         Problem reported by Benoit Sigoure.
47771
47772 2007-10-23  Micah Cowan  <micah@cowan.name>
47773
47774         * users.txt: Add wget.
47775
47776 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47777
47778         Fix linking of some unistdio tests on FreeBSD.
47779         * modules/unistdio/u16-vsnprintf-tests
47780         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47781         * modules/unistdio/u16-vsprintf-tests
47782         (test_u16_vsnprintf1_LDADD): Likewise.
47783         * modules/unistdio/u32-vsnprintf-tests
47784         (test_u32_vsnprintf1_LDADD): Likewise.
47785         * modules/unistdio/u32-vsprintf-tests
47786         (test_u32_vsprintf1_LDADD): Likewise.
47787         * modules/unistdio/u8-vsnprintf-tests
47788         (test_u8_vsnprintf1_LDADD): Likewise.
47789         * modules/unistdio/u8-vsprintf-tests
47790         (test_u8_vsprintf1_LDADD): Likewise.
47791         * modules/unistdio/ulc-vsnprintf-tests
47792         (test_ulc_vsnprintf1_LDADD): Likewise.
47793         * modules/unistdio/ulc-vsprintf-tests
47794         (test_ulc_vsprintf1_LDADD): Likewise.
47795
47796         Fix linking of some uniconv tests on FreeBSD.
47797         * modules/uniconv/u16-conv-from-enc-tests
47798         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47799         * modules/uniconv/u16-conv-to-enc-tests
47800         (test_u16_conv_to_enc_LDADD): Likewise.
47801         * modules/uniconv/u16-strconv-from-enc-tests
47802         (test_u16_strconv_from_enc_LDADD): Likewise.
47803         * modules/uniconv/u16-strconv-to-enc-tests
47804         (test_u16_strconv_to_enc_LDADD): Likewise.
47805         * modules/uniconv/u32-conv-from-enc-tests
47806         (test_u32_conv_from_enc_LDADD): Likewise.
47807         * modules/uniconv/u32-conv-to-enc-tests
47808         (test_u32_conv_to_enc_LDADD): Likewise.
47809         * modules/uniconv/u32-strconv-from-enc-tests
47810         (test_u32_strconv_from_enc_LDADD): Likewise.
47811         * modules/uniconv/u32-strconv-to-enc-tests
47812         (test_u32_strconv_to_enc_LDADD): Likewise.
47813         * modules/uniconv/u8-conv-from-enc-tests
47814         (test_u8_conv_from_enc_LDADD): Likewise.
47815         * modules/uniconv/u8-conv-to-enc-tests
47816         (test_u8_conv_to_enc_LDADD): Likewise.
47817         * modules/uniconv/u8-strconv-from-enc-tests
47818         (test_u8_strconv_from_enc_LDADD): Likewise.
47819         * modules/uniconv/u8-strconv-to-enc-tests
47820         (test_u8_strconv_to_enc_LDADD): Likewise.
47821
47822 2007-10-22  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47825         size.
47826
47827 2007-10-22  Eric Blake  <ebb9@byu.net>
47828
47829         Tweak x*printf documentation.
47830         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47831         variable name and comments.
47832         Suggested by Bruno Haible.
47833
47834 2007-10-22  Bruno Haible  <bruno@clisp.org>
47835
47836         * lib/acl.c (copy_acl): Fix file name in comment.
47837
47838 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         Fix Tru64 problem with stdbool.h.
47841         * lib/stdbool.in.h (false, true):
47842         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47843         Don't declare as an enum in this situation; it runs afoul of Tru64.
47844         Problem reported by Steven M. Schweda in
47845         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47846
47847 2007-10-22  Eric Blake  <ebb9@byu.net>
47848
47849         Also wrap vf?printf.
47850         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47851         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47852         (xvprintf, xvfprintf): New functions.
47853
47854 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47855
47856         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47857         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47858
47859         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47860         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47861
47862 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47863
47864         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47865         by Bruno Haible.
47866
47867 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47868
47869         * lib/getloadavg.c
47870         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47871         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47872
47873         * tests/test-i-ring.c: Work for C89.
47874
47875 2007-10-22  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47878         -1u, in preprocessor expression, so that we don't test for the bug
47879         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47881
47882 2007-10-22  Eric Blake  <ebb9@byu.net>
47883
47884         * tests/test-yesno.sh: Silence stderr during test.
47885
47886 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47887
47888         * modules/crypto/gc-camellia: New file.
47889
47890         * m4/gc-camellia.m4: New file.
47891
47892         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47893
47894         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47895
47896 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47897
47898         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47899         --help to stdout.  Reported by sms@antinode.org (Steven
47900         M. Schweda).
47901
47902 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47903
47904         * users.txt: Fix link to libksba.
47905
47906 2007-10-21  Ben Pfaff  <blp@gnu.org>
47907
47908         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47909         round.c roundf implementation that depends on floorf and ceilf to
47910         be tested unconditionally.
47911
47912 2007-10-21  Ben Pfaff  <blp@gnu.org>
47913
47914         * m4/check-libm-func.m4: Removed.
47915         * m4/check-math-lib.m4: New file.
47916         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47917         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47918         definition and lack of AC_LIBOBJ([roundf]).
47919         * m4/roundl.m4: Ditto, and similarly for roundl.
47920         * modules/round: Reference new m4 file.
47921         * modules/roundf: Ditto.
47922         * modules/roundl: Ditto.
47923         * tests/test-round2.c (main): Use ROUND instead of round.
47924         Bug report from Bruno Haible.
47925
47926 2007-10-21  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47929         context.
47930
47931 2007-10-21  Bruno Haible  <bruno@clisp.org>
47932
47933         * tests/test-wcwidth.c (main): Allow negative result for some control
47934         characters.
47935
47936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47937         Needed on OSF/1 5.1.
47938
47939 2007-10-21  Bruno Haible  <bruno@clisp.org>
47940
47941         * tests/test-floorf1.c: Include isnanf.h.
47942         (main): Use isnanf() instead of isnan().
47943         * tests/test-ceilf1.c: Include isnanf.h.
47944         (main): Use isnanf() instead of isnan().
47945         * tests/test-truncf1.c: Include isnanf.h.
47946         (main): Use isnanf() instead of isnan().
47947         * tests/test-roundf1.c: Include isnanf.h.
47948         (main): Use isnanf() instead of isnan().
47949
47950 2007-10-21  Eric Blake  <ebb9@byu.net>
47951
47952         * users.txt: Update URL for m4.
47953
47954 2007-10-21  Bruno Haible  <bruno@clisp.org>
47955
47956         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47957
47958 2007-10-21  Bruno Haible  <bruno@clisp.org>
47959
47960         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47961         Git's management files if the CVS files are not present.
47962
47963 2007-10-20  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47966         gcc-3.4.x.
47967
47968 2007-10-20  Ben Pfaff  <blp@gnu.org>
47969
47970         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47971         implementations.
47972         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47973         * lib/round.c: New file.
47974         * lib/roundf.c: New file.
47975         * lib/roundl.c: New file.
47976         * m4/round.m4: New file.
47977         * m4/roundf.m4: New file.
47978         * m4/roundl.m4: New file.
47979         * m4/check-libm-func-m4: New file.
47980         * modules/math: Replace round, roundf, roundl related @VARS@ in
47981         math.in.h.
47982         * modules/round: New file.
47983         * modules/round-tests: New file.
47984         * modules/roundf: New file.
47985         * modules/roundf-tests: New file.
47986         * modules/roundl: New file.
47987         * modules/roundl-tests: New file.
47988         * tests/test-round1.c: New file.
47989         * tests/test-round2.c: New file.
47990         * tests/test-roundf1.c: New file.
47991         * tests/test-roundf2.c: New file.
47992         * tests/test-roundl.c: New file.
47993         * doc/functions/round.texi: Mention round module.
47994         * doc/functions/roundf.texi: Mention roundf module.
47995         * doc/functions/roundl.texi: Mention roundl module.
47996         * MODULES.html.sh: Mention new modules.
47997         Thanks to Bruno Haible for suggestions.
47998
47999 2007-10-20  Jim Meyering  <meyering@redhat.com>
48000
48001         * lib/xprintf.c: Include <config.h> unconditionally.
48002
48003         Change xprintf's license to GPL.
48004         * modules/xprintf (License): s/LGPL/GPL/, since this module
48005         depends on modules (exit and exitfail) which are GPL.
48006         Suggestion from Bruno Haible.
48007
48008         xprintf fixes.
48009         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48010         Use a clearer diagnostic.
48011         Patch from Bruno Haible.
48012
48013 2007-10-20  Bruno Haible  <bruno@clisp.org>
48014
48015         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48016         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48018
48019 2007-10-20  Bruno Haible  <bruno@clisp.org>
48020
48021         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48022         precision in the comparison result > x - 1 or similar.
48023         * tests/test-ceilf2.c (correct_result_p): Likewise.
48024         * tests/test-truncf2.c (correct_result_p): Likewise.
48025         * tests/test-trunc2.c (correct_result_p): Likewise.
48026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48027
48028 2007-10-20  Bruno Haible  <bruno@clisp.org>
48029
48030         * modules/ceil: New file.
48031         * m4/ceil.m4: New file.
48032         * doc/functions/ceil.texi: Mention the 'ceil' module.
48033
48034 2007-10-20  Bruno Haible  <bruno@clisp.org>
48035
48036         * modules/floor: New file.
48037         * m4/floor.m4: New file.
48038         * doc/functions/floor.texi: Mention the 'floor' module.
48039
48040 2007-10-20  Bruno Haible  <bruno@clisp.org>
48041
48042         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48043         of %a.
48044         * modules/floorf-tests (Depends-on): Likewise.
48045         * modules/truncf-tests (Depends-on): Likewise.
48046         * modules/trunc-tests (Depends-on): Likewise.
48047         Reported by Ben Pfaff.
48048
48049 2007-10-19  Jim Meyering  <meyering@redhat.com>
48050
48051         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48052         Don't bother testing specific errno values.  Just test ferror.
48053
48054         New module: xprintf
48055         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48056
48057 2007-10-19  Bruno Haible  <bruno@clisp.org>
48058
48059         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48060         syntax.
48061         * modules/javaexec (Makefile.am): Likewise.
48062         * modules/relocatable-prog (Makefile.am): Likewise.
48063         Suggested by Jim Meyering.
48064
48065 2007-10-18  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48068         Reported by Jim Meyering.
48069
48070 2007-10-18  Eric Blake  <ebb9@byu.net>
48071
48072         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48073
48074 2007-10-18  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48077         the format string into writable memory. Needed in Fortify conditions.
48078
48079 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48080             Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48083         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48084         * modules/trim (Depends-on): Add mbchar.
48085         (configure.ac): Add gl_FUNC_MBRTOWC.
48086         (Makefile.am): Augment lib_SOURCES.
48087
48088 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48089
48090         Modify glob.c to use fstatat and dirfd, to simplify it.
48091         Suggested by Eric Blake.
48092         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48093         Don't include <stdbool.h>; not used.
48094         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48095         (link_exists_p): Simplify implementation, since we can now assume
48096         dirfd and fstatat.
48097         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48098
48099 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48100
48101         * gnulib-tool (func_get_dependencies): Fix sed script to
48102         match only tests.
48103
48104 2007-10-17  Bruno Haible  <bruno@clisp.org>
48105
48106         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48107         allow locale names without encoding suffix.
48108         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48110
48111 2007-10-16  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48114         * lib/getgroups.c (getgroups): Likewise.
48115         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48116
48117 2007-10-16  Bruno Haible  <bruno@clisp.org>
48118
48119         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48120         * modules/malloc-posix (License): Likewise.
48121         * modules/realloc-posix (License): Likewise.
48122         * modules/calloc-posix (License): Likewise.
48123         * modules/intprops (License): Change from GPL to LGPL, with
48124         Paul Eggert's approval.
48125
48126 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48127
48128         Merge glibc changes into lib/glob.c.
48129
48130         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48131         2007-10-15 04:59:03 UTC.  Here are the changes:
48132
48133         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48134
48135         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48136
48137         * lib/glob.c: Add some branch prediction throughout.
48138
48139         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48140
48141         [BZ #5103]
48142         * lib/glob.c (glob): Recognize patterns starting \/.
48143
48144         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48145
48146         [BZ #3996]
48147         * lib/glob.c (attribute_hidden): Define if not defined.
48148         (glob): Unescape dirname, filename or username when needed and not
48149         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48150         is NULL.  Handle unescaped [ in pattern without closing ].
48151         Don't pass GLOB_CHECK down to recursive glob for directories.
48152         (__glob_pattern_type): New function.
48153         (__glob_pattern_p): Implement using __glob_pattern_type.
48154         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48155         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48156         Remove unreachable code.
48157
48158         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48159
48160         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48161         explain why there are no leaks.
48162
48163         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48164
48165         [BZ #3253]
48166         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48167         time, rather allocate increasingly bigger arrays of pointers, if
48168         possible with alloca, if too large with malloc.
48169
48170 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48171
48172         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48173         Problem reported by H.Merijn Brand in
48174         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48175         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48176         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48177
48178 2007-10-15  Bruno Haible  <bruno@clisp.org>
48179
48180         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48181         with explicit rpl_ prefix.
48182         * lib/fopen.c (fopen): Likewise.
48183         * lib/freopen.c (freopen): Likewise.
48184         * lib/iconv.c (iconv): Likewise.
48185         * lib/iconv_close.c (iconv_close): Likewise.
48186
48187 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48188
48189         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48190
48191 2007-10-15  Bruno Haible  <bruno@clisp.org>
48192
48193         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48194         <stddef.h> instead of <stdlib.h> since we only need NULL.
48195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48196
48197 2007-10-15  Bruno Haible  <bruno@clisp.org>
48198
48199         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48200         Replace paragraph talking about LIBOBJS.
48201         Reported by Colin Watson <cjwatson@debian.org>.
48202
48203 2007-10-15  Bruno Haible  <bruno@clisp.org>
48204
48205         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48206         <stdlib.h> before using NULL.
48207
48208 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48209
48210         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48211         Reported by Albert Chin <china@thewrittenword.com>.
48212
48213 2007-10-14  Bruno Haible  <bruno@clisp.org>
48214
48215         * modules/iconv_open-utf-tests: New file.
48216         * tests/test-iconv-utf.c: New file.
48217
48218         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48219         * modules/iconv_open-utf: New file.
48220         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48221         (iconv, iconv_close): New declarations.
48222         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48223         be defined.
48224         (iconv_open): Add special handling of conversion between UTF-8 and
48225         UTF-{16,32}{BE,LE}.
48226         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48227         * lib/iconv_close.c: New file.
48228         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48229         gl_FUNC_ICONV_OPEN.
48230         (gl_FUNC_ICONV_OPEN): Use it.
48231         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48232         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48233         and REPLACE_ICONV_UTF.
48234         * modules/iconv_open (Depends-on): Add c-strcase.
48235         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48236         ICONV_CONST.
48237         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48238
48239 2007-10-13  Albert Chin  <china@thewrittenword.com>
48240             Bruno Haible  <bruno@clisp.org>
48241
48242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48243         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48244
48245 2007-10-13  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48248         defined, use the ISO C99 inline semantics.
48249         * lib/argp.h (ARGP_EI): Likewise.
48250
48251 2007-10-13  Bruno Haible  <bruno@clisp.org>
48252
48253         Handle 'inline' change in gcc 4.3.0.
48254         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48255         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48256         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48257         argp_fmtstream_point): Disable 'extern' declaration if the function
48258         definition is going to be provided inline.
48259         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48260         semantics, not the ISO C99 inline semantics.
48261         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48262         'extern' declaration if the function definition is going to be provided
48263         inline.
48264         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48265         the GNU C inline semantics, not the ISO C99 inline semantics. With
48266         GCC 4.2, avoid a warning.
48267
48268 2007-10-13  Bruno Haible  <bruno@clisp.org>
48269
48270         * lib/freading.h (freading): Enable the use of __freading for
48271         glibc >= 2.7.
48272         * lib/freading.c (freading): Likewise.
48273
48274 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48275
48276         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48277         "warning: C99 inline functions are not supported; using GNU89".
48278
48279 2007-10-12  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48282         of 2.
48283         * tests/test-ceilf2.c: New file.
48284         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48285
48286         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48287         * modules/ceilf-tests: Update.
48288
48289 2007-10-12  Bruno Haible  <bruno@clisp.org>
48290
48291         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48292         of 2.
48293         * tests/test-floorf2.c: New file.
48294         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48295
48296         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48297         * modules/floorf-tests: Update.
48298
48299 2007-10-12  Bruno Haible  <bruno@clisp.org>
48300
48301         * tests/test-trunc2.c: New file.
48302         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48303
48304         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48305         * modules/trunc-tests: Update.
48306
48307 2007-10-12  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48310         of 2.
48311         * tests/test-truncf2.c: New file.
48312         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48313
48314         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48315         * modules/truncf-tests: Update.
48316
48317 2007-10-11  Eric Blake  <ebb9@byu.net>
48318
48319         Don't claim strerror is broken on Interix.
48320         * doc/functions/strerror.texi (strerror): Known broken systems are
48321         now Solaris 8, and not Interix.
48322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48323         Interix on cross-compile.
48324         Reported by Martin Koeppe in
48325         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48326
48327 2007-10-11  Bruno Haible  <bruno@clisp.org>
48328
48329         * modules/i-ring-tests: New file.
48330         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48331         instead of assert.
48332
48333 2007-10-11  Bruno Haible  <bruno@clisp.org>
48334
48335         * modules/filenamecat-tests: New file.
48336         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48337         * lib/filenamecat.c: Remove test code.
48338
48339 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48340
48341         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48342
48343         * lib/strerror.c: Include <string.h> always, to test interface,
48344         and to remove the need for the dummy.
48345         Include intprops.h to compute width instead of doing it ourselves
48346         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48347         (strerror): Define it to return NULL if there's no system strerror.
48348         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48349         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48350         ancient pre-strerror Unix systems well any more.  Saying "unknown
48351         system error" is enough.
48352         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48353         simpler strerror.c implementation.
48354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48355         Simplify the tests to reflect the simpler strerror implementation.
48356         * modules/strerror (Depends-on): Add intprops.
48357
48358 2007-10-09  Eric Blake  <ebb9@byu.net>
48359
48360         Silence test-fpending.
48361         * modules/fpending-tests (Files): Add wrapper script.
48362         * tests/test-fpending.sh: New file.
48363
48364 2007-10-09  Bruno Haible  <bruno@clisp.org>
48365
48366         * MODULES.html.sh (func_module): Don't create a hyperlink for
48367         function names like 'printf_frexp'.
48368         (Misc): Add crc, memxor.
48369         (Characteristics of floating types): New section.
48370         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48371         isnanf-nolibm, signbit, trunc, truncf, truncl.
48372         (Enhancements for ISO C 99 functions): New subsection Input/output.
48373         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48374         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48375         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48376         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48377         (Enhancements for POSIX:2001 functions): Add chdir-long.
48378         (File system functions): Add areadlink, chdir-safer, read-file.
48379         Remove cycle-check.
48380         (File system as inode set): New section.
48381         (Date and time): Add gethrxtime.
48382         (Multithreading): Add openmp.
48383         (Internationalization functions): Add localename.
48384         (Unicode string functions): Add unistr/u*-mbsnlen.
48385         (Support for maintaining and releasing projects): Add git-version-gen.
48386         (Lone files): Remove directories.
48387
48388 2007-10-08  Ben Pfaff  <blp@gnu.org>
48389
48390         * lib/xmalloca.h: Fix typo in comment.
48391
48392 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48395         when avoiding problems with integer overflow.  Use a portable test
48396         instead.
48397
48398 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48399
48400         * modules/dummy (License): Change to LGPLv2+.
48401         * modules/float (License): Likewise
48402         * modules/realloc (License): Likewise
48403         * modules/stdlib (License): Likewise
48404
48405 2007-10-07  Bruno Haible  <bruno@clisp.org>
48406
48407         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48408         * floor.c (TWO_MANT_DIG): Likewise.
48409         * ceil.c (TWO_MANT_DIG): Likewise.
48410         Reported by Ben Pfaff.
48411
48412 2007-10-07  Bruno Haible  <bruno@clisp.org>
48413
48414         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48415         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48416         * lib/frexp.c (FUNC): Likewise.
48417         * lib/printf-frexp.h (printf_frexp): Likewise.
48418         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48419         * lib/printf-frexp.c (FUNC): Likewise.
48420         Suggested by Jim Meyering.
48421
48422 2007-10-07  Jim Meyering  <meyering@redhat.com>
48423
48424         Make xnanosleep's integer overflow test more robust.
48425         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48426         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48427
48428 2007-10-07  Bruno Haible  <bruno@clisp.org>
48429
48430         * NEWS: Mention the license change.
48431
48432         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48433         abbreviations in the modules files.
48434
48435         Change copyright notice from GPLv2+ to GPLv3+.
48436         * README: Change copyright notice.
48437         * MODULES.html.sh: Likewise.
48438         * build-aux/bootstrap.conf: Likewise.
48439         * build-aux/config.libpath: Likewise.
48440         * build-aux/csharpcomp.sh.in: Likewise.
48441         * build-aux/csharpexec.sh.in: Likewise.
48442         * build-aux/install-reloc: Likewise.
48443         * build-aux/javacomp.sh.in: Likewise.
48444         * build-aux/javaexec.sh.in: Likewise.
48445         * build-aux/ldd.sh.in: Likewise.
48446         * build-aux/reloc-ldflags: Likewise.
48447         * build-aux/relocatable.sh.in: Likewise.
48448         * build-aux/x-to-1.in: Likewise.
48449         * check-module: Likewise.
48450         * config/srclistvars.sh: Likewise.
48451         * gnulib-tool: Likewise.
48452         * lib/acl-internal.h: Likewise.
48453         * lib/acl.c: Likewise.
48454         * lib/acl.h: Likewise.
48455         * lib/acl_entries.c: Likewise.
48456         * lib/areadlink-with-size.c: Likewise.
48457         * lib/areadlink.c: Likewise.
48458         * lib/areadlink.h: Likewise.
48459         * lib/argmatch.c: Likewise.
48460         * lib/argmatch.h: Likewise.
48461         * lib/argp-ba.c: Likewise.
48462         * lib/argp-eexst.c: Likewise.
48463         * lib/argp-fmtstream.c: Likewise.
48464         * lib/argp-fmtstream.h: Likewise.
48465         * lib/argp-fs-xinl.c: Likewise.
48466         * lib/argp-help.c: Likewise.
48467         * lib/argp-namefrob.h: Likewise.
48468         * lib/argp-parse.c: Likewise.
48469         * lib/argp-pin.c: Likewise.
48470         * lib/argp-pv.c: Likewise.
48471         * lib/argp-pvh.c: Likewise.
48472         * lib/argp-xinl.c: Likewise.
48473         * lib/argp.h: Likewise.
48474         * lib/at-func.c: Likewise.
48475         * lib/atanl.c: Likewise.
48476         * lib/backupfile.c: Likewise.
48477         * lib/backupfile.h: Likewise.
48478         * lib/basename.c: Likewise.
48479         * lib/binary-io.h: Likewise.
48480         * lib/byteswap.in.h: Likewise.
48481         * lib/c-stack.c: Likewise.
48482         * lib/c-stack.h: Likewise.
48483         * lib/c-strcasestr.c: Likewise.
48484         * lib/c-strcasestr.h: Likewise.
48485         * lib/c-strstr.c: Likewise.
48486         * lib/c-strstr.h: Likewise.
48487         * lib/c-strtod.c: Likewise.
48488         * lib/calloc.c: Likewise.
48489         * lib/canon-host.c: Likewise.
48490         * lib/canon-host.h: Likewise.
48491         * lib/canonicalize-lgpl.c: Likewise.
48492         * lib/canonicalize.c: Likewise.
48493         * lib/canonicalize.h: Likewise.
48494         * lib/ceil.c: Likewise.
48495         * lib/ceilf.c: Likewise.
48496         * lib/ceill.c: Likewise.
48497         * lib/chdir-long.c: Likewise.
48498         * lib/chdir-long.h: Likewise.
48499         * lib/chdir-safer.c: Likewise.
48500         * lib/chdir-safer.h: Likewise.
48501         * lib/chown.c: Likewise.
48502         * lib/classpath.c: Likewise.
48503         * lib/classpath.h: Likewise.
48504         * lib/clean-temp.c: Likewise.
48505         * lib/clean-temp.h: Likewise.
48506         * lib/cloexec.c: Likewise.
48507         * lib/close-stream.c: Likewise.
48508         * lib/closein.c: Likewise.
48509         * lib/closein.h: Likewise.
48510         * lib/closeout.c: Likewise.
48511         * lib/closeout.h: Likewise.
48512         * lib/concat-filename.c: Likewise.
48513         * lib/copy-file.c: Likewise.
48514         * lib/copy-file.h: Likewise.
48515         * lib/count-one-bits.h: Likewise.
48516         * lib/crc.c: Likewise.
48517         * lib/crc.h: Likewise.
48518         * lib/creat-safer.c: Likewise.
48519         * lib/csharpcomp.c: Likewise.
48520         * lib/csharpcomp.h: Likewise.
48521         * lib/csharpexec.c: Likewise.
48522         * lib/csharpexec.h: Likewise.
48523         * lib/cycle-check.c: Likewise.
48524         * lib/cycle-check.h: Likewise.
48525         * lib/diacrit.c: Likewise.
48526         * lib/diacrit.h: Likewise.
48527         * lib/diffseq.h: Likewise.
48528         * lib/dirchownmod.c: Likewise.
48529         * lib/dirent.in.h: Likewise.
48530         * lib/dirfd.c: Likewise.
48531         * lib/dirfd.h: Likewise.
48532         * lib/dirname.c: Likewise.
48533         * lib/dirname.h: Likewise.
48534         * lib/dummy.c: Likewise.
48535         * lib/dup-safer.c: Likewise.
48536         * lib/dup2.c: Likewise.
48537         * lib/eealloc.h: Likewise.
48538         * lib/error.c: Likewise.
48539         * lib/error.h: Likewise.
48540         * lib/euidaccess.c: Likewise.
48541         * lib/exclude.c: Likewise.
48542         * lib/exclude.h: Likewise.
48543         * lib/execute.c: Likewise.
48544         * lib/execute.h: Likewise.
48545         * lib/exitfail.c: Likewise.
48546         * lib/exitfail.h: Likewise.
48547         * lib/expl.c: Likewise.
48548         * lib/fatal-signal.c: Likewise.
48549         * lib/fatal-signal.h: Likewise.
48550         * lib/fbufmode.c: Likewise.
48551         * lib/fbufmode.h: Likewise.
48552         * lib/fchdir.c: Likewise.
48553         * lib/fchmodat.c: Likewise.
48554         * lib/fchownat.c: Likewise.
48555         * lib/fcntl--.h: Likewise.
48556         * lib/fcntl-safer.h: Likewise.
48557         * lib/fcntl.in.h: Likewise.
48558         * lib/fd-safer.c: Likewise.
48559         * lib/fflush.c: Likewise.
48560         * lib/file-has-acl.c: Likewise.
48561         * lib/file-set.c: Likewise.
48562         * lib/file-type.c: Likewise.
48563         * lib/file-type.h: Likewise.
48564         * lib/fileblocks.c: Likewise.
48565         * lib/filemode.c: Likewise.
48566         * lib/filemode.h: Likewise.
48567         * lib/filename.h: Likewise.
48568         * lib/filenamecat.c: Likewise.
48569         * lib/filenamecat.h: Likewise.
48570         * lib/findprog.c: Likewise.
48571         * lib/findprog.h: Likewise.
48572         * lib/float.in.h: Likewise.
48573         * lib/floor.c: Likewise.
48574         * lib/floorf.c: Likewise.
48575         * lib/floorl.c: Likewise.
48576         * lib/fopen-safer.c: Likewise.
48577         * lib/fopen.c: Likewise.
48578         * lib/fpending.c: Likewise.
48579         * lib/fpending.h: Likewise.
48580         * lib/fprintf.c: Likewise.
48581         * lib/fprintftime.h: Likewise.
48582         * lib/fpucw.h: Likewise.
48583         * lib/fpurge.c: Likewise.
48584         * lib/fpurge.h: Likewise.
48585         * lib/freadable.c: Likewise.
48586         * lib/freadable.h: Likewise.
48587         * lib/freadahead.c: Likewise.
48588         * lib/freadahead.h: Likewise.
48589         * lib/freading.c: Likewise.
48590         * lib/freading.h: Likewise.
48591         * lib/free.c: Likewise.
48592         * lib/freopen.c: Likewise.
48593         * lib/frexp.c: Likewise.
48594         * lib/frexpl.c: Likewise.
48595         * lib/fseek.c: Likewise.
48596         * lib/fseterr.c: Likewise.
48597         * lib/fseterr.h: Likewise.
48598         * lib/fstatat.c: Likewise.
48599         * lib/fstrcmp.c: Likewise.
48600         * lib/fstrcmp.h: Likewise.
48601         * lib/fsusage.c: Likewise.
48602         * lib/fsusage.h: Likewise.
48603         * lib/ftell.c: Likewise.
48604         * lib/ftello.c: Likewise.
48605         * lib/fts-cycle.c: Likewise.
48606         * lib/fts.c: Likewise.
48607         * lib/fts_.h: Likewise.
48608         * lib/full-read.c: Likewise.
48609         * lib/full-read.h: Likewise.
48610         * lib/full-write.c: Likewise.
48611         * lib/full-write.h: Likewise.
48612         * lib/fwritable.c: Likewise.
48613         * lib/fwritable.h: Likewise.
48614         * lib/fwriteerror.c: Likewise.
48615         * lib/fwriteerror.h: Likewise.
48616         * lib/fwriting.c: Likewise.
48617         * lib/fwriting.h: Likewise.
48618         * lib/gcd.c: Likewise.
48619         * lib/gcd.h: Likewise.
48620         * lib/getcwd.c: Likewise.
48621         * lib/getdate.h: Likewise.
48622         * lib/getdate.y: Likewise.
48623         * lib/getdomainname.c: Likewise.
48624         * lib/getdomainname.h: Likewise.
48625         * lib/getgroups.c: Likewise.
48626         * lib/gethostname.c: Likewise.
48627         * lib/gethrxtime.c: Likewise.
48628         * lib/gethrxtime.h: Likewise.
48629         * lib/getloadavg.c: Likewise.
48630         * lib/getndelim2.c: Likewise.
48631         * lib/getndelim2.h: Likewise.
48632         * lib/getnline.c: Likewise.
48633         * lib/getnline.h: Likewise.
48634         * lib/getopt.c: Likewise.
48635         * lib/getopt.in.h: Likewise.
48636         * lib/getopt1.c: Likewise.
48637         * lib/getopt_int.h: Likewise.
48638         * lib/getpagesize.h: Likewise.
48639         * lib/getsubopt.c: Likewise.
48640         * lib/gettime.c: Likewise.
48641         * lib/getugroups.c: Likewise.
48642         * lib/getugroups.h: Likewise.
48643         * lib/getusershell.c: Likewise.
48644         * lib/gl_anyavltree_list1.h: Likewise.
48645         * lib/gl_anyavltree_list2.h: Likewise.
48646         * lib/gl_anyhash_list1.h: Likewise.
48647         * lib/gl_anyhash_list2.h: Likewise.
48648         * lib/gl_anylinked_list1.h: Likewise.
48649         * lib/gl_anylinked_list2.h: Likewise.
48650         * lib/gl_anyrbtree_list1.h: Likewise.
48651         * lib/gl_anyrbtree_list2.h: Likewise.
48652         * lib/gl_anytree_list1.h: Likewise.
48653         * lib/gl_anytree_list2.h: Likewise.
48654         * lib/gl_anytree_oset.h: Likewise.
48655         * lib/gl_anytreehash_list1.h: Likewise.
48656         * lib/gl_anytreehash_list2.h: Likewise.
48657         * lib/gl_array_list.c: Likewise.
48658         * lib/gl_array_list.h: Likewise.
48659         * lib/gl_array_oset.c: Likewise.
48660         * lib/gl_array_oset.h: Likewise.
48661         * lib/gl_avltree_list.c: Likewise.
48662         * lib/gl_avltree_list.h: Likewise.
48663         * lib/gl_avltree_oset.c: Likewise.
48664         * lib/gl_avltree_oset.h: Likewise.
48665         * lib/gl_avltreehash_list.c: Likewise.
48666         * lib/gl_avltreehash_list.h: Likewise.
48667         * lib/gl_carray_list.c: Likewise.
48668         * lib/gl_carray_list.h: Likewise.
48669         * lib/gl_linked_list.c: Likewise.
48670         * lib/gl_linked_list.h: Likewise.
48671         * lib/gl_linkedhash_list.c: Likewise.
48672         * lib/gl_linkedhash_list.h: Likewise.
48673         * lib/gl_list.c: Likewise.
48674         * lib/gl_list.h: Likewise.
48675         * lib/gl_oset.c: Likewise.
48676         * lib/gl_oset.h: Likewise.
48677         * lib/gl_rbtree_list.c: Likewise.
48678         * lib/gl_rbtree_list.h: Likewise.
48679         * lib/gl_rbtree_oset.c: Likewise.
48680         * lib/gl_rbtree_oset.h: Likewise.
48681         * lib/gl_rbtreehash_list.c: Likewise.
48682         * lib/gl_rbtreehash_list.h: Likewise.
48683         * lib/gl_sublist.c: Likewise.
48684         * lib/gl_sublist.h: Likewise.
48685         * lib/group-member.c: Likewise.
48686         * lib/group-member.h: Likewise.
48687         * lib/hard-locale.c: Likewise.
48688         * lib/hard-locale.h: Likewise.
48689         * lib/hash-pjw.c: Likewise.
48690         * lib/hash-pjw.h: Likewise.
48691         * lib/hash-triple.c: Likewise.
48692         * lib/hash.c: Likewise.
48693         * lib/hash.h: Likewise.
48694         * lib/human.c: Likewise.
48695         * lib/human.h: Likewise.
48696         * lib/i-ring.c: Likewise.
48697         * lib/i-ring.h: Likewise.
48698         * lib/idcache.c: Likewise.
48699         * lib/imaxabs.c: Likewise.
48700         * lib/imaxdiv.c: Likewise.
48701         * lib/inet_pton.c: Likewise.
48702         * lib/inet_pton.h: Likewise.
48703         * lib/intprops.h: Likewise.
48704         * lib/inttostr.c: Likewise.
48705         * lib/inttostr.h: Likewise.
48706         * lib/inttypes.in.h: Likewise.
48707         * lib/isapipe.c: Likewise.
48708         * lib/isdir.c: Likewise.
48709         * lib/isnan.c: Likewise.
48710         * lib/isnan.h: Likewise.
48711         * lib/isnanf.c: Likewise.
48712         * lib/isnanf.h: Likewise.
48713         * lib/isnanl-nolibm.h: Likewise.
48714         * lib/isnanl.c: Likewise.
48715         * lib/isnanl.h: Likewise.
48716         * lib/javacomp.c: Likewise.
48717         * lib/javacomp.h: Likewise.
48718         * lib/javaexec.c: Likewise.
48719         * lib/javaexec.h: Likewise.
48720         * lib/javaversion.c: Likewise.
48721         * lib/javaversion.h: Likewise.
48722         * lib/javaversion.java: Likewise.
48723         * lib/lbrkprop.h: Likewise.
48724         * lib/lchmod.h: Likewise.
48725         * lib/lchown.c: Likewise.
48726         * lib/ldexpl.c: Likewise.
48727         * lib/linebreak.c: Likewise.
48728         * lib/linebreak.h: Likewise.
48729         * lib/linebuffer.c: Likewise.
48730         * lib/linebuffer.h: Likewise.
48731         * lib/locale.in.h: Likewise.
48732         * lib/logl.c: Likewise.
48733         * lib/long-options.c: Likewise.
48734         * lib/long-options.h: Likewise.
48735         * lib/lstat.c: Likewise.
48736         * lib/lstat.h: Likewise.
48737         * lib/math.in.h: Likewise.
48738         * lib/mbchar.c: Likewise.
48739         * lib/mbchar.h: Likewise.
48740         * lib/mbfile.h: Likewise.
48741         * lib/mbiter.h: Likewise.
48742         * lib/mbscasecmp.c: Likewise.
48743         * lib/mbscasestr.c: Likewise.
48744         * lib/mbschr.c: Likewise.
48745         * lib/mbscspn.c: Likewise.
48746         * lib/mbslen.c: Likewise.
48747         * lib/mbsncasecmp.c: Likewise.
48748         * lib/mbsnlen.c: Likewise.
48749         * lib/mbspbrk.c: Likewise.
48750         * lib/mbspcasecmp.c: Likewise.
48751         * lib/mbsrchr.c: Likewise.
48752         * lib/mbssep.c: Likewise.
48753         * lib/mbsspn.c: Likewise.
48754         * lib/mbsstr.c: Likewise.
48755         * lib/mbstok_r.c: Likewise.
48756         * lib/mbswidth.c: Likewise.
48757         * lib/mbswidth.h: Likewise.
48758         * lib/mbuiter.h: Likewise.
48759         * lib/memcasecmp.c: Likewise.
48760         * lib/memcasecmp.h: Likewise.
48761         * lib/memchr.c: Likewise.
48762         * lib/memcmp.c: Likewise.
48763         * lib/memcoll.c: Likewise.
48764         * lib/memcoll.h: Likewise.
48765         * lib/memcpy.c: Likewise.
48766         * lib/memrchr.c: Likewise.
48767         * lib/mkancesdirs.c: Likewise.
48768         * lib/mkdir-p.c: Likewise.
48769         * lib/mkdir-p.h: Likewise.
48770         * lib/mkdir.c: Likewise.
48771         * lib/mkdirat.c: Likewise.
48772         * lib/mkdtemp.c: Likewise.
48773         * lib/mkstemp-safer.c: Likewise.
48774         * lib/mkstemp.c: Likewise.
48775         * lib/modechange.c: Likewise.
48776         * lib/modechange.h: Likewise.
48777         * lib/mountlist.c: Likewise.
48778         * lib/mountlist.h: Likewise.
48779         * lib/mpsort.c: Likewise.
48780         * lib/nanosleep.c: Likewise.
48781         * lib/obstack.c: Likewise.
48782         * lib/obstack.h: Likewise.
48783         * lib/open-safer.c: Likewise.
48784         * lib/open.c: Likewise.
48785         * lib/openat-die.c: Likewise.
48786         * lib/openat-priv.h: Likewise.
48787         * lib/openat-proc.c: Likewise.
48788         * lib/openat.c: Likewise.
48789         * lib/openat.h: Likewise.
48790         * lib/pagealign_alloc.c: Likewise.
48791         * lib/pagealign_alloc.h: Likewise.
48792         * lib/physmem.c: Likewise.
48793         * lib/physmem.h: Likewise.
48794         * lib/pipe-safer.c: Likewise.
48795         * lib/pipe.c: Likewise.
48796         * lib/pipe.h: Likewise.
48797         * lib/posixtm.c: Likewise.
48798         * lib/posixtm.h: Likewise.
48799         * lib/posixver.c: Likewise.
48800         * lib/printf-frexp.c: Likewise.
48801         * lib/printf-frexp.h: Likewise.
48802         * lib/printf-frexpl.c: Likewise.
48803         * lib/printf-frexpl.h: Likewise.
48804         * lib/printf.c: Likewise.
48805         * lib/progname.c: Likewise.
48806         * lib/progname.h: Likewise.
48807         * lib/progreloc.c: Likewise.
48808         * lib/putenv.c: Likewise.
48809         * lib/quote.c: Likewise.
48810         * lib/quote.h: Likewise.
48811         * lib/quotearg.c: Likewise.
48812         * lib/quotearg.h: Likewise.
48813         * lib/raise.c: Likewise.
48814         * lib/readline.c: Likewise.
48815         * lib/readline.h: Likewise.
48816         * lib/readlink.c: Likewise.
48817         * lib/readtokens.c: Likewise.
48818         * lib/readtokens.h: Likewise.
48819         * lib/readtokens0.c: Likewise.
48820         * lib/readtokens0.h: Likewise.
48821         * lib/readutmp.c: Likewise.
48822         * lib/readutmp.h: Likewise.
48823         * lib/realloc.c: Likewise.
48824         * lib/relocwrapper.c: Likewise.
48825         * lib/rename-dest-slash.c: Likewise.
48826         * lib/rename.c: Likewise.
48827         * lib/rmdir.c: Likewise.
48828         * lib/rpmatch.c: Likewise.
48829         * lib/safe-read.c: Likewise.
48830         * lib/safe-read.h: Likewise.
48831         * lib/safe-write.c: Likewise.
48832         * lib/safe-write.h: Likewise.
48833         * lib/same-inode.h: Likewise.
48834         * lib/same.c: Likewise.
48835         * lib/same.h: Likewise.
48836         * lib/save-cwd.c: Likewise.
48837         * lib/save-cwd.h: Likewise.
48838         * lib/savedir.c: Likewise.
48839         * lib/savedir.h: Likewise.
48840         * lib/savewd.c: Likewise.
48841         * lib/savewd.h: Likewise.
48842         * lib/search.in.h: Likewise.
48843         * lib/setenv.c: Likewise.
48844         * lib/setenv.h: Likewise.
48845         * lib/settime.c: Likewise.
48846         * lib/sh-quote.c: Likewise.
48847         * lib/sh-quote.h: Likewise.
48848         * lib/sig2str.c: Likewise.
48849         * lib/sig2str.h: Likewise.
48850         * lib/signal.in.h: Likewise.
48851         * lib/signbitd.c: Likewise.
48852         * lib/signbitf.c: Likewise.
48853         * lib/signbitl.c: Likewise.
48854         * lib/sigprocmask.c: Likewise.
48855         * lib/sincosl.c: Likewise.
48856         * lib/sleep.c: Likewise.
48857         * lib/sprintf.c: Likewise.
48858         * lib/sqrtl.c: Likewise.
48859         * lib/stat-time.h: Likewise.
48860         * lib/stdio--.h: Likewise.
48861         * lib/stdio-safer.h: Likewise.
48862         * lib/stdlib--.h: Likewise.
48863         * lib/stdlib-safer.h: Likewise.
48864         * lib/stdlib.in.h: Likewise.
48865         * lib/stpcpy.c: Likewise.
48866         * lib/stpncpy.c: Likewise.
48867         * lib/strchrnul.c: Likewise.
48868         * lib/strcspn.c: Likewise.
48869         * lib/strerror.c: Likewise.
48870         * lib/strftime.c: Likewise.
48871         * lib/strftime.h: Likewise.
48872         * lib/striconveh.c: Likewise.
48873         * lib/striconveh.h: Likewise.
48874         * lib/striconveha.c: Likewise.
48875         * lib/striconveha.h: Likewise.
48876         * lib/stripslash.c: Likewise.
48877         * lib/strnlen1.c: Likewise.
48878         * lib/strnlen1.h: Likewise.
48879         * lib/strtod.c: Likewise.
48880         * lib/strtoimax.c: Likewise.
48881         * lib/strtok_r.c: Likewise.
48882         * lib/strtol.c: Likewise.
48883         * lib/strtoll.c: Likewise.
48884         * lib/strtoul.c: Likewise.
48885         * lib/strtoull.c: Likewise.
48886         * lib/sysexits.in.h: Likewise.
48887         * lib/tempname.c: Likewise.
48888         * lib/tempname.h: Likewise.
48889         * lib/timespec.h: Likewise.
48890         * lib/tls.c: Likewise.
48891         * lib/tls.h: Likewise.
48892         * lib/tmpdir.c: Likewise.
48893         * lib/tmpdir.h: Likewise.
48894         * lib/tmpfile-safer.c: Likewise.
48895         * lib/tmpfile.c: Likewise.
48896         * lib/trigl.c: Likewise.
48897         * lib/trigl.h: Likewise.
48898         * lib/trim.c: Likewise.
48899         * lib/trim.h: Likewise.
48900         * lib/trunc.c: Likewise.
48901         * lib/truncf.c: Likewise.
48902         * lib/truncl.c: Likewise.
48903         * lib/tsearch.c: Likewise.
48904         * lib/unicodeio.c: Likewise.
48905         * lib/unicodeio.h: Likewise.
48906         * lib/unistd--.h: Likewise.
48907         * lib/unistd-safer.h: Likewise.
48908         * lib/unistdio/ulc-fprintf.c: Likewise.
48909         * lib/unistdio/ulc-vfprintf.c: Likewise.
48910         * lib/unlinkdir.c: Likewise.
48911         * lib/unlinkdir.h: Likewise.
48912         * lib/unlocked-io.h: Likewise.
48913         * lib/unsetenv.c: Likewise.
48914         * lib/userspec.c: Likewise.
48915         * lib/utime.c: Likewise.
48916         * lib/utimecmp.c: Likewise.
48917         * lib/utimecmp.h: Likewise.
48918         * lib/utimens.c: Likewise.
48919         * lib/verify.h: Likewise.
48920         * lib/verror.c: Likewise.
48921         * lib/verror.h: Likewise.
48922         * lib/version-etc-fsf.c: Likewise.
48923         * lib/version-etc.c: Likewise.
48924         * lib/version-etc.h: Likewise.
48925         * lib/vfprintf.c: Likewise.
48926         * lib/vprintf.c: Likewise.
48927         * lib/vsprintf.c: Likewise.
48928         * lib/w32spawn.h: Likewise.
48929         * lib/wait-process.c: Likewise.
48930         * lib/wait-process.h: Likewise.
48931         * lib/wcwidth.c: Likewise.
48932         * lib/write-any-file.c: Likewise.
48933         * lib/xalloc-die.c: Likewise.
48934         * lib/xalloc.h: Likewise.
48935         * lib/xasprintf.c: Likewise.
48936         * lib/xgetcwd.c: Likewise.
48937         * lib/xgetcwd.h: Likewise.
48938         * lib/xgetdomainname.c: Likewise.
48939         * lib/xgetdomainname.h: Likewise.
48940         * lib/xgethostname.c: Likewise.
48941         * lib/xmalloc.c: Likewise.
48942         * lib/xmalloca.c: Likewise.
48943         * lib/xmalloca.h: Likewise.
48944         * lib/xmemcoll.c: Likewise.
48945         * lib/xnanosleep.c: Likewise.
48946         * lib/xreadlink.c: Likewise.
48947         * lib/xreadlink.h: Likewise.
48948         * lib/xsetenv.c: Likewise.
48949         * lib/xsetenv.h: Likewise.
48950         * lib/xstriconv.c: Likewise.
48951         * lib/xstriconv.h: Likewise.
48952         * lib/xstrndup.c: Likewise.
48953         * lib/xstrndup.h: Likewise.
48954         * lib/xstrtod.c: Likewise.
48955         * lib/xstrtod.h: Likewise.
48956         * lib/xstrtol-error.c: Likewise.
48957         * lib/xstrtol.c: Likewise.
48958         * lib/xstrtol.h: Likewise.
48959         * lib/xtime.h: Likewise.
48960         * lib/xvasprintf.c: Likewise.
48961         * lib/xvasprintf.h: Likewise.
48962         * lib/yesno.c: Likewise.
48963         * lib/yesno.h: Likewise.
48964         * posix-modules: Likewise.
48965         * tests/test-alloca-opt.c: Likewise.
48966         * tests/test-arcfour.c: Likewise.
48967         * tests/test-arctwo.c: Likewise.
48968         * tests/test-argmatch.c: Likewise.
48969         * tests/test-argp-2.sh: Likewise.
48970         * tests/test-argp.c: Likewise.
48971         * tests/test-arpa_inet.c: Likewise.
48972         * tests/test-array_list.c: Likewise.
48973         * tests/test-array_oset.c: Likewise.
48974         * tests/test-atexit.c: Likewise.
48975         * tests/test-avltree_list.c: Likewise.
48976         * tests/test-avltree_oset.c: Likewise.
48977         * tests/test-avltreehash_list.c: Likewise.
48978         * tests/test-base64.c: Likewise.
48979         * tests/test-binary-io.c: Likewise.
48980         * tests/test-byteswap.c: Likewise.
48981         * tests/test-c-ctype.c: Likewise.
48982         * tests/test-c-strcasecmp.c: Likewise.
48983         * tests/test-c-strcasestr.c: Likewise.
48984         * tests/test-c-strncasecmp.c: Likewise.
48985         * tests/test-c-strstr.c: Likewise.
48986         * tests/test-canonicalize-lgpl.c: Likewise.
48987         * tests/test-canonicalize.c: Likewise.
48988         * tests/test-carray_list.c: Likewise.
48989         * tests/test-ceilf.c: Likewise.
48990         * tests/test-ceill.c: Likewise.
48991         * tests/test-count-one-bits.c: Likewise.
48992         * tests/test-crc.c: Likewise.
48993         * tests/test-dirname.c: Likewise.
48994         * tests/test-fbufmode.c: Likewise.
48995         * tests/test-fcntl.c: Likewise.
48996         * tests/test-fflush.c: Likewise.
48997         * tests/test-floorf.c: Likewise.
48998         * tests/test-floorl.c: Likewise.
48999         * tests/test-fopen.c: Likewise.
49000         * tests/test-fprintf-posix.c: Likewise.
49001         * tests/test-fprintf-posix.h: Likewise.
49002         * tests/test-fpurge.c: Likewise.
49003         * tests/test-freadable.c: Likewise.
49004         * tests/test-freadahead.c: Likewise.
49005         * tests/test-freading.c: Likewise.
49006         * tests/test-freopen.c: Likewise.
49007         * tests/test-frexp.c: Likewise.
49008         * tests/test-frexpl.c: Likewise.
49009         * tests/test-fseek.c: Likewise.
49010         * tests/test-fseeko.c: Likewise.
49011         * tests/test-fseterr.c: Likewise.
49012         * tests/test-fstrcmp.c: Likewise.
49013         * tests/test-ftell.c: Likewise.
49014         * tests/test-ftello.c: Likewise.
49015         * tests/test-fwritable.c: Likewise.
49016         * tests/test-fwriting.c: Likewise.
49017         * tests/test-getaddrinfo.c: Likewise.
49018         * tests/test-getpass.c: Likewise.
49019         * tests/test-gettimeofday.c: Likewise.
49020         * tests/test-hmac-md5.c: Likewise.
49021         * tests/test-hmac-sha1.c: Likewise.
49022         * tests/test-iconv.c: Likewise.
49023         * tests/test-iconvme.c: Likewise.
49024         * tests/test-inttypes.c: Likewise.
49025         * tests/test-isnan.c: Likewise.
49026         * tests/test-isnanf.c: Likewise.
49027         * tests/test-isnanl-nolibm.c: Likewise.
49028         * tests/test-isnanl.c: Likewise.
49029         * tests/test-isnanl.h: Likewise.
49030         * tests/test-ldexpl.c: Likewise.
49031         * tests/test-linked_list.c: Likewise.
49032         * tests/test-linkedhash_list.c: Likewise.
49033         * tests/test-locale.c: Likewise.
49034         * tests/test-localename.c: Likewise.
49035         * tests/test-lock.c: Likewise.
49036         * tests/test-lseek.c: Likewise.
49037         * tests/test-malloca.c: Likewise.
49038         * tests/test-math.c: Likewise.
49039         * tests/test-mbscasecmp.c: Likewise.
49040         * tests/test-mbscasestr1.c: Likewise.
49041         * tests/test-mbscasestr2.c: Likewise.
49042         * tests/test-mbscasestr3.c: Likewise.
49043         * tests/test-mbscasestr4.c: Likewise.
49044         * tests/test-mbschr.c: Likewise.
49045         * tests/test-mbscspn.c: Likewise.
49046         * tests/test-mbsncasecmp.c: Likewise.
49047         * tests/test-mbspbrk.c: Likewise.
49048         * tests/test-mbspcasecmp.c: Likewise.
49049         * tests/test-mbsrchr.c: Likewise.
49050         * tests/test-mbsspn.c: Likewise.
49051         * tests/test-mbsstr1.c: Likewise.
49052         * tests/test-mbsstr2.c: Likewise.
49053         * tests/test-mbsstr3.c: Likewise.
49054         * tests/test-md5.c: Likewise.
49055         * tests/test-memmem.c: Likewise.
49056         * tests/test-netinet_in.c: Likewise.
49057         * tests/test-open.c: Likewise.
49058         * tests/test-printf-frexp.c: Likewise.
49059         * tests/test-printf-frexpl.c: Likewise.
49060         * tests/test-printf-posix.c: Likewise.
49061         * tests/test-printf-posix.h: Likewise.
49062         * tests/test-rbtree_list.c: Likewise.
49063         * tests/test-rbtree_oset.c: Likewise.
49064         * tests/test-rbtreehash_list.c: Likewise.
49065         * tests/test-read-file.c: Likewise.
49066         * tests/test-rijndael.c: Likewise.
49067         * tests/test-search.c: Likewise.
49068         * tests/test-signbit.c: Likewise.
49069         * tests/test-sleep.c: Likewise.
49070         * tests/test-snprintf-posix.c: Likewise.
49071         * tests/test-snprintf-posix.h: Likewise.
49072         * tests/test-snprintf.c: Likewise.
49073         * tests/test-sprintf-posix.c: Likewise.
49074         * tests/test-sprintf-posix.h: Likewise.
49075         * tests/test-stat-time.c: Likewise.
49076         * tests/test-stdbool.c: Likewise.
49077         * tests/test-stdint.c: Likewise.
49078         * tests/test-stdio.c: Likewise.
49079         * tests/test-stdlib.c: Likewise.
49080         * tests/test-stpncpy.c: Likewise.
49081         * tests/test-strcasestr.c: Likewise.
49082         * tests/test-striconv.c: Likewise.
49083         * tests/test-striconveh.c: Likewise.
49084         * tests/test-striconveha.c: Likewise.
49085         * tests/test-string.c: Likewise.
49086         * tests/test-sys_select.c: Likewise.
49087         * tests/test-sys_socket.c: Likewise.
49088         * tests/test-sys_stat.c: Likewise.
49089         * tests/test-sys_time.c: Likewise.
49090         * tests/test-sysexits.c: Likewise.
49091         * tests/test-time.c: Likewise.
49092         * tests/test-tls.c: Likewise.
49093         * tests/test-trunc.c: Likewise.
49094         * tests/test-truncf.c: Likewise.
49095         * tests/test-truncl.c: Likewise.
49096         * tests/test-unistd.c: Likewise.
49097         * tests/test-vasnprintf-posix.c: Likewise.
49098         * tests/test-vasnprintf-posix2.c: Likewise.
49099         * tests/test-vasnprintf.c: Likewise.
49100         * tests/test-vasprintf-posix.c: Likewise.
49101         * tests/test-vasprintf.c: Likewise.
49102         * tests/test-verify.c: Likewise.
49103         * tests/test-vfprintf-posix.c: Likewise.
49104         * tests/test-vprintf-posix.c: Likewise.
49105         * tests/test-vsnprintf-posix.c: Likewise.
49106         * tests/test-vsnprintf.c: Likewise.
49107         * tests/test-vsprintf-posix.c: Likewise.
49108         * tests/test-wchar.c: Likewise.
49109         * tests/test-wctype.c: Likewise.
49110         * tests/test-wcwidth.c: Likewise.
49111         * tests/test-xstrtol.c: Likewise.
49112         * tests/test-xvasprintf.c: Likewise.
49113         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49114         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49115         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49116         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49117         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49118         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49119         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49120         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49121         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49122         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49123         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49124         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49125         * tests/uniname/test-uninames.c: Likewise.
49126         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49127         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49128         * tests/unistdio/test-u16-printf1.h: Likewise.
49129         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49130         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49131         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49132         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49133         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49134         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49135         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49136         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49137         * tests/unistdio/test-u32-printf1.h: Likewise.
49138         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49139         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49140         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49141         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49142         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49143         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49144         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49145         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49146         * tests/unistdio/test-u8-printf1.h: Likewise.
49147         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49148         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49149         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49150         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49151         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49152         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49153         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49154         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49155         * tests/unistdio/test-ulc-printf1.h: Likewise.
49156         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49157         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49158         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49159         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49160         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49161         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49162         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49163         * tests/uniwidth/test-u16-width.c: Likewise.
49164         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49165         * tests/uniwidth/test-u32-width.c: Likewise.
49166         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49167         * tests/uniwidth/test-u8-width.c: Likewise.
49168         * tests/uniwidth/test-uc_width.c: Likewise.
49169         * config/srclist-update: Likewise.
49170         (fixlicense): Update to GPLv3+.
49171
49172         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49173         * tests/test-tsearch.c: Change copyright notice.
49174
49175         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49176         * lib/c-strcaseeq.h: Change copyright notice.
49177         * lib/streq.h: Likewise.
49178         * lib/uniconv.h: Likewise.
49179         * lib/uniconv/u-conv-from-enc.h: Likewise.
49180         * lib/uniconv/u-conv-to-enc.h: Likewise.
49181         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49182         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49183         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49184         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49185         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49186         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49187         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49188         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49189         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49190         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49191         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49192         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49193         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49194         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49195         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49196         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49197         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49198         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49199         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49200         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49201         * lib/uniname.h: Likewise.
49202         * lib/uniname/uniname.c: Likewise.
49203         * lib/unistdio.h: Likewise.
49204         * lib/unistdio/u-asnprintf.h: Likewise.
49205         * lib/unistdio/u-asprintf.h: Likewise.
49206         * lib/unistdio/u-printf-args.c: Likewise.
49207         * lib/unistdio/u-printf-args.h: Likewise.
49208         * lib/unistdio/u-printf-parse.h: Likewise.
49209         * lib/unistdio/u-snprintf.h: Likewise.
49210         * lib/unistdio/u-sprintf.h: Likewise.
49211         * lib/unistdio/u-vasprintf.h: Likewise.
49212         * lib/unistdio/u-vsnprintf.h: Likewise.
49213         * lib/unistdio/u-vsprintf.h: Likewise.
49214         * lib/unistdio/u16-asnprintf.c: Likewise.
49215         * lib/unistdio/u16-asprintf.c: Likewise.
49216         * lib/unistdio/u16-printf-parse.c: Likewise.
49217         * lib/unistdio/u16-snprintf.c: Likewise.
49218         * lib/unistdio/u16-sprintf.c: Likewise.
49219         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49220         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49221         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49222         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49223         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49224         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49225         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49226         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49227         * lib/unistdio/u16-vasnprintf.c: Likewise.
49228         * lib/unistdio/u16-vasprintf.c: Likewise.
49229         * lib/unistdio/u16-vsnprintf.c: Likewise.
49230         * lib/unistdio/u16-vsprintf.c: Likewise.
49231         * lib/unistdio/u32-asnprintf.c: Likewise.
49232         * lib/unistdio/u32-asprintf.c: Likewise.
49233         * lib/unistdio/u32-printf-parse.c: Likewise.
49234         * lib/unistdio/u32-snprintf.c: Likewise.
49235         * lib/unistdio/u32-sprintf.c: Likewise.
49236         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49237         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49238         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49239         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49240         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49241         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49242         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49243         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49244         * lib/unistdio/u32-vasnprintf.c: Likewise.
49245         * lib/unistdio/u32-vasprintf.c: Likewise.
49246         * lib/unistdio/u32-vsnprintf.c: Likewise.
49247         * lib/unistdio/u32-vsprintf.c: Likewise.
49248         * lib/unistdio/u8-asnprintf.c: Likewise.
49249         * lib/unistdio/u8-asprintf.c: Likewise.
49250         * lib/unistdio/u8-printf-parse.c: Likewise.
49251         * lib/unistdio/u8-snprintf.c: Likewise.
49252         * lib/unistdio/u8-sprintf.c: Likewise.
49253         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49254         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49255         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49256         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49257         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49258         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49259         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49260         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49261         * lib/unistdio/u8-vasnprintf.c: Likewise.
49262         * lib/unistdio/u8-vasprintf.c: Likewise.
49263         * lib/unistdio/u8-vsnprintf.c: Likewise.
49264         * lib/unistdio/u8-vsprintf.c: Likewise.
49265         * lib/unistdio/ulc-asnprintf.c: Likewise.
49266         * lib/unistdio/ulc-asprintf.c: Likewise.
49267         * lib/unistdio/ulc-printf-parse.c: Likewise.
49268         * lib/unistdio/ulc-snprintf.c: Likewise.
49269         * lib/unistdio/ulc-sprintf.c: Likewise.
49270         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49271         * lib/unistdio/ulc-vasprintf.c: Likewise.
49272         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49273         * lib/unistdio/ulc-vsprintf.c: Likewise.
49274         * lib/unistr.h: Likewise.
49275         * lib/unistr/u-cpy-alloc.h: Likewise.
49276         * lib/unistr/u-cpy.h: Likewise.
49277         * lib/unistr/u-endswith.h: Likewise.
49278         * lib/unistr/u-move.h: Likewise.
49279         * lib/unistr/u-set.h: Likewise.
49280         * lib/unistr/u-startswith.h: Likewise.
49281         * lib/unistr/u-stpcpy.h: Likewise.
49282         * lib/unistr/u-stpncpy.h: Likewise.
49283         * lib/unistr/u-strcat.h: Likewise.
49284         * lib/unistr/u-strcpy.h: Likewise.
49285         * lib/unistr/u-strcspn.h: Likewise.
49286         * lib/unistr/u-strdup.h: Likewise.
49287         * lib/unistr/u-strlen.h: Likewise.
49288         * lib/unistr/u-strncat.h: Likewise.
49289         * lib/unistr/u-strncpy.h: Likewise.
49290         * lib/unistr/u-strnlen.h: Likewise.
49291         * lib/unistr/u-strpbrk.h: Likewise.
49292         * lib/unistr/u-strspn.h: Likewise.
49293         * lib/unistr/u-strstr.h: Likewise.
49294         * lib/unistr/u-strtok.h: Likewise.
49295         * lib/unistr/u16-check.c: Likewise.
49296         * lib/unistr/u16-chr.c: Likewise.
49297         * lib/unistr/u16-cmp.c: Likewise.
49298         * lib/unistr/u16-cpy-alloc.c: Likewise.
49299         * lib/unistr/u16-cpy.c: Likewise.
49300         * lib/unistr/u16-endswith.c: Likewise.
49301         * lib/unistr/u16-mblen.c: Likewise.
49302         * lib/unistr/u16-mbsnlen.c: Likewise.
49303         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49304         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49305         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49306         * lib/unistr/u16-mbtouc.c: Likewise.
49307         * lib/unistr/u16-mbtoucr.c: Likewise.
49308         * lib/unistr/u16-move.c: Likewise.
49309         * lib/unistr/u16-next.c: Likewise.
49310         * lib/unistr/u16-prev.c: Likewise.
49311         * lib/unistr/u16-set.c: Likewise.
49312         * lib/unistr/u16-startswith.c: Likewise.
49313         * lib/unistr/u16-stpcpy.c: Likewise.
49314         * lib/unistr/u16-stpncpy.c: Likewise.
49315         * lib/unistr/u16-strcat.c: Likewise.
49316         * lib/unistr/u16-strchr.c: Likewise.
49317         * lib/unistr/u16-strcmp.c: Likewise.
49318         * lib/unistr/u16-strcpy.c: Likewise.
49319         * lib/unistr/u16-strcspn.c: Likewise.
49320         * lib/unistr/u16-strdup.c: Likewise.
49321         * lib/unistr/u16-strlen.c: Likewise.
49322         * lib/unistr/u16-strmblen.c: Likewise.
49323         * lib/unistr/u16-strmbtouc.c: Likewise.
49324         * lib/unistr/u16-strncat.c: Likewise.
49325         * lib/unistr/u16-strncmp.c: Likewise.
49326         * lib/unistr/u16-strncpy.c: Likewise.
49327         * lib/unistr/u16-strnlen.c: Likewise.
49328         * lib/unistr/u16-strpbrk.c: Likewise.
49329         * lib/unistr/u16-strrchr.c: Likewise.
49330         * lib/unistr/u16-strspn.c: Likewise.
49331         * lib/unistr/u16-strstr.c: Likewise.
49332         * lib/unistr/u16-strtok.c: Likewise.
49333         * lib/unistr/u16-to-u32.c: Likewise.
49334         * lib/unistr/u16-to-u8.c: Likewise.
49335         * lib/unistr/u16-uctomb-aux.c: Likewise.
49336         * lib/unistr/u16-uctomb.c: Likewise.
49337         * lib/unistr/u32-check.c: Likewise.
49338         * lib/unistr/u32-chr.c: Likewise.
49339         * lib/unistr/u32-cmp.c: Likewise.
49340         * lib/unistr/u32-cpy-alloc.c: Likewise.
49341         * lib/unistr/u32-cpy.c: Likewise.
49342         * lib/unistr/u32-endswith.c: Likewise.
49343         * lib/unistr/u32-mblen.c: Likewise.
49344         * lib/unistr/u32-mbsnlen.c: Likewise.
49345         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49346         * lib/unistr/u32-mbtouc.c: Likewise.
49347         * lib/unistr/u32-mbtoucr.c: Likewise.
49348         * lib/unistr/u32-move.c: Likewise.
49349         * lib/unistr/u32-next.c: Likewise.
49350         * lib/unistr/u32-prev.c: Likewise.
49351         * lib/unistr/u32-set.c: Likewise.
49352         * lib/unistr/u32-startswith.c: Likewise.
49353         * lib/unistr/u32-stpcpy.c: Likewise.
49354         * lib/unistr/u32-stpncpy.c: Likewise.
49355         * lib/unistr/u32-strcat.c: Likewise.
49356         * lib/unistr/u32-strchr.c: Likewise.
49357         * lib/unistr/u32-strcmp.c: Likewise.
49358         * lib/unistr/u32-strcpy.c: Likewise.
49359         * lib/unistr/u32-strcspn.c: Likewise.
49360         * lib/unistr/u32-strdup.c: Likewise.
49361         * lib/unistr/u32-strlen.c: Likewise.
49362         * lib/unistr/u32-strmblen.c: Likewise.
49363         * lib/unistr/u32-strmbtouc.c: Likewise.
49364         * lib/unistr/u32-strncat.c: Likewise.
49365         * lib/unistr/u32-strncmp.c: Likewise.
49366         * lib/unistr/u32-strncpy.c: Likewise.
49367         * lib/unistr/u32-strnlen.c: Likewise.
49368         * lib/unistr/u32-strpbrk.c: Likewise.
49369         * lib/unistr/u32-strrchr.c: Likewise.
49370         * lib/unistr/u32-strspn.c: Likewise.
49371         * lib/unistr/u32-strstr.c: Likewise.
49372         * lib/unistr/u32-strtok.c: Likewise.
49373         * lib/unistr/u32-to-u16.c: Likewise.
49374         * lib/unistr/u32-to-u8.c: Likewise.
49375         * lib/unistr/u32-uctomb.c: Likewise.
49376         * lib/unistr/u8-check.c: Likewise.
49377         * lib/unistr/u8-chr.c: Likewise.
49378         * lib/unistr/u8-cmp.c: Likewise.
49379         * lib/unistr/u8-cpy-alloc.c: Likewise.
49380         * lib/unistr/u8-cpy.c: Likewise.
49381         * lib/unistr/u8-endswith.c: Likewise.
49382         * lib/unistr/u8-mblen.c: Likewise.
49383         * lib/unistr/u8-mbsnlen.c: Likewise.
49384         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49386         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49387         * lib/unistr/u8-mbtouc.c: Likewise.
49388         * lib/unistr/u8-mbtoucr.c: Likewise.
49389         * lib/unistr/u8-move.c: Likewise.
49390         * lib/unistr/u8-next.c: Likewise.
49391         * lib/unistr/u8-prev.c: Likewise.
49392         * lib/unistr/u8-set.c: Likewise.
49393         * lib/unistr/u8-startswith.c: Likewise.
49394         * lib/unistr/u8-stpcpy.c: Likewise.
49395         * lib/unistr/u8-stpncpy.c: Likewise.
49396         * lib/unistr/u8-strcat.c: Likewise.
49397         * lib/unistr/u8-strchr.c: Likewise.
49398         * lib/unistr/u8-strcmp.c: Likewise.
49399         * lib/unistr/u8-strcpy.c: Likewise.
49400         * lib/unistr/u8-strcspn.c: Likewise.
49401         * lib/unistr/u8-strdup.c: Likewise.
49402         * lib/unistr/u8-strlen.c: Likewise.
49403         * lib/unistr/u8-strmblen.c: Likewise.
49404         * lib/unistr/u8-strmbtouc.c: Likewise.
49405         * lib/unistr/u8-strncat.c: Likewise.
49406         * lib/unistr/u8-strncmp.c: Likewise.
49407         * lib/unistr/u8-strncpy.c: Likewise.
49408         * lib/unistr/u8-strnlen.c: Likewise.
49409         * lib/unistr/u8-strpbrk.c: Likewise.
49410         * lib/unistr/u8-strrchr.c: Likewise.
49411         * lib/unistr/u8-strspn.c: Likewise.
49412         * lib/unistr/u8-strstr.c: Likewise.
49413         * lib/unistr/u8-strtok.c: Likewise.
49414         * lib/unistr/u8-to-u16.c: Likewise.
49415         * lib/unistr/u8-to-u32.c: Likewise.
49416         * lib/unistr/u8-uctomb-aux.c: Likewise.
49417         * lib/unistr/u8-uctomb.c: Likewise.
49418         * lib/unitypes.h: Likewise.
49419         * lib/uniwidth.h: Likewise.
49420         * lib/uniwidth/cjk.h: Likewise.
49421         * lib/uniwidth/u16-strwidth.c: Likewise.
49422         * lib/uniwidth/u16-width.c: Likewise.
49423         * lib/uniwidth/u32-strwidth.c: Likewise.
49424         * lib/uniwidth/u32-width.c: Likewise.
49425         * lib/uniwidth/u8-strwidth.c: Likewise.
49426         * lib/uniwidth/u8-width.c: Likewise.
49427         * lib/uniwidth/width.c: Likewise.
49428
49429 2007-10-07  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49432         The file is still under LGPL (see modules/inttypes).
49433
49434 2007-10-06  Bruno Haible  <bruno@clisp.org>
49435
49436         * modules/trunc (Dependencies): Add 'extensions'.
49437         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49438         Reported by Ben Pfaff <blp@gnu.org>.
49439
49440 2007-10-06  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/freopen-tests: New file.
49443         * tests/test-freopen.c: New file.
49444
49445         * modules/fopen-tests: New file.
49446         * tests/test-fopen.c: New file.
49447
49448         * modules/fopen: New file.
49449         * lib/fopen.c: New file.
49450         * m4/fopen.m4: New file.
49451         * modules/freopen: New file.
49452         * lib/freopen.c: New file.
49453         * m4/freopen.m4: New file.
49454         * lib/stdio.in.h (fopen, freopen): New declarations.
49455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49456         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49457         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49458         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49459         * doc/functions/fopen.texi: Mention the 'fopen' module.
49460         * doc/functions/freopen.texi: Mention the 'freopen' module.
49461
49462 2007-10-06  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/open-tests: New file.
49465         * tests/test-open.c: New file.
49466
49467         * modules/open: New file.
49468         * lib/open.c: New file.
49469         * m4/open.m4: New file.
49470         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49471         lib/open.c does.
49472         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49473         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49474         macros.
49475         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49476         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49477         REPLACE_OPEN.
49478         * doc/functions/open.texi: Mention the 'open' module.
49479
49480 2007-10-04  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/ceill-tests: New file.
49483         * tests/test-ceill.c: New file.
49484
49485         * modules/ceill: New file.
49486         * lib/ceill.c: Replace entire file.
49487         * m4/ceill.m4: New file.
49488         * lib/math.in.h (ceill): Replace declaration.
49489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49490         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49491         * doc/functions/ceill.texi: Mention the 'ceill' module.
49492         * modules/mathl (Files): Remove lib/ceill.c.
49493         (Depends-on): Add ceill.
49494
49495 2007-10-04  Bruno Haible  <bruno@clisp.org>
49496
49497         * modules/ceilf-tests: New file.
49498         * tests/test-ceilf.c: New file.
49499
49500         * modules/ceilf: New file.
49501         * lib/ceil.c: New file.
49502         * lib/ceilf.c: New file.
49503         * m4/ceilf.m4: New file.
49504         * lib/math.in.h (ceilf): New declaration.
49505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49506         HAVE_DECL_CEILF.
49507         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49508         HAVE_DECL_CEILF.
49509         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49510
49511 2007-10-04  Bruno Haible  <bruno@clisp.org>
49512
49513         * modules/floorl-tests: New file.
49514         * tests/test-floorl.c: New file.
49515
49516         * modules/floorl: New file.
49517         * lib/floorl.c: Replace entire file.
49518         * m4/floorl.m4: New file.
49519         * lib/math.in.h (floorl): Replace declaration.
49520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49521         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49522         * doc/functions/floorl.texi: Mention the 'floorl' module.
49523         * modules/mathl (Files): Remove lib/floorl.c.
49524         (Depends-on): Add floorl.
49525
49526 2007-10-04  Bruno Haible  <bruno@clisp.org>
49527
49528         * modules/floorf-tests: New file.
49529         * tests/test-floorf.c: New file.
49530
49531         * modules/floorf: New file.
49532         * lib/floor.c: New file.
49533         * lib/floorf.c: New file.
49534         * m4/floorf.m4: New file.
49535         * lib/math.in.h (floorf): New declaration.
49536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49537         HAVE_DECL_FLOORF.
49538         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49539         HAVE_DECL_FLOORF.
49540         * doc/functions/floorf.texi: Mention the 'floorf' module.
49541
49542 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49543             Bruno Haible  <bruno@clisp.org>
49544
49545         Advertise for the Git server instead of the CVS server.
49546         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49547         repository instead of the CVS one.
49548         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49549         about all VCS systems generically.
49550         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49551
49552 2007-10-04  Bruno Haible  <bruno@clisp.org>
49553
49554         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49555         means.
49556         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49557
49558 2007-10-04  Bruno Haible  <bruno@clisp.org>
49559
49560         * modules/truncl-tests: New file.
49561         * tests/test-truncl.c: New file.
49562
49563         * modules/truncl: New file.
49564         * lib/truncl.c: New file.
49565         * m4/truncl.m4: New file.
49566         * lib/math.in.h (truncl): New declaration.
49567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49568         HAVE_DECL_TRUNCL.
49569         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49570         HAVE_DECL_TRUNCL.
49571         * doc/functions/truncl.texi: Mention the 'truncl' module.
49572
49573 2007-10-04  Bruno Haible  <bruno@clisp.org>
49574
49575         * modules/truncf-tests: New file.
49576         * tests/test-truncf.c: New file.
49577
49578         * modules/truncf: New file.
49579         * lib/trunc.c: Make paramerizable through USE_* macros.
49580         * lib/truncf.c: New file.
49581         * m4/truncf.m4: New file.
49582         * lib/math.in.h (truncf): New declaration.
49583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49584         HAVE_DECL_TRUNCF.
49585         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49586         HAVE_DECL_TRUNCF.
49587         * doc/functions/truncf.texi: Mention the 'truncf' module.
49588
49589 2007-10-03  Bruno Haible  <bruno@clisp.org>
49590
49591         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49592         augmentation also for tests modules.
49593         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49594         * modules/atexit-tests (Makefile.am): Likewise.
49595         * modules/binary-io-tests (Makefile.am): Likewise.
49596         * modules/c-strcase-tests (Makefile.am): Likewise.
49597         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49598         * modules/canonicalize-tests (Makefile.am): Likewise.
49599         * modules/closein-tests (Makefile.am): Likewise.
49600         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49601         * modules/freadahead-tests (Makefile.am): Likewise.
49602         * modules/fseek-tests (Makefile.am): Likewise.
49603         * modules/fseeko-tests (Makefile.am): Likewise.
49604         * modules/ftell-tests (Makefile.am): Likewise.
49605         * modules/ftello-tests (Makefile.am): Likewise.
49606         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49607         * modules/isnanl-tests (Makefile.am): Likewise.
49608         * modules/lseek-tests (Makefile.am): Likewise.
49609         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49610         * modules/mbscasestr-tests (Makefile.am): Likewise.
49611         * modules/mbschr-tests (Makefile.am): Likewise.
49612         * modules/mbscspn-tests (Makefile.am): Likewise.
49613         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49614         * modules/mbspbrk-tests (Makefile.am): Likewise.
49615         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49616         * modules/mbsrchr-tests (Makefile.am): Likewise.
49617         * modules/mbsspn-tests (Makefile.am): Likewise.
49618         * modules/mbsstr-tests (Makefile.am): Likewise.
49619         * modules/printf-posix-tests (Makefile.am): Likewise.
49620         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49621         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49622         * modules/tsearch-tests (Makefile.am): Likewise.
49623         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49624         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49625         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49626         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49627         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49628         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49629         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49630         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49631         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49632         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49633         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49634         * modules/xstrtol-tests (Makefile.am): Likewise.
49635         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49636         * modules/yesno-tests (Makefile.am): Likewise.
49637
49638 2007-10-03  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/trunc-tests: New file.
49641         * tests/test-trunc.c: New file.
49642
49643         * modules/trunc: New file.
49644         * lib/trunc.c: New file.
49645         * m4/trunc.m4: New file.
49646         * lib/math.in.h (trunc): New declaration.
49647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49648         HAVE_DECL_TRUNC.
49649         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49650         HAVE_DECL_TRUNC.
49651         * doc/functions/trunc.texi: Mention the 'trunc' module.
49652
49653 2007-10-03  Bruno Haible  <bruno@clisp.org>
49654
49655         * tests/test-fpending.c: New file, mostly copied
49656         from coreutils/lib/t-fpending.c.
49657         * modules/fpending-tests: New file.
49658
49659 2007-10-03  Bruno Haible  <bruno@clisp.org>
49660
49661         Port the stdio extensions to QNX (untested).
49662         * lib/fseterr.c (fseterr): Add support for QNX.
49663         * lib/fbufmode.c (fbufmode): Likewise.
49664         * lib/freadable.c (freadable): Likewise.
49665         * lib/fwritable.c (fwritable): Likewise.
49666         * lib/freading.c (freading): Likewise.
49667         * lib/fwriting.c (fwriting): Likewise.
49668         * lib/freadahead.c (freadahed): Likewise.
49669         * lib/fpurge.c (fpurge): Likewise.
49670         * lib/fseeko.c (rpl_fseeko): Likewise.
49671
49672 2007-10-03  Bruno Haible  <bruno@clisp.org>
49673             Jim Meyering  <jim@meyering.net>
49674             Eric Blake  <ebb9@byu.net>
49675
49676         * doc/relocatable.texi: Use @command instead of @program.
49677
49678 2007-10-02  Jim Meyering  <jim@meyering.net>
49679
49680         Perform one more "_.h" -> ".in.h" substitution.
49681         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49682         instead of unistd_.h here, too.
49683
49684 2007-10-01  Bruno Haible  <bruno@clisp.org>
49685
49686         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49687         Needed for the alloca-opt module.
49688
49689 2007-09-30  Bruno Haible  <bruno@clisp.org>
49690
49691         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49692         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49693         alloca_.h.
49694         * lib/argz.in.h: Renamed from lib/argz_.h.
49695         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49696         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49697         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49698         byteswap_.h.
49699         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49700         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49701         dirent_.h.
49702         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49703         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49704         fcntl_.h.
49705         * lib/float.in.h: Renamed from lib/float_.h.
49706         * modules/float (Files, Makefile.am): Use float.in.h instead of
49707         float_.h.
49708         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49709         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49710         fnmatch_.h.
49711         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49712         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49713         getopt_.h.
49714         * lib/glob.in.h: Renamed from lib/glob_.h.
49715         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49716         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49717         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49718         iconv_.h.
49719         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49720         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49721         inttypes_.h.
49722         * lib/locale.in.h: Renamed from lib/locale_.h.
49723         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49724         locale_.h.
49725         * lib/math.in.h: Renamed from lib/math_.h.
49726         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49727         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49728         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49729         of netinet_in_.h. Add dependency.
49730         * lib/poll.in.h: Renamed from lib/poll_.h.
49731         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49732         * lib/search.in.h: Renamed from lib/search_.h.
49733         * modules/search (Files, Makefile.am): Use search.in.h instead of
49734         search_.h.
49735         * lib/signal.in.h: Renamed from lib/signal_.h.
49736         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49737         _signal.h.
49738         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49739         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49740         stdbool_.h.
49741         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49742         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49743         stdint_.h.
49744         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49745         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49746         stdio_.h.
49747         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49748         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49749         stdlib_.h.
49750         * lib/string.in.h: Renamed from lib/string_.h.
49751         * modules/string (Files, Makefile.am): Use string.in.h instead of
49752         string_.h.
49753         * doc/gnulib-tool.texi (Initial import): Update.
49754         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49755         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49756         of sys_select_.h. Add dependency.
49757         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49758         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49759         of sys_socket_.h.
49760         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49761         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49762         sys_stat_.h.
49763         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49764         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49765         sys_time_.h.
49766         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49767         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49768         sysexits_.h.
49769         * lib/time.in.h: Renamed from lib/time_.h.
49770         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49771         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49772         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49773         unistd_.h.
49774         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49775         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49776         wchar_.h.
49777         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49778         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49779         wctype_.h.
49780         * build-aux/bootstrap (slurp): Update.
49781         * lib/.cppi-disable: Update.
49782
49783 2007-09-30  Bruno Haible  <bruno@clisp.org>
49784
49785         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49786         Needed on BeOS.
49787
49788 2007-09-30  Bruno Haible  <bruno@clisp.org>
49789
49790         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49791
49792 2007-09-29  Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49795
49796 2007-09-29  Bruno Haible  <bruno@clisp.org>
49797
49798         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49799         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49800         * build-aux/install-reloc: Compile also areadlink.c.
49801         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49802
49803 2007-09-29  Bruno Haible  <bruno@clisp.org>
49804
49805         * gnulib-tool (func_emit_initmacro_done): Indentation.
49806
49807 2007-09-29  Bruno Haible  <bruno@clisp.org>
49808
49809         * README: Add CVS checkout update instructions.
49810         Info from Bob Proulx <bob@proulx.com>.
49811
49812 2007-09-28  Eric Blake  <ebb9@byu.net>
49813
49814         Provide move-if-change.
49815         * build-aux/move-if-change: New file, based on best practice
49816         rather than any canonical upstream location.
49817
49818 2007-09-28  Jim Meyering  <jim@meyering.net>
49819
49820         Fix canonicalize loop-detection corner case.
49821         Do not attempt to stat the symlink values stored via seen_triple.
49822         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49823         on linux-2.6.18, (but not 2.6.22).
49824         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49825         triple_compare.  The former compares dev,ino,filename, while the latter
49826         would actually stat dirname(filename) when dev and ino were equal.
49827         * lib/hash-triple.c: Install <string.h>.
49828         (STREQ): Define.
49829         (triple_compare_ino_str): New function.
49830         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49831
49832 2007-09-28  Eric Blake  <ebb9@byu.net>
49833
49834         Enforce that AC_REPLACE_FUNCS files exist.
49835         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49836         override check for typos.
49837
49838         Fix test-closein on Solaris 10.
49839         * tests/test-closein.c (main): Don't assume stdin can be inherited
49840         closed on all systems.
49841         * tests/test-closein.sh: Likewise.
49842         Reported by Piotr Tarnowski.
49843
49844 2007-09-28  Jim Meyering  <jim@meyering.net>
49845
49846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49847
49848 2007-09-27  Jim Meyering  <jim@meyering.net>
49849
49850         canonicalize: Avoid a false-positive cycle failure.
49851         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49852         Sort.  Remove cycle-check.
49853         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49854         not cycle-check.h.
49855         (seen_triple): New function.
49856         (canonicalize_filename_mode): Use it instead of cycle-check.
49857         * tests/test-canonicalize.c: Add a test for this bug.
49858         * tests/test-canonicalize.sh: Set up and run the test.
49859
49860         New module, file-set, from coreutils.
49861         * modules/file-set: Define it.
49862         * lib/file-set.c, lib/file-set.h: Implement.
49863
49864         New module, hash-triple, from coreutils.
49865         * modules/hash-triple: Define it.
49866         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49867
49868 2007-09-25  Eric Blake  <ebb9@byu.net>
49869
49870         Fix strerror on Interix.
49871         * lib/string_.h (strerror): Declare replacement.
49872         * doc/functions/strerror.texi (strerror): Document the Interix
49873         shortcoming.
49874         * modules/string (Makefile.am): Support new hooks.
49875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49876         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49877         gl_FUNC_STRERROR_SEPARATE.
49878         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49879         * lib/strerror.c (rpl_strerror): Provide replacement.
49880         * modules/strerror (Depends-on): Add string.
49881         (configure.ac): Detect use of module.
49882         * tests/test-strerror.c: New file.
49883         * modules/strerror-tests: New test module.
49884         * modules/argp (Depends-on): Add strerror.
49885         * modules/error (Depends-on): Likewise.
49886         Reported by Martin Koeppe.
49887
49888 2007-09-24  Bruno Haible  <bruno@clisp.org>
49889
49890         * README: Update git instructions.
49891
49892 2007-09-24  Eric Blake  <ebb9@byu.net>
49893
49894         Revert fpending breakage from 2007-09-08.
49895         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49896         __fpending.c.
49897
49898 2007-09-24  Jim Meyering  <jim@meyering.net>
49899
49900         filenamecat.c: Add a test.
49901         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49902         showing how the function works when DIR is the empty string.
49903
49904 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49905
49906         * tests/test-canonicalize.sh: Turn on executable bit.
49907
49908 2007-09-19  Eric Blake  <ebb9@byu.net>
49909
49910         * README: Update CVS instructions.
49911
49912 2007-09-18  Bruno Haible  <bruno@clisp.org>
49913
49914         * modules/areadlink: New file.
49915         * lib/areadlink.h (areadlink): New declaration.
49916         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49917
49918 2007-09-17  Jim Meyering  <jim@meyering.net>
49919
49920         * lib/savewd.c (ESTALE) [!defined]: Define.
49921         Reported to be required on Interix by Martin Koeppe.
49922
49923 2007-09-17  Bruno Haible  <bruno@clisp.org>
49924
49925         * gnulib-tool (func_version): Use $version.
49926
49927 2007-09-16  Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49930         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49931         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49932         Reported by Greg Schafer <gschafer@zip.com.au>.
49933
49934 2007-09-15  Bruno Haible  <bruno@clisp.org>
49935
49936         * gnulib-tool (sed): Try a little harder to make bash understand the
49937         alias.
49938         Reported by Bruce Korb <bruce.korb@gmail.com>.
49939
49940 2007-09-13  Eric Blake  <ebb9@byu.net>
49941
49942         * ChangeLog: Remove conflict markers.
49943
49944 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49945
49946         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49947         Reported by Bruno Haible <bruno@clisp.org>.
49948
49949 2007-09-12  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49952         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49953         is not defined.
49954
49955 2007-09-12  Eric Blake  <ebb9@byu.net>
49956
49957         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49959         Autoconf definition.
49960         * modules/euidaccess (Depends-on): Add extensions, for
49961         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49962         * modules/fnmatch (Depends-on): Likewise.
49963         * modules/getaddrinfo (Depends-on): Likewise.
49964         * modules/getdelim (Depends-on): Likewise.
49965         * modules/getline (Depends-on): Likewise.
49966         * modules/getsubopt (Depends-on): Likewise.
49967         * modules/gettext (Depends-on): Likewise.
49968         * modules/group-member (Depends-on): Likewise.
49969         * modules/mbchar (Depends-on): Likewise.
49970         * modules/memmem (Depends-on): Likewise.
49971         * modules/mempcpy (Depends-on): Likewise.
49972         * modules/memrchr (Depends-on): Likewise.
49973         * modules/pagealign_alloc (Depends-on): Likewise.
49974         * modules/readutmp (Depends-on): Likewise.
49975         * modules/stpcpy (Depends-on): Likewise.
49976         * modules/stpncpy (Depends-on): Likewise.
49977         * modules/strchrnul (Depends-on): Likewise.
49978         * modules/strndup (Depends-on): Likewise.
49979         * modules/strsep (Depends-on): Likewise.
49980         * modules/strverscmp (Depends-on): Likewise.
49981         * modules/vasprintf (Depends-on): Likewise.
49982         * modules/wcwidth (Depends-on): Likewise.
49983         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49984         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49985         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49987         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49988         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49989         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49990         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49991         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49992         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49994         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49996         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49997         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49998         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49999         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50002         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50005         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50006         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50007         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50009         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50010         so that lock.m4 can be used in gettext without extensions module.
50011
50012 2007-09-11  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/isc-posix.m4: Remove file.
50015         Suggested by Eric Blake.
50016
50017 2007-09-11  Eric Blake  <ebb9@byu.net>
50018
50019         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50020
50021 2007-09-10  Bruno Haible  <bruno@clisp.org>
50022
50023         * posix-modules: Fix typo in error message.
50024         Reported by Matt <mkraai@beckman.com>.
50025
50026 2007-09-09  Bruno Haible  <bruno@clisp.org>
50027
50028         * doc/functions/getdelim.texi: Update list of platforms lacking the
50029         function.
50030         * doc/functions/getline.texi: Likewise.
50031
50032 2007-09-09  Jim Meyering  <jim@meyering.net>
50033
50034         * lib/hash.c (hash_initialize): Detect calloc failure.
50035         Reported by Bruno Haible.
50036
50037 2007-09-09  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50040         malloc or realloc fails.
50041
50042 2007-09-09  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/getcwd (Depends-on): Add malloc-posix.
50045         * modules/glob (Depends-on): Likewise.
50046         * modules/putenv (Depends-on): Likewise.
50047         * modules/strdup (Depends-on): Likewise.
50048         * modules/getdelim (Depends-on): Add realloc-posix.
50049         * modules/read-file (Depends-on): Likewise.
50050
50051 2007-09-09  Bruno Haible  <bruno@clisp.org>
50052
50053         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50054         (gl_FUNC_MALLOC_POSIX): Require it.
50055         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50056         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50057         * modules/realloc (Files): Add m4/malloc.m4.
50058         * modules/calloc (Files): Likewise.
50059
50060 2007-09-09  Bruno Haible  <bruno@clisp.org>
50061
50062         * modules/malloc-posix: New file.
50063         * modules/malloc (Depends-on): Add malloc-posix.
50064         * lib/malloc.c: Include errno.h.
50065         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50066         and a POSIX-compatible malloc into a single function. Set ENOMEM
50067         when returning NULL.
50068         * m4/malloc.m4: New file.
50069         * doc/functions/malloc.texi: Mention the malloc-posix module.
50070         * lib/stdlib_.h (malloc): New declaration.
50071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50072         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50073         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50074         and HAVE_MALLOC_POSIX.
50075
50076 2007-09-09  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/realloc-posix: New file.
50079         * modules/realloc (Depends-on): Add realloc-posix.
50080         * lib/realloc.c: Include errno.h.
50081         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50082         and a POSIX-compatible realloc into a single function. Set ENOMEM
50083         when returning NULL.
50084         * m4/realloc.m4: New file.
50085         * doc/functions/realloc.texi: Mention the realloc-posix module.
50086         * lib/stdlib_.h (realloc): New declaration.
50087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50088         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50089         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50090         and HAVE_REALLOC_POSIX.
50091
50092 2007-09-09  Bruno Haible  <bruno@clisp.org>
50093
50094         * modules/calloc-posix: New file.
50095         * modules/calloc (Depends-on): Add calloc-posix.
50096         * lib/calloc.c: Include errno.h.
50097         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50098         and a POSIX-compatible calloc into a single function. Set ENOMEM
50099         when returning NULL.
50100         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50101         * doc/functions/calloc.texi: Mention the calloc-posix module.
50102         * lib/stdlib_.h (calloc): New declaration.
50103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50104         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50105         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50106         and HAVE_CALLOC_POSIX.
50107
50108 2007-09-09  Bruno Haible  <bruno@clisp.org>
50109
50110         Allow for modules to show an arbitrary notice.
50111         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50112         * gnulib-tool: New option --extract-notice.
50113         (func_usage): Document it.
50114         (sed_extract_prog): Update.
50115         (func_get_notice): New function.
50116         (func_modules_notice): New function.
50117         (func_import, func_create_testdir): Invoke it.
50118         Suggested by Jim Meyering.
50119
50120 2007-09-09  Bruno Haible  <bruno@clisp.org>
50121
50122         * gnulib-tool: New options --verbose, --quiet.
50123         (func_usage): Document them.
50124         (verbose): New variable.
50125         (func_execute_command): New function.
50126         (func_import): Don't show the module list and the file list if
50127         $verbose < 0.
50128         (func_create_testdir): Likewise. Use func_execute_command.
50129         (func_create_megatestdir): Use func_execute_command.
50130
50131 2007-09-08  Bruno Haible  <bruno@clisp.org>
50132
50133         * gnulib-tool (func_import): Prefer rsync over wget when available,
50134         for fetching the PO files.
50135
50136 2007-09-08  Bruno Haible  <bruno@clisp.org>
50137
50138         * posix-modules: New file. Portions copied from gnulib-tool.
50139         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50140
50141 2007-09-08  Jim Meyering  <jim@meyering.net>
50142
50143         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50144         * lib/fpending.h: Rename from __fpending.h.
50145         * lib/fpending.c: Rename from __fpending.c.
50146         Include "fpending.h", not "__fpending.h".
50147         * lib/__fpending.h, lib/__fpending.c: Remove files.
50148         * modules/fpending (Files): Reflect new file names.
50149         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50150
50151 2007-09-08  Bruno Haible  <bruno@clisp.org>
50152
50153         * m4/inttypes-h.m4: Remove stub file.
50154
50155 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50156
50157         * doc/headers/stdint.texi: Discuss #include_next issue.
50158
50159 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50162
50163 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50164
50165         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50166         in variable name.
50167
50168 2007-09-03  Jim Meyering  <jim@meyering.net>
50169
50170         New module: git-version-gen.
50171         * modules/git-version-gen: New file.
50172
50173         Import changes from coreutils for bootstrap script.
50174
50175         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50176
50177         bootstrap: uses rsync to download the .po files
50178         * build-aux/bootstrap (po_download_command_format): New global.
50179         (download_po_files): Use rsync.
50180         (update_po_files): Don't remove .po files after download,
50181         so future rsync runs can take advantage of the copies.
50182
50183         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50184
50185         Solve the unnecessary-.po-file-regeneration problem once and for all.
50186         * build-aux/bootstrap (download_po_files): New function, renamed from
50187         get_translations.  Now, downloads, but doesn't update LINGUAS.
50188         (update_po_files): New function.
50189
50190         bootstrap: Ignore more.
50191         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50192         uniwidth to e.g., lib/.gitignore.
50193         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50194
50195         * build-aux/bootstrap: New setting: vc_ignore.
50196         (insert_sorted_if_absent): Create $file if absent.
50197         Adapt to new, possibly empty, list: $vc_ignore.
50198
50199         bootstrap: generate more ignorable names
50200         * build-aux/bootstrap (slurp): When generating ignorable names,
50201         also map .sin to .sed, .gperf to .c, and .y to .c.
50202
50203 2007-09-03  Jim Meyering  <jim@meyering.net>
50204
50205         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50206         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50207
50208 2007-09-02  Bruno Haible  <bruno@clisp.org>
50209
50210         Fix mis-recognition of 'mcs' on QNX 6.
50211         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50212         output contains the string "Mono".
50213         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50214         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50215
50216 2007-09-01  Bruno Haible  <bruno@clisp.org>
50217
50218         Fix collision between uniwidth/* and linebreak modules.
50219         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50220         u32_width): Remove declarations.
50221         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50222         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50223         streq3, streq2, streq1, streq0): Remove functions.
50224         (STREQ): Remove macro.
50225         (is_cjk_encoding): Remove function.
50226         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50227         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50228         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50229         * NEWS: Document the change.
50230
50231 2007-09-01  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/streq.h: Add double-inclusion guard.
50234
50235 2007-09-01  Karl Berry  <karl@gnu.org>
50236
50237         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50238
50239 2007-08-28  Jim Meyering  <jim@meyering.net>
50240
50241         Rename mreadlink_with_size to areadlink_with_size.
50242         * NEWS: Document the change.
50243         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50244         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50245         * lib/mreadlink.h: Rename this to...
50246         * lib/areadlink.h: ...this.
50247         * modules/mreadlink-with-size: Rename this to...
50248         * modules/areadlink-with-size: ...this.
50249         * lib/canonicalize.c: Reflect the renaming.
50250         * modules/canonicalize: Likewise.
50251
50252 2007-08-26  Bruno Haible  <bruno@clisp.org>
50253
50254         * gnulib-tool (func_import): When deciding which files to remove,
50255         consider also dangling symbolic links.
50256         Reported by Eric Blake.
50257
50258 2007-08-26  Bruno Haible  <bruno@clisp.org>
50259
50260         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50261
50262 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50263
50264         * lib/readline.c: Don't include getline.h, the prototype is now
50265         found in stdio.h.
50266
50267 2007-08-23  Jim Meyering  <jim@meyering.net>
50268
50269         Getdelim touchup.
50270         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50271         around the funlockfile call, since funlockfile never sets errno.
50272         Don't set errno upon failed realloc.
50273
50274 2007-08-22  Eric Blake  <ebb9@byu.net>
50275
50276         Getline touchups.
50277         * lib/getdelim.c (getdelim): Revert regression that required *n to
50278         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50280         getdelim, rather than whether implementation is missing.
50281         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50282         * lib/stdio_.h (getline): Also declare if replacement is
50283         required.
50284         * doc/functions/getdelim.texi: New file.
50285         * doc/functions/getline.texi: Likewise.
50286         * doc/gnulib.texi (Function Substitutes): Add new files.
50287         Reported by Bruno Haible.
50288
50289 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50290
50291         * users.txt: Add Guile.
50292
50293 2007-08-22  Eric Blake  <ebb9@byu.net>
50294
50295         * tests/test-getdelim.c (main): Use remove, not unlink.
50296         * tests/test-getline.c (main): Likewise.
50297
50298         Move getline and getdelim into stdio.h, per POSIX 200x.
50299         * modules/getline (Files): Remove getline.h.
50300         (Depends-on): Add stdio.
50301         (configure.ac): Add module indicator.
50302         * modules/getdelim (Files): Remove getdelim.h.
50303         (Depends-on): Add stdio.
50304         (configure.ac): Add module indicator.
50305         * modules/stdio (Makefile.am): Work with new indicators.
50306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50309         * lib/getdelim.h: Delete.
50310         * lib/getline.h: Delete.
50311         * lib/stdio_.h (getdelim, getline): Declare.
50312         * modules/getdelim-tests: New module.
50313         * modules/getline-tests: Likewise.
50314         * tests/test-getdelim.c: New file.
50315         * tests/test-getline.c: Likewise.
50316         * NEWS: Document the change.
50317         * lib/getline.c: Update choice of header.
50318         * lib/csharpcomp.c: Likewise.
50319         * lib/getpass.c: Likewise.
50320         * lib/javacomp.c: Likewise.
50321         * lib/javaversion.c: Likewise.
50322         * lib/yesno.c: Likewise.
50323         * lib/getdelim.c: Likewise.
50324         (getdelim): Set errno on failure, and avoid memory leak.
50325
50326 2007-08-19  Bruno Haible  <bruno@clisp.org>
50327
50328         * modules/closein (Depends-on): Add freadahead.
50329         * lib/closein.c: Include freadahead.h.
50330         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50331         is zero.
50332
50333 2007-08-19  Bruno Haible  <bruno@clisp.org>
50334
50335         * modules/freadahead-tests: New file.
50336         * tests/test-freadahead.sh: New file.
50337         * tests/test-freadahead.c: New file.
50338
50339         * modules/freadahead: New file.
50340         * lib/freadahead.h: New file.
50341         * lib/freadahead.c: New file.
50342         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50343         fbufmode, fpurge, freadable, fwritable.
50344
50345 2007-08-19  Eric Blake  <ebb9@byu.net>
50346
50347         Test yesno in combination with closein.
50348         * lib/yesno.c (yesno): Document use of stdin.
50349         * modules/yesno-tests (Files): New module.
50350         * tests/test-yesno.c (main): New file.
50351         * tests/test-yesno.sh: Likewise.
50352
50353 2007-08-19  Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50356         * lib/fseeko.c (rpl_fseeko): Likewise.
50357         * lib/fseterr.c (fseterr): Likewise.
50358
50359 2007-08-19  Bruno Haible  <bruno@clisp.org>
50360
50361         * tests/test-lseek.c (main): Disable a test for BeOS.
50362         * doc/functions/lseek.texi: Document the BeOS bug.
50363
50364 2007-08-19  Bruno Haible  <bruno@clisp.org>
50365             Eric Blake  <ebb9@byu.net>
50366
50367         * lib/lseek.c: Include <sys/stat.h>.
50368         (rpl_lseek): Add workaround code also for Unix platforms.
50369         Needed for BeOS.
50370         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50371         * doc/functions/lseek.texi: Document BeOS definiency.
50372
50373 2007-08-18  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/fstrcmp-tests: New file.
50376         * tests/test-fstrcmp.c: New file.
50377
50378 2007-08-18  Bruno Haible  <bruno@clisp.org>
50379
50380         * modules/fstrcmp: New file, from GNU gettext with modifications.
50381         * lib/fstrcmp.h: New file, from GNU gettext.
50382         * lib/fstrcmp.c: New file, from GNU gettext.
50383         * MODULES.html.sh (String handling): Add fstrcmp.
50384
50385 2007-08-18  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50388         'bool'.
50389         (diag, compareseq): Remove const from the ctxt argument.
50390         (USE_HEURISTIC): Undefine at the end.
50391
50392 2007-08-18  Jim Meyering  <jim@meyering.net>
50393
50394         New file: lib/idcache.h
50395         * NEWS: Mention the addition.
50396         * modules/idcache (Files): Add lib/idcache.h
50397         * lib/idcache.c: Include "idcache.h".
50398         Don't include <sys/types.h>.
50399         Add a FIXME comment.
50400         Move file-scoped "static" declarations to the top.
50401         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50402
50403 2007-08-17  Bruno Haible  <bruno@clisp.org>
50404         and Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * MODULES.html.sh: Add diffseq.
50407         * modules/diffseq: New file.
50408         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50409         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50410
50411 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50412
50413         Import changes from coreutils for bootstrap script.
50414
50415         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         * build-aux/bootstrap (slurp): Work even in environments where
50418         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50419         current code does not slurp files whose names start with ".", and
50420         this looks like it might be a troublesome area.
50421
50422         2007-07-11  Jim Meyering  <jim@meyering.net>
50423
50424         If there's a GPL vN copyright comment, require that N == 3.
50425
50426         2007-07-08  Jim Meyering  <jim@meyering.net>
50427
50428         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50429         * build-aux/bootstrap (mam_template): Move definition out of loop.
50430
50431         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50432
50433         * build-aux/bootstrap (symlink_to_dir): Rename function from
50434         symlink_to_gnulib.  Add a directory parameter.  Update all
50435         callers.
50436         (cp_mark_as_generated): Also check for -- and link to -- files in
50437         gl/.
50438
50439         2007-07-08  Jim Meyering  <jim@meyering.net>
50440
50441         Adapt to deeper hierarchy in gnulib.
50442         * build-aux/bootstrap (symlink_to_dir): If the destination
50443         directory doesn't exist, create it. This is required at least for
50444         "lib/uniwidth/cjk.h".
50445
50446         2007-05-15  Jim Meyering  <jim@meyering.net>
50447
50448         * build-aux/bootstrap: Now that generated Makefile.am files
50449         are no longer under version control, they must be created at
50450         bootstrap time.
50451
50452 2007-08-14  Ben Pfaff  <blp@gnu.org>
50453
50454         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50455
50456 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50457
50458         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50459         given the changes below.
50460         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50461         even on hosts that have padding bits beyond the supported 64.
50462
50463 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50466         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50467         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50468         depends on it.
50469         (xstrtol_error): Remove.
50470         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50471         but with a different signature.
50472         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50473         * lib/xstrtol-error.c: Include exitfail.h.
50474         (xstrtol_fatal): New function, with a different signature from the
50475         old xstrtol_error, so that the caller need not worry about passing
50476         in an exit status, or about storage management of the option argument.
50477         (xstrtol_error): Now a static function.  Redo signature to
50478         implement xstrtol_fatal.  Output the correct number of hyphens in
50479         front of the option so that the caller need not worry about
50480         storage management.
50481         (N_): New macro.
50482         (_): Remove; not used now.
50483         * modules/xstrtol: Depend on getopt.
50484         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50485         of old STRTOL_FATAL_ERROR macro.
50486         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50487         of test program.
50488         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50489         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50490
50491 2007-08-08  Eric Blake  <ebb9@byu.net>
50492
50493         * lib/xstrtol-error.c: Add missing include.
50494
50495         Move xstrtol messages into gnulib domain, when --pobase is used.
50496         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50497         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50498         * modules/xstrtol (Files): Distribute new file.
50499         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50500         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50501         * tests/test-xstrtol.c: ...into new file.
50502         * tests/test-xstrtoul.c: Also test xstrtoul.
50503         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50504         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50505         * tests/test-xstrtol.sh: Drive the tests.
50506         * tests/test-xstrtoimax.sh: Likewise.
50507         * tests/test-xstrtoumax.sh: Likewise.
50508         * modules/xstrtol-tests: New module.
50509         * modules/xstrtoimax-tests: Likewise.
50510         * modules/xstrtoumax-tests: Likewise.
50511
50512 2007-08-08  Jim Meyering  <jim@meyering.net>
50513
50514         New function: mfile_name_concat.
50515         * lib/filenamecat.c (mfile_name_concat): New function, just like
50516         file_name_concat, but return NULL upon failure rather than exiting
50517         with a diagnostic.
50518         * lib/filenamecat.h: Declare it.
50519
50520 2007-08-07  Bruno Haible  <bruno@clisp.org>
50521
50522         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50523         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50524         warning from gcc.
50525         Reported by Eric Blake.
50526
50527 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50528
50529         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50530         * modules/crypto/arcfour (License): Likewise.
50531         * modules/crypto/des-tests (License): Likewise.
50532         * modules/crypto/gc-arctwo-tests (License): Likewise.
50533         * modules/crypto/gc-des-tests (License): Likewise.
50534         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50535         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50536         * modules/crypto/gc-md2-tests (License): Likewise.
50537         * modules/crypto/gc-md4-tests (License): Likewise.
50538         * modules/crypto/gc-md5-tests (License): Likewise.
50539         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50540         * modules/crypto/gc-rijndael-tests (License): Likewise.
50541         * modules/crypto/gc-sha1-tests (License): Likewise.
50542         * modules/crypto/gc-tests (License): Likewise.
50543         * modules/crypto/hmac-md5 (License): Likewise.
50544         * modules/crypto/hmac-sha1 (License): Likewise.
50545         * modules/crypto/md2-tests (License): Likewise.
50546         * modules/crypto/md4-tests (License): Likewise.
50547         * modules/crypto/md5 (License): Likewise.
50548         * modules/crypto/rijndael (License): Likewise.
50549         * modules/crypto/sha1 (License): Likewise.
50550         * modules/memxor (License): Likewise.
50551
50552 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50553         and Bruno Haible  <bruno@clisp.org>
50554
50555         * NEWS: Describe interface changes to human, xstrtol.
50556         * lib/human.h: Include <xstrtol.h>.
50557         (human_options): Return enum strtol_error, not int.  Remove
50558         bool arg; take int * instead.
50559         * lib/human.c: Don't include "gettext.h".
50560         (_): Remove; no longer used.
50561         Don't include <xstrtol.h>, since human.h does it.
50562         (human_options): Adjust to abovementioned interface changes.
50563         Do not report error to stderr; that's now the caller's
50564         responsibility.
50565         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50566         interface change.
50567         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50568         Str, Argument_type_string.  All uses changed.  Put " argument"
50569         in diagnostics to make them clearer.  Change wording of suffix
50570         message for clarity.
50571         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50572         Argument_type_string.
50573         (STRTOL_FATAL_WARN): Remove; no longer used.
50574         * modules/human (Depends-on): Remove gettext-h.
50575
50576 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50577
50578         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50579
50580 2007-07-31  Bruno Haible  <bruno@clisp.org>
50581
50582         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50583         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50584         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50585
50586 2007-07-31  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50589         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50590
50591 2007-07-30  Bruno Haible  <bruno@clisp.org>
50592
50593         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50594         * modules/c-ctype (License): Likewise.
50595         * modules/c-strcase (License): Likewise.
50596         * modules/check-version (License): Likewise.
50597         * modules/iconv (License): Likewise.
50598         * modules/iconv_open (License): Likewise.
50599         * modules/read-file (License): Likewise.
50600         * modules/striconv (License): Likewise.
50601         * modules/strverscmp (License): Likewise.
50602         * modules/vasprintf (License): Likewise.
50603         * modules/crypto/des (License): Likewise.
50604         * modules/crypto/gc (License): Likewise.
50605         * modules/crypto/gc-arcfour (License): Likewise.
50606         * modules/crypto/gc-arctwo (License): Likewise.
50607         * modules/crypto/gc-des (License): Likewise.
50608         * modules/crypto/gc-hmac-md5 (License): Likewise.
50609         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50610         * modules/crypto/gc-md2 (License): Likewise.
50611         * modules/crypto/gc-md4 (License): Likewise.
50612         * modules/crypto/gc-md5 (License): Likewise.
50613         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50614         * modules/crypto/gc-random (License): Likewise.
50615         * modules/crypto/gc-rijndael (License): Likewise.
50616         * modules/crypto/gc-sha1 (License): Likewise.
50617         * modules/crypto/md2 (License): Likewise.
50618         * modules/crypto/md4 (License): Likewise.
50619
50620 2007-07-30  Jim Meyering  <jim@meyering.net>
50621
50622         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50623         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50624         it has valid stat data.  This bug would cause du not to count the
50625         sizes of inaccessible directories.
50626         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50627         in <http://bugzilla.redhat.com/250077>.
50628
50629 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50630             Bruno Haible  <bruno@clisp.org>
50631
50632         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50633         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50634         #include_next, gives a diagnostic about it, but reports no error in
50635         the exit code.
50636         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50637
50638 2007-07-24  Ben Pfaff  <blp@gnu.org>
50639
50640         Improve name: "count-one-bits" is better than "popcount".
50641         * MODULES.html.sh: Update name.
50642         * lib/popcount.h: Renamed lib/count-one-bits.h.
50643         (popcount): Renamed count_one_bits.
50644         (popcountl): Renamed count_one_bits_l.
50645         (popcountll): Renamed count_one_bits_ll.
50646         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50647         * modules/popcount: Renamed module/count-one-bits.
50648         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50649         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50650
50651 2007-07-23  Ben Pfaff  <blp@gnu.org>
50652
50653         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50654         better code generation, and add U to large constants to avoid
50655         warnings, in non-GCC case.
50656         Suggested by Bruno Haible.
50657
50658 2007-07-23  Ben Pfaff  <blp@gnu.org>
50659
50660         * lib/popcount.h: Use verify_true instead of if...abort.
50661         * modules/popcount: Depend on verify module.
50662         Suggested by Jim Meyering.
50663
50664 2007-07-23  Bruno Haible  <bruno@clisp.org>
50665
50666         * gnulib-tool (func_import): Create a .cvsignore file also when the
50667         directory is not yet in CVS but the toplevel directory is. When
50668         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50669         Reported by Karl Berry.
50670
50671 2007-07-22  Ben Pfaff  <blp@gnu.org>
50672
50673         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50674         case.
50675         Suggested by Eric Blake.
50676
50677 2007-07-22  Ben Pfaff  <blp@gnu.org>
50678
50679         New module: popcount.
50680         * MODULES.html.sh: Add popcount.
50681         * modules/popcount: New file.
50682         * modules/popcount-tests: New file.
50683         * tests/test-popcount.c: New file.
50684         * lib/popcount.h: New file.
50685         * m4/popcount.m4: New file.
50686
50687 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50688
50689         * build-aux/announce-gen: Update to GPLv3.
50690
50691         * build-aux/config.guess: Update from config.
50692
50693 2007-07-21  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50696         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50697
50698 2007-07-20  Jim Meyering  <jim@meyering.net>
50699
50700         * check-module: Diagnose a self-dependency.
50701
50702 2007-07-19  Bruno Haible  <bruno@clisp.org>
50703
50704         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50705         empty.
50706         Reported by Eric Blake.
50707
50708 2007-07-18  Bruno Haible  <bruno@clisp.org>
50709
50710         * gnulib-tool: New options --po-base, --po-domain.
50711         (func_usage): Document them.
50712         (pobase, po_domain): New variables.
50713         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50714         DEFAULT_TEXT_DOMAIN.
50715         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50716         (func_import): Consider pobase and po_domain. Create a po/ directory.
50717         (func_create_testdir): Set pobase and po_domain to empty.
50718         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50719         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50720
50721 2007-07-18  Bruno Haible  <bruno@clisp.org>
50722
50723         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50724         EXTRA_DIST augmentation for files in build-aux/.
50725
50726 2007-07-16  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50729         * modules/getdelim (License): Likewise.
50730
50731 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50732
50733         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50734         * modules/d-type (License): Likewise.
50735         * modules/extensions (License): Likewise.
50736         * modules/fnmatch (License): Likewise.
50737         * modules/fseeko (License): Likewise.
50738         * modules/getaddrinfo (License): Likewise.
50739         * modules/getline (License): Likewise.
50740         * modules/getlogin_r (License): Likewise.
50741         * modules/getpass (License): Likewise.
50742         * modules/gettimeofday (License): Likewise.
50743         * modules/glob (License): Likewise.
50744         * modules/inet_ntop (License): Likewise.
50745         * modules/malloc (License): Likewise.
50746         * modules/malloca (License): Likewise.
50747         * modules/memmem (License): Likewise.
50748         * modules/mempcpy (License): Likewise.
50749         * modules/memset (License): Likewise.
50750         * modules/minmax (License): Likewise.
50751         * modules/mktime (License): Likewise.
50752         * modules/netinet_in (License): Likewise.
50753         * modules/pathmax (License): Likewise.
50754         * modules/poll (License): Likewise.
50755         * modules/regex (License): Likewise.
50756         * modules/snprintf (License): Likewise.
50757         * modules/stdbool (License): Likewise.
50758         * modules/stdint (License): Likewise.
50759         * modules/stdio (License): Likewise.
50760         * modules/strcase (License): Likewise.
50761         * modules/strcasestr (License): Likewise.
50762         * modules/strdup (License): Likewise.
50763         * modules/string (License): Likewise.
50764         * modules/strndup (License): Likewise.
50765         * modules/strnlen (License): Likewise.
50766         * modules/strpbrk (License): Likewise.
50767         * modules/strptime (License): Likewise.
50768         * modules/strsep (License): Likewise.
50769         * modules/sys_select (License): Likewise.
50770         * modules/sys_socket (License): Likewise.
50771         * modules/sys_stat (License): Likewise.
50772         * modules/sys_time (License): Likewise.
50773         * modules/time (License): Likewise.
50774         * modules/time_r (License): Likewise.
50775         * modules/timegm (License): Likewise.
50776         * modules/unistd (License): Likewise.
50777         * modules/vsnprintf (License): Likewise.
50778         * modules/wctype (License): Likewise.
50779
50780 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50781
50782         * modules/argz (License): LGPLv2+.
50783
50784 2007-07-15  Karl Berry  <karl@gnu.org>
50785
50786         * doc/gnulib.texi: revise node structure per new fdl.texi.
50787
50788 2007-07-14  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50791         the output file.
50792         * lib/uniname/uninames.h: Regenerated.
50793
50794 2007-07-14  Karl Berry  <karl@gnu.org>
50795
50796         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50797         omitting sectioning and index commands.
50798
50799 2007-07-13  Bruno Haible  <bruno@clisp.org>
50800
50801         New gnulib-tool option --more-symlinks.
50802         * gnulib-tool (func_usage): Document --more-symlinks.
50803         (do_copyrights): New variable.
50804         Recognize option --more-symlinks.
50805         (func_import): Don't add a copyright notice transform to
50806         sed_transform_lib_file if do_copyrights is empty.
50807
50808 2007-07-13  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/vasnprintf.c (decimal_point_char): Define also if
50811         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50812         && !NEED_PRINTF_DIRECTIVE_A.
50813         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50814         Gary V. Vaughan <gary@gnu.org>.
50815
50816 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50817
50818         * lib/inttypes_.h: Undo previous change, since it was fixed
50819         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50820
50821 2007-07-13  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50824         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50825
50826 2007-07-13  Jim Meyering  <jim@meyering.net>
50827
50828         df: Don't fail for Tru64's "file-on-file mount".
50829         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50830         so we fall through and use statfs instead.  Details here:
50831         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50832         Reported by Albert Chin.
50833
50834 2007-07-13  Bruno Haible  <bruno@clisp.org>
50835
50836         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50837         * modules/configmake (License): Likewise.
50838         * modules/gettext (License): Likewise.
50839         * modules/gettext-h (License): Likewise.
50840         * modules/include_next (License): Likewise.
50841         * modules/link-warning (License): Likewise.
50842         * modules/localcharset (License): Likewise.
50843         * modules/localename (License): Likewise.
50844         * modules/lock (License): Likewise.
50845         * modules/relocatable-lib-lgpl (License): Likewise.
50846         * modules/size_max (License): Likewise.
50847         * modules/vasnprintf (License): Likewise.
50848         * modules/wchar (License): Likewise.
50849         * modules/xsize (License): Likewise.
50850
50851 2007-07-13  Bruno Haible  <bruno@clisp.org>
50852
50853         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50854         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50855
50856 2007-07-12  Bruno Haible  <bruno@clisp.org>
50857
50858         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50859         in the modules files.
50860
50861 2007-07-11  Karl Berry  <karl@gnu.org>
50862
50863         * MODULES.html.sh (func_module): use
50864          sed -e '\|^'"${includefile}"'$|d'
50865          instead of /.../d, to avoid errors on $includefile's containing /.
50866
50867 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50868
50869         * gnulib-tool (func_import): Avoid duplication of --avoid
50870         statements
50871         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50872         names to `_' in variable names.
50873
50874 2007-07-10  Eric Blake  <ebb9@byu.net>
50875
50876         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50877         * NEWS: Document this change.
50878
50879 2007-07-08  Bruno Haible  <bruno@clisp.org>
50880
50881         Update to Unicode 5.0.
50882         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50883         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50884         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50885         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50886         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50887         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50888         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50889         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50890         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50891         U+10A3F, U+1D242..U+1D244.
50892         (nonspacing_table_ind): Update.
50893         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50894         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50895
50896 2007-07-08  Bruno Haible  <bruno@clisp.org>
50897
50898         Update to Unicode 5.0.
50899         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50900         code transform. Extend the name index field of unicode_name_to_code and
50901         unicode_code_to_name from 16 to 24 bits.
50902         * lib/uniname/uniname.c (unicode_character_name,
50903         unicode_name_character): Add the range 0x12xxx to the code transform.
50904         * lib/uniname/uninames.h: Regenerated.
50905         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50906
50907 2007-07-07  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/wcwidth-tests: New file.
50910         * tests/test-wcwidth.c: New file.
50911
50912         Work around MacOS X wcwidth() bug.
50913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50914         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50915         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50916         original wcwidth in non-UTF-8 locales.
50917         * modules/wcwidth (Depends-on): Add localcharset, streq,
50918         uniwidth/width.
50919         * doc/functions/wcwidth.texi: Update.
50920
50921 2007-07-07  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50924         (wcwidth): New declaration.
50925         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50926         macros.
50927         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50928         here. Prepare for creating <wchar.h> unconditionally.
50929         * modules/wchar (Depends-on): Add link-warning.
50930         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50931         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50932         * lib/wcwidth.h: Remove file.
50933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50934         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50935         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50936         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50937         (Include): Replace wcwidth.h with <wchar.h>.
50938         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50939         * lib/mbchar.h: Don't include wcwidth.h.
50940         * lib/mbswidth.c: Likewise.
50941         * NEWS: Mention the change.
50942
50943 2007-07-07  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50946         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50947         definition with an external declaration.
50948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50949         defined as a function. Remove AC_C_INLINE requirement.
50950         * modules/wcwidth (Files): Add lib/wcwidth.c.
50951         (Makefile.am): Remove redundant statement.
50952
50953 2007-07-07  Bruno Haible  <bruno@clisp.org>
50954
50955         * MODULES.html.sh (Unicode string functions): Add the new modules.
50956
50957         * tests/uniwidth/test-u32-strwidth.c: New file.
50958         * modules/uniwidth/u32-strwidth-tests: New file.
50959
50960         * lib/uniwidth/u32-strwidth.c: New file.
50961         * modules/uniwidth/u32-strwidth: New file.
50962
50963         * tests/uniwidth/test-u16-strwidth.c: New file.
50964         * modules/uniwidth/u16-strwidth-tests: New file.
50965
50966         * lib/uniwidth/u16-strwidth.c: New file.
50967         * modules/uniwidth/u16-strwidth: New file.
50968
50969         * tests/uniwidth/test-u8-strwidth.c: New file.
50970         * modules/uniwidth/u8-strwidth-tests: New file.
50971
50972         * lib/uniwidth/u8-strwidth.c: New file.
50973         * modules/uniwidth/u8-strwidth: New file.
50974
50975         * tests/uniwidth/test-u32-width.c: New file.
50976         * modules/uniwidth/u32-width-tests: New file.
50977
50978         * lib/uniwidth/u32-width.c: New file.
50979         * modules/uniwidth/u32-width: New file.
50980
50981         * tests/uniwidth/test-u16-width.c: New file.
50982         * modules/uniwidth/u16-width-tests: New file.
50983
50984         * lib/uniwidth/u16-width.c: New file.
50985         * modules/uniwidth/u16-width: New file.
50986
50987         * tests/uniwidth/test-u8-width.c: New file.
50988         * modules/uniwidth/u8-width-tests: New file.
50989
50990         * lib/uniwidth/u8-width.c: New file.
50991         * modules/uniwidth/u8-width: New file.
50992
50993         * tests/uniwidth/test-uc_width.c: New file.
50994         * modules/uniwidth/width-tests: New file.
50995
50996         * lib/uniwidth/width.c: New file, from GNU libiconv.
50997         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50998         * modules/uniwidth/width: New file.
50999
51000         * lib/uniwidth.h: New file, from GNU libiconv.
51001         * modules/uniwidth/base: New file.
51002
51003 2007-07-07  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/uniname.h: New file, from GNU gettext.
51006         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51007         * lib/uniname/uninames.h: New file, from GNU gettext.
51008         * lib/uniname/uniname.c: New file, from GNU gettext.
51009         * tests/uniname/test-uninames.sh: New file.
51010         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51011         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51012         * modules/uniname/base: New file.
51013         * modules/uniname/uniname: New file.
51014         * modules/uniname/uniname-tests: New file.
51015         * MODULES.html.sh (Unicode string functions): Add the new modules.
51016
51017 2007-07-06  Bruno Haible  <bruno@clisp.org>
51018
51019         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51020
51021 2007-07-06  Bruno Haible  <bruno@clisp.org>
51022
51023         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51024         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51025         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51026         include <sys/time.h>.
51027         Reported by Eric Blake.
51028
51029 2007-07-06  Eric Blake  <ebb9@byu.net>
51030
51031         Fix testing canonicalize on cygwin.
51032         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51033         Revert patch from 2007-06-19.
51034         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51035         canonicalize module is also in use.
51036         * tests/test-canonicalize.c: New file.
51037         * tests/test-canonicalize.sh: Likewise.
51038         * modules/canonicalize-tests: Likewise.
51039
51040 2007-07-06  Jim Meyering  <jim@meyering.net>
51041
51042         * lib/getugroups.c (getugroups): Detect getgrent failure.
51043         Adjust comment to reflect reality: this function may return -1.
51044
51045 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51046
51047         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51048         the new TP address.
51049         (usage): Fix typo
51050         (gnulib_mk): New variable.
51051
51052 2007-07-05  Jim Meyering  <jim@meyering.net>
51053
51054         Don't let endgrent clobber errno, no matter how improbable.
51055         * lib/getugroups.c (getugroups): Save and restore errno around
51056         endgrent call.
51057
51058         Close the group DB even when failing with 2^31 or more members.
51059         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51060
51061 2007-07-04  Jim Meyering  <jim@meyering.net>
51062
51063         * lib/getugroups.h: New file.
51064         * lib/getugroups.c: Include "getugroups.h".
51065         Remove uses of "register" keyword.
51066         Move local variable, "cp", down into scope where used.
51067         Give "username" parameter the "const" attribute.
51068         * modules/getugroups (Files): Add lib/getugroups.h
51069
51070 2007-07-04  Karl Berry  <karl@gnu.org>
51071
51072         * MODULES.html.sh (func_all_modules): Complete rename of
51073         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51074
51075 2007-07-02  Bruno Haible  <bruno@clisp.org>
51076
51077         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51078         mode, when inttypes.h comes from gnulib.
51079         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51080
51081 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51082
51083         * NEWS: Mention lgpl module name change.
51084
51085         * modules/lgpl-2.1: Renamed from lgpl.
51086
51087         * NEWS: Mention gpl module name change.
51088
51089         * modules/gpl-3.0: New file, based on gpl-2.0.
51090
51091         * modules/gpl-2.0: Renamed from gpl.
51092
51093         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51094         doc/gpl-2.0.texi.
51095
51096 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51097
51098         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51099         #define __STDC_LIMIT_MACROS temporarily while including
51100         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51101         Problem reported by Joel E. Denny in
51102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51103
51104 2007-07-01  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/unistdio.h: New file.
51107         * lib/unistdio/u-asnprintf.h: New file.
51108         * lib/unistdio/u-asprintf.h: New file.
51109         * lib/unistdio/u-printf-args.c: New file.
51110         * lib/unistdio/u-printf-args.h: New file.
51111         * lib/unistdio/u-printf-parse.h: New file.
51112         * lib/unistdio/u-snprintf.h: New file.
51113         * lib/unistdio/u-sprintf.h: New file.
51114         * lib/unistdio/u-vasprintf.h: New file.
51115         * lib/unistdio/u-vsnprintf.h: New file.
51116         * lib/unistdio/u-vsprintf.h: New file.
51117         * lib/unistdio/ulc-asnprintf.c: New file.
51118         * lib/unistdio/ulc-asprintf.c: New file.
51119         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51120         * lib/unistdio/ulc-printf-parse.c: New file.
51121         * lib/unistdio/ulc-snprintf.c: New file.
51122         * lib/unistdio/ulc-sprintf.c: New file.
51123         * lib/unistdio/ulc-vasnprintf.c: New file.
51124         * lib/unistdio/ulc-vasprintf.c: New file.
51125         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51126         * lib/unistdio/ulc-vsnprintf.c: New file.
51127         * lib/unistdio/ulc-vsprintf.c: New file.
51128         * lib/unistdio/u8-asnprintf.c: New file.
51129         * lib/unistdio/u8-asprintf.c: New file.
51130         * lib/unistdio/u8-printf-parse.c: New file.
51131         * lib/unistdio/u8-snprintf.c: New file.
51132         * lib/unistdio/u8-sprintf.c: New file.
51133         * lib/unistdio/u8-vasnprintf.c: New file.
51134         * lib/unistdio/u8-vasprintf.c: New file.
51135         * lib/unistdio/u8-vsnprintf.c: New file.
51136         * lib/unistdio/u8-vsprintf.c: New file.
51137         * lib/unistdio/u8-u8-asnprintf.c: New file.
51138         * lib/unistdio/u8-u8-asprintf.c: New file.
51139         * lib/unistdio/u8-u8-snprintf.c: New file.
51140         * lib/unistdio/u8-u8-sprintf.c: New file.
51141         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51142         * lib/unistdio/u8-u8-vasprintf.c: New file.
51143         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51144         * lib/unistdio/u8-u8-vsprintf.c: New file.
51145         * lib/unistdio/u16-asnprintf.c: New file.
51146         * lib/unistdio/u16-asprintf.c: New file.
51147         * lib/unistdio/u16-printf-parse.c: New file.
51148         * lib/unistdio/u16-snprintf.c: New file.
51149         * lib/unistdio/u16-sprintf.c: New file.
51150         * lib/unistdio/u16-vasnprintf.c: New file.
51151         * lib/unistdio/u16-vasprintf.c: New file.
51152         * lib/unistdio/u16-vsnprintf.c: New file.
51153         * lib/unistdio/u16-vsprintf.c: New file.
51154         * lib/unistdio/u16-u16-asnprintf.c: New file.
51155         * lib/unistdio/u16-u16-asprintf.c: New file.
51156         * lib/unistdio/u16-u16-snprintf.c: New file.
51157         * lib/unistdio/u16-u16-sprintf.c: New file.
51158         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51159         * lib/unistdio/u16-u16-vasprintf.c: New file.
51160         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51161         * lib/unistdio/u16-u16-vsprintf.c: New file.
51162         * lib/unistdio/u32-asnprintf.c: New file.
51163         * lib/unistdio/u32-asprintf.c: New file.
51164         * lib/unistdio/u32-printf-parse.c: New file.
51165         * lib/unistdio/u32-snprintf.c: New file.
51166         * lib/unistdio/u32-sprintf.c: New file.
51167         * lib/unistdio/u32-vasnprintf.c: New file.
51168         * lib/unistdio/u32-vasprintf.c: New file.
51169         * lib/unistdio/u32-vsnprintf.c: New file.
51170         * lib/unistdio/u32-vsprintf.c: New file.
51171         * lib/unistdio/u32-u32-asnprintf.c: New file.
51172         * lib/unistdio/u32-u32-asprintf.c: New file.
51173         * lib/unistdio/u32-u32-snprintf.c: New file.
51174         * lib/unistdio/u32-u32-sprintf.c: New file.
51175         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51176         * lib/unistdio/u32-u32-vasprintf.c: New file.
51177         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51178         * lib/unistdio/u32-u32-vsprintf.c: New file.
51179         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51180         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51181         * tests/unistdio/test-ulc-printf1.h: New file.
51182         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51183         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51184         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51185         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51186         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51187         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51188         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51189         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51190         * tests/unistdio/test-u8-asnprintf1.c: New file.
51191         * tests/unistdio/test-u8-asnprintf1.h: New file.
51192         * tests/unistdio/test-u8-printf1.h: New file.
51193         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51194         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51195         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51196         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51197         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51198         * tests/unistdio/test-u8-vasprintf1.c: New file.
51199         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51200         * tests/unistdio/test-u8-vsprintf1.c: New file.
51201         * tests/unistdio/test-u16-asnprintf1.c: New file.
51202         * tests/unistdio/test-u16-asnprintf1.h: New file.
51203         * tests/unistdio/test-u16-printf1.h: New file.
51204         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51205         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51206         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51207         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51208         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51209         * tests/unistdio/test-u16-vasprintf1.c: New file.
51210         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51211         * tests/unistdio/test-u16-vsprintf1.c: New file.
51212         * tests/unistdio/test-u32-asnprintf1.c: New file.
51213         * tests/unistdio/test-u32-asnprintf1.h: New file.
51214         * tests/unistdio/test-u32-printf1.h: New file.
51215         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51216         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51217         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51218         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51219         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51220         * tests/unistdio/test-u32-vasprintf1.c: New file.
51221         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51222         * tests/unistdio/test-u32-vsprintf1.c: New file.
51223         * modules/unistdio/base: New file.
51224         * modules/unistdio/u-printf-args: New file.
51225         * modules/unistdio/ulc-asnprintf: New file.
51226         * modules/unistdio/ulc-asprintf: New file.
51227         * modules/unistdio/ulc-fprintf: New file.
51228         * modules/unistdio/ulc-printf-parse: New file.
51229         * modules/unistdio/ulc-snprintf: New file.
51230         * modules/unistdio/ulc-sprintf: New file.
51231         * modules/unistdio/ulc-vasnprintf: New file.
51232         * modules/unistdio/ulc-vasprintf: New file.
51233         * modules/unistdio/ulc-vfprintf: New file.
51234         * modules/unistdio/ulc-vsnprintf: New file.
51235         * modules/unistdio/ulc-vsprintf: New file.
51236         * modules/unistdio/u8-asnprintf: New file.
51237         * modules/unistdio/u8-asprintf: New file.
51238         * modules/unistdio/u8-printf-parse: New file.
51239         * modules/unistdio/u8-snprintf: New file.
51240         * modules/unistdio/u8-sprintf: New file.
51241         * modules/unistdio/u8-vasnprintf: New file.
51242         * modules/unistdio/u8-vasprintf: New file.
51243         * modules/unistdio/u8-vsnprintf: New file.
51244         * modules/unistdio/u8-vsprintf: New file.
51245         * modules/unistdio/u8-u8-asnprintf: New file.
51246         * modules/unistdio/u8-u8-asprintf: New file.
51247         * modules/unistdio/u8-u8-snprintf: New file.
51248         * modules/unistdio/u8-u8-sprintf: New file.
51249         * modules/unistdio/u8-u8-vasnprintf: New file.
51250         * modules/unistdio/u8-u8-vasprintf: New file.
51251         * modules/unistdio/u8-u8-vsnprintf: New file.
51252         * modules/unistdio/u8-u8-vsprintf: New file.
51253         * modules/unistdio/u16-asnprintf: New file.
51254         * modules/unistdio/u16-asprintf: New file.
51255         * modules/unistdio/u16-printf-parse: New file.
51256         * modules/unistdio/u16-snprintf: New file.
51257         * modules/unistdio/u16-sprintf: New file.
51258         * modules/unistdio/u16-vasnprintf: New file.
51259         * modules/unistdio/u16-vasprintf: New file.
51260         * modules/unistdio/u16-vsnprintf: New file.
51261         * modules/unistdio/u16-vsprintf: New file.
51262         * modules/unistdio/u16-u16-asnprintf: New file.
51263         * modules/unistdio/u16-u16-asprintf: New file.
51264         * modules/unistdio/u16-u16-snprintf: New file.
51265         * modules/unistdio/u16-u16-sprintf: New file.
51266         * modules/unistdio/u16-u16-vasnprintf: New file.
51267         * modules/unistdio/u16-u16-vasprintf: New file.
51268         * modules/unistdio/u16-u16-vsnprintf: New file.
51269         * modules/unistdio/u16-u16-vsprintf: New file.
51270         * modules/unistdio/u32-asnprintf: New file.
51271         * modules/unistdio/u32-asprintf: New file.
51272         * modules/unistdio/u32-printf-parse: New file.
51273         * modules/unistdio/u32-snprintf: New file.
51274         * modules/unistdio/u32-sprintf: New file.
51275         * modules/unistdio/u32-vasnprintf: New file.
51276         * modules/unistdio/u32-vasprintf: New file.
51277         * modules/unistdio/u32-vsnprintf: New file.
51278         * modules/unistdio/u32-vsprintf: New file.
51279         * modules/unistdio/u32-u32-asnprintf: New file.
51280         * modules/unistdio/u32-u32-asprintf: New file.
51281         * modules/unistdio/u32-u32-snprintf: New file.
51282         * modules/unistdio/u32-u32-sprintf: New file.
51283         * modules/unistdio/u32-u32-vasnprintf: New file.
51284         * modules/unistdio/u32-u32-vasprintf: New file.
51285         * modules/unistdio/u32-u32-vsnprintf: New file.
51286         * modules/unistdio/u32-u32-vsprintf: New file.
51287         * modules/unistdio/ulc-asnprintf-tests: New file.
51288         * modules/unistdio/ulc-vasnprintf-tests: New file.
51289         * modules/unistdio/ulc-vasprintf-tests: New file.
51290         * modules/unistdio/ulc-vsnprintf-tests: New file.
51291         * modules/unistdio/ulc-vsprintf-tests: New file.
51292         * modules/unistdio/u8-asnprintf-tests: New file.
51293         * modules/unistdio/u8-vasnprintf-tests: New file.
51294         * modules/unistdio/u8-vasprintf-tests: New file.
51295         * modules/unistdio/u8-vsnprintf-tests: New file.
51296         * modules/unistdio/u8-vsprintf-tests: New file.
51297         * modules/unistdio/u16-asnprintf-tests: New file.
51298         * modules/unistdio/u16-vasnprintf-tests: New file.
51299         * modules/unistdio/u16-vasprintf-tests: New file.
51300         * modules/unistdio/u16-vsnprintf-tests: New file.
51301         * modules/unistdio/u16-vsprintf-tests: New file.
51302         * modules/unistdio/u32-asnprintf-tests: New file.
51303         * modules/unistdio/u32-vasnprintf-tests: New file.
51304         * modules/unistdio/u32-vasprintf-tests: New file.
51305         * modules/unistdio/u32-vsnprintf-tests: New file.
51306         * modules/unistdio/u32-vsprintf-tests: New file.
51307         * MODULES.html.sh (Unicode string functions): Add the new modules.
51308
51309 2007-07-01  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/sprintf.c (sprintf): Limit the available length estimation,
51312         to avoid address wraparound.
51313         * lib/vsprintf.c (vsprintf): Likewise.
51314         * modules/sprintf-posix (Dependencies): Add stdint.
51315         * modules/vsprintf-posix (Dependencies): Likewise.
51316
51317 2007-07-01  Bruno Haible  <bruno@clisp.org>
51318
51319         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51320         Windows PATH as well. Conservative double-quoting. Comments.
51321
51322 2007-07-01  Bruno Haible  <bruno@clisp.org>
51323             Eric Blake  <ebb9@byu.net>
51324             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51325
51326         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51327         empty components in $PATH, denoting '.'.
51328
51329 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51330
51331         * gnulib-tool: Fix indentation.
51332         (func_create_megatestdir): Likewise.
51333         Report by Bruno Haible.
51334
51335 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51336
51337         Sync from Automake.
51338         * build-aux/gnupload: Fix shell portability issues with for loops.
51339         Report by Karl Berry.
51340
51341 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51342
51343         * build-aux/maint.mk (POURL): Use translationproject.org.
51344
51345 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51346             Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51349         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51350         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51351         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51352         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51353
51354 2007-06-27  Bruno Haible  <bruno@clisp.org>
51355
51356         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51357         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51358
51359 2007-06-26  Karl Berry  <karl@gnu.org>
51360
51361         * MODULES.html.sh: remove xreadlink-with-size.
51362
51363 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51366         method that I hope also handles the double-include problem noted
51367         by Bruno Haible in
51368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51369
51370 2007-06-23  Bruno Haible  <bruno@clisp.org>
51371
51372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51373         Don't let the 'mostlyclean' target fail if the last subdirectory could
51374         not be removed.
51375         Reported by Karl Berry.
51376
51377 2007-06-23  Bruno Haible  <bruno@clisp.org>
51378
51379         * gnulib-tool (echo): Add a speedier workaround for ksh.
51380         * tests/test-echo.sh: Likewise.
51381
51382 2007-06-23  Bruno Haible  <bruno@clisp.org>
51383
51384         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51385         * tests/test-echo.sh: Likewise.
51386
51387 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51388
51389         * gnulib-tool (IFS): Initialize early, so we don't set it to
51390         empty later.
51391         (self_abspathname): Rewrite algorithm to set it, reindent.
51392         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51393         (func_create_megatestdir): Merge some sed scripts.
51394
51395 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51396
51397         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51398         exposed by Sun Studio 11 cc on Solaris 8.
51399
51400 2007-06-22  Bruno Haible  <bruno@clisp.org>
51401
51402         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51403         backslashes.
51404         * tests/test-echo.sh: New file.
51405
51406 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51407
51408         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51409         simplify `sed_replace_build_aux' scripts, they are portable but
51410         echoing them with `echo' is not.
51411         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51412
51413 2007-06-21  Karl Berry  <karl@gnu.org>
51414
51415         * config/srclist.txt: guess we can't handle the licenses via
51416         srclist at the moment.
51417
51418 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         * MODULES.html.sh: Add include_next.
51421         * modules/include_next: New file.
51422
51423 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51424
51425         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51426         INCLUDE_NEXT.
51427         (gl_CHECK_NEXT_HEADERS): New macro.
51428         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51429         the obsolescent gl_ABSOLUTE_HEADER.
51430         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51431         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51432         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51433         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51434         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51435         * m4/math_h.m4 (gl_MATH_H): Likewise.
51436         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51437         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51438         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51439         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51440         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51441         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51447         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51448         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51449         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51450         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51451         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51452         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51453         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51454         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51455         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51456         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51457         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51458         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51459         * lib/float_.h: Likewise.
51460         * lib/inttypes_.h: Likewise.
51461         * lib/math_.h: Likewise.
51462         * lib/search_.h: Likewise.
51463         * lib/signal_.h: Likewise.
51464         * lib/stdint_.h: Likewise.
51465         * lib/stdio_.h: Likewise.
51466         * lib/stdlib_.h: Likewise.
51467         * lib/string_.h: Likewise.
51468         * lib/sys_stat_.h: Likewise.
51469         * lib/sys_time_.h: Likewise.
51470         * lib/time_.h: Likewise.
51471         * lib/unistd_.h: Likewise.
51472         * lib/wchar_.h: Likewise.
51473         * lib/wctype_.h: Likewise.
51474         * lib/dirent_.h: Likewise.
51475         * lib/iconv_.h: Likewise.
51476         * lib/locale_.h: Likewise.
51477         * lib/netinet_in_.h: Likewise.
51478         * lib/sys_select_.h: Likewise.
51479         * lib/sys_socket_.h: Likewise.
51480         * lib/sysexits_.h: Likewise.
51481         * modules/fcntl (Depends-on): Depend on include_next, not
51482         absolute_header.
51483         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51484         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51485         * modules/fchdir: Likewise.
51486         * modules/float: Likewise.
51487         * modules/iconv_open: Likewise.
51488         * modules/inttypes: Likewise.
51489         * modules/locale: Likewise.
51490         * modules/math: Likewise.
51491         * modules/netinet_in: Likewise.
51492         * modules/search: Likewise.
51493         * modules/signal: Likewise.
51494         * modules/stdint: Likewise.
51495         * modules/stdio: Likewise.
51496         * modules/stdlib: Likewise.
51497         * modules/string: Likewise.
51498         * modules/sys_select: Likewise.
51499         * modules/sys_socket: Likewise.
51500         * modules/sys_stat: Likewise.
51501         * modules/sys_time: Likewise.
51502         * modules/sysexits: Likewise.
51503         * modules/time: Likewise.
51504         * modules/unistd: Likewise.
51505         * modules/wchar: Likewise.
51506         * modules/wctype: Likewise.
51507         * modules/sys_stat: Change maintainer to "all".
51508         * modules/unistd: Likewise.
51509
51510 2007-06-20  Karl Berry  <karl@gnu.org>
51511
51512         * config/srclist.txt: track www changes in license files.
51513
51514 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51515
51516         * build-aux/bootstrap: Remove stray dot.
51517         Make sure build_aux settings are honored when linking
51518         gnulib_extra_files.
51519
51520 2007-06-19  Eric Blake  <ebb9@byu.net>
51521
51522         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51523         Allow compilation on cygwin.
51524
51525 2007-06-19  Jim Meyering  <jim@meyering.net>
51526
51527         xreadlink-with-size: Remove module.  No longer used.
51528         Ex-callers now use xreadlink or mreadlink-with-size.
51529         * modules/xreadlink-with-size: Remove module.
51530         * lib/xreadlink-with-size.c: Remove file.
51531         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51532         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51533         just before the function definition *is* accurate.
51534
51535         Eliminate one way canonicalize_filename_mode could exit.
51536         * lib/canonicalize.c (canonicalize_filename_mode):
51537         Use mreadlink_with_size, not xreadlink_with_size.
51538
51539 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         Detect porting problems to FreeBSD/arm, which has time_t wider than
51542         long int.  Original problem reported for GNU diff by Xin Li in
51543         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51544         * modules/getdate (Depends-on): Add intprops, verify.
51545         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51546         is an integer type no wider than long int.
51547
51548 2007-06-18  Jim Meyering  <jim@meyering.net>
51549
51550         New module: mreadlink-with-size.
51551         * MODULES.html.sh: Add mreadlink-with-size.
51552         * modules/mreadlink-with-size: New module
51553         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51554         not xreadlink-with-size.
51555         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51556
51557 2007-06-16  Bruno Haible  <bruno@clisp.org>
51558
51559         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51560         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51561         Reported by Gary V. Vaughan <gary@gnu.org>.
51562
51563 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51564
51565         Revamp lchown so that it lives in unistd.h where it belongs.
51566         * lib/lchown.h: Remove.
51567         * lib/dirchownmod.c: Don't include lib/lchown.h.
51568         * lib/fchownat.c: Likewise.
51569         * lib/openat.c: Likewise.
51570         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51571         does not follow symlinks.
51572         (EOPNOTSUPP): Define if not defined.
51573         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51574         is defined to 0.
51575         (lchown): New decl.
51576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51577         Do not check for lchown decl.
51578         Set REPLACE_LCHOWN.
51579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51580         REPLACE_LCHOWN.
51581         * modules/chown: Make it clear it follows symlinks.
51582         * modules/lchown: Make it clear it doesn't follow symlinks.
51583         (Files): Remove lib/lchown.h
51584         (Depends-on): Add unistd.
51585         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51586         (Include): Include <unistd.h>, not "lchown.h".
51587         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51588         REPLACE_LCHOWN.
51589
51590 2007-06-15  Jim Meyering  <jim@meyering.net>
51591
51592         Change license (GPL to LGPL) of fsusage and dependents.
51593         * modules/fsusage (License): Change to LGPL.
51594         * modules/full-read (License): Likewise.
51595         * modules/full-write (License): Likewise.
51596         * modules/safe-read (License): Likewise.
51597         * modules/safe-write (License): Likewise.
51598
51599 2007-06-14  Ben Pfaff  <blp@gnu.org>
51600
51601         Missing part of allocsa -> malloca transition.
51602         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51603         gl_MALLOCA.
51604
51605 2007-06-12  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51608         to ia64, x86_64, i386.
51609         Reported by Eric Blake.
51610
51611 2007-06-12  Bruno Haible  <bruno@clisp.org>
51612
51613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51614         cross-compiling to x86_64.
51615
51616 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51617
51618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51619         glitch reported by Ralf Wildenhues in
51620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51621
51622         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51623         Vin Shelton.
51624
51625 2007-06-11  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51628         replacement string.
51629         Reported by Eric Blake.
51630
51631 2007-06-10  Bruno Haible  <bruno@clisp.org>
51632
51633         Prepare vasnprintf code for use with Unicode strings.
51634         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51635         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51636         TYPE_U32_STRING.
51637         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51638         a_u32_string variants.
51639         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51640         * lib/printf-args.c: Don't include config.h and the specification
51641         header if PRINTF_FETCHARGS is already defined.
51642         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51643         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51644         TYPE_U16_STRING, TYPE_U32_STRING.
51645         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51646         u16_directive, u16_directives, u32_directive, u32_directives): New
51647         types.
51648         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51649         New declarations.
51650         * lib/printf-parse.c: Don't include config.h and the specification
51651         header if PRINTF_PARSE is already defined. Eliminate the set of
51652         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51653         them now. Include c-ctype.h.
51654         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51655         directive and CHAR_T_ONLY_ASCII.
51656         * lib/vasnprintf.c: Don't include config.h and the specification header
51657         if VASNPRINTF is already defined.
51658         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51659         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51660         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51661         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51662         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51663         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51664         code accordingly.
51665         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51666         pad_ourselves also in this case, with the 'c' and 's' directives, and
51667         with a different notion of "width".
51668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51669
51670 2007-06-10  Bruno Haible  <bruno@clisp.org>
51671
51672         * modules/unistr/u32-mbsnlen: New file.
51673         * lib/unistr/u32-mbsnlen.c: New file.
51674
51675         * modules/unistr/u16-mbsnlen: New file.
51676         * lib/unistr/u16-mbsnlen.c: New file.
51677
51678         * modules/unistr/u8-mbsnlen: New file.
51679         * lib/unistr/u8-mbsnlen.c: New file.
51680
51681         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51682         declarations.
51683
51684 2007-06-10  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/string_.h (mbsnlen): New declaration.
51687         * lib/mbsnlen.c: New file.
51688         * m4/mbsnlen.m4: New file.
51689         * modules/mbsnlen: New file.
51690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51691         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51692         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51693
51694 2007-06-10  Bruno Haible  <bruno@clisp.org>
51695
51696         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51697
51698 2007-06-10  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51701         * lib/mbuiter.h: Likewise.
51702
51703 2007-06-10  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51706         declaration.
51707
51708 2007-06-10  Karl Berry  <karl@gnu.org>
51709
51710         * config/srclist.txt: remove gettext entries, Bruno prefers
51711         to update individually.
51712
51713 2007-06-10  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51716         'maxlen'. Ensure only length + width bytes are allocated, not
51717         length + 1 + width.
51718
51719 2007-06-09  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51722         (CHAR_T): Remove macro.
51723         (VASNPRINTF): Update.
51724
51725 2007-06-09  Bruno Haible  <bruno@clisp.org>
51726
51727         * MODULES.html.sh (Unicode string functions): Add the new modules.
51728
51729         * modules/uniconv/u32-conv-to-enc: New file.
51730         * lib/uniconv/u32-conv-to-enc.c: New file.
51731         * modules/uniconv/u32-conv-to-enc-tests: New file.
51732         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51733
51734         * modules/uniconv/u16-conv-to-enc: New file.
51735         * lib/uniconv/u16-conv-to-enc.c: New file.
51736         * lib/uniconv/u-conv-to-enc.h: New file.
51737         * modules/uniconv/u16-conv-to-enc-tests: New file.
51738         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51739
51740         * modules/uniconv/u8-conv-to-enc: New file.
51741         * lib/uniconv/u8-conv-to-enc.c: New file.
51742         * modules/uniconv/u8-conv-to-enc-tests: New file.
51743         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51744
51745         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51746         u32_conv_to_encoding): New declarations.
51747
51748 2007-06-09  Bruno Haible  <bruno@clisp.org>
51749
51750         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51751
51752 2007-06-09  Bruno Haible  <bruno@clisp.org>
51753
51754         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51755         * modules/malloca: Renamed from modules/allocsa, updated.
51756         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51757         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51758         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51759         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51760         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51761         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51762         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51763         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51764         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51765         * modules/c-strcasestr (Depends-on): Update.
51766         * lib/c-strcasestr.c: Update.
51767         * modules/c-strstr (Depends-on): Update.
51768         * lib/c-strstr.c: Update.
51769         * modules/canonicalize-lgpl (Depends-on): Update.
51770         * lib/canonicalize-lgpl.c: Update.
51771         * modules/clean-temp (Depends-on): Update.
51772         * lib/clean-temp.c: Update.
51773         * modules/csharpcomp (Depends-on): Update.
51774         * lib/csharpcomp.c: Update.
51775         * modules/csharpexec (Depends-on): Update.
51776         * lib/csharpexec.c: Update.
51777         * modules/javacomp (Depends-on): Update.
51778         * lib/javacomp.c: Update.
51779         * modules/javaexec (Depends-on): Update.
51780         * lib/javaexec.c: Update.
51781         * modules/mbscasestr (Depends-on): Update.
51782         * lib/mbscasestr.c: Update.
51783         * modules/mbsstr (Depends-on): Update.
51784         * lib/mbsstr.c: Update.
51785         * modules/setenv (Depends-on): Update.
51786         * lib/setenv.c: Update.
51787         * modules/strcasestr (Depends-on): Update.
51788         * lib/strcasestr.c: Update.
51789         * modules/striconveha (Depends-on): Update.
51790         * lib/striconveha.c: Update.
51791         * modules/relocatable-prog-wrapper (Files): Update.
51792         * lib/relocwrapper.c: Update.
51793         * build-aux/install-reloc: Update.
51794         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51795
51796 2007-06-08  Bruno Haible  <bruno@clisp.org>
51797
51798         Port to uClibc.
51799         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51800         * lib/fpurge.c (fpurge): Likewise.
51801         * lib/freading.c (freading): Likewise.
51802         * lib/fseeko.c (rpl_fseeko): Likewise.
51803         * lib/fseterr.c (fseterr): Likewise.
51804         * lib/fwriting.c (fwriting): Likewise.
51805         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51806
51807 2007-06-08  Bruno Haible  <bruno@clisp.org>
51808
51809         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51810         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51811         * modules/gettext (Files): Add m4/intlmacosx.m4.
51812
51813 2007-06-07  Bruno Haible  <bruno@clisp.org>
51814
51815         * modules/localename-tests: New file.
51816         * tests/test-localename.c: New file.
51817
51818         New module 'localename'.
51819         * lib/localename.h: New file.
51820         * lib/localename.c: New file, from GNU gettext.
51821         * m4/localename.m4: New file.
51822         * modules/localename: New file.
51823
51824 2007-06-07  Bruno Haible  <bruno@clisp.org>
51825
51826         Work around the lack of <wchar.h> on some builds of uClibc.
51827         * doc/headers/wchar.texi: Update.
51828         * lib/wchar_.h: Include <wchar.h> only if it exists.
51829         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51830         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51831         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51832         doesn't exist.
51833         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51834         * modules/mbfile (Depends-on): Add wchar.
51835         * modules/mbiter (Depends-on): Likewise.
51836         * modules/mbuiter (Depends-on): Likewise.
51837         Reported by Simon Josefsson.
51838
51839 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         Work around problem reported by Steven M. Schweda in
51842         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51843         Tru64 5.1B with the Compaq compiler environment installed declares
51844         an 'isblank' function but does not define it in the C library.
51845         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51846         * lib/regex_internal.h (isblank): Likewise.
51847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51848         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51849
51850 2007-06-05  Bruno Haible  <bruno@clisp.org>
51851
51852         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51853         ia64.
51854         * modules/printf-safe: New file.
51855         * modules/fprintf-posix (Depends-on): Add printf-safe.
51856         * modules/printf-posix (Depends-on): Likewise.
51857         * modules/snprintf-posix (Depends-on): Likewise.
51858         * modules/sprintf-posix (Depends-on): Likewise.
51859         * modules/vasnprintf-posix (Depends-on): Likewise.
51860         * modules/vasprintf-posix (Depends-on): Likewise.
51861         * modules/vfprintf-posix (Depends-on): Likewise.
51862         * modules/vprintf-posix (Depends-on): Likewise.
51863         * modules/vsnprintf-posix (Depends-on): Likewise.
51864         * modules/vsprintf-posix (Depends-on): Likewise.
51865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51866         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51867         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51868         "no" on i386, x86_64, ia64.
51869         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51870         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51871         on i386, x86_64, ia64.
51872         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51873         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51874         on i386, x86_64, ia64.
51875         * tests/test-vasnprintf-posix.c: Include float.h.
51876         (LDBL80_WORDS): New macro.
51877         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51878         on i386, x86_64, ia64.
51879         * tests/test-vasprintf-posix.c: Include float.h.
51880         (LDBL80_WORDS): New macro.
51881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51882         on i386, x86_64, ia64.
51883         * tests/test-snprintf-posix.c: Include float.h.
51884         * tests/test-sprintf-posix.c: Likewise.
51885         * tests/test-vsnprintf-posix.c: Likewise.
51886         * tests/test-vsprintf-posix.c: Likewise.
51887
51888 2007-06-05  Bruno Haible  <bruno@clisp.org>
51889
51890         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51892         non-IEEE numbers on i386, x86_64, ia64.
51893         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51894         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51895         * tests/test-isnanl.h: Include float.h.
51896         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51897
51898 2007-06-05  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51901         also the %a / %A. Handle the %a / %A code before this extra handling.
51902
51903 2007-06-05  Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51906         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51907
51908 2007-06-05  Bruno Haible  <bruno@clisp.org>
51909
51910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51911         typo in variable name.
51912
51913 2007-06-05  Eric Blake  <ebb9@byu.net>
51914
51915         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51916         Reported by Simon Josefsson.
51917
51918 2007-06-04  Bruno Haible  <bruno@clisp.org>
51919
51920         Avoid test failures on some PowerPC platforms.
51921         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51922         Define differently for PowerPC.
51923         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51924         Reported by Gary V. Vaughan <gary@gnu.org>.
51925
51926 2007-06-02  Bruno Haible  <bruno@clisp.org>
51927
51928         Fix test-stdint failure on FreeBSD/ia64.
51929         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51930         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51931         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51932         * doc/headers/stdint.texi: Update.
51933
51934 2007-06-01  Bruno Haible  <bruno@clisp.org>
51935
51936         * tests/test-binary-io.c (main): Pass a third argument to open().
51937         Reported by Gary V. Vaughan <gary@gnu.org>.
51938
51939 2007-06-01  Bruno Haible  <bruno@clisp.org>
51940
51941         * doc/functions/frexpl.texi: Update for mingw.
51942
51943 2007-06-01  Bruno Haible  <bruno@clisp.org>
51944
51945         * tests/test-lseek.c (main): Disable test of errno for invalid third
51946         argument.
51947         * doc/functions/lseek.texi: Update.
51948         Reported by Gary V. Vaughan <gary@gnu.org>.
51949
51950 2007-05-28  Bruno Haible  <bruno@clisp.org>
51951
51952         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51953
51954 2007-05-31  Eric Blake  <ebb9@byu.net>
51955
51956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51957         cross compiling.
51958
51959 2007-05-30  Eric Blake  <ebb9@byu.net>
51960         and Bruno Haible  <bruno@clisp.org>
51961
51962         Work around mingw test failures exposed by m4-1.4.9b.
51963         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51964         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51965         moment.
51966
51967 2007-05-30  Bruno Haible  <bruno@clisp.org>
51968
51969         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51970         assuming that they are closed. Needed on HP-UX 11.
51971
51972 2007-05-29  Bruno Haible  <bruno@clisp.org>
51973
51974         Fix a problem with #include_next.
51975         * lib/dirent_.h: Split the double-inclusion guard.
51976         * lib/fcntl_.h: Likewise.
51977         * lib/float_.h: Likewise.
51978         * lib/iconv_.h: Likewise.
51979         * lib/inttypes_.h: Likewise.
51980         * lib/locale_.h: Likewise.
51981         * lib/math_.h: Likewise.
51982         * lib/netinet_in_.h: Likewise.
51983         * lib/search_.h: Likewise.
51984         * lib/signal_.h: Likewise.
51985         * lib/stdint_.h: Likewise.
51986         * lib/stdio_.h: Likewise.
51987         * lib/stdlib_.h: Likewise.
51988         * lib/string_.h: Likewise.
51989         * lib/sys_select_.h: Likewise.
51990         * lib/sys_socket_.h: Likewise.
51991         * lib/sys_stat_.h: Likewise.
51992         * lib/sys_time_.h: Likewise.
51993         * lib/sysexits_.h: Likewise.
51994         * lib/time_.h: Likewise.
51995         * lib/unistd_.h: Likewise.
51996         * lib/wchar_.h: Likewise.
51997         * lib/wctype_.h: Likewise.
51998
51999 2007-05-29  Bruno Haible  <bruno@clisp.org>
52000
52001         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52002         for the moment.
52003
52004 2007-05-29  Bruno Haible  <bruno@clisp.org>
52005
52006         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52007         invocation.
52008         Reported by Eric Blake.
52009
52010 2007-05-29  Bruno Haible  <bruno@clisp.org>
52011
52012         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52013         compiling case.
52014
52015 2007-05-29  Eric Blake  <ebb9@byu.net>
52016             Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52019         cross compiles.
52020
52021 2007-05-28  Eric Blake  <ebb9@byu.net>
52022
52023         * modules/closein-tests (test_closein_LDADD): Support test on
52024         cygwin with libtool.
52025
52026 2007-05-28  Bruno Haible  <bruno@clisp.org>
52027
52028         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52029         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52030         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52031         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52034         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52035         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52036         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52037
52038 2007-05-28  Eric Blake  <ebb9@byu.net>
52039
52040         Unconditionally include <config.h> in unit tests.
52041         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52042         * tests/test-allocsa.c, tests/test-arcfour.c,
52043         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52044         tests/test-array_list.c, tests/test-array_oset.c,
52045         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52046         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52047         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52048         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52049         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52050         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52051         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52052         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52053         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52054         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52055         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52056         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52057         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52058         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52059         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52060         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52061         test-md5.c, test-memmem.c, test-printf-posix.c,
52062         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52063         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52064         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52065         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52066         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52067         test-vasnprintf-posix2.c, test-vasnprintf.c,
52068         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52069         test-vfprintf-posix.c, test-vprintf-posix.c,
52070         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52071         test-xvasprintf.c: Likewise.
52072
52073 2007-05-28  Bruno Haible  <bruno@clisp.org>
52074
52075         * gnulib-tool (func_import): Remember the --with-tests command-line
52076         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52077         Reported by Eric Blake.
52078
52079 2007-05-28  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/ftell-tests: New file.
52082         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52083         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52084
52085         * lib/ftell.c: New file.
52086         * modules/ftell: New file.
52087         * m4/ftell.m4: New file.
52088         * doc/functions/ftell.texi: Update.
52089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52090         REPLACE_FTELL.
52091         * lib/stdio_.h (rpl_ftell): New declaration.
52092         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52093         REPLACE_FTELL.
52094
52095 2007-05-28  Eric Blake  <ebb9@byu.net>
52096
52097         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52098
52099 2007-05-28  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/fseek-tests: New file.
52102         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52103         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52104
52105         * lib/fseek.c: New file.
52106         * modules/fseek: New file.
52107         * m4/fseek.m4: New file.
52108         * doc/functions/fseek.texi: Update.
52109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52110         REPLACE_FSEEK.
52111         * lib/stdio_.h (rpl_fseek): New declaration.
52112         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52113         REPLACE_FSEEK.
52114
52115 2007-05-28  Bruno Haible  <bruno@clisp.org>
52116
52117         * lib/stdio_.h (fflush): More comments.
52118
52119 2007-05-28  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52122         runtime test.
52123
52124 2007-05-28  Eric Blake  <ebb9@byu.net>
52125
52126         Improve lseek module.
52127         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52128         * lib/unistd_.h (lseek): Scale back link warning message.
52129         * tests/test-lseek.c: Beef up test.
52130         * tests/test-lseek.sh: Exercise more facets of lseek.
52131         Reported by Bruno Haible.
52132
52133 2007-05-28  Bruno Haible  <bruno@clisp.org>
52134
52135         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52136         to define.
52137
52138 2007-05-27  Bruno Haible  <bruno@clisp.org>
52139
52140         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52141
52142 2007-05-27  Bruno Haible  <bruno@clisp.org>
52143
52144         * modules/openmp: New file.
52145         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52146         Noah Misch.
52147
52148 2007-05-26  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/chdir-long (Depends-on): Add fchdir.
52151         * modules/chdir-safer (Depends-on): Likewise.
52152         * modules/fts (Depends-on): Likewise.
52153         * modules/fts-lgpl (Depends-on): Likewise.
52154         * modules/openat (Depends-on): Likewise.
52155         * modules/savewd (Depends-on): Likewise.
52156
52157 2007-05-24  Eric Blake  <ebb9@byu.net>
52158
52159         Fix lseek on mingw.
52160         * modules/lseek: New module.
52161         * m4/lseek.m4: New file.
52162         * lib/lseek.c: New file.
52163         * modules/lseek-tests: New file.
52164         * tests/test-lseek.c: New file.
52165         * tests/test-lseek.sh: New file.
52166         * MODULES.html.sh: Document lseek module.
52167         * modules/fflush (Depends-on): Add lseek, fseeko.
52168         * modules/fseeko (Depends-on): Likewise.
52169         * modules/ftello (Depends-on): Likewise.
52170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52171         broken.
52172         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52173         broken.
52174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52175         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52176         * lib/ftello.c (rpl_ftello): Likewise.
52177         * tests/test-fseeko.c (main): Test this.
52178         * tests/test-fseeko.sh: Likewise.
52179         * tests/test-ftello.c (main): Likewise.
52180         * tests/test-ftello.sh: Likewise.
52181         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52182         implies replacing fseek.
52183         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52184         HAVE_FTELLO.
52185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52186         * modules/unistd (Makefile.am): Likewise.
52187         * lib/unistd_.h (lseek): Declare a replacement.
52188         * doc/functions/lseek.texi (lseek): Document this fix.
52189         * doc/functions/fseek.texi (fseek): Likewise.
52190         * doc/functions/ftell.texi (ftell): Likewise.
52191
52192 2007-05-24  Bruno Haible  <bruno@clisp.org>
52193
52194         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52195         in the printed representation of a 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         Reported by Eric Blake.
52200
52201 2007-05-23  Eric Blake  <ebb9@byu.net>
52202
52203         Fix fseeko/ftello on cygwin 1.5.24.
52204         * doc/functions/fseeko.texi (fseeko): Document the fix.
52205         * doc/functions/ftello.texi (ftello): Document the fix.
52206         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52207         * doc/functions/stdout.text (stdout): New file.
52208         * doc/functions/stderr.text (stderr): New file.
52209         * doc/gnulib.texi (Function Substitutes): Use new files.
52210         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52211         prior to 1.7.0.
52212         * tests/test-ftello.c (main): Likewise for ftello.
52213         * tests/test-fseeko.sh: New file.
52214         * tests/test-ftello.sh: New file.
52215         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52216         with seekable stdin.
52217         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52219         (gl_REPLACE_FSEEKO): New macro.
52220         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52221         * modules/fseeko (Files): Distribute fseeko.c.
52222         * modules/ftello (Files): Distribute ftello.c.
52223         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52224         mode.
52225         * lib/ftello.c (rpl_ftello): New file.
52226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52227         fseeko, ftello.
52228         (gl_STDIN_LARGE_OFFSET): New macro.
52229         * modules/stdio (Makefile.am): Perform the replacement.
52230         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52231
52232 2007-05-23  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52235         GNULIB_POSIXCHECK is defined.
52236
52237 2007-05-21  Bruno Haible  <bruno@clisp.org>
52238
52239         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52240         Check also the output for NaN arguments. When cross-compiling, guess
52241         no on IRIX.
52242         * lib/vasnprintf.c: Update comments.
52243         * tests/test-vasnprintf-posix.c (strisnan): New function.
52244         (test_function): Use it.
52245         * tests/test-vasprintf-posix.c (strisnan): New function.
52246         (test_function): Use it.
52247         * tests/test-snprintf-posix.h (strisnan): New function.
52248         (test_function): Use it.
52249         * tests/test-sprintf-posix.h (strisnan): New function.
52250         (test_function): Use it.
52251         Reported by Eric Blake.
52252
52253 2007-05-20  Bruno Haible  <bruno@clisp.org>
52254
52255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52256         numbers that fails on BeOS.
52257         * doc/functions/frexpl.texi: Update.
52258
52259 2007-05-20  Jim Meyering  <jim@meyering.net>
52260
52261         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52262         forced upon us by glibc-2.6.
52263
52264 2007-05-20  Bruno Haible  <bruno@clisp.org>
52265
52266         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52267         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52268         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52269         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52270         NEED_PRINTF_INFINITE.
52271         (is_infinitel): New function.
52272         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52274         gl_PREREQ_VASNPRINTF_INFINITE.
52275         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52277         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52278         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52279         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52280         gl_PREREQ_VASNPRINTF_INFINITE.
52281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52288         * doc/functions/fprintf.texi: Update.
52289         * doc/functions/printf.texi: Update.
52290         * doc/functions/snprintf.texi: Update.
52291         * doc/functions/sprintf.texi: Update.
52292         * doc/functions/vfprintf.texi: Update.
52293         * doc/functions/vprintf.texi: Update.
52294         * doc/functions/vsnprintf.texi: Update.
52295         * doc/functions/vsprintf.texi: Update.
52296
52297 2007-05-20  Bruno Haible  <bruno@clisp.org>
52298
52299         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52300         was not found in libc.
52301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52302
52303 2007-05-20  Bruno Haible  <bruno@clisp.org>
52304
52305         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52306         printed as "-nan" instead of "nan".
52307         * tests/test-vasprintf-posix.c (test_function): Likewise.
52308         * tests/test-snprintf-posix.h (test_function): Likewise.
52309         * tests/test-sprintf-posix.h (test_function): Likewise.
52310         Needed for HP-UX 11.
52311
52312 2007-05-20  Jim Meyering  <jim@meyering.net>
52313
52314         Fix buggy test for the fchownat-deref bug.
52315         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52316         symlink required for the run-test.  Without it, this test would
52317         always declare that fchownat doesn't work, and client code would
52318         unnecessarily use the replacement function with fixed libc.
52319         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52320         Reported by Greg Schafer.
52321
52322 2007-05-19  Bruno Haible  <bruno@clisp.org>
52323
52324         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52325         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52326         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52327         Needed for IRIX 6.5 and Solaris 2.5.1.
52328
52329 2007-05-19  Bruno Haible  <bruno@clisp.org>
52330
52331         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52332         (test_function): Skip tests involving -0.0 on platforms where
52333         -0.0 = 0.0.
52334         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52335         (test_function): Skip tests involving -0.0 on platforms where
52336         -0.0 = 0.0.
52337         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52338         (test_function): Skip tests involving -0.0 on platforms where
52339         -0.0 = 0.0.
52340         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52341         (test_function): Skip tests involving -0.0 on platforms where
52342         -0.0 = 0.0.
52343         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52344         tests.
52345         * tests/test-printf-posix.h (test_function): Likewise.
52346         * tests/test-printf-posix.output: Remove all -0.0 related results.
52347         Needed for IRIX 6.5.
52348
52349 2007-05-19  Bruno Haible  <bruno@clisp.org>
52350
52351         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52352         printed as "nan0x7fffffff" instead of "nan".
52353         * tests/test-vasprintf-posix.c (test_function): Likewise.
52354         * tests/test-snprintf-posix.h (test_function): Likewise.
52355         * tests/test-sprintf-posix.h (test_function): Likewise.
52356         * tests/test-fprintf-posix.h (NaN): Remove macro.
52357         (test_function): Remove all NaN related tests.
52358         * tests/test-printf-posix.h (NaN): Remove macro.
52359         (test_function): Remove all NaN related tests.
52360         * tests/test-printf-posix.output: Remove all NaN related results.
52361         Needed for IRIX 6.5.
52362
52363 2007-05-19  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52367
52368 2007-05-19  Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/float_.h: New file.
52371         * m4/float_h.m4: New file.
52372         * modules/float: New file.
52373         * modules/isnanl (Dependencies): Add float.
52374         * modules/isnanl-nolibm (Dependencies): Likewise.
52375         * modules/mathl (Dependencies): Likewise.
52376         * modules/printf-frexpl (Dependencies): Likewise.
52377         * modules/signbit (Dependencies): Likewise.
52378         * modules/vasnprintf (Dependencies): Likewise.
52379         * doc/headers/float.texi: Update.
52380
52381 2007-05-19  Jim Meyering  <jim@meyering.net>
52382
52383         * lib/utimens.c (gl_futimens): Rename from futimens,
52384         now that glibc-2.6 declares futimens.
52385         * lib/utimens.h: Likewise.
52386
52387 2007-05-19  Bruno Haible  <bruno@clisp.org>
52388
52389         Avoid test failures on mingw.
52390         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52391         * tests/test-printf-posix.sh: Likewise.
52392         * tests/test-vfprintf-posix.sh: Likewise.
52393         * tests/test-vprintf-posix.sh: Likewise.
52394
52395 2007-05-19  Bruno Haible  <bruno@clisp.org>
52396
52397         Fix *printf result for NaN, Inf, -0.0 on mingw.
52398         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52399         * lib/vasnprintf.c: Include math.h and isnan.h.
52400         (is_infinite_or_zero): New function.
52401         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52402         values in the %f, %F, %e, %E, %g, %G directives.
52403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52404         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52405         gl_PRINTF_INFINITE and test its result. Invoke
52406         gl_PREREQ_VASNPRINTF_INFINITE.
52407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52408         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52411         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52414         * doc/functions/fprintf.texi: Update.
52415         * doc/functions/printf.texi: Update.
52416         * doc/functions/snprintf.texi: Update.
52417         * doc/functions/sprintf.texi: Update.
52418         * doc/functions/vfprintf.texi: Update.
52419         * doc/functions/vprintf.texi: Update.
52420         * doc/functions/vsnprintf.texi: Update.
52421         * doc/functions/vsprintf.texi: Update.
52422
52423 2007-05-19  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52426         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52427         Instead of multiplying with 10^k, set extra_zeroes to k.
52428         (scale10_round_long_double): Remove function.
52429
52430 2007-05-18  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52433         introduced on 2007-05-06.
52434
52435 2007-05-18  Bruno Haible  <bruno@clisp.org>
52436
52437         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52438         %g directives.
52439         * tests/test-vasprintf-posix.c (test_function): Likewise.
52440         * tests/test-snprintf-posix.h (test_function): Likewise.
52441         * tests/test-sprintf-posix.h (test_function): Likewise.
52442
52443 2007-05-18  Bruno Haible  <bruno@clisp.org>
52444
52445         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52446         (strmatch): New function.
52447         (test_function): Test the %f directive on numbers of various exponents.
52448         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52449         (strmatch): New function.
52450         (test_function): Test the %f directive on numbers of various exponents.
52451         * tests/test-snprintf-posix.h (strmatch): New function.
52452         (test_function): Test the %f directive on numbers of various exponents.
52453         * tests/test-sprintf-posix.h (strmatch): New function.
52454         (test_function): Test the %f directive on numbers of various exponents.
52455         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52456         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52457         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52458         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52459
52460 2007-05-18  Bruno Haible  <bruno@clisp.org>
52461
52462         Add support for 'long double' number output.
52463         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52464         * lib/vasnprintf.c: Include math.h and float+.h.
52465         (mp_limb_t): New type.
52466         (GMP_LIMB_BITS): New macro.
52467         (mp_twolimb_t): New type.
52468         (GMP_TWOLIMB_BITS): New macro.
52469         (mpn_t): New type.
52470         (multiply, divide, convert_to_decimal, decode_long_double,
52471         scale10_round_long_double, scale10_round_decimal_long_double,
52472         floorlog10l): New functions.
52473         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52474         for the %f, %F, %e, %E, %g, %G directives.
52475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52477         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52478         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52486         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52487         * modules/snprintf-posix (Depends-on): Likewise.
52488         * modules/sprintf-posix (Depends-on): Likewise.
52489         * modules/vasnprintf-posix (Depends-on): Likewise.
52490         * modules/vasprintf-posix (Depends-on): Likewise.
52491         * modules/vfprintf-posix (Depends-on): Likewise.
52492         * modules/vsnprintf-posix (Depends-on): Likewise.
52493         * modules/vsprintf-posix (Depends-on): Likewise.
52494         * modules/vasnprintf (Files): Add lib/float+.h.
52495         * doc/functions/fprintf.texi: Update.
52496         * doc/functions/printf.texi: Update.
52497         * doc/functions/snprintf.texi: Update.
52498         * doc/functions/sprintf.texi: Update.
52499         * doc/functions/vfprintf.texi: Update.
52500         * doc/functions/vprintf.texi: Update.
52501         * doc/functions/vsnprintf.texi: Update.
52502         * doc/functions/vsprintf.texi: Update.
52503
52504 2007-05-18  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52507
52508 2007-05-18  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52511         for printing 64-bit integers. Needed for mingw.
52512
52513 2007-05-18  Bruno Haible  <bruno@clisp.org>
52514
52515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52516         gl_FUNC_FREXPL_WORKS.
52517         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52518
52519 2007-05-18  Bruno Haible  <bruno@clisp.org>
52520
52521         * modules/frexpl-nolibm-tests: New file.
52522
52523         * modules/frexpl-nolibm: New file.
52524         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52525
52526 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52527
52528         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52529         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52530         GCC 4.2, which otherwise issues a lot of warnings.
52531         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52532         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52533         Likewise.
52534         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52535         * modules/iconv_open (iconv.h): Likewise.
52536         * modules/locale (locale.h): Likewise.
52537         * modules/netinet_in (netinet/in.h): Likewise.
52538         * modules/sys_select (sys_select.h): Likewise.
52539         * modules/sys_socket (sys/socket.h): Likewise.
52540         * modules/sys_stat (sys/stat.h): Likewise.
52541         * modules/sysexits (sysexits.h): Likewise.
52542         * modules/unistd (unistd.h): Likewise.
52543
52544 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52545
52546         * modules/closein-tests (Makefile.am): Distribute
52547         `test-closein.sh'.
52548
52549 2007-05-17  Bruno Haible  <bruno@clisp.org>
52550
52551         * tests/test-printf-posix.output: Renamed from
52552         tests/test-fprintf-posix.out.
52553         * modules/fprintf-posix-tests: Update.
52554         * modules/printf-posix-tests: Update.
52555         * modules/vfprintf-posix-tests: Update.
52556         * modules/vprintf-posix-tests: Update.
52557         * tests/test-fprintf-posix.sh: Update.
52558         * tests/test-printf-posix.sh: Update.
52559         * tests/test-vfprintf-posix.sh: Update.
52560         * tests/test-vprintf-posix.sh: Update.
52561         Reported by Ralf Wildenhues.
52562
52563 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52564
52565         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52566         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52567         GCC 4.2, which otherwise issues a lot of warnings.
52568         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52569         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52570         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52571         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52572         it should no longer be needed.
52573         * lib/string_.h: Likewise.
52574         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52575         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52576         * modules/inttypes (inttypes.h): Likewise.
52577         * modules/math (math.h): Likewise.
52578         * modules/search (search.h): Likewise.
52579         * modules/signal (signal.h): Likewise.
52580         * modules/stdint (stdint.h): Likewise.
52581         * modules/stdio (stdio.h): Likewise.
52582         * modules/stdlib (stdlib.h): Likewise.
52583         * modules/string (string.h): Likewise.
52584         * modules/sys_time (sys/time.h): Likewise.
52585         * modules/time (time.h): Likewise.
52586         * modules/wchar (wchar.h): Likewise.
52587         * modules/wctype (wtype.h): Likewise.
52588
52589 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52590
52591         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52592
52593 2007-05-13  Bruno Haible  <bruno@clisp.org>
52594
52595         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52596         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52597         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52598         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52599         (gl_PREREQ_STRTOK_R): Don't require it here.
52600
52601 2007-05-13  Bruno Haible  <bruno@clisp.org>
52602
52603         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52604         when used in C++ mode.
52605
52606 2007-05-12  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/linebuffer.h: Tweak doc.
52609         * lib/linebuffer.c: Likewise.
52610
52611 2007-05-12  James Youngman  <jay@gnu.org>
52612
52613         * lib/linebuffer.c (readlinebuffer_delim): New function,
52614         like readlinebuffer, but use a caller-specified delimiter.
52615         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52616         as the delimiter.
52617         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52618
52619 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52620
52621         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52622         * modules/openat (Files): Remove openat-die.c.
52623         (Depends-on): Add openat-die.
52624         * modules/openat-die: New module.
52625
52626 2007-05-06  Bruno Haible  <bruno@clisp.org>
52627
52628         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52629         Update with info about Cygwin.
52630         * doc/functions/fprintf.texi: Update.
52631         * doc/functions/printf.texi: Update.
52632         * doc/functions/snprintf.texi: Update.
52633         * doc/functions/sprintf.texi: Update.
52634         * doc/functions/vfprintf.texi: Update.
52635         * doc/functions/vprintf.texi: Update.
52636         * doc/functions/vsnprintf.texi: Update.
52637         * doc/functions/vsprintf.texi: Update.
52638         Reported by Eric Blake.
52639
52640 2007-05-06  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52643         padding ourselves for the floating-point directives.
52644         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52647         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52648         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52656         * tests/test-snprintf-posix.h (test_function): Also check the width
52657         and some flags in the %f directive.
52658         * tests/test-sprintf-posix.h (test_function): Likewise.
52659         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52660         * tests/test-vasprintf-posix.c (test_function): Likewise.
52661         * doc/functions/fprintf.texi: Update.
52662         * doc/functions/printf.texi: Update.
52663         * doc/functions/snprintf.texi: Update.
52664         * doc/functions/sprintf.texi: Update.
52665         * doc/functions/vfprintf.texi: Update.
52666         * doc/functions/vprintf.texi: Update.
52667         * doc/functions/vsnprintf.texi: Update.
52668         * doc/functions/vsprintf.texi: Update.
52669
52670 2007-05-06  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52673         pass the ' flag character to sprintf or snprintf.
52674         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52677         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52678         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52681         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52682         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52686         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52687         flag.
52688         * tests/test-sprintf-posix.h (test_function): Likewise.
52689         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52690         * tests/test-vasprintf-posix.c (test_function): Likewise.
52691         * doc/functions/fprintf.texi: Update.
52692         * doc/functions/printf.texi: Update.
52693         * doc/functions/snprintf.texi: Update.
52694         * doc/functions/sprintf.texi: Update.
52695         * doc/functions/vfprintf.texi: Update.
52696         * doc/functions/vprintf.texi: Update.
52697         * doc/functions/vsnprintf.texi: Update.
52698         * doc/functions/vsprintf.texi: Update.
52699
52700 2007-05-01  Bruno Haible  <bruno@clisp.org>
52701
52702         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52703
52704 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52705
52706         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52707         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52708
52709 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52712         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52714
52715 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52716
52717         * lib/argp-help.c (struct hol_entry): New member `ord'.
52718         (HOL_ENTRY_PTRCMP): Use ord for comparison
52719         (hol_sort): Initialize ord.
52720
52721 2007-05-01  Bruno Haible  <bruno@clisp.org>
52722
52723         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52724         Reported by Eric Blake.
52725         * doc/gnulib.texi (Function Substitutes): Update.
52726
52727 2007-05-01  Bruno Haible  <bruno@clisp.org>
52728
52729         * doc/functions.texi: Remove file, now redundant through
52730         doc/functions/*.texi.
52731
52732 2007-05-01  Bruno Haible  <bruno@clisp.org>
52733
52734         * modules/argp (Depends-on): Add sleep.
52735
52736 2007-05-01  Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/sleep-tests: New file.
52739         * tests/test-sleep.c: New file.
52740
52741         * modules/sleep: New file.
52742         * lib/sleep.c: New file.
52743         * m4/sleep.m4: New file.
52744         * lib/unistd_.h (sleep): New declaration.
52745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52746         HAVE_SLEEP.
52747         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52748         * doc/functions/sleep.texi: Document the sleep module.
52749
52750 2007-05-01  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/sigprocmask.h: Remove file.
52753         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52754         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52756         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52757         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52758         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52759         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52760         HAVE_SIGSET_T as a shell variable.
52761         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52762         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52763         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52764         (Depends-on): Add signal. Remove verify.
52765         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52766         (Include): Mention <signal.h> instead of sigprocmask.h.
52767         * NEWS: Mention the change.
52768         * lib/fatal-signal.c: Don't include sigprocmask.h.
52769
52770 2007-05-01  Bruno Haible  <bruno@clisp.org>
52771
52772         * modules/signal: New file.
52773         * lib/signal_.h: New file.
52774         * m4/signal_h.m4: New file.
52775
52776 2007-05-01  Bruno Haible  <bruno@clisp.org>
52777
52778         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52779         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52780         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52781         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52782
52783 2007-05-01  Bruno Haible  <bruno@clisp.org>
52784
52785         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52786         configure time.
52787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52788         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52789         * modules/sys_stat (Makefile.am): Substitute their values into
52790         sys/stat.h.
52791
52792 2007-05-01  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52795         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52796         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52797
52798 2007-05-01  Bruno Haible  <bruno@clisp.org>
52799
52800         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52801         'assert' module here.
52802
52803 2007-05-01  Bruno Haible  <bruno@clisp.org>
52804
52805         * doc/functions/*.texi: New files.
52806         * doc/functions/google-ranking.txt: New file.
52807         * doc/gnulib.texi (Function Substitutes): New chapter.
52808         (ctime, inet_ntoa): Remove sections.
52809         * doc/ctime.texi: Remove file.
52810         * doc/inet_ntoa.texi: Remove file.
52811         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52812         dependencies.
52813         (%.info): New rule, specifying a --reference-limit.
52814
52815 2007-05-01  Bruno Haible  <bruno@clisp.org>
52816
52817         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52818
52819 2007-05-01  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52822         the portability of 'mkdir' to mingw systems.
52823
52824 2007-05-01  Bruno Haible  <bruno@clisp.org>
52825
52826         * doc/headers/google-ranking.txt: New file.
52827
52828 2007-04-30  Eric Blake  <ebb9@byu.net>
52829
52830         Prefer fseeko to fseek.
52831         * modules/getpass (Depends-on): Add fseeko.
52832         * lib/getpass.c (getpass): Use fseeko, not fseek.
52833
52834 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52835
52836         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52837         assumes the sorting is stable, while most qsort implementations
52838         are not.  Use argument addresses to ensure they never compare as
52839         equal.
52840
52841         * tests/test-argp-2.sh (usage-indent test): Fix output
52842         (func_compare): Restore diff options
52843         * tests/test-argp.c: Restore #include "progname.h"
52844
52845 2007-04-29  Bruno Haible  <bruno@clisp.org>
52846
52847         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52849         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52851         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52852         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52853         (TESTS, check_PROGRAMS): Add test-snprintf.
52854         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52855         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52856         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52857         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52858         assertions that fail on HP-UX, OSF/1, or IRIX.
52859         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52860
52861 2007-04-29  Bruno Haible  <bruno@clisp.org>
52862
52863         * MODULES.html.sh (posix_functions): Remove 'contents'.
52864
52865 2007-04-29  Karl Berry  <karl@gnu.org>
52866
52867         * config/srclist.txt (gendocs_template_min): new entry.
52868
52869 2007-04-29  Bruno Haible  <bruno@clisp.org>
52870
52871         Work around fpurge bug on BSD systems.
52872         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52873         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52874         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52875         fpurge to rpl_fpurge if the system already has this function.
52876         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52877         the case where the system already has this function. Correct invariants
52878         on BSD systems.
52879         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52880         BSD systems.
52881
52882 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52883
52884         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52885         proposed by Sven Verdoolaege.
52886
52887         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52888         options.
52889         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52890         (usage and help tests): Update
52891
52892 2007-04-29  Bruno Haible  <bruno@clisp.org>
52893
52894         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52895         Print more information in case of failure. Disable a test on BeOS.
52896
52897 2007-04-29  Bruno Haible  <bruno@clisp.org>
52898
52899         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52900         This helps debugging on systems on which no gdb is available.
52901
52902 2007-04-29  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/freading.h: Improve comments.
52905         * lib/fwriting.h: Likewise.
52906         * tests/test-freading.c (main): Don't check freading immediately after
52907         repositioning. Needed for glibc.
52908
52909 2007-04-29  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/freading.c (freading): Trivial simplification.
52912
52913 2007-04-28  Bruno Haible  <bruno@clisp.org>
52914
52915         * tests/test-fwriting.c (main): Also test the interaction between
52916         fflush and fwriting.
52917         * modules/fwriting-tests (Depends-on): Add fflush.
52918
52919         * tests/test-freading.c (main): Also test the interaction between
52920         fflush and freading.
52921         * modules/freading-tests (Depends-on): Add fflush.
52922
52923 2007-04-28  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52926         fseeko and ftello.
52927         Suggested by Eric Blake.
52928
52929 2007-04-28  Jim Meyering  <jim@meyering.net>
52930
52931         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52932         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52933         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52934
52935 2007-04-27  Eric Blake  <ebb9@byu.net>
52936
52937         * doc/headers/assert.texi (assert.h): Document assert module use.
52938
52939 2007-04-27  Bruno Haible  <bruno@clisp.org>
52940
52941         * doc/headers/*.texi: New files.
52942         * doc/gnulib.texi (Header File Substitutes): New chapter.
52943         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52944         dependencies.
52945         (standards.info ,standards.html, standards.dvi): Update dependencies.
52946         (mostlyclean, clean): New targets.
52947
52948 2007-04-27  Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52951         * modules/sysexits (Files, Makefile.am): Update.
52952
52953         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52954         * modules/sys_socket (Files, Makefile.am): Update.
52955
52956         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52957         * modules/sys_stat (Files, Makefile.am): Update.
52958
52959 2007-04-27  Eric Blake  <ebb9@byu.net>
52960
52961         * lib/freading.h: Improve comments.
52962         * lib/fwriting.h: Likewise.
52963         * lib/fflush.c: Likewise.
52964
52965         Fix closein for mingw.
52966         * modules/closein-tests: Add tests for closein.
52967         * tests/test-closein.c: New file.
52968         * tests/test-closein.sh: Likewise.
52969         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52970         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52971
52972 2007-04-27  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52975         version is < 6.
52976         * lib/math_.h [__DECC]: Likewise.
52977         * lib/stdio_.h [__DECC]: Likewise.
52978         * lib/stdlib_.h [__DECC]: Likewise.
52979         * lib/string_.h [__DECC]: Likewise.
52980         * lib/time_.h [__DECC]: Likewise.
52981         * lib/wchar_.h [__DECC]: Likewise.
52982         * lib/wctype_.h [__DECC]: Likewise.
52983
52984 2007-04-27  Bruno Haible  <bruno@clisp.org>
52985
52986         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52987
52988 2007-04-27  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/fflush.c: Add comments.
52991         * modules/fpurge-tests (Depends-on): Add fflush.
52992         * modules/freadable-tests (Depends-on): Likewise.
52993         * modules/fwritable-tests (Depends-on): Likewise.
52994
52995 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52996
52997         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52998         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52999         Report by Bruno Haible <bruno@clisp.org>.
53000
53001 2007-04-26  Eric Blake  <ebb9@byu.net>
53002
53003         Fix fflush on mingw.
53004         * modules/fflush (Depends-on): Add freading.
53005         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53006         but unread data.
53007
53008 2007-04-26  Eric Blake  <ebb9@byu.net>
53009         and Bruno Haible  <bruno@clisp.org>
53010
53011         Implement freading and fwriting.
53012         * lib/freading.c: New file.
53013         * lib/freading.h: Likewise.
53014         * m4/freading.m4: Likewise.
53015         * modules/freading: Likewise.
53016         * modules/freading-tests: Likewise.
53017         * tests/test-freading.c: Likewise.
53018         * lib/fwriting.c: New file.
53019         * lib/fwriting.h: Likewise.
53020         * m4/fwriting.m4: Likewise.
53021         * modules/fwriting: Likewise.
53022         * modules/fwriting-tests: Likewise.
53023         * tests/test-fwriting.c: Likewise.
53024         * MODULES.html.sh (File stream based Input/Output): Mention them.
53025
53026 2007-04-26  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53029         'long' when we assume it.
53030         Suggested by Eric Blake.
53031
53032 2007-04-26  Bruno Haible  <bruno@clisp.org>
53033
53034         Ensure fseeko, ftello are declared on glibc systems.
53035         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53036         * modules/fseeko (configure.ac-early): Likewise.
53037         * modules/ftello (configure.ac-early): Likewise.
53038         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53039         AC_FUNC_FSEEKO for this.
53040         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53041         (gl_CHECK_FSEEKO): Remove macro.
53042
53043 2007-04-26  Bruno Haible  <bruno@clisp.org>
53044
53045         * tests/test-fflush.c (main): Also check the ftell result after
53046         fflush and fseek/fseeko.
53047         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53048         file descriptor position cache in the stream.
53049         * lib/fseeko.c (rpl_fseeko): Likewise.
53050
53051 2007-04-26  Bruno Haible  <bruno@clisp.org>
53052
53053         * modules/fflush-tests (Depends-on): Add fseeko.
53054
53055 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53056             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53057
53058         * lib/argz_.h: ensure error_t definition is obtained in same
53059         mechanism system argz.h would have.
53060         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53061         argz facilities are known bad.  Err on the side of caution if
53062         cross-compiling.
53063
53064 2007-04-25  Eric Blake  <ebb9@byu.net>
53065
53066         * lib/fpurge.c (includes): Use stdlib.h for free.
53067         * tests/test-fflush.c (main): Also test fflush-fseeko.
53068
53069 2007-04-25  Bruno Haible  <bruno@clisp.org>
53070
53071         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53072         * lib/fseeko.c: New file.
53073         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53074         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53075         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53076         gl_FUNC_FSEEKO.
53077         (gl_FUNC_FSEEKO): Invoke it.
53078         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53079         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53080         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53081
53082 2007-04-25  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/fflush (Depends-on): Add ftello.
53085
53086 2007-04-25  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/ftello-tests: New file.
53089         * tests/test-ftello.c: New file.
53090
53091         * modules/ftello: New file.
53092         * m4/ftello.m4: New file.
53093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53094         HAVE_FTELLO.
53095         * lib/stdio_.h (ftello): New declaration.
53096         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53097         HAVE_FTELLO.
53098
53099 2007-04-25  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/fseeko-tests: New file.
53102         * tests/test-fseeko.c: New file.
53103
53104         * modules/fseeko: New file.
53105         * m4/fseeko.m4: New file.
53106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53107         HAVE_FSEEKO.
53108         * lib/stdio_.h (fseeko): New declaration.
53109         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53110         HAVE_FSEEKO.
53111
53112 2007-04-25  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53115
53116 2007-04-25  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53119         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53120         * tests/test-unistd.c: Likewise.
53121         * tests/test-fcntl.c: Likewise.
53122
53123 2007-04-23  Eric Blake  <ebb9@byu.net>
53124
53125         * lib/fflush.c: Fix missing include.
53126         Reported by Bruno Haible.
53127
53128 2007-04-23  Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53131         Reported by Eric Blake.
53132
53133 2007-04-23  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53136
53137 2007-04-23  Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53140
53141 2007-04-23  Bruno Haible  <bruno@clisp.org>
53142
53143         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53144         Needed on HP-UX 11.
53145
53146 2007-04-16  Eric Blake  <ebb9@byu.net>
53147
53148         Make fflush rely on fpurge.
53149         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53150         open coding all variants.
53151         * modules/fflush (Depends-on): Add fpurge and unistd.
53152         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53153         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53154
53155         Fix --with-tests compilation on cygwin.
53156         * modules/argmatch-tests (Makefile.am): List gnulib library first
53157         in LDADD.
53158         * modules/argp-tests (Makefile.am): Likewise.
53159         * modules/array-list-tests (Makefile.am): Likewise.
53160         * modules/array-oset-tests (Makefile.am): Likewise.
53161         * modules/avltree-list-tests (Makefile.am): Likewise.
53162         * modules/avltree-oset-tests (Makefile.am): Likewise.
53163         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53164         * modules/carray-list-tests (Makefile.am): Likewise.
53165         * modules/dirname-tests (Makefile.am): Likewise.
53166         * modules/frexp-tests (Makefile.am): Likewise.
53167         * modules/isnanl-tests (Makefile.am): Likewise.
53168         * modules/linked-list-tests (Makefile.am): Likewise.
53169         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53170         * modules/lock-tests (Makefile.am): Likewise.
53171         * modules/rbtree-list-tests (Makefile.am): Likewise.
53172         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53173         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53174         * modules/tls-tests (Makefile.am): Likewise.
53175         * modules/tsearch-tests (Makefile.am): Likewise.
53176         * modules/xvasprintf-tests (Makefile.am): Likewise.
53177
53178         Fix fpurge for cygwin.
53179         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53180         value.
53181         * modules/fpurge-tests (Depends-on): Clean up trash.
53182
53183 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53184
53185         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53186
53187         * m4/autobuild.m4: Re-indent.
53188
53189 2007-04-13  Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/fpurge-tests: New file.
53192         * tests/test-fpurge.c: New file.
53193
53194         * modules/fpurge: New file.
53195         * lib/fpurge.h: New file.
53196         * lib/fpurge.c: New file.
53197         * m4/fpurge.m4: New file.
53198
53199 2007-04-13  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/fbufmode-tests: New file.
53202         * tests/test-fbufmode.c: New file.
53203
53204         * modules/fbufmode: New file.
53205         * lib/fbufmode.h: New file.
53206         * lib/fbufmode.c: New file.
53207         * m4/fbufmode.m4: New file.
53208
53209 2007-04-13  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/fwritable-tests: New file.
53212         * tests/test-fwritable.c: New file.
53213
53214         * modules/fwritable: New file.
53215         * lib/fwritable.h: New file.
53216         * lib/fwritable.c: New file.
53217         * m4/fwritable.m4: New file.
53218
53219 2007-04-13  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/freadable-tests: New file.
53222         * tests/test-freadable.c: New file.
53223
53224         * modules/freadable: New file.
53225         * lib/freadable.h: New file.
53226         * lib/freadable.c: New file.
53227         * m4/freadable.m4: New file.
53228
53229 2007-04-13  Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53232         MOSTLYCLEANFILES.
53233
53234 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53235
53236         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53237         gzip bootstrap.conf to avoid dragging in i18n machinery.
53238         (gnulib_tool_option): Use it.
53239
53240 2007-04-13  Bruno Haible  <bruno@clisp.org>
53241
53242         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53243         %F directives.
53244         * tests/test-vasprintf-posix.c (test_function): Likewise.
53245         * tests/test-snprintf-posix.h (test_function): Likewise.
53246         * tests/test-sprintf-posix.h (test_function): Likewise.
53247         * tests/test-fprintf-posix.h (test_function): Likewise.
53248         * tests/test-printf-posix.h (test_function): Likewise.
53249         * tests/test-fprintf-posix.out: Likewise.
53250
53251 2007-04-13  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53254         * modules/tls-tests (configure.ac): Likewise.
53255         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53256
53257 2007-04-13  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/tls.c (glthread_tls_get): Fix return type.
53260         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53261
53262 2007-04-12  Eric Blake  <ebb9@byu.net>
53263
53264         * modules/gettime (Depends-on): Remove gettime.
53265         Reported by Dmitry V. Levin.
53266
53267 2007-04-12  Bruno Haible  <bruno@clisp.org>
53268
53269         * modules/fflush (Include): Mention <stdio.h>.
53270         * modules/strtoimax (Include): Mention <inttypes.h>.
53271         * modules/strtoumax (Include): Likewise.
53272
53273 2007-04-12  Eric Blake  <ebb9@byu.net>
53274
53275         * .cvsignore: New file.
53276         * .gitignore: Likewise.
53277
53278 2007-04-12  Bruno Haible  <bruno@clisp.org>
53279
53280         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53281         not before, since $(LDADD) often contains libgnu.a.
53282         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53283         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53284         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53285         Needed on Cygwin.
53286
53287 2007-04-12  Eric Blake  <ebb9@byu.net>
53288
53289         Work around glibc's failure to flush stdin on fclose.
53290         * lib/closein.c (close_stdin): Flush stdin before closing.
53291
53292         Work around glibc's failure to reset seekable stdin on exit.
53293         * modules/closein: New module.
53294         * lib/closein.c: New file.
53295         * lib/closein.h: Likewise.
53296         * m4/closein.m4: Likewise.
53297         * MODULES.html.sh (File stream based Input/Output): Document it.
53298
53299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53300
53301         * gnulib-tool: Rename generated 'autobuild' script to
53302         'do-autobuild' in --create-megatestdir output.
53303
53304         * doc/gnulib.texi (Build robot for gnulib): Fix.
53305
53306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53307
53308         * modules/sysexits (Depends-on): Add absolute-header.
53309
53310 2007-04-12  Eric Blake  <ebb9@byu.net>
53311
53312         No need to preserve errno on success.
53313         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53314         Reported by Bruno Haible.
53315
53316 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53317
53318         * MODULES.html.sh (Support for maintaining and releasing
53319         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53320
53321 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53322
53323         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53324
53325 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53326
53327         * modules/autobuild: New module.
53328
53329         * m4/autobuild.m4: New file.
53330
53331 2007-04-11  Bruno Haible  <bruno@clisp.org>
53332
53333         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53334         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53344         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53345         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53347         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53348         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53350         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53351         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53353         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53354         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53361         Reported by Eric Blake.
53362
53363 2007-04-11  Bruno Haible  <bruno@clisp.org>
53364
53365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53366
53367 2007-04-10  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53370         for NaN and Infinity. Needed on FreeBSD 6.1.
53371         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53372         regarding results for "%010a" of Infinity and NaN.
53373         * tests/test-vasprintf-posix.c (test_function): Likewise.
53374         * tests/test-snprintf-posix.h (test_function): Likewise.
53375         * tests/test-sprintf-posix.h (test_function): Likewise.
53376         * tests/test-fprintf-posix.h (test_function): Likewise.
53377         * tests/test-printf-posix.h (test_function): Likewise.
53378         * tests/test-fprintf-posix.out: Likewise.
53379
53380 2007-04-10  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/locale-tests: New file.
53383         * tests/test-locale.c: New file.
53384
53385         * modules/locale: New file.
53386         * lib/locale_.h: New file.
53387         * m4/locale_h.m4: New file.
53388
53389 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53390             Bruno Haible  <bruno@clisp.org>
53391
53392         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53393         be determined, test for availability of the copysignf, copysign,
53394         copysignl functions.
53395         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53396         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53397         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53398
53399 2007-04-09  Eric Blake  <ebb9@byu.net>
53400
53401         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53402         * modules/stdio (Makefile.am): Support fflush.
53403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53404         * modules/fflush: New file.
53405         * lib/fflush.c: Likewise.
53406         * m4/fflush.m4: Likewise.
53407         * modules/fflush-tests: New test.
53408         * tests/test-fflush.c: Likewise.
53409         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53410
53411 2007-04-06  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53414         (VASNPRINTF): Use signbit for faster determination whether to print a
53415         minus sign.
53416         * modules/vasnprintf (Files): Remove lib/float+.h.
53417         * modules/fprintf-posix (Depends-on): Add signbit.
53418         * modules/snprintf-posix (Depends-on): Likewise.
53419         * modules/sprintf-posix (Depends-on): Likewise.
53420         * modules/vasnprintf-posix (Depends-on): Likewise.
53421         * modules/vasprintf-posix (Depends-on): Likewise.
53422         * modules/vfprintf-posix (Depends-on): Likewise.
53423         * modules/vsnprintf-posix (Depends-on): Likewise.
53424         * modules/vsprintf-posix (Depends-on): Likewise.
53425
53426 2007-04-06  Bruno Haible  <bruno@clisp.org>
53427
53428         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53429         * tests/test-frexpl.c (main): Likewise.
53430         * tests/test-ldexpl.c (main): Likewise.
53431         * modules/frexp-tests (Depends-on): Add signbit.
53432         * modules/frexpl-tests (Depdends-on): Likewise.
53433         * modules/ldexpl-tests (Depdends-on): Likewise.
53434
53435 2007-04-06  Bruno Haible  <bruno@clisp.org>
53436
53437         * modules/signbit-tests: New file.
53438         * tests/test-signbit.c: New file.
53439
53440         * modules/signbit: New file.
53441         * lib/signbitf.c: New file.
53442         * lib/signbitd.c: New file.
53443         * lib/signbitl.c: New file.
53444         * m4/signbit.m4: New file.
53445         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53446         (signbit): New macro.
53447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53448         REPLACE_SIGNBIT.
53449         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53450         REPLACE_FREXPL into math.h.
53451
53452 2007-04-06  Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/isnanf-nolibm-tests: New file.
53455         * tests/test-isnanf.c: New file.
53456
53457         * modules/isnanf-nolibm: New file.
53458         * lib/isnanf.h: New file.
53459         * lib/isnanf.c: New file.
53460         * lib/isnan.c: Consider the USE_FLOAT macro.
53461         * m4/isnanf.m4: New file.
53462
53463 2007-04-06  Bruno Haible  <bruno@clisp.org>
53464
53465         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53466         (Link): New section.
53467
53468         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53469
53470 2007-04-06  Bruno Haible  <bruno@clisp.org>
53471
53472         Assume the 'long double' type.
53473         * m4/longdouble.m4: Remove file.
53474         * config/srclist.txt: Don't mention longdouble.m4.
53475         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53476         * lib/float+.h: Likewise.
53477         * lib/frexp.c: Likewise.
53478         * lib/printf-args.h: Likewise.
53479         * lib/printf-args.c: Likewise.
53480         * lib/printf-frexp.c: Likewise.
53481         * lib/printf-parse.c: Likewise.
53482         * lib/vasnprintf.c: Likewise.
53483         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53484         * m4/intl.m4: Likewise.
53485         * m4/isnanl.m4: Likewise.
53486         * m4/printf.m4: Likewise.
53487         * m4/printf-frexpl.m4: Likewise.
53488         * m4/vasnprintf.m4: Likewise.
53489         * modules/allocsa (Files): Remove m4/longdouble.m4.
53490         * modules/gettext (Files): Likewise.
53491         * modules/relocatable-prog-wrapper (Files): Likewise.
53492         * modules/vasnprintf (Files): Likewise.
53493         * modules/isnanl (Files): Likewise.
53494         (Include): Simplify.
53495         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53496         (Include): Simplify.
53497         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53498         (Include): Simplify.
53499         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53500         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53501         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53502         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53503         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53504         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53505         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53506         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53507         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53509         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53510         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53511         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53512         * tests/test-isnanl.c: Likewise.
53513         * tests/test-snprintf-posix.h: Likewise.
53514         * tests/test-sprintf-posix.h: Likewise.
53515         * tests/test-vasnprintf-posix.c: Likewise.
53516         * tests/test-vasnprintf-posix2.c: Likewise.
53517         * tests/test-vasprintf-posix.c: Likewise.
53518
53519 2007-04-06  Bruno Haible  <bruno@clisp.org>
53520
53521         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53522         * lib/math_.h [__DECC]: Include the overridden include file through
53523         #include_next, outside the double-inclusion guard.
53524         * lib/stdio_.h [__DECC]: Likewise.
53525         * lib/stdlib_.h [__DECC]: Likewise.
53526         * lib/string_.h [__DECC]: Likewise.
53527         * lib/time_.h [__DECC]: Likewise.
53528         * lib/wchar_.h [__DECC]: Likewise.
53529         * lib/wctype_.h [__DECC]: Likewise.
53530         * lib/inttypes_.h [__DECC]: Likewise.
53531         Reported by Albert Chin <china@thewrittenword.com> in
53532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53533
53534 2007-04-04  Eric Blake  <ebb9@byu.net>
53535
53536         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53537         1.5.x.
53538
53539 2007-04-04  Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53542         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53543
53544 2007-04-04  Bruno Haible  <bruno@clisp.org>
53545
53546         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53547         results for "%010a" of Infinity and NaN.
53548         * tests/test-vasprintf-posix.c (test_function): Likewise.
53549         * tests/test-snprintf-posix.h (test_function): Likewise.
53550         * tests/test-sprintf-posix.h (test_function): Likewise.
53551         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53552         * tests/test-printf-posix.h (test_function): Likewise.
53553         * tests/test-fprintf-posix.out: Update.
53554         Needed for FreeBSD 6.1.
53555
53556 2007-04-04  Bruno Haible  <bruno@clisp.org>
53557
53558         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53559         directly used by the gnulib modules nor by gnulib-tool.
53560
53561 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53562
53563         * DEPENDENCIES: Give overall description of version dependency
53564         desirability.  Use more-typical names for apps.
53565         Add shell, coreutils, diffutils, grep, tar, gzip.
53566
53567 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53568
53569         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53570
53571 2007-04-04  Karl Berry  <karl@gnu.org>
53572
53573         * MODULES.html.sh (func_module): missing '.
53574
53575 2007-04-03  Bruno Haible  <bruno@clisp.org>
53576
53577         * modules/argmatch-tests (Makefile.am): New variable
53578         test_argmatch_LDADD.
53579         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53580         * modules/array-list-tests (Makefile.am): New variable
53581         test_array_list_LDADD.
53582         * modules/array-oset-tests (Makefile.am): New variable
53583         test_array_oset_LDADD.
53584         * modules/avltree-list-tests (Makefile.am): New variable
53585         test_avltree_list_LDADD.
53586         * modules/avltree-oset-tests (Makefile.am): New variable
53587         test_avltree_oset_LDADD.
53588         * modules/avltreehash-list-tests (Makefile.am): New variable
53589         test_avltreehash_list_LDADD.
53590         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53591         test_canonicalize_lgpl_LDADD.
53592         * modules/carray-list-tests (Makefile.am): New variable
53593         test_carray_list_LDADD.
53594         * modules/dirname-tests (Makefile.am): New variable
53595         test_dirname_LDADD.
53596         * modules/linked-list-tests (Makefile.am): New variable
53597         test_linked_list_LDADD.
53598         * modules/linkedhash-list-tests (Makefile.am): New variable
53599         test_linkedhash_list_LDADD.
53600         * modules/rbtree-list-tests (Makefile.am): New variable
53601         test_rbtree_list_LDADD.
53602         * modules/rbtree-oset-tests (Makefile.am): New variable
53603         test_rbtree_oset_LDADD.
53604         * modules/rbtreehash-list-tests (Makefile.am): New variable
53605         test_rbtreehash_list_LDADD.
53606         * modules/xvasprintf-tests (Makefile.am): New variable
53607         test_xvasprintf_LDADD.
53608         Reported by Eric Blake.
53609
53610 2007-04-03  Eric Blake  <ebb9@byu.net>
53611
53612         * DEPENDENCIES: Weaken m4 requirements.
53613
53614 2007-04-03  Bruno Haible  <bruno@clisp.org>
53615
53616         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53617         * modules/isnanl-tests (configure.ac): Likewise.
53618
53619 2007-04-03  Ben Pfaff  <blp@gnu.org>
53620
53621         * modules/iconv_open: Add $(srcdir)/ to source directory
53622         references in Makefile fragments that call gperf, to fix VPATH
53623         builds.
53624
53625 2007-04-03  Bruno Haible  <bruno@clisp.org>
53626
53627         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53628         * lib/ldexpl.c: Undo last change.
53629
53630 2007-04-03  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/printf-frexpl (Depends-on): Undo last change.
53633         (Files): Add m4/ldexpl.m4.
53634
53635 2007-04-03  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53638         * modules/isnanl (Link): New section.
53639
53640         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53641         * modules/frexp (Link): New section.
53642
53643         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53644         * modules/frexpl (Link): New section.
53645
53646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53647         * modules/ldexpl (Link): New section.
53648
53649 2007-04-03  Bruno Haible  <bruno@clisp.org>
53650
53651         * modules/TEMPLATE-EXTENDED: New file.
53652         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53653
53654 2007-04-03  Bruno Haible  <bruno@clisp.org>
53655
53656         * DEPENDENCIES: New file.
53657         Suggested by Simon Josefsson.
53658
53659 2007-04-03  Bruno Haible  <bruno@clisp.org>
53660
53661         * doc/gnulib.texi: Escape @.
53662
53663 2007-04-03  James Youngman  <jay@gnu.org>
53664         and Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53667         birthtime on all systems that have birthtime, not just those which
53668         use st_birthtimensec rather than st_birthtim.  Putting zero in
53669         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53670         that the birth time is not available for files on an NFS mount.
53671
53672 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53673
53674         * modules/memxor: Move back from crypto/, suggested by Bruno.
53675         * modules/crypto/hmac-sha1: Fix memxor dependency.
53676
53677         * modules/crypto/gc: Moved from ../.
53678
53679 2007-04-02  Eric Blake  <ebb9@byu.net>
53680
53681         * lib/ldexpl.c (includes): Avoid libm.
53682
53683         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53684
53685 2007-04-02  Bruno Haible  <bruno@clisp.org>
53686
53687         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53688         on IRIX.
53689
53690 2007-04-02  Bruno Haible  <bruno@clisp.org>
53691
53692         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53693         x86 or x86_64 platforms running MacOS X.
53694         Reported by Ryan Schmidt <@ryandesign.com>.
53695
53696 2007-04-02  Bruno Haible  <bruno@clisp.org>
53697
53698         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53699         i386.
53700
53701 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53702
53703         * modules/crypto/arcfour: Moved from ../.
53704         * modules/crypto/arcfour-tests: Moved from ../.
53705         * modules/crypto/arctwo: Moved from ../.
53706         * modules/crypto/arctwo-tests: Moved from ../.
53707         * modules/crypto/des: Moved from ../.
53708         * modules/crypto/des-tests: Moved from ../.
53709         * modules/crypto/gc-arcfour: Moved from ../.
53710         * modules/crypto/gc-arcfour-tests: Moved from ../.
53711         * modules/crypto/gc-arctwo: Moved from ../.
53712         * modules/crypto/gc-arctwo-tests: Moved from ../.
53713         * modules/crypto/gc-des: Moved from ../.
53714         * modules/crypto/gc-des-tests: Moved from ../.
53715         * modules/crypto/gc-hmac-md5: Moved from ../.
53716         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53717         * modules/crypto/gc-hmac-sha1: Moved from ../.
53718         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53719         * modules/crypto/gc-md2: Moved from ../.
53720         * modules/crypto/gc-md2-tests: Moved from ../.
53721         * modules/crypto/gc-md4: Moved from ../.
53722         * modules/crypto/gc-md4-tests: Moved from ../.
53723         * modules/crypto/gc-md5: Moved from ../.
53724         * modules/crypto/gc-md5-tests: Moved from ../.
53725         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53726         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53727         * modules/crypto/gc-random: Moved from ../.
53728         * modules/crypto/gc-rijndael: Moved from ../.
53729         * modules/crypto/gc-rijndael-tests: Moved from ../.
53730         * modules/crypto/gc-sha1: Moved from ../.
53731         * modules/crypto/gc-sha1-tests: Moved from ../.
53732         * modules/crypto/gc-tests: Moved from ../.
53733         * modules/crypto/hmac-md5: Moved from ../.
53734         * modules/crypto/hmac-md5-tests: Moved from ../.
53735         * modules/crypto/hmac-sha1: Moved from ../.
53736         * modules/crypto/hmac-sha1-tests: Moved from ../.
53737         * modules/crypto/md2: Moved from ../.
53738         * modules/crypto/md2-tests: Moved from ../.
53739         * modules/crypto/md4: Moved from ../.
53740         * modules/crypto/md4-tests: Moved from ../.
53741         * modules/crypto/md5: Moved from ../.
53742         * modules/crypto/md5-tests: Moved from ../.
53743         * modules/crypto/memxor: Moved from ../.
53744         * modules/crypto/rijndael: Moved from ../.
53745         * modules/crypto/rijndael-tests: Moved from ../.
53746         * modules/crypto/sha1: Moved from ../.
53747
53748 2007-03-30  James Youngman  <jay@gnu.org>
53749
53750         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53751         rename() to change the ctime of a file (because ctime is unaffected
53752         by rename on jfs2 on AIX 5.1).
53753         (main): Start by doing cleanup, in case a previous run failed leaving
53754         test files behind.
53755
53756 2007-03-31  Bruno Haible  <bruno@clisp.org>
53757
53758         Support old proprietary implementations of iconv.
53759         * modules/iconv_open: New file.
53760         * lib/iconv_.h: New file.
53761         * m4/iconv_h.m4: New file.
53762         * lib/iconv_open.c: New file.
53763         * lib/iconv_open-aix.gperf: New file.
53764         * lib/iconv_open-hpux.gperf: New file.
53765         * lib/iconv_open-irix.gperf: New file.
53766         * lib/iconv_open-osf.gperf: New file.
53767         * m4/iconv_open.m4: New file.
53768         * modules/linebreak (Depends-on): Add iconv_open.
53769         * modules/striconv (Depends-on): Likewise.
53770         * modules/striconveh (Depends-on): Likewise.
53771         * modules/unicodeio (Depends-on): Likewise.
53772         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53773         (iconv_t)(-1).
53774         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53775         conversion if cd is (iconv_t)(-1).
53776         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53777         is not possible.
53778
53779 2007-03-31  Bruno Haible  <bruno@clisp.org>
53780
53781         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53782         work on Solaris either. Protect also second use of "autodetect_jp".
53783
53784 2007-03-31  Bruno Haible  <bruno@clisp.org>
53785
53786         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53787         the function is not present.
53788
53789 2007-03-31  Bruno Haible  <bruno@clisp.org>
53790
53791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53792         the function is not present.
53793
53794 2007-03-31  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53797         a bug in HP-UX iconv_open().
53798
53799 2007-03-31  Bruno Haible  <bruno@clisp.org>
53800
53801         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53802         (Mathematics <math.h>): New section, add fpieee.
53803         (Input/output <stdio.h>): Add fseterr.
53804         (Mathematics <math.h>): New section, add printf-frexp.
53805         (Container data structures): Add sublist.
53806         (Core language properties): Add fpucw, inline.
53807         (Functions for greatest-width integer types <inttypes.h>): Add
53808         imaxabs, imaxdiv, inttypes.
53809         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53810         isnanl-nolibm, ldexp.
53811         (Mathematics <math.h>): New section, add printf-frexpl.
53812         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53813         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53814         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53815         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53816         (Unicode string functions): Add unistr/u*-mbtoucr.
53817         (Java): Add javacomp-script, javaexec-script.
53818         (C#): Add csharpcomp-script, csharpexec-script.
53819         (Support for building libraries and executables): Add havelib,
53820         relocatable-*.
53821         (Support for maintaining and releasing projects): Renamed from
53822         'Support for maintaining and release projects'. Add announce-gen.
53823
53824 2007-03-31  Bruno Haible  <bruno@clisp.org>
53825
53826         * README: Talk primarily about git.
53827         (git and CVS): Renamed from CVS.
53828         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53829         gnulib is available through git.
53830         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53831
53832 2007-03-30  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53835         * lib/poll_.h: Likewise.
53836         * lib/stat_.h: Likewise.
53837         * lib/sys_time_.h: Likewise.
53838         * lib/sysexit_.h: Likewise.
53839         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53840         * lib/stdbool_.h: Likewise.
53841         * lib/byteswap_.h: Add double-inclusion guard.
53842
53843 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53844
53845         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53846
53847 2007-03-30  Karl Berry  <karl@gnu.org>
53848
53849         * config/srclist-update: double space after USA in the license
53850         substitution, since that's how it's usually (?) written.
53851
53852 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53853
53854         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53855         reported by Bruno Haible.
53856
53857 2007-03-29  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53860         a bug in AIX iconv().
53861
53862 2007-03-29  Bruno Haible  <bruno@clisp.org>
53863
53864         * modules/ldexpl-tests: New file.
53865         * tests/test-ldexpl.c: New file.
53866
53867 2007-03-29  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/ldexpl.c: Include fpucw.h.
53870         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53871         multiplication.
53872         * modules/ldexpl (Depends-on): Add fpucw.
53873
53874 2007-03-29  Bruno Haible  <bruno@clisp.org>
53875
53876         * modules/ldexpl: New file.
53877         * m4/ldexpl.m4: New file.
53878         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53879         set.
53880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53881         REPLACE_LDEXPL.
53882         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53883         REPLACE_LDEXPL.
53884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53885         gl_FUNC_LDEXPL_WORKS.
53886         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53887         * modules/mathl (Files): Remove lib/ldexpl.c.
53888         (Depends-on): Add ldexpl.
53889
53890 2007-03-29  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53893
53894 2007-03-29  Bruno Haible  <bruno@clisp.org>
53895
53896         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53897         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53898         and possibly also HP-UX.
53899         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53900         work on AIX, IRIX, HP-UX, OSF/1.
53901         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53902         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53903         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53904         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53905         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53906         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53907
53908 2007-03-29  Bruno Haible  <bruno@clisp.org>
53909
53910         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53911
53912 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53915         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53916
53917 2007-03-29  Eric Blake  <ebb9@byu.net>
53918
53919         * lib/acl-internal.h: Remove redundant include.
53920         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53921         Cygwin when a file is locked.
53922
53923 2007-03-29  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53926         file.
53927         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53928
53929 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53932         try to remove a parent directory if the child couldn't be removed
53933         (except for the first rmdir, which could fail because the child
53934         doesn't exist).  Problem reported by Jeff Blaine in
53935         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53936
53937 2007-03-28  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/striconveh.c (utf8conv_carefully): New function.
53940         (mem_cd_iconveh_internal): Invoke it.
53941
53942 2007-03-28  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53945         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53946         input.
53947         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53948         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53949         unistr/u8-uctomb.
53950
53951 2007-03-28  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/unistr/u8-mbtoucr: New file.
53954         * lib/unistr/u8-mbtoucr.c: New file.
53955         * modules/unistr/u16-mbtoucr: New file.
53956         * lib/unistr/u16-mbtoucr.c: New file.
53957         * modules/unistr/u16-mbtoucr: New file.
53958         * lib/unistr/u16-mbtoucr.c: New file.
53959         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53960
53961 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53962             Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53965         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53966         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53967
53968         * m4/stdio_h.m4: Add stubs for vasprintf too.
53969
53970         * modules/stdio: Support vasprintf in sed command.
53971
53972         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53973         vasprintf.h.  Add stdio module indicator.
53974
53975         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53976         vasprintf.h.
53977
53978         * lib/vasprintf.h: File removed.
53979
53980         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53981         * lib/vasprintf.c: Ditto.
53982         * lib/xvasprintf.c: Ditto.
53983         * tests/test-vasprintf-posix.c: Ditto.
53984         * tests/test-vasprintf.c: Ditto.
53985
53986 2007-03-27  Bruno Haible  <bruno@clisp.org>
53987
53988         Make vasnprintf multithread-safe.
53989         * lib/vasnprintf.c (decimal_point_char): New function.
53990         (VASNPRINTF): Use it.
53991         Suggested by Simon Josefsson.
53992
53993 2007-03-27  Eric Blake  <ebb9@byu.net>
53994
53995         Support sub-second birthtime on cygwin.
53996         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53997         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53998         (get_stat_birthtime): Also work with st_birthtim.
53999
54000 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54003         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54004         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54005         (get_stat_birthtime_ns): Simplify compile-time tests.
54006         (get_stat_birthtime): Change the API to look like
54007         get_stat_mtime etc., except return a negative tv_nsec on error.
54008         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54009         Don't check for "spare" fields.
54010         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54011         or for struct stat.st_birthtime, as these tests aren't used.
54012         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54013
54014 2007-03-27  Bruno Haible  <bruno@clisp.org>
54015
54016         * lib/stat-time.h: Include <sys/stat.h>.
54017
54018 2007-03-27  James Youngman  <jay@gnu.org>
54019
54020         * lib/stat-time.h (get_stat_birthtime): New function for
54021           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54022         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54023           and its variants.
54024         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54025         * modules/stat-time-test: New file.
54026         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54027
54028 2007-03-26  Bruno Haible  <bruno@clisp.org>
54029
54030         Better support of signalling NaNs.
54031         * lib/atanl.c: Include isnanl.h.
54032         (atanl): Perform test for NaN at the beginning of the function and
54033         through a call to isnanl.
54034         * lib/cosl.c: Include isnanl.h.
54035         (cosl): Perform test for NaN at the beginning of the function and
54036         through a call to isnanl.
54037         * lib/ldexpl.c: Include isnanl.h.
54038         (ldexpl): Perform test for NaN through a call to isnanl.
54039         * lib/logl.c: Include isnanl.h.
54040         (logl): Perform test for NaN at the beginning of the function and
54041         through a call to isnanl.
54042         * lib/sinl.c: Include isnanl.h.
54043         (sinl): Perform test for NaN at the beginning of the function and
54044         through a call to isnanl.
54045         * lib/sqrtl.c: Include isnanl.h.
54046         (sqrtl): Perform test for NaN at the beginning of the function and
54047         through a call to isnanl.
54048         * lib/tanl.c: Include isnanl.h.
54049         (tanl): Perform test for NaN at the beginning of the function and
54050         through a call to isnanl.
54051         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54052         * modules/mathl (Depends-on): Add isnanl.
54053
54054 2007-03-26  Eric Blake  <ebb9@byu.net>
54055
54056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54057         regression in logic sense of previous patch.
54058
54059 2007-03-26  Bruno Haible  <bruno@clisp.org>
54060
54061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54062         unportable shell command "if ! ...".
54063         Reported by Ralf Wildenhues.
54064
54065 2007-03-25  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54068         <sysexits.h> file, and only add EX_CONFIG.
54069         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54070         absolute file name and whether it is sufficient. Substitute also
54071         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54072         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54073         ABSOLUTE_SYSEXITS_H into sysexits.h.
54074
54075 2007-03-25  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54078         hints is NULL.
54079
54080 2007-03-25  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54083         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54084
54085 2007-03-25  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/vasnprintf.c: Include langinfo.h.
54088         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54089         multithread-safe.
54090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54099         Reported by Simon Josefsson.
54100
54101 2007-03-25  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54104         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54105         * modules/vasnprintf (Depends-on): Add stdint.
54106
54107 2007-03-25  Bruno Haible  <bruno@clisp.org>
54108
54109         * modules/fpieee: New file.
54110         * m4/fpieee.m4: New file.
54111         * modules/isnan-nolibm (Depends-on): Add fpieee.
54112         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54113         * modules/isnanl (Depends-on): Add fpieee.
54114
54115 2007-03-25  Bruno Haible  <bruno@clisp.org>
54116
54117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54118
54119 2007-03-25  Bruno Haible  <bruno@clisp.org>
54120
54121         Avoid test failures on IRIX 6.5.
54122         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54123         (main): Use it.
54124         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54125         macros.
54126         (main): Use them.
54127
54128 2007-03-25  Bruno Haible  <bruno@clisp.org>
54129
54130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54131         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54132         exists but doesn't work.
54133         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54134         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54136         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54137         math.h.
54138
54139 2007-03-25  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54142         returns inf. Needed on IRIX 6.5.
54143
54144 2007-03-25  Bruno Haible  <bruno@clisp.org>
54145
54146         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54147         (main): Use isnanl instead of x != x idiom.
54148         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54149
54150         * tests/test-frexp.c: Include isnan.h.
54151         (main): Use isnan instead of x != x idiom.
54152         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54153
54154 2007-03-25  Bruno Haible  <bruno@clisp.org>
54155
54156         * tests/test-frexp.c (NaN): New function/macro.
54157         (main): Use it instead of 0.0 / 0.0.
54158         * tests/test-isnan.c (NaN): New function/macro.
54159         (main): Use it instead of 0.0 / 0.0.
54160         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54161         (test_function): Use it instead of 0.0 / 0.0.
54162         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54163         (test_function): Use it instead of 0.0 / 0.0.
54164         * tests/test-snprintf-posix.h (NaN): New function/macro.
54165         (test_function): Use it instead of 0.0 / 0.0.
54166         * tests/test-sprintf-posix.h (NaN): New function/macro.
54167         (test_function): Use it instead of 0.0 / 0.0.
54168         * tests/test-fprintf-posix.h (NaN): New function/macro.
54169         (test_function): Use it instead of 0.0 / 0.0.
54170         * tests/test-printf-posix.h (NaN): New function/macro.
54171         (test_function): Use it instead of 0.0 / 0.0.
54172
54173         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54174
54175 2007-03-25  Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54178
54179 2007-03-25  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/regexec.c (merge_state_with_log): Make static.
54182
54183 2007-03-25  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/trigl.c (kernel_rem_pio2): Make static.
54186
54187 2007-03-25  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/sincosl.c (sincosl_table): Make static.
54190
54191 2007-03-25  Bruno Haible  <bruno@clisp.org>
54192
54193         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54194         if the compiler does not support C99.
54195
54196 2007-03-25  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/time (Makefile.am): Ensure all rule action lines start with a
54199         tab.
54200
54201 2007-03-24  Bruno Haible  <bruno@clisp.org>
54202
54203         * modules/tsearch-tests: New file.
54204         * tests/test-tsearch.sh: New file.
54205         * tests/test-tsearch.c: New file, mostly copied from glibc.
54206
54207         * modules/search-tests: New file.
54208         * tests/test-search.c: New file.
54209
54210         * modules/search: New file.
54211         * lib/search_.h: New file, incorporating lib/tsearch.h.
54212         * m4/search_h.m4: New file.
54213         * lib/tsearch.h: Remove file.
54214         * lib/tsearch.c: Include search.h instead of tsearch.h.
54215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54216         HAVE_TSEARCH.
54217         * modules/tsearch (Files): Remove lib/tsearch.h.
54218         (Depends-on): Add search.
54219         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54220         (Include): Change tsearch.h into search.h.
54221
54222 2007-03-24  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/fpucw: New file.
54225         * lib/fpucw.h: New file.
54226         * lib/frexp.c: Include fpucw.h.
54227         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54228         (FUNC): Use them.
54229         * lib/printf-frexp.c: Include fpucw.h.
54230         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54231         (FUNC): Use them.
54232         * lib/vasnprintf.c: Include fpucw.h.
54233         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54234         'long double' calculations.
54235         * tests/test-frexpl.c: Include fpucw.h.
54236         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54237         * tests/test-printf-frexpl.c: Include fpucw.h.
54238         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54239         * modules/frexpl (Depends-on): Add fpucw.
54240         * modules/printf-frexpl (Depends-on): Likewise.
54241         * modules/fprintf-posix (Depends-on): Likewise.
54242         * modules/snprintf-posix (Depends-on): Likewise.
54243         * modules/sprintf-posix (Depends-on): Likewise.
54244         * modules/vasnprintf-posix (Depends-on): Likewise.
54245         * modules/vasprintf-posix (Depends-on): Likewise.
54246         * modules/vfprintf-posix (Depends-on): Likewise.
54247         * modules/vsnprintf-posix (Depends-on): Likewise.
54248         * modules/vsprintf-posix (Depends-on): Likewise.
54249         * modules/frexpl-tests (Depends-on): Likewise.
54250         * modules/printf-frexpl-tests (Depends-on): Likewise.
54251
54252 2007-03-24  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/float+.h: New file.
54255         * lib/isnan.c: Include float+.h.
54256         (SIZE): New macro.
54257         (FUNC): Compare only SIZE bytes of the value.
54258         * lib/vasnprintf.c: Include float+.h.
54259         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54260         SIZEOF_LDBL or SIZEOF_DBL bytes.
54261         * modules/isnan-nolibm (Files): Add lib/float+.h.
54262         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54263         * modules/isnanl (Files): Add lib/float+.h.
54264         * modules/vasnprintf (Files): Add lib/float+.h.
54265
54266 2007-03-24  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54269         include isnanl-nolibm.h.
54270
54271 2007-03-24  Bruno Haible  <bruno@clisp.org>
54272
54273         * tests/test-read-file.c (main): Don't produce spurious output for
54274         expected situations. Make the test fail if it encountered unexpected
54275         results.
54276
54277 2007-03-24  Bruno Haible  <bruno@clisp.org>
54278
54279         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54280         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54281
54282 2007-03-24  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54285
54286 2007-03-24  Bruno Haible  <bruno@clisp.org>
54287
54288         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54289         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54290
54291         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54292         * modules/utf8-ucs4: Turn into a symbolic link to module
54293         unistr/u8-mbtouc.
54294
54295         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54296         utf8-ucs4-unsafe.
54297         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54298         unistr/u8-mbtouc-unsafe.
54299
54300         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54301         * modules/utf16-ucs4: Turn into a symbolic link to module
54302         unistr/u16-mbtouc.
54303
54304         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54305         utf16-ucs4-unsafe.
54306         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54307         unistr/u16-mbtouc-unsafe.
54308
54309         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54310         * modules/ucs4-utf8: Turn into a symbolic link to module
54311         unistr/u8-ubtomb.
54312
54313         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54314         * modules/ucs4-utf16: Turn into a symbolic link to module
54315         unistr/u16-ubtomb.
54316
54317 2007-03-24  Bruno Haible  <bruno@clisp.org>
54318
54319         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54320         Enable the function only if HAVE_INLINE.
54321         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54322         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54323         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54324         Enable the function only if HAVE_INLINE.
54325         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54326         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54327         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54328         Enable the function only if HAVE_INLINE.
54329         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54330         Enable the function only if HAVE_INLINE.
54331         * modules/utf8-ucs4: Update.
54332         * modules/utf8-ucs4-unsafe: Update.
54333         * modules/utf16-ucs4: Update.
54334         * modules/utf16-ucs4-unsafe: Update.
54335         * modules/ucs4-utf8: Update.
54336         * modules/ucs4-utf16: Update.
54337
54338 2007-03-24  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/utf8-ucs4.h: Remove file.
54341         * lib/utf8-ucs4-unsafe.h: Remove file.
54342         * lib/utf16-ucs4.h: Remove file.
54343         * lib/utf16-ucs4-unsafe.h: Remove file.
54344         * lib/ucs4-utf8.h: Remove file.
54345         * lib/ucs4-utf16.h: Remove file.
54346         * lib/unistr.h: Include their previous contents.
54347         * m4/utf-ucs4.m4: Remove file.
54348         * m4/ucs4-utf.m4: Remove file.
54349         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54350         (Depends-on): Add unistr/base.
54351         (configure.ac): Remove gl_UTF_UCS4.
54352         (Makefile.am): Update.
54353         (Include): Change to unistr.h.
54354         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54355         (Depends-on): Add unistr/base.
54356         (configure.ac): Remove gl_UTF_UCS4.
54357         (Makefile.am): Update.
54358         (Include): Change to unistr.h.
54359         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54360         (Depends-on): Add unistr/base.
54361         (configure.ac): Remove gl_UTF_UCS4.
54362         (Makefile.am): Update.
54363         (Include): Change to unistr.h.
54364         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54365         (Depends-on): Add unistr/base.
54366         (configure.ac): Remove gl_UTF_UCS4.
54367         (Makefile.am): Update.
54368         (Include): Change to unistr.h.
54369         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54370         (Depends-on): Add unistr/base.
54371         (configure.ac): Remove gl_UCS4_UTF.
54372         (Makefile.am): Update.
54373         (Include): Change to unistr.h.
54374         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54375         (Depends-on): Add unistr/base.
54376         (configure.ac): Remove gl_UCS4_UTF.
54377         (Makefile.am): Update.
54378         (Include): Change to unistr.h.
54379         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54380         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54381         utf8-ucs4-unsafe.h.
54382         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54383         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54384         utf16-ucs4-unsafe.h.
54385         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54386         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54387         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54388         * lib/unistr/u8-strchr.c: Likewise.
54389         * lib/unistr/u8-strrchr.c: Likewise.
54390         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54391         * lib/unistr/u16-strchr.c: Likewise.
54392         * lib/unistr/u16-strrchr.c: Likewise.
54393         * lib/striconveh.c: Update.
54394         * lib/linebreak.c: Update.
54395
54396 2007-03-24  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54399         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54400
54401 2007-03-22  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54404
54405 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         * MODULES.html.sh (File system functions): New module write-any-file.
54408         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54409         * m4/write-any-file.m4: New files.
54410
54411 2007-03-23  Eric Blake  <ebb9@byu.net>
54412
54413         * gnulib-tool: Rearrange space-tab sequences, since some editors
54414         like to eat them.
54415
54416 2007-03-23  Eric Blake  <ebb9@byu.net>
54417
54418         * lib/version-etc.c (version_etc_va): Update license wording to
54419         be more concise.  Recommended by Richard Stallman.
54420
54421 2007-03-22  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/poll.c (MSG_PEEK): New fallback definition.
54424
54425 2007-03-22  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54428         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54429         (main): Update.
54430         Fixes a compilation error on BeOS.
54431
54432 2007-03-22  Bruno Haible  <bruno@clisp.org>
54433
54434         * modules/frexpl-tests: New file.
54435         * tests/test-frexpl.c: New file.
54436
54437         * modules/frexpl: New file.
54438         * m4/frexpl.m4: New file.
54439         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54440         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54442         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54443         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54444         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54445
54446 2007-03-22  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/frexpl.c: Share code with lib/frexp.c.
54449         * modules/mathl (Files): Add lib/frexp.c.
54450         (Depends-on): Add isnanl-nolibm.
54451
54452 2007-03-22  Bruno Haible  <bruno@clisp.org>
54453
54454         * modules/printf-frexp (Files): Add m4/frexp.m4.
54455         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54456         only if the found frexp function actually works.
54457
54458 2007-03-22  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/frexp.c: Remove older implementation that uses divisions.
54461
54462 2007-03-21  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/frexp-tests: New file.
54465         * tests/test-frexp.c: New file.
54466
54467         * modules/frexp: New file.
54468         * lib/frexp.c: New file.
54469         * m4/frexp.m4: New file.
54470         * lib/math_.h (frexp): New declaration.
54471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54472         REPLACE_FREXP.
54473         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54474
54475 2007-03-21  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/isnanl-tests: New file.
54478         * tests/test-isnanl.c: New file.
54479
54480         * modules/isnanl: New file.
54481         * lib/isnanl.h: New file.
54482         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54483         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54484         gl_FUNC_ISNANL_WORKS.
54485         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54486         New macros.
54487
54488 2007-03-21  Bruno Haible  <bruno@clisp.org>
54489
54490         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54491         lib/isnanl.h.
54492         (Include): Update.
54493         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54494         * lib/vasnprintf.c: Update.
54495         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54496         tests/test-isnanl.h, remove tests/test-isnanl.c.
54497         (Makefile.am): Update.
54498         * tests/test-isnanl-nolibm.c: New file.
54499         * tests/test-isnanl.h: New file.
54500         * tests/test-isnanl.c: Remove file.
54501
54502 2007-03-21  Jim Meyering  <jim@meyering.net>
54503
54504         When trying to open ".", treat ESTALE like EACCES.
54505         * lib/savewd.c (savewd_save): Resort to forking not just upon
54506         failure with EACCES, but also when errno is ESTALE.
54507
54508 2007-03-20  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54511         Needed on AIX 5.1. Reported by Matthew Woehlke.
54512
54513 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         Suggestions by Bruno Haible:
54516         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54517         our own.
54518         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54519         * modules/acl (Depends-on): Add gettext.
54520
54521 2007-03-19  Bruno Haible  <bruno@clisp.org>
54522
54523         * modules/iconvme: Remove file.
54524         * lib/iconvme.h: Remove file.
54525         * lib/iconvme.c: Remove file.
54526         * m4/iconvme.m4: Remove file.
54527
54528 2007-03-19  Bruno Haible  <bruno@clisp.org>
54529
54530         * doc/relocatable-maint.texi: Break long shell script line.
54531         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54532
54533 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54534
54535         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54536         handle file_has_acl.
54537         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54538         * lib/acl.c: Move header inclusions and related macro defns into
54539         lib/acl-internal.h.
54540         (S_ISLNK): Remove defn, since that's now done for us.
54541         (file_has_acl): Move to lib/file-has-acl.c.
54542         Call acl_trivial if available.  This is the crucial part of the fix.
54543         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54544         shared within the library.  Rewrite a bit, partly to make it compatible
54545         with the GNU coding style.
54546         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54547         Remove unnecessary double-quotes.
54548         Don't test for acl_to_text; the build will catch that.
54549         Replace acl_entries if it doesn't exist and it is needed.
54550         Check for -lsec and acl_trivial (as used on Solaris 10).
54551         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54552         lib/file-has-acl.c.
54553         (Depends-on): Add sys_stat, for S_ISLNK.
54554
54555 2007-03-19  Ben Pfaff  <blp@gnu.org>
54556
54557         * doc/gnulib.texi: Fix typos.
54558         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54559
54560 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54563         If size is zero here, buf must be zero.
54564
54565 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54566
54567         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54568         <bruno@clisp.org>.
54569
54570 2007-03-18  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54573         Suggested by Eric Blake.
54574
54575 2007-03-18  Ben Pfaff  <blp@gnu.org>
54576
54577         * doc/relocatable.texi: Recommend using as prefix a directory
54578         that does not exist and will never be created.  Based on
54579         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54580         and others.
54581
54582 2007-03-17  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/fchownat.c: Include lchown.h.
54585
54586 2007-03-17  Bruno Haible  <bruno@clisp.org>
54587
54588         Fix endless loop when the given allocated size was > INT_MAX.
54589         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54590         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54591         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54592         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54593         * lib/sprintf.c (sprintf): Likewise.
54594
54595 2007-03-17  Bruno Haible  <bruno@clisp.org>
54596
54597         * tests/test-argp-2.sh (func_compare): Output a context diff.
54598
54599 2007-03-17  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54602         locale's decimal-point character.
54603
54604 2007-03-17  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54607         before comparing it. Needed because on some platforms (e.g. x86) a
54608         'long double' occupies less bytes than sizeof (long double).
54609
54610 2007-03-17  Bruno Haible  <bruno@clisp.org>
54611
54612         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54613         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54614         * tests/test-getaddrinfo.c (simple): Likewise.
54615         * tests/test-read-file.c (main): Likewise.
54616
54617 2007-03-17  Bruno Haible  <bruno@clisp.org>
54618
54619         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54620
54621 2007-03-17  Bruno Haible  <bruno@clisp.org>
54622
54623         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54624         unused variable.
54625
54626 2007-03-17  Bruno Haible  <bruno@clisp.org>
54627
54628         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54629         * tests/test-c-strncasecmp.c: Likewise.
54630
54631 2007-03-17  Bruno Haible  <bruno@clisp.org>
54632
54633         * modules/stdlib (Depends-on): Add unistd.
54634         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54635         Needed for MacOS X 10.3.
54636
54637 2007-03-17  Bruno Haible  <bruno@clisp.org>
54638
54639         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54640
54641 2007-03-17  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54644
54645 2007-03-17  Bruno Haible  <bruno@clisp.org>
54646
54647         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54648         to reflect files copied from gnulib (with or without modifications).
54649         Suggested by Jim Meyering.
54650
54651 2007-03-17  Eric Blake  <ebb9@byu.net>
54652
54653         * NEWS: Document stdlib change from 2007-02-18.
54654
54655 2007-03-17  Jim Meyering  <jim@meyering.net>
54656
54657         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54658         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54659         someone uses a name containing shell meta-characters.
54660         Reported by Alfred M. Szmidt.
54661
54662         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54663
54664 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54665
54666         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54667         and copy gettext configuration files only if configure.ac contains
54668         a use of AM_GNU_GETTEXT_VERSION.
54669
54670 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54671
54672         * build-aux/bootstrap (gnulib_name): New variable.
54673         (gnulib_tool_options): Use it.
54674
54675 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54676
54677         * tests/test-des.c: Use new namespace.
54678
54679 2007-03-15  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54682         Reported by James Youngman <jay@gnu.org>.
54683
54684 2007-03-15  Bruno Haible  <bruno@clisp.org>
54685
54686         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54687         declared prototype. Needed with cc on OSF/1 5.1.
54688
54689 2007-03-15  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54692         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54693         (struct gl_list_implementation): Add dispose_fn argument to the
54694         'create_empty', 'create' methods.
54695         (struct gl_list_impl_base): Add field 'dispose_fn'.
54696         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54697         argument.
54698         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54699         dispose_fn argument.
54700         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54701         dispose_fn on the dropped values.
54702         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54703         dispose_fn argument.
54704         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54705         dropped values.
54706         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54707         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54708         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54709         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54710         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54711         argument.
54712         (gl_tree_list_free): Call dispose_fn on the dropped values.
54713         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54714         the dropped values.
54715         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54716         Add dispose_fn argument.
54717         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54718         Call dispose_fn on the dropped values.
54719         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54720         Add dispose_fn argument.
54721         (gl_sublist_create): Initialize the 'dispose_fn' field.
54722         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54723         * tests/test-array_list.c (main): Update.
54724         * tests/test-carray_list.c (main): Update.
54725         * tests/test-avltree_list.c (main): Update.
54726         * tests/test-rbtree_list.c (main): Update.
54727         * tests/test-avltreehash_list.c (main): Update.
54728         * tests/test-rbtreehash_list.c (main): Update.
54729         * tests/test-linked_list.c (main): Update.
54730         * tests/test-linkedhash_list.c (main): Update.
54731         * tests/test-array_oset.c (main): Update.
54732
54733 2007-03-15  Bruno Haible  <bruno@clisp.org>
54734
54735         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54736         (gl_oset_create_empty): Add dispose_fn argument.
54737         (struct gl_oset_implementation): Add dispose_fn argument to
54738         'create_empty' method.
54739         (struct gl_oset_impl_base): Add dispose_fn field.
54740         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54741         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54742         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54743         values.
54744         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54745         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54746         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54747         dropped value.
54748         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54749         dropped value.
54750         * tests/test-array_oset.c (main): Update.
54751         * tests/test-avltree_oset.c (main): Update.
54752         * tests/test-rbtree_oset.c (main): Update.
54753         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54754
54755 2007-03-13  Bruno Haible  <bruno@clisp.org>
54756
54757         * tests/test-stdbool.c (i): Update after last patch.
54758
54759 2007-03-12  Bruno Haible  <bruno@clisp.org>
54760
54761         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54762         the iswprint macro. Needed on Solaris 2.5.1.
54763
54764 2007-03-12  Bruno Haible  <bruno@clisp.org>
54765
54766         * tests/test-printf-frexp.c (main): Declare x as volatile.
54767
54768 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54769
54770         * doc/gnulib.texi (Build robot for gnulib): New section.
54771
54772 2007-03-12  Jim Meyering  <jim@meyering.net>
54773
54774         * build-aux/bootstrap: New file.
54775         * build-aux/bootstrap.conf: New file, from coreutils.
54776
54777 2007-03-11  Bruno Haible  <bruno@clisp.org>
54778
54779         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54780
54781 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54782
54783         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54784         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54785         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54786
54787 2007-03-11  Bruno Haible  <bruno@clisp.org>
54788
54789         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54790         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54791
54792 2007-03-11  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54795         formula. Needed for SunPRO C 5.0.
54796
54797 2007-03-11  Bruno Haible  <bruno@clisp.org>
54798
54799         * modules/long-options (Depends-on): Add getopt.
54800
54801 2007-03-11  Bruno Haible  <bruno@clisp.org>
54802
54803         * modules/modechange (Depends-on): Add stdbool.
54804
54805 2007-03-11  Bruno Haible  <bruno@clisp.org>
54806
54807         * modules/i-ring (Depends-on): Add stdbool.
54808
54809 2007-03-11  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/gc-des (Depends-on): Add stdbool.
54812
54813 2007-03-11  Bruno Haible  <bruno@clisp.org>
54814
54815         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54816
54817 2007-03-11  Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54820
54821 2007-03-11  Bruno Haible  <bruno@clisp.org>
54822
54823         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54824
54825 2007-03-11  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/vasnprintf.c (sprintf): Undefine.
54828
54829 2007-03-11  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54832         initializers in SunPRO C and Compaq C compilers.
54833
54834 2007-03-11  Bruno Haible  <bruno@clisp.org>
54835
54836         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54837         decrementing code ANSI C compliant.
54838
54839 2007-03-11  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54842         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54843
54844 2007-03-11  Bruno Haible  <bruno@clisp.org>
54845
54846         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54847         <stdbool.h> substitute doesn't pass.
54848
54849 2007-03-11  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54852
54853 2007-03-11  Bruno Haible  <bruno@clisp.org>
54854
54855         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54856         script, for submission to autobuild.josefsson.org.
54857
54858 2007-03-10  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/canonicalize-lgpl-tests: New file.
54861         * tests/test-canonicalize-lgpl.sh: New file.
54862         * tests/test-canonicalize-lgpl.c: New file.
54863
54864         * modules/c-strcase-tests: New file.
54865         * tests/test-c-strcase.sh: New file.
54866         * tests/test-c-strcasecmp.c: New file.
54867         * tests/test-c-strncasecmp.c: New file.
54868
54869         * modules/atexit-tests: New file.
54870         * tests/test-atexit.sh: New file.
54871         * tests/test-atexit.c: New file.
54872
54873 2007-03-10  Bruno Haible  <bruno@clisp.org>
54874
54875         * tests/test-binary-io.sh: Use temporary filenames that are not so
54876         likely to clash with those of other tests (in a parallel make).
54877         * tests/test-binary-io.c: Likewise.
54878
54879 2007-03-10  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54882         fallback; use #error instead.
54883         Suggested by Simon Josefsson.
54884
54885 2007-03-10  Bruno Haible  <bruno@clisp.org>
54886
54887         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54888         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54889         first and the last.
54890
54891 2007-03-10  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54894
54895 2007-03-10  Bruno Haible  <bruno@clisp.org>
54896
54897         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54898         "make distcheck".
54899         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54900         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54901         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54902
54903 2007-03-10  Bruno Haible  <bruno@clisp.org>
54904
54905         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54906         variable.
54907         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54908         variable.
54909
54910 2007-03-09  Eric Blake  <ebb9@byu.net>
54911         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54912
54913         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54914         types are not being provided by gnulib.
54915         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54916         types are supported.
54917
54918 2007-03-10  Bruno Haible  <bruno@clisp.org>
54919
54920         * lib/stdio_.h (__attribute__): New macro.
54921         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54922         vsprintf): Specify __attribute__ __format__ for GCC.
54923         Suggested by Eric Blake.
54924
54925 2007-03-09  Bruno Haible  <bruno@clisp.org>
54926
54927         * modules/printf-posix-tests: New file.
54928         * tests/test-printf-posix.sh: New file.
54929         * tests/test-printf-posix.c: New file.
54930
54931         * modules/printf-posix: New file.
54932         * lib/printf.c: New file.
54933         * m4/printf-posix-rpl.m4: New file.
54934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54935         REPLACE_PRINTF.
54936         * lib/stdio_.h (printf): New declaration.
54937         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54938         ____strfmon____): New macros.
54939         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54940         REPLACE_PRINTF.
54941
54942 2007-03-09  Bruno Haible  <bruno@clisp.org>
54943
54944         * tests/test-vasnprintf-posix2.sh: New file.
54945         * tests/test-vasnprintf-posix2.c: New file.
54946         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54947         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54948         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54949
54950         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54951         a locale dependent decimal point, rather than always '.'.
54952
54953 2007-03-09  Eric Blake  <ebb9@byu.net>
54954
54955         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54956         spite of platforms like Tandem/NSK that define it to -1.
54957
54958 2007-03-08  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/vprintf-posix-tests: New file.
54961         * tests/test-vprintf-posix.sh: New file.
54962         * tests/test-vprintf-posix.c: New file.
54963         * tests/test-printf-posix.h: New file.
54964
54965         * modules/vprintf-posix: New file.
54966         * lib/vprintf.c: New file.
54967         * m4/vprintf-posix.m4: New file.
54968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54969         REPLACE_VPRINTF.
54970         * lib/stdio_.h (vprintf): New declaration.
54971         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54972         REPLACE_VPRINTF.
54973
54974 2007-03-08  Bruno Haible  <bruno@clisp.org>
54975
54976         * modules/fprintf-posix-tests: New file.
54977         * tests/test-fprintf-posix.sh: New file.
54978         * tests/test-fprintf-posix.c: New file.
54979
54980         * modules/fprintf-posix: New file.
54981         * lib/fprintf.c: New file.
54982         * m4/fprintf-posix.m4: New file.
54983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54984         REPLACE_FPRINTF.
54985         * lib/stdio_.h (fprintf): New declaration.
54986         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54987         REPLACE_FPRINTF.
54988
54989 2007-03-08  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/vfprintf-posix-tests: New file.
54992         * tests/test-vfprintf-posix.sh: New file.
54993         * tests/test-vfprintf-posix.c: New file.
54994         * tests/test-fprintf-posix.h: New file.
54995         * tests/test-fprintf-posix.out: New file.
54996
54997         * modules/vfprintf-posix: New file.
54998         * lib/vfprintf.c: New file.
54999         * m4/vfprintf-posix.m4: New file.
55000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55001         REPLACE_VFPRINTF.
55002         * lib/stdio_.h (vfprintf): New declaration.
55003         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55004         REPLACE_VFPRINTF.
55005
55006 2007-03-08  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55009
55010 2007-03-08  Bruno Haible  <bruno@clisp.org>
55011
55012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55013         instead of 'expr' invocations.
55014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55019         Suggested by Paul Eggert.
55020
55021 2007-03-08  Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/fseterr-tests: New file.
55024         * tests/test-fseterr.c: New file.
55025
55026         * modules/fseterr: New file.
55027         * lib/fseterr.h: New file.
55028         * lib/fseterr.c: New file.
55029
55030 2007-03-08  Bruno Haible  <bruno@clisp.org>
55031
55032         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55033         * lib/getopt_.h: Likewise.
55034         * lib/mbswidth.h: Likewise.
55035         * lib/setenv.h: Likewise.
55036         * lib/vasnprintf.h: Likewise.
55037         * lib/vasprintf.h: Likewise.
55038         * lib/verror.h: Likewise.
55039         * lib/xsetenv.h: Likewise.
55040         * lib/xvasprintf.h: Likewise.
55041
55042 2007-03-08  Jim Meyering  <jim@meyering.net>
55043
55044         * users.txt: Add parted.
55045
55046         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55047
55048 2007-03-07  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/printf.m4: Make the shell script snippets copy&pastable.
55051
55052 2007-03-02  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/netinet_in_.h: New file.
55055         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55056         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55057         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55058         (Depends-on): Add absolute-header.
55059         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55060         into netinet/in.h.
55061
55062 2007-03-03  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/sys_select_.h: New file.
55065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55066         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55067         * modules/sys_select (Files): Add lib/sys_select_.h.
55068         (Depends-on): Add absolute-header.
55069         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55070         into sys/select.h.
55071
55072 2007-03-02  Bruno Haible  <bruno@clisp.org>
55073
55074         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55075         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55076         values.
55077         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55078         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55079         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55080         * modules/sys_socket (Depends-on): Add absolute-header.
55081         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55082         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55083         (Include): Remove requirement of inclusion of <sys/types.h>.
55084
55085 2007-03-02  Bruno Haible  <bruno@clisp.org>
55086
55087         * lib/byteswap_.h (bswap_32): Fix formula.
55088
55089 2007-03-06  Bruno Haible  <bruno@clisp.org>
55090
55091         * modules/sprintf-posix-tests: New file.
55092         * tests/test-sprintf-posix.c: New file.
55093
55094         * modules/sprintf-posix: New file.
55095         * lib/sprintf.c: New file.
55096         * m4/sprintf-posix.m4: New file.
55097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55098         REPLACE_SPRINTF.
55099         * lib/stdio_.h (sprintf): New declaration.
55100         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55101         REPLACE_SPRINTF.
55102
55103 2007-03-06  Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/vsprintf-posix-tests: New file.
55106         * tests/test-vsprintf-posix.c: New file.
55107         * tests/test-sprintf-posix.h: New file.
55108
55109         * modules/vsprintf-posix: New file.
55110         * lib/vsprintf.c: New file.
55111         * m4/vsprintf-posix.m4: New file.
55112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55113         REPLACE_VSPRINTF.
55114         * lib/stdio_.h (vsprintf): New declaration.
55115         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55116         REPLACE_VSPRINTF.
55117
55118 2007-03-06  Bruno Haible  <bruno@clisp.org>
55119
55120         * modules/vsnprintf (Depend-on): Remove minmax.
55121
55122 2007-03-06  Bruno Haible  <bruno@clisp.org>
55123
55124         * modules/snprintf-posix-tests: New file.
55125         * tests/test-snprintf-posix.c: New file.
55126
55127         * modules/snprintf-posix: New file.
55128         * m4/snprintf-posix.m4: New file.
55129         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55130         gl_FUNC_SNPRINTF.
55131         (gl_FUNC_SNPRINTF): Invoke it.
55132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55133         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55134         is set.
55135         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55136
55137 2007-03-06  Bruno Haible  <bruno@clisp.org>
55138
55139         * modules/vsnprintf-posix-tests: New file.
55140         * tests/test-vsnprintf-posix.c: New file.
55141         * tests/test-snprintf-posix.h: New file.
55142
55143         * modules/vsnprintf-posix: New file.
55144         * m4/vsnprintf-posix.m4: New file.
55145         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55146         gl_FUNC_VSNPRINTF.
55147         (gl_FUNC_VSNPRINTF): Invoke it.
55148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55149         * lib/stdio_.h (vsnprintf): Define as a replacement if
55150         REPLACE_VSNPRINTF is set.
55151         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55152
55153 2007-03-06  Bruno Haible  <bruno@clisp.org>
55154
55155         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55157
55158 2007-03-06  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55161         (asinl): Declare also if HAVE_DECL_ASINL is set.
55162         (atanl): Declare also if HAVE_DECL_ATANL is set.
55163         (ceill): Declare also if HAVE_DECL_CEILL is set.
55164         (cosl): Declare also if HAVE_DECL_COSL is set.
55165         (expl): Declare also if HAVE_DECL_EXPL is set.
55166         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55167         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55168         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55169         (logl): Declare also if HAVE_DECL_LOGL is set.
55170         (sinl): Declare also if HAVE_DECL_SINL is set.
55171         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55172         (tanl): Declare also if HAVE_DECL_TANL is set.
55173         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55176         declaration of frexpl, ldexpl.
55177         * modules/printf-frexpl (Depends-on): Add math.
55178         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55179
55180 2007-03-05  Bruno Haible  <bruno@clisp.org>
55181
55182         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55183         frexpl and ldexpl are declared.
55184         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55185
55186 2007-03-05  Bruno Haible  <bruno@clisp.org>
55187
55188         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55189         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55190
55191 2007-03-05  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/stdio_.h: Include <stddef.h>.
55194
55195 2007-03-05  Bruno Haible  <bruno@clisp.org>
55196
55197         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55198
55199 2007-03-05  Bruno Haible  <bruno@clisp.org>
55200
55201         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55202         NetBSD 4, from Ralf Wildenhues.
55203
55204 2007-03-04  Bruno Haible  <bruno@clisp.org>
55205
55206         * lib/vasprintf.h: Update #if logic for the case when the functions
55207         exist but are overridden.
55208
55209 2007-03-04  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55212         implementations: glibc-2.4 and MacOS X 10.3.
55213         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55214         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55215         * tests/test-vasprintf-posix.c (test_function): Likewise.
55216
55217 2007-03-04  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/vasprintf-posix-tests: New file.
55220         * tests/test-vasprintf-posix.c: New file.
55221
55222         * modules/vasprintf-posix: New file.
55223         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55224         defined.
55225         * m4/vasprintf-posix.m4: New file.
55226         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55227         gl_FUNC_VASPRINTF.
55228         (gl_FUNC_VASPRINTF): Invoke it.
55229         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55230         here.
55231         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55232
55233 2007-03-04  Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55236         REPLACE_GETTIMEOFDAY.
55237         * modules/sys_time (Makefile.am): Likewise.
55238         * m4/sys_time_h.m4: Likewise.
55239         * m4/gettimeofday.m4: Likewise.
55240
55241 2007-03-04  Bruno Haible  <bruno@clisp.org>
55242
55243         * modules/vasnprintf-posix-tests: New file.
55244         * tests/test-vasnprintf-posix.c: New file.
55245
55246         * modules/vasnprintf-posix: New file.
55247         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55248         printf-frexpl.h.
55249         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55250         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55251         REPLACE_VASNPRINTF is defined.
55252         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55253         gl_FUNC_VASNPRINTF.
55254         (gl_FUNC_VASNPRINTF): Invoke it.
55255         * m4/vasnprintf-posix.m4: New file.
55256         * m4/printf.m4: New file.
55257
55258 2007-03-04  Bruno Haible  <bruno@clisp.org>
55259
55260         Compile progreloc.c only if --enable-relocatable is specified.
55261         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55262         if --enable-relocatable was specified.
55263         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55264         lib_SOURCES.
55265
55266 2007-03-04  Jim Meyering  <jim@meyering.net>
55267
55268         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55269         Use it consistently, rather than enumerating errno constants.
55270
55271 2007-03-04  Bruno Haible  <bruno@clisp.org>
55272
55273         * modules/xvasprintf-tests: New file.
55274         * tests/test-xvasprintf.c: New file.
55275
55276         * modules/vasprintf-tests: New file.
55277         * tests/test-vasprintf.c: New file.
55278
55279         * modules/vasnprintf-tests: New file.
55280         * tests/test-vasnprintf.c: New file.
55281
55282         * modules/vsnprintf-tests: New file.
55283         * tests/test-vsnprintf.c: New file.
55284
55285         * modules/snprintf-tests: New file.
55286         * tests/test-snprintf.c: New file.
55287
55288 2007-03-04  Bruno Haible  <bruno@clisp.org>
55289
55290         Compile relocatable.c only if --enable-relocatable is specified.
55291         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55292         gl_RELOCATABLE_LIBRARY.
55293         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55294         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55295         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55296         gl_RELOCATABLE_LIBRARY.
55297         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55298         (Makefile.am): Remove lib_SOURCES.
55299         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55300         gl_RELOCATABLE_LIBRARY.
55301         (Makefile.am): Remove lib_SOURCES.
55302         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55303         always.
55304         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55305         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55306
55307 2007-03-04  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/argmatch-tests: New file.
55310         * tests/test-argmatch.c: New file.
55311
55312         * tests/test-allocsa.c (main): Halve the number of loop runs.
55313
55314         * modules/alloca-opt-tests: New file.
55315         * tests/test-alloca-opt.c: New file.
55316
55317 2007-03-04  Jim Meyering  <jim@meyering.net>
55318
55319         Work around difference between Linux ACLs and Solaris 10 ZFS.
55320         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55321         for EINVAL.
55322
55323 2007-03-03  Bruno Haible  <bruno@clisp.org>
55324
55325         * modules/relocatable-prog (Depends-on): Add back progreloc's
55326         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55327
55328 2007-03-03  Bruno Haible  <bruno@clisp.org>
55329
55330         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55331         * modules/relocatable-lib: New file.
55332
55333 2007-03-03  Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/relocatable-prog: Renamed from modules/relocatable.
55336         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55337
55338 2007-03-03  Bruno Haible  <bruno@clisp.org>
55339
55340         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55341         m4/relocatable-lib.m4.
55342         (Depends-on): Remove 'relocatable'.
55343         (configure.ac): Add gl_RELOCATABLE_NOP.
55344
55345 2007-03-03  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/relocatable-prog-wrapper: New file.
55348         * modules/relocatable (Depends-on): Add it. Remove all other
55349         dependencies except progname.
55350         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55351
55352         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55353         (gl_FUNC_STRERROR): Nop.
55354         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55355
55356         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55357         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55358
55359         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55360         (gl_FUNC_READLINK): Update.
55361
55362         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55363
55364 2007-03-03  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55367         * modules/xreadlink (Depends-on): Add unistd.
55368         * modules/xreadlink-with-size (Depends-on): Likewise.
55369
55370 2007-03-03  Bruno Haible  <bruno@clisp.org>
55371
55372         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55373         extracted from gt_FUNC_SETENV.
55374         (gt_FUNC_SETENV): Remove macro.
55375         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55376         remove gt_FUNC_SETENV.
55377
55378 2007-03-03  Bruno Haible  <bruno@clisp.org>
55379
55380         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55381         ENABLE_RELOCATABLE here.
55382         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55383
55384 2007-03-03  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55387         * tests/test-rbtreehash_list.c: Include progname.h.
55388         (main): Call set_program_name.
55389
55390         * modules/rbtree-oset-tests (Depends-on): Add progname.
55391         * tests/test-rbtree_oset.c: Include progname.h.
55392         (main): Call set_program_name.
55393
55394         * modules/rbtree-list-tests (Depends-on): Add progname.
55395         * tests/test-rbtree_list.c: Include progname.h.
55396         (main): Call set_program_name.
55397
55398         * modules/linked-list-tests (Depends-on): Add progname.
55399         * tests/test-linked_list.c: Include progname.h.
55400         (main): Call set_program_name.
55401
55402 2007-03-03  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55405         All uses of __restrict changed to _Restrict_.
55406         * lib/glob_.h (__restrict): Remove macro.
55407
55408 2007-03-02  Bruno Haible  <bruno@clisp.org>
55409
55410         * modules/gettext (configure.ac): Require gettext infrastructure
55411         from version 0.16.1.
55412
55413 2007-03-02  Bruno Haible  <bruno@clisp.org>
55414
55415         * modules/linkedhash-list-tests (Depends-on): Add progname.
55416         * tests/test-linkedhash_list.c: Include progname.h.
55417         (main): Call set_program_name.
55418
55419         * modules/carray-list-tests (Depends-on): Add progname.
55420         * tests/test-carray_list.c: Include progname.h.
55421         (main): Call set_program_name.
55422
55423         * modules/avltreehash-list-tests (Depends-on): Add progname.
55424         * tests/test-avltreehash_list.c: Include progname.h.
55425         (main): Call set_program_name.
55426
55427         * modules/avltree-oset-tests (Depends-on): Add progname.
55428         * tests/test-avltree_oset.c: Include progname.h.
55429         (main): Call set_program_name.
55430
55431         * modules/avltree-list-tests (Depends-on): Add progname.
55432         * tests/test-avltree_list.c: Include progname.h.
55433         (main): Call set_program_name.
55434
55435         * modules/array-oset-tests (Depends-on): Add progname.
55436         * tests/test-array_oset.c: Include progname.h.
55437         (main): Call set_program_name.
55438
55439         * modules/array-list-tests (Depends-on): Add progname.
55440         * tests/test-array_list.c: Include progname.h.
55441         (main): Call set_program_name.
55442
55443         * modules/argp-tests (Depends-on): Add progname.
55444         * tests/test-argp.c: Include argp.h first. Include progname.h.
55445         (main): Call set_program_name.
55446
55447 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * doc/gnulib-tool.texi (Initial import): Reword description of
55450         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55451         limited effect even if defined after the first system include.
55452
55453 2007-03-01  Bruno Haible  <bruno@clisp.org>
55454
55455         * build-aux/config.libpath: Update to libtool-1.5.22.
55456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55457
55458 2007-03-01  Bruno Haible  <bruno@clisp.org>
55459
55460         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55461         foo_CFLAGS.
55462         Reported by Ralf Wildenhues.
55463
55464 2007-03-01  Bruno Haible  <bruno@clisp.org>
55465
55466         * build-aux/install-reloc: Remove object files left over by some
55467         compilers.
55468         Reported by Ralf Wildenhues.
55469
55470 2007-03-01  Bruno Haible  <bruno@clisp.org>
55471
55472         * build-aux/install-reloc: Break long lines.
55473
55474 2007-03-01  Bruno Haible  <bruno@clisp.org>
55475
55476         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55477         Reported by Ralf Wildenhues.
55478
55479 2007-03-01  Bruno Haible  <bruno@clisp.org>
55480
55481         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55482         include ordering constraints.
55483
55484 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55488         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55489         as another example.
55490         * lib/time_.h: Fix misspelling.
55491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55492         Require gl_HEADER_TIME_H_DEFAULTS.
55493         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55494         * m4/time_r.m4 (gl_TIME_R): Likewise.
55495         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55496
55497 2007-03-01  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55500         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55501
55502 2007-03-01  Jim Meyering  <jim@meyering.net>
55503
55504         * modules/xreadlink (Maintainer): Add my name.
55505         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55506
55507 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55508             Bruno Haible  <bruno@clisp.org>
55509
55510         * build-aux/install-reloc: Compile also c-ctype.c.
55511         * build-aux/relocatable.sh.in: New file.
55512         * doc/relocatable.texi: New file.
55513         * doc/relocatable-maint.texi: New file.
55514         * doc/gnulib.texi: Include relocatable-maint.texi.
55515         * lib/progreloc.c: Include unistd.h unconditionally.
55516         * lib/relocwrapper.c: Include unistd.h unconditionally.
55517         Include c-ctype.h.
55518         (add_dotbin): Use c_tolower.
55519         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55520         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55521         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55522         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55523         to m4/relocatable-lib.m4.
55524         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55525         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55526         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55527         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55528         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55529         * modules/relocatable: New file.
55530         * modules/relocatable-lib: New file.
55531         * modules/relocatable-script: New file.
55532
55533 2007-02-28  Bruno Haible  <bruno@clisp.org>
55534
55535         Import --enable-relocatable infrastructure.
55536         * build-aux/config.libpath: New file, from GNU gettext.
55537         * build-aux/install-reloc: New file, from GNU gettext.
55538         * build-aux/reloc-ldflags: New file, from GNU gettext.
55539         * lib/relocatable.h: New file, from GNU gettext.
55540         * lib/relocatable.c: New file, from GNU gettext.
55541         * lib/relocwrapper.c: New file, from GNU gettext.
55542         * m4/relocatable.m4: New file, from GNU gettext.
55543
55544 2007-02-28  Bruno Haible  <bruno@clisp.org>
55545
55546         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55547
55548         * modules/xreadlink: New file, from GNU gettext with modifications.
55549         * lib/xreadlink.c: New file, from GNU gettext.
55550         * lib/xreadlink.h: Add comments.
55551         (xreadlink): New declaration.
55552
55553         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55554         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55555         lib/xreadlink-with-size.c.
55556         (configure.ac): Remove gl_XREADLINK invocation.
55557         (Makefile.am): Augment lib_SOURCES.
55558         * m4/xreadlink.m4: Remove file.
55559         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55560         (xreadlink_with_size): Renamed from xreadink.
55561         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55562         * modules/canonicalize (Depends-on): Replace xreadlink with
55563         xreadlink-with-size.
55564         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55565
55566 2007-02-25  Jim Meyering  <jim@meyering.net>
55567
55568         * build-aux/announce-gen: When complaining about excess arguments,
55569         list them.
55570
55571 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * README: Document signed integer overflow situation more
55574         accurately.
55575
55576 2007-02-25  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55579         'a' or 'A' conversion.
55580
55581 2007-02-25  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/filename: Renamed from modules/pathname.
55584         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55585         lib/concatpath.c with lib/concat-filename.c.
55586         (Makefile.am): Update.
55587         (Include): Replace pathname.h with filename.h.
55588         * lib/filename.h: Renamed from lib/pathname.h.
55589         (concatenated_filename): Renamed from concatenated_pathname.
55590         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55591         (concatenated_filename): Renamed from concatenated_pathname.
55592         * lib/findprog.c: Include filename.h instead of pathname.h.
55593         (find_in_path): Update.
55594         * lib/javacomp.c: Include filename.h instead of pathname.h.
55595         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55596         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55597         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55598         is_oldgcj_14_13_usable, is_javac_usable): Update.
55599         * lib/javaexec.c: Include filename.h instead of pathname.h.
55600         (execute_java_class): Update.
55601         * modules/findprog: Update.
55602         * modules/javacomp: Update.
55603         * modules/javaexec: Update.
55604         * MODULES.html.sh (File system functions): Add 'filename', remove
55605         'pathname'.
55606
55607 2007-02-25  Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/printf-frexpl-tests: New file.
55610         * tests/test-printf-frexpl.c: New file.
55611
55612         * modules/printf-frexpl: New file.
55613         * lib/printf-frexpl.h: New file.
55614         * lib/printf-frexpl.c: New file.
55615         * m4/printf-frexpl.m4: New file.
55616
55617 2007-02-25  Bruno Haible  <bruno@clisp.org>
55618
55619         * modules/printf-frexp-tests: New file.
55620         * tests/test-printf-frexp.c: New file.
55621
55622         * modules/printf-frexp: New file.
55623         * lib/printf-frexp.h: New file.
55624         * lib/printf-frexp.c: New file.
55625         * m4/printf-frexp.m4: New file.
55626
55627 2007-02-25  Bruno Haible  <bruno@clisp.org>
55628
55629         Assume automake >= 1.10 for the tests.
55630         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55631         * modules/arctwo-tests: Likewise.
55632         * modules/argp-tests: Likewise.
55633         * modules/avltree-list-tests: Likewise.
55634         * modules/avltree-oset-tests: Likewise.
55635         * modules/avltreehash-list-tests: Likewise.
55636         * modules/carray-list-tests: Likewise.
55637         * modules/crc-tests: Likewise.
55638         * modules/des-tests: Likewise.
55639         * modules/gc-arcfour-tests: Likewise.
55640         * modules/gc-arctwo-tests: Likewise.
55641         * modules/gc-des-tests: Likewise.
55642         * modules/gc-hmac-md5-tests: Likewise.
55643         * modules/gc-hmac-sha1-tests: Likewise.
55644         * modules/gc-md2-tests: Likewise.
55645         * modules/gc-md4-tests: Likewise.
55646         * modules/gc-md5-tests: Likewise.
55647         * modules/gc-pbkdf2-sha1-tests: Likewise.
55648         * modules/gc-rijndael-tests: Likewise.
55649         * modules/gc-sha1-tests: Likewise.
55650         * modules/gc-tests: Likewise.
55651         * modules/getaddrinfo-tests: Likewise.
55652         * modules/hmac-md5-tests: Likewise.
55653         * modules/hmac-sha1-tests: Likewise.
55654         * modules/linked-list-tests: Likewise.
55655         * modules/linkedhash-list-tests: Likewise.
55656         * modules/lock-tests: Likewise.
55657         * modules/md2-tests: Likewise.
55658         * modules/md4-tests: Likewise.
55659         * modules/md5-tests: Likewise.
55660         * modules/rbtree-list-tests: Likewise.
55661         * modules/rbtree-oset-tests: Likewise.
55662         * modules/rbtreehash-list-tests: Likewise.
55663         * modules/read-file-tests: Likewise.
55664         * modules/rijndael-tests: Likewise.
55665         * modules/stdint-tests: Likewise.
55666         * modules/tls-tests: Likewise.
55667
55668 2007-02-24  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55671         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55672         function; instead check whether isnan with a double argument links.
55673         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55674         function; instead check whether isnan with a 'long double' argument
55675         links.
55676         Reported by Eric Blake <ebb9@byu.net>.
55677
55678 2007-02-24  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55681         defined.
55682         * lib/isnanl.c: Remove all code. Just include isnan.c.
55683         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55684
55685 2007-02-25  Jim Meyering  <jim@meyering.net>
55686
55687         Avoid conflicting types for 'unsetenv' on FreeBSD.
55688         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55689         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55690         in stdlib.h.
55691
55692 2007-02-24  Bruno Haible  <bruno@clisp.org>
55693
55694         * modules/isnanl-nolibm-tests: New file.
55695         * tests/test-isnanl.c: New file.
55696
55697         * modules/isnanl-nolibm: New file.
55698         * lib/isnanl.h: New file.
55699         * lib/isnanl.c: New file.
55700         * m4/isnanl.m4: New file.
55701
55702 2007-02-24  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/isnan-nolibm-tests: New file.
55705         * tests/test-isnan.c: New file.
55706
55707         * modules/isnan-nolibm: New file.
55708         * lib/isnan.h: New file.
55709         * lib/isnan.c: New file.
55710         * m4/isnan.m4: New file.
55711
55712 2007-02-24  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55715         assume that an exponent fits in 20 bits.
55716
55717 2007-02-24  Jim Meyering  <jim@meyering.net>
55718
55719         * m4/regex.m4: Update the description of the configure-time option,
55720         --without-included-regex, to state accurately what the defaults are,
55721         and perhaps to give people an idea why using this option is risky.
55722
55723 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55726         loops on small arguments.  This attempts to avoid the problem
55727         Bruno Haible reported for AIX 4.3.2 in
55728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55729
55730 2007-02-23  Bruno Haible  <bruno@clisp.org>
55731
55732         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55733         Needed for help2man.
55734
55735 2007-02-23  Karl Berry  <karl@gnu.org>
55736
55737         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55738         exists, foo.h should be cvs-ignored, not committed.
55739
55740 2007-02-23  Eric Blake  <ebb9@byu.net>
55741
55742         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55743         * lib/stat-time.h (includes): Likewise.
55744         * lib/utimecmp.c (includes): Likewise.
55745         * lib/utimens.h (includes): Likewise.
55746         * lib/getdate.y (includes): Also include "timespec.h" for use
55747         internal to the module.
55748         * modules/utimens (Depends-on): Revert yesterday's patch.
55749         * modules/nanosleep (Depends-on): Add missing dependency.
55750
55751 2007-02-22  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/glob.c: Don't include getlogin_r.h.
55754
55755 2007-02-22  Jim Meyering  <jim@meyering.net>
55756
55757         * modules/utimens (Depends-on): Add timespec, required for
55758         utimens.h's inclusion of timespec.h.
55759
55760 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55761
55762         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55763         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55764         Schwab in
55765         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55766         I'll try to think of a better way to fix the Solaris problem.
55767
55768         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55769         like glibc; on Solaris 10, it fails with errno == EINVAL.
55770         POSIX says the behavior is unspecified if the first argument is NULL,
55771         so play it safe and never pass NULL to the system getcwd.
55772
55773 2007-02-21  Jim Meyering  <jim@meyering.net>
55774
55775         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55776         of gettimeofday.  It would conflict with the one now always
55777         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55778         an IRIX 6.5 build failure.
55779
55780 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         Minor fixups to port to Solaris 10 with Sun C 5.8.
55783         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55784         * modules/getcwd (Depends-on): Add dirfd.
55785         * lib/putenv.c (putenv): #undef it.
55786         (rpl_putenv): New decl.
55787         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55788
55789 2007-02-20  Bruno Haible  <bruno@clisp.org>
55790
55791         * modules/stdio-tests: New file.
55792         * tests/test-stdio.c: New file.
55793
55794         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55795         (Depends-on): Add stdio.
55796         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55797         (Include): Use <stdio.h> instead of vsnprintf.h.
55798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55799         HAVE_DECL_VSNPRINTF.
55800         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55801
55802         * modules/snprintf (Files): Remove lib/snprintf.h.
55803         (Depends-on): Add stdio.
55804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55805         (Include): Use <stdio.h> instead of snprintf.h.
55806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55807         HAVE_DECL_SNPRINTF.
55808         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55809         * lib/getaddrinfo.c: Likewise.
55810
55811         * modules/stdio: New file.
55812         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55813         * lib/snprintf.h: Remove file.
55814         * lib/vsnprintf.h: Remove file.
55815         * lib/.cppi-disable: Remove snprintf.h.
55816         * m4/stdio_h.m4: New file.
55817         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55818
55819 2007-02-20  Jim Meyering  <jim@meyering.net>
55820
55821         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55822         used by e.g., mingw.  From Bruno Haible.
55823
55824 2007-02-19  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55827         warnings.
55828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55829
55830 2007-02-19  Bruno Haible  <bruno@clisp.org>
55831
55832         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55833         from mingw users.
55834
55835 2007-02-19  Bruno Haible  <bruno@clisp.org>
55836
55837         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55838         warnings.
55839         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55840
55841 2007-02-19  Jim Meyering  <jim@meyering.net>
55842
55843         Don't use FD after a successful "fdopendir (fd)".
55844         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55845         Reset it by calling dirfd on the just-obtained DIR*.
55846
55847         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55848         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55849
55850 2007-02-18  Bruno Haible  <bruno@clisp.org>
55851
55852         * lib/readlink.c: Include <unistd.h>.
55853         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55854         HAVE_READLINK.
55855         * modules/readlink (Depends-on): Add unistd.
55856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55857         (Include): Add <unistd.h>.
55858
55859         * lib/getlogin_r.h: Remove file.
55860         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55861         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55862         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55863         HAVE_DECL_GETLOGIN_R.
55864         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55866         (Include): Use <unistd.h> instead of getlogin_r.h.
55867
55868         * lib/getcwd.h: Remove file.
55869         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55870         * lib/xgetcwd.c: Likewise.
55871         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55872         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55873         * modules/getcwd (Files): Remove lib/getcwd.h.
55874         (Depends-on): Add unistd.
55875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55876         (Include): Use <unistd.h> instad of getcwd.h.
55877
55878         * lib/ftruncate.c: Include <unistd.h> first.
55879         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55880         Set HAVE_FTRUNCATE.
55881         * modules/ftruncate (Depends-on): Add unistd.
55882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55883
55884         * lib/fchdir.c: Include <unistd.h> first.
55885         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55887         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55888         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55889         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55890
55891         * lib/dup2.c: Include <unistd.h> first.
55892         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55893         HAVE_DUP2.
55894         * modules/dup2 (Depends-on): Add unistd.
55895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55896
55897         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55898         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55899         REPLACE_CHOWN. Don't define chown as a macro here.
55900         * modules/chown (Depends-on): Add unistd.
55901         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55902
55903         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55904         Add definition for GL_LINK_WARNING.
55905         (chown, dup2): New declarations.
55906         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55907         link warning.
55908         (ftruncate): New declaration.
55909         (getcwd): New declaration, taken from old getcwd.h.
55910         (getlogin_r): New declaration, taken from old getlogin_r.h.
55911         (readlink): New declaration.
55912         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55913         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55914         (gl_PREREQ_UNISTD): Remove macro.
55915         (gl_UNISTD_MODULE_INDICATOR): New macro.
55916         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55917         many new variables. Don't set UNISTD_H.
55918         * modules/unistd (Description): Change.
55919         (Depends-on): Add link-warning.
55920         (configure.ac): Update.
55921         (Makefile.am): Create unistd.h always. Substitute many new variables
55922         into it.
55923
55924 2007-02-18  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55927         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55928         HAVE_GETSUBOPT.
55929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55930         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55931         * lib/getsubopt.h: Remove file.
55932         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55933         (Depends-on): Add stdlib.
55934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55935         (Includes): Use <stdlib.h> instead of getsubopt.h.
55936         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55937         Set HAVE_GETSUBOPT.
55938         * lib/getsubopt.c: Don't include getsubopt.h.
55939
55940 2007-02-18  Bruno Haible  <bruno@clisp.org>
55941
55942         * modules/fchdir (Depends-on): Add dup2.
55943
55944 2007-02-18  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/stdlib_.h: Handle glibc's special invocation convention
55947         specially.
55948
55949 2007-02-18  Bruno Haible  <bruno@clisp.org>
55950
55951         * modules/stdlib-tests: New file.
55952         * tests/test-stdlib.c: New file.
55953
55954         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55955         (Depends-on): Add stdlib.
55956         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55957         (Includes): Use <stdlib.h> instead of mkstemp.h.
55958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55959         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55960         * lib/mkstemp.c: Don't include mkstemp.h.
55961         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55962         * lib/stdlib--.h: Don't include mkstemp.h.
55963
55964         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55965         (Depends-on): Add stdlib.
55966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55967         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55968         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55969         HAVE_MKDTEMP.
55970         * lib/mkdtemp.c: Don't include mkdtemp.h.
55971         * lib/clean-temp.c: Don't include mkdtemp.h.
55972
55973         * modules/exit (Files): Remove lib/exit.h.
55974         (Depends-on): Add stdlib.
55975         (Makefile.am): Remove lib_SOURCES.
55976         (Include): Use <stdlib.h> instead of exit.h.
55977         * lib/argmatch.c: Don't include exit.h.
55978         * lib/execute.c: Likewise.
55979         * lib/pagealign_alloc.c: Likewise.
55980         * lib/pipe.c: Likewise.
55981         * lib/wait-process.c: Likewise.
55982         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55983         * lib/exitfail.c: Likewise.
55984         * lib/savewd.c: Likewise.
55985         * lib/xsetenv.c: Likewise.
55986
55987         * modules/stdlib: New file.
55988         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55989         and extra comments about mkstemp().
55990         * lib/exit.h: Remove file.
55991         * lib/mkdtemp.h: Remove file.
55992         * lib/mkstemp.h: Remove file.
55993         * m4/stdlib_h.m4: New file.
55994         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55995
55996 2007-02-18  Bruno Haible  <bruno@clisp.org>
55997
55998         * modules/math-tests: New file.
55999         * tests/test-math.c: New file.
56000
56001         * modules/math: New file.
56002         * modules/mathl (Files): Remove lib/mathl.h.
56003         (Depends-on): Add math.
56004         (Makefile.am): Don't mention mathl.h.
56005         (Include): Use <math.h> instead of mathl.h.
56006         * lib/math_.h: New file.
56007         * lib/mathl.h: Remove file.
56008         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56009         mathl.h.
56010         * lib/asinl.c: Likewise.
56011         * lib/atanl.c: Likewise.
56012         * lib/ceill.c: Likewise.
56013         * lib/cosl.c: Likewise.
56014         * lib/expl.c: Likewise.
56015         * lib/floorl.c: Likewise.
56016         * lib/frexpl.c: Likewise.
56017         * lib/ldexpl.c: Likewise.
56018         * lib/logl.c: Likewise.
56019         * lib/sincosl.c: Likewise.
56020         * lib/sinl.c: Likewise.
56021         * lib/sqrtl.c: Likewise.
56022         * lib/tanl.c: Likewise.
56023         * lib/trigl.c: Likewise.
56024         * m4/math_h.m4: New file.
56025         * MODULES.html.sh (Mathematics): Add math.
56026
56027 2007-02-17  Bruno Haible  <bruno@clisp.org>
56028
56029         * modules/wctype-tests: New file.
56030         * tests/test-wctype.c: New file.
56031
56032         * modules/wchar-tests: New file.
56033         * tests/test-wchar.c: New file.
56034
56035         * modules/unistd-tests: New file.
56036         * tests/test-unistd.c: New file.
56037
56038         * modules/time-tests: New file.
56039         * tests/test-time.c: New file.
56040
56041         * modules/sysexits-tests: New file.
56042         * tests/test-sysexits.c: New file.
56043
56044         * modules/sys_time-tests: New file.
56045         * tests/test-sys_time.c: New file.
56046
56047         * modules/sys_stat-tests: New file.
56048         * tests/test-sys_stat.c: New file.
56049
56050         * modules/sys_socket-tests: New file.
56051         * tests/test-sys_socket.c: New file.
56052
56053         * modules/sys_select-tests: New file.
56054         * tests/test-sys_select.c: New file.
56055
56056         * modules/string-tests: New file.
56057         * tests/test-string.c: New file.
56058
56059         * modules/stdbool-tests: New file.
56060         * tests/test-stdbool.c: New file.
56061
56062         * modules/netinet_in-tests: New file.
56063         * tests/test-netinet_in.c: New file.
56064
56065         * modules/inttypes-tests: New file.
56066         * tests/test-inttypes.c: New file.
56067
56068         * modules/fcntl-tests: New file.
56069         * tests/test-fcntl.c: New file.
56070
56071         * modules/byteswap-tests: New file.
56072         * tests/test-byteswap.c: New file.
56073
56074         * modules/arpa_inet-tests: New file.
56075         * tests/test-arpa_inet.c: New file.
56076
56077 2007-02-17  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56080         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56081         if the corresponding module is not enabled. Emit link warnings if
56082         the function is used nevertheless.
56083         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56084         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56085         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56086         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56087         * modules/inttypes (Depends-on): Add link-warning.
56088         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56089         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56090         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56091         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56092         * modules/imaxdiv (configure.ac): Likewise.
56093         * modules/strtoimax (configure.ac): Likewise.
56094         * modules/strtoumax (configure.ac): Likewise.
56095
56096 2007-02-17  Bruno Haible  <bruno@clisp.org>
56097
56098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56099         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56100         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56101         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56102
56103 2007-02-17  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/link-warning: New file.
56106         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56107         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56108         * modules/string (Depends-on): Add link-warning.
56109         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56110         string.h.
56111         * MODULES.html.sh (Support for building libraries and executables): Add
56112         link-warning.
56113
56114 2007-02-17  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56117         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56118         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56119         long lines.
56120
56121 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56122             Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/tmpfile: New file.
56125         * lib/tmpfile.c: New file.
56126         * m4/tmpfile.m4: New file.
56127         * MODULES.html.sh (func_all_modules): New section "Input/output".
56128
56129 2007-02-15  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56132         (supports_delete_on_close): New function.
56133         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56134
56135 2007-02-14  Bruno Haible  <bruno@clisp.org>
56136
56137         * modules/mbspcasecmp-tests: New file.
56138         * tests/test-mbspcasecmp.sh: New file.
56139         * tests/test-mbspcasecmp.c: New file.
56140
56141         New module mbspcasecmp.
56142         * modules/mbspcasecmp: New file.
56143         * lib/mbspcasecmp.c: New file.
56144         * lib/string_.h (strncasecmp): Change warning message.
56145         (mbspcasecmp): New declaration.
56146         * m4/mbspcasecmp.m4: New file.
56147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56148         GNULIB_MBSPCASECMP.
56149         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56150         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56151
56152 2007-02-14  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/mbsncasecmp-tests: New file.
56155         * tests/test-mbsncasecmp.sh: New file.
56156         * tests/test-mbsncasecmp.c: New file.
56157
56158         New module mbsncasecmp.
56159         * modules/mbsncasecmp: New file.
56160         * lib/mbsncasecmp.c: New file.
56161         * lib/string_.h (mbsncasecmp): New declaration.
56162         * m4/mbsncasecmp.m4: New file.
56163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56164         GNULIB_MBSNCASECMP.
56165         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56166         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56167
56168 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56169
56170         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56171         Verify that it doesn't overlap with our flags.
56172         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56173         do not have the desired effect in multibyte locales; instead, use
56174         mbscasecmp.
56175         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56176         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56177         we don't require GNU fnmatch ourselves (if our users require it, they
56178         should do so explicitly).
56179
56180         Fix regex code so it doesn't rely on strcasecmp.
56181         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56182         Otherwise, include gnulib's langinfo.h.
56183         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56184         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56185         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56186         * modules/regex (FILES): Remove m4/codeset.m4.
56187         (Depends-on): Add localcharset.  Remove strcase.
56188
56189 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56190
56191         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56192         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56193
56194 2007-02-13  Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56198
56199 2007-02-12  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56202         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56203         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56204         time warning rather than a link error.
56205
56206 2007-02-12  Bruno Haible  <bruno@clisp.org>
56207
56208         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56211
56212 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56215         args, not 2.
56216
56217 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         New module 'time', so that apps can include <time.h> as per
56220         POSIX and GNU instead of separate include files like time_r.h
56221         and timegm.h.  This implementation tries out a simpler approach
56222         for replacing decls in standard include files (as compared to
56223         the string module), somewhat as an experiment.
56224
56225         * config/srclist.txt: Comment out mktime.c for now.
56226         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56227         since it doesn't apply any more.  Use generic wording instead.
56228         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56229         'time'.
56230         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56231         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56232         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56233         Don't include <sys/types.h>; no longer needed since we assume C89.
56234         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56235         * lib/strftime.c: Likewise.
56236         * lib/time_r.c: Likewise.
56237         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56238         * lib/nanosleep.c: Include <time.h> first, to check interface.
56239         * lib/strptime.c: Likewise.
56240         * lib/time_r.c: Likewise.
56241         * lib/timegm.c: Likewise.
56242         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56243         needed.
56244         * lib/timegm.c: Don't include timegm.h; no longer needed.
56245         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56246         time.h now handles any problems in that area.
56247         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56248         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56249         that time.h defines struct timespec.
56250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56251         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56252         handles that.
56253         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56254         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56255         needed.  Set REPLACE_LOCALTIME.
56256         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56257         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56258         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56259         nanosleep; time_h.m4 now does that.  Don't require
56260         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56261         module handles this now.
56262         * modules/getdate (Depends-on): Remove timespec.  Add time.
56263         * modules/nanosleep (Depends-on): Likewise.
56264         * modules/stat-time (Depends-on): Likewise.
56265         * modules/nanosleep (Include): Include time.h, not timespec.h.
56266         * modules/strptime (Files): Remove lib/strptime.h.
56267         (Depends-on): Add extensions, time.
56268         (Include): Include time.h, not strptime.h.
56269         * modules/time_r (Files): Remove lib/time_r.h.
56270         (Depends-on): Add time.
56271         (Include): Include time.h, not time_r.h.
56272         * modules/timegm: Likewise.
56273         * modules/timespec (Description): Now does timespec-related decls
56274         of our own, instead of struct timespec itself.
56275         (Depends-on): Add time; remove extensions.
56276         (Maintainer): Add self.
56277         * modules/utimecmp (Depends-on): Add time; remove timespec.
56278         * modules/utimens (Depends-on): Likewise.
56279         * modules/xnanosleep (Depends-on): Likewise.
56280
56281 2007-02-11  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/c-strstr.c: Include allocsa.h.
56284         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56285         * lib/c-strcasestr.c: Include allocsa.h.
56286         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56287         * lib/strcasestr.c: Include allocsa.h.
56288         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56289         * lib/mbsstr.c: Include allocsa.h.
56290         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56291         allocsa/freesa instead of malloc/free.
56292         * lib/mbscasestr.c: Include allocsa.h.
56293         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56294         allocsa/freesa instead of malloc/free.
56295         * modules/c-strstr (Depends-on): Add allocsa.
56296         * modules/c-strcasestr (Depends-on): Likewise.
56297         * modules/strcasestr (Depends-on): Likewise.
56298         * modules/mbsstr (Depends-on): Likewise.
56299         * modules/mbscasestr (Depends-on): Likewise.
56300
56301 2007-02-11  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56304
56305         * modules/mbsspn-tests: New file.
56306         * tests/test-mbsspn.sh: New file.
56307         * tests/test-mbsspn.c: New file.
56308
56309 2007-02-11  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56312
56313         * modules/mbspbrk-tests: New file.
56314         * tests/test-mbspbrk.sh: New file.
56315         * tests/test-mbspbrk.c: New file.
56316
56317 2007-02-11  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56320         unneeded cast.
56321
56322         * modules/mbscspn-tests: New file.
56323         * tests/test-mbscspn.sh: New file.
56324         * tests/test-mbscspn.c: New file.
56325
56326 2007-02-11  Bruno Haible  <bruno@clisp.org>
56327
56328         * modules/mbscasecmp-tests: New file.
56329         * tests/test-mbscasecmp.sh: New file.
56330         * tests/test-mbscasecmp.c: New file.
56331
56332 2007-02-11  Bruno Haible  <bruno@clisp.org>
56333
56334         Ensure O(n) worst-case complexity of mbscasestr.
56335         * lib/mbscasestr.c: Include stdbool.h.
56336         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56337         functions.
56338         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56339         the bookkeeping indicates that it's worth it.
56340         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56341
56342         * modules/mbscasestr-tests: New file.
56343         * tests/test-mbscasestr1.c: New file.
56344         * tests/test-mbscasestr2.sh: New file.
56345         * tests/test-mbscasestr2.c: New file.
56346         * tests/test-mbscasestr3.sh: New file.
56347         * tests/test-mbscasestr3.c: New file.
56348         * tests/test-mbscasestr4.sh: New file.
56349         * tests/test-mbscasestr4.c: New file.
56350         * m4/locale-tr.m4: New file.
56351
56352 2007-02-11  Bruno Haible  <bruno@clisp.org>
56353
56354         Ensure O(n) worst-case complexity of mbsstr.
56355         * lib/mbsstr.c: Include stdbool.h.
56356         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56357         functions.
56358         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56359         bookkeeping indicates that it's worth it.
56360         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56361
56362         * modules/mbsstr-tests: New file.
56363         * tests/test-mbsstr1.c: New file.
56364         * tests/test-mbsstr2.sh: New file.
56365         * tests/test-mbsstr2.c: New file.
56366         * tests/test-mbsstr3.sh: New file.
56367         * tests/test-mbsstr3.c: New file.
56368         * m4/locale-fr.m4: New file.
56369
56370 2007-02-11  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/mbsrchr.c (mbsrchr): Fix bug.
56373
56374         * modules/mbsrchr-tests: New file.
56375         * tests/test-mbsrchr.sh: New file.
56376         * tests/test-mbsrchr.c: New file.
56377
56378 2007-02-11  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/mbschr.c (mbschr): Fix bug.
56381
56382         * modules/mbschr-tests: New file.
56383         * tests/test-mbschr.sh: New file.
56384         * tests/test-mbschr.c: New file.
56385         * m4/locale-zh.m4: New file.
56386
56387 2007-02-11  Bruno Haible  <bruno@clisp.org>
56388
56389         Support for copying multibyte string iterators.
56390         * lib/mbiter.h: Include <string.h>.
56391         (mbiter_multi_copy): New function.
56392         (mbi_copy): New macro.
56393         * lib/mbuiter.h: Include <string.h>.
56394         (mbuiter_multi_copy): New function.
56395         (mbui_copy): New macro.
56396
56397 2007-02-11  Bruno Haible  <bruno@clisp.org>
56398
56399         New module mbslen.
56400         * modules/mbslen: New file.
56401         * lib/mbslen.c: New file.
56402         * lib/string_.h (mbslen): New declaration.
56403         * m4/mbslen.m4: New file.
56404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56405         GNULIB_MBSLEN.
56406         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56407         * MODULES.html.sh (Internationalization functions): Add mbslen.
56408
56409 2007-02-11  Bruno Haible  <bruno@clisp.org>
56410
56411         Ensure O(n) worst-case complexity of strcasestr substitute.
56412         * lib/strcasestr.c: Include stdbool.h.
56413         (knuth_morris_pratt): New function.
56414         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56415         bookkeeping indicates that it's worth it.
56416         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56417
56418         * modules/strcasestr-tests: New file.
56419         * tests/test-strcasestr.c: New file.
56420
56421 2007-02-11  Bruno Haible  <bruno@clisp.org>
56422
56423         Ensure O(n) worst-case complexity of c_strcasestr.
56424         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56425         (knuth_morris_pratt): New function.
56426         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56427         the bookkeeping indicates that it's worth it.
56428         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56429
56430         * modules/c-strcasestr-tests: New file.
56431         * tests/test-c-strcasestr.c: New file.
56432
56433 2007-02-11  Bruno Haible  <bruno@clisp.org>
56434
56435         Ensure O(n) worst-case complexity of c_strstr.
56436         * lib/c-strstr.c: Include stdbool.h, string.h.
56437         (knuth_morris_pratt): New function.
56438         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56439         bookkeeping indicates that it's worth it.
56440         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56441
56442         * lib/c-strstr.c: Complete rewrite for maintainability.
56443
56444         * modules/c-strstr-tests: New file.
56445         * tests/test-c-strstr.c: New file.
56446
56447 2007-02-11  Bruno Haible  <bruno@clisp.org>
56448
56449         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56450         5.2.1 and earlier, whereby \055 was treated just like the range
56451         delimiter '-'.
56452         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56453
56454 2007-02-08  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/regex (Depends-on): Add stdbool.
56457         Reported by Dalibor Topic <robilad@kaffe.org>.
56458
56459 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56460
56461         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56462         Prefer returning from main to exiting from it.
56463         Remove unnecessary parens after sizeof.
56464
56465 2007-02-05  Bruno Haible  <bruno@clisp.org>
56466
56467         New module mbssep.
56468         * modules/mbssep: New file.
56469         * lib/mbssep.c: New file.
56470         * lib/string_.h (strsep): Add a conditional link warning.
56471         (mbssep): New declaration.
56472         * m4/mbssep.m4: New file.
56473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56474         GNULIB_MBSSEP.
56475         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56476         * MODULES.html.sh (Internationalization functions): Add mbssep.
56477
56478 2007-02-05  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56481         Optimize search in case of 1 delimiter.
56482
56483 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56484
56485         * lib/acl.h: Include sys/types.h before sys/acl.h.
56486
56487 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56488
56489         Merge upstream fix for glibc bugzilla #3957:
56490
56491         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56492
56493         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56494         bit for RE_HAT_LISTS_NOT_NEWLINE.
56495         (build_charclass_op): Remove bogus comment.
56496
56497 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56498
56499         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56500
56501 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56502
56503         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56504         * lib/memmem.c [!defined _LIBC]: Include config.h.
56505
56506 2007-02-04  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56509         warning message.
56510
56511 2007-02-04  Bruno Haible  <bruno@clisp.org>
56512
56513         New module mbstok_r.
56514         * modules/mbstok_r: New file.
56515         * lib/mbstok_r.c: New file.
56516         * lib/string_.h (strtok_r): Change argument names to match the
56517         comments. Add a conditional link warning.
56518         (mbstok_r): New declaration.
56519         * m4/mbstok_r.m4: New file.
56520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56521         GNULIB_MBSTOK_R.
56522         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56523         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56524
56525 2007-02-04  Bruno Haible  <bruno@clisp.org>
56526
56527         New module mbsspn.
56528         * modules/mbsspn: New file.
56529         * lib/mbsspn.c: New file.
56530         * lib/string_.h (strspn): Add a conditional link warning.
56531         (mbsspn): New declaration.
56532         * m4/mbsspn.m4: New file.
56533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56534         GNULIB_MBSSPN.
56535         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56536         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56537
56538 2007-02-04  Bruno Haible  <bruno@clisp.org>
56539
56540         New module mbspbrk.
56541         * modules/mbspbrk: New file.
56542         * lib/mbspbrk.c: New file.
56543         * lib/string_.h (strpbrk): Add a conditional link warning.
56544         (mbspbrk): New declaration.
56545         * m4/mbspbrk.m4: New file.
56546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56547         GNULIB_MBSPBRK.
56548         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56549         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56550
56551 2007-02-04  Bruno Haible  <bruno@clisp.org>
56552
56553         New module mbscspn.
56554         * modules/mbscspn: New file.
56555         * lib/mbscspn.c: New file.
56556         * lib/string_.h (strcspn): Add a conditional link warning.
56557         (mbscspn): New declaration.
56558         * m4/mbscspn.m4: New file.
56559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56560         GNULIB_MBSCSPN.
56561         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56562         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56563
56564 2007-02-04  Bruno Haible  <bruno@clisp.org>
56565
56566         New module mbscasestr, reduced goal of strcasestr.
56567         * modules/mbscasestr: New file.
56568         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56569         (mbscasestr): Renamed from strcasestr.
56570         * lib/strcasestr.c: Don't include mbuiter.h.
56571         (strcasestr): Remove support for multibyte locales.
56572         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56573         Change the conditional link warning.
56574         (mbscasestr): New declaration.
56575         * m4/mbscasestr.m4: New file.
56576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56577         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56578         REPLACE_STRCASESTR.
56579         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56581         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56583         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56584         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56585         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56586         (Depends-on): Remove mbuiter.
56587         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56588
56589 2007-02-04  Bruno Haible  <bruno@clisp.org>
56590
56591         Simplify handling of strncasecmp.
56592         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56593         the conditional link warning.
56594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56595         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56596         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56597         * modules/strcase (configure.ac): Don't invoke
56598         gl_STRING_MODULE_INDICATOR.
56599         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56600
56601 2007-02-04  Bruno Haible  <bruno@clisp.org>
56602
56603         New module mbscasecmp, reduced goal of strcasecmp.
56604         * modules/mbscasecmp: New file.
56605         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56606         (mbscasecmp): Renamed from strcasecmp.
56607         * lib/strcasecmp.c: Don't include mbuiter.h.
56608         (strcasecmp): Remove support for multibyte locales.
56609         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56610         Change the conditional link warning.
56611         (mbscasecmp): New declaration.
56612         * m4/mbscasecmp.m4: New file.
56613         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56614         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56615         REPLACE_STRCASECMP.
56616         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56618         GNULIB_MBSCASECMP.
56619         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56620         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56621         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56622         (Depends-on): Remove mbuiter.
56623         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56624
56625 2007-02-04  Bruno Haible  <bruno@clisp.org>
56626
56627         New module mbsstr. Remove module strstr.
56628         * modules/mbsstr: New file.
56629         * modules/strstr: Remove file.
56630         * lib/mbsstr.c: Renamed from lib/strstr.c.
56631         (mbsstr): Renamed from strstr.
56632         * lib/string_.h (strstr): Remove declaration. Change the conditional
56633         link warning.
56634         (mbsstr): New declaration.
56635         * m4/mbsstr.m4: New file.
56636         * m4/strstr.m4: Remove file.
56637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56638         REPLACE_STRSTR.
56639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56640         Don't initialize GNULIB_STRSTR.
56641         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56642         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56643         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56644         (Support for systems lacking ANSI C 89): Remove strstr.
56645
56646 2007-02-04  Bruno Haible  <bruno@clisp.org>
56647
56648         New module mbsrchr.
56649         * modules/mbsrchr: New file.
56650         * lib/mbsrchr.c: New file.
56651         * lib/string_.h (strrchr): Add a conditional link warning.
56652         (mbsrchr): New declaration.
56653         * m4/mbsrchr.m4: New file.
56654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56655         GNULIB_MBSRCHR.
56656         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56657         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56658
56659 2007-02-04  Bruno Haible  <bruno@clisp.org>
56660
56661         New module mbschr.
56662         * modules/mbschr: New file.
56663         * lib/mbschr.c: New file.
56664         * lib/string_.h (strchr): Add a conditional link warning.
56665         (mbschr): New declaration.
56666         * m4/mbschr.m4: New file.
56667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56668         GNULIB_MBSCHR.
56669         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56670         * MODULES.html.sh (Internationalization functions): Add mbschr.
56671
56672 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56673
56674         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56675
56676         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56677
56678 2007-02-04  Bruno Haible  <bruno@clisp.org>
56679
56680         New module description section 'configure.ac-early'.
56681         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56682         (func_get_autoconf_early_snippet): New function.
56683         (func_import, func_create_testdir): Use it. Remove special cases for
56684         modules 'extensions' and 'lock'.
56685         * modules/extensions (configure.ac-early): Require
56686         gl_USE_SYSTEM_EXTENSIONS.
56687         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56688
56689 2007-02-04  Bruno Haible  <bruno@clisp.org>
56690
56691         Make use of gcj-4.3's -fsource and -ftarget option.
56692         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56693         and if so try the options -fsource and -ftarget.
56694         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56695         source_version, ftarget_option, target_version arguments.
56696         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56697         (is_envjavac_oldgcj_14_14_usable): Renamed from
56698         is_envjavac_gcj_14_14_usable.
56699         (is_envjavac_oldgcj_14_13_usable): Renamed from
56700         is_envjavac_gcj_14_13_usable.
56701         (is_gcj_present): Update.
56702         (is_gcj_43, is_gcj43_usable): New functions.
56703         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56704         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56705         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56706         try the options -fsource and -ftarget.
56707
56708 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56711         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56712         larger value.
56713
56714 2007-02-03  Jim Meyering  <jim@meyering.net>
56715
56716         Give tools a better chance to allocate space for very large buffers.
56717         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56718
56719         Make pwd and readlink work also when run with an unreadable parent dir
56720         on systems with openat support.
56721         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56722         provided getcwd function, even when we have openat support.
56723         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56724
56725 2007-02-02  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56728         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56729         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56730         portability problems if one of these functions is only used on specific
56731         platforms.
56732         Reported by Paul Eggert.
56733
56734 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56737         is causing more trouble than it's curing.
56738         * lib/regex_internal.h (__mempcpy): Remove.
56739         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56740         (and make the code a tad smaller to boot).
56741         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56742
56743 2007-02-02  Jim Meyering  <jim@meyering.net>
56744
56745         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56746         section, not in the Makefile.am: one.
56747
56748 2007-02-02  Eric Blake  <ebb9@byu.net>
56749
56750         * lib/strchrnul.c: Always include config.h first.
56751
56752         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56753         gnulib strstr is not necessary here.
56754
56755 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56756
56757         * m4/socklen.m4: Fix typo.
56758
56759 2007-02-02  Eric Blake  <ebb9@byu.net>
56760
56761         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56762         * modules/netinet_in (Makefile.am): Likewise.
56763
56764 2007-02-01  Bruno Haible  <bruno@clisp.org>
56765
56766         * lib/string_.h (GL_LINK_WARNING): New macro.
56767         (strcasecmp, strstr, strcasestr): If provided by the system,
56768         conditionally define as a macro that leads to a warning instead of to
56769         an error.
56770         (strncasecmp): Conditionally define as a macro that leads to a warning.
56771
56772 2007-02-01  Karl Berry  <karl@gnu.org>
56773
56774         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56775
56776 2007-02-01  Bruno Haible  <bruno@clisp.org>
56777
56778         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56779         renamings.
56780
56781 2007-02-01  Eric Blake  <ebb9@byu.net>
56782
56783         * modules/regex (Depends-on): Revert dependence on mempcpy.
56784         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56785         module's definition of mempcpy.
56786         Reported by Paul Eggert.
56787
56788 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56789
56790         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56791         the symbol XYZ before redefining it.  This fixes a problem with
56792         programs that don't use XYZ, when compiled on systems that define
56793         XYZ to something else.
56794
56795 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56796
56797         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56798         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56799         writeable to group or other and (2) is intended to have a special
56800         mode bit that is set or cleared.  In such a case, the directory
56801         should be neither group- nor other-writeable until the special
56802         mode bits are right.
56803
56804 2007-01-31  Eric Blake  <ebb9@byu.net>
56805
56806         * modules/mountlist (Depends-on): Add strstr.
56807
56808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56809         bug.
56810         * modules/string (Makefile.am): Remove redundant replacement.
56811         * modules/regex (Depends-on): Add mempcpy.
56812
56813 2007-01-31  Bruno Haible  <bruno@clisp.org>
56814
56815         New module description field 'Link'.
56816         * gnulib-tool (func_usage): Document --extract-link-directive.
56817         (sed_extract_prog): Recognize 'Link' directive.
56818         (func_get_link_directive): New function.
56819         (func_import): Show summary of link directives.
56820         Handle --extract-link-directive option.
56821         * modules/acl (Link): New section.
56822         * modules/clock-time (Link): New section.
56823         * modules/euidaccess (Link): New section.
56824         * modules/gettext (Link): New section.
56825         * modules/iconv (Link): New section.
56826         * modules/lock (Link): New section.
56827         * modules/nanosleep (Link): New section.
56828         * modules/readline (Link): New section.
56829
56830 2007-01-27  Bruno Haible  <bruno@clisp.org>
56831
56832         Enforce the use of gnulib modules for unportable <string.h> functions.
56833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56834         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56835         (gl_HEADER_STRING_H_BODY): Require it.
56836         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56837         the symbol XYZ to one that gives a link error.
56838         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56839         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56840         * modules/mempcpy (configure.ac): Likewise.
56841         * modules/memrchr (configure.ac): Likewise.
56842         * modules/stpcpy (configure.ac): Likewise.
56843         * modules/stpncpy (configure.ac): Likewise.
56844         * modules/strcase (configure.ac): Likewise.
56845         * modules/strcasestr (configure.ac): Likewise.
56846         * modules/strchrnul (configure.ac): Likewise.
56847         * modules/strdup (configure.ac): Likewise.
56848         * modules/strndup (configure.ac): Likewise.
56849         * modules/strnlen (configure.ac): Likewise.
56850         * modules/strpbrk (configure.ac): Likewise.
56851         * modules/strsep (configure.ac): Likewise.
56852         * modules/strstr (configure.ac): Likewise.
56853         * modules/strtok_r (configure.ac): Likewise.
56854
56855 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56856
56857         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56858
56859 2007-01-30  Jim Meyering  <jim@meyering.net>
56860
56861         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56862
56863 2007-01-29  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56866         * lib/execute.c: Likewise.
56867         * lib/pipe.c: Likewise.
56868         * lib/printf-args.h: Likewise.
56869         * lib/printf-args.c: Likewise.
56870         * lib/printf-parse.c: Likewise.
56871         * lib/vasnprintf.c: Likewise.
56872
56873 2007-01-29  Eric Blake  <ebb9@byu.net>
56874
56875         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56876         declaration.
56877
56878 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56879
56880         * lib/strptime.h (strptime): Use 'restrict' for args where
56881         POSIX requires this.
56882         * lib/strptime.c (strptime): Likewise.
56883         Change license notice from LGPL to GPL, since gnulib-tool will
56884         change this as needed.
56885         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56886         defined.
56887         Include "strptime.h" first, to check interface.
56888         Do not #undef _LIBC and _NL_CURRENT.
56889         Do not include <stdlib.h>; no longer needed.
56890         Include "time_r.h" and declare ptime_locale_status
56891         only if _LIBC is not defined.
56892         (__P): Remove unused macro.
56893         (match_string): Bring back glibc version, but use it only if _LIBC
56894         is defined.
56895         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56896         Remove unnecessary assertion and abort() call.
56897         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56898         * m4/strptime.m4: Fix serial number comment.
56899         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56900         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56901         (Depends-on): Add time_r.
56902
56903 2007-01-29  Bruno Haible  <bruno@clisp.org>
56904
56905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56906         strptime.
56907         * modules/strptime (Depends-on): Add stdbool.
56908         * lib/strptime.h: Include <time.h> always. Add comments.
56909
56910 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56911
56912         * modules/strptime: New file.
56913         * lib/strptime.h: New file.
56914         * lib/strptime.c: New file.
56915         * m4/strptime.m4: New file.
56916
56917 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56918
56919         * MODULES.html.sh: New module mpsort.
56920         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56921
56922         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56923         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56925         All uses changed.
56926         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56927         All uses changed.
56928         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56929         to _Restrict_.
56930         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56931         the parameter matches the prototype.
56932
56933 2007-01-28  Jim Meyering  <jim@meyering.net>
56934
56935         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56936         sys/time.h here, reverting that part of the previous patch:
56937         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56938
56939 2007-01-28  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56942         value of $(SYS_TIME_H).
56943         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56944         remove it conditionally, too. [added by Jim Meyering]
56945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56947         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56948         GETTIMEOFDAY_REPLACEMENT to 1.
56949
56950 2007-01-28  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56953         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56955         Set UNISTD_H instead of UNISTD_H2.
56956         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56957
56958 2007-01-28  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56961         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56962
56963 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56964
56965         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56966         (func_create_testdir): Ensure C locale for `grep' and `tr'
56967         character ranges.
56968         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56969         ACLOCAL_AMFLAGS parsing state machine.
56970
56971 2007-01-27  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/unistr/base: Update.
56974
56975 2007-01-27  Bruno Haible  <bruno@clisp.org>
56976
56977         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56978         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56979         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56980         modules/unistr/u32-mbtouc.
56981         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56982         * lib/unistr.h: Update.
56983         * lib/linebreak.c: Update.
56984         * modules/unistr/u32-mbtouc: Renamed from
56985         modules/unistr/u32-mbtouc-safe.
56986         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56987         * lib/unistr.h: Update.
56988         * lib/unistr/u32-to-u8.c: Update.
56989         * lib/unistr/u32-to-u16.c: Update.
56990
56991 2007-01-27  Bruno Haible  <bruno@clisp.org>
56992
56993         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56994         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56995         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56996         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56997         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56998         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56999         modules/unistr/u16-mbtouc.
57000         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57001         * lib/unistr.h: Update.
57002         * lib/linebreak.c: Update.
57003         * modules/linebreak: Update.
57004         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57005         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57006         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57007         * modules/unistr/u16-mbtouc: Renamed from
57008         modules/unistr/u16-mbtouc-safe.
57009         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57010         * lib/unistr.h: Update.
57011         * lib/unistr/u16-to-u8.c: Update.
57012         * modules/unistr/u16-to-u8: Update.
57013         * lib/unistr/u16-to-u32.c: Update.
57014         * modules/unistr/u16-to-u32: Update.
57015
57016 2007-01-27  Bruno Haible  <bruno@clisp.org>
57017
57018         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57019         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57020         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57021         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57022         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57023         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57024         modules/unistr/u8-mbtouc.
57025         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57026         * lib/unistr.h: Update.
57027         * lib/striconveh.c: Update.
57028         * modules/striconveh: Update.
57029         * lib/linebreak.c: Update.
57030         * modules/linebreak: Update.
57031         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57032         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57033         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57034         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57035         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57036         * lib/unistr.h: Update.
57037         * lib/striconveh.c: Update.
57038         * modules/striconveh: Update.
57039         * lib/unistr/u8-to-u16.c: Update.
57040         * modules/unistr/u8-to-u16: Update.
57041         * lib/unistr/u8-to-u32.c: Update.
57042         * modules/unistr/u8-to-u32: Update.
57043
57044 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57045
57046         Sync from Libtool.
57047         * lib/argz.c: Do not include strings.h nor memory.h, include
57048         string.h unconditionally.  Patch by Simon Josefsson.
57049
57050 2007-01-27  Bruno Haible  <bruno@clisp.org>
57051
57052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57053         from gl_HEADER_STRING_H_BODY.
57054         (gl_HEADER_STRING_H_BODY): Require it.
57055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57057         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57058         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57060         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57062         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57063         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57066         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57067         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57068         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57069         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57070
57071 2007-01-27  Bruno Haible  <bruno@clisp.org>
57072
57073         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57074         check_PROGRAMS into noinst_PROGRAMS.
57075         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57076         check_PROGRAMS in this case.
57077         (func_import): Set for_test to false.
57078         (func_create_testdir): Set for_test to true.
57079
57080 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57081             Bruno Haible  <bruno@clisp.org>
57082
57083         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57084         (Depends-on): Add string.
57085         (Includes): Use <string.h> instead of strcasestr.h.
57086         * modules/string (Makefile.am): Also substitute the value of
57087         REPLACE_STRCASESTR.
57088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57089         assume strcasestr is declared in <string.h> not <strings.h>. Also
57090         set REPLACE_STRCASESTR.
57091         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57092         REPLACE_STRCASESTR.
57093         * lib/strcasestr.h: Remove file.
57094         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57095         * lib/string_.h (strcasestr): New declaration.
57096
57097 2007-01-27  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/string_.h: Use 'extern'.
57100
57101 2007-01-27  Jim Meyering  <jim@meyering.net>
57102
57103         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57104         of set-but-not-used local, "q".
57105
57106         * lib/mempcpy.c: Include <config.h> before <string.h>.
57107         This fixes a compilation error on HP-UX, due to the system's
57108         "restrict"-using mempcpy prototype.
57109
57110 2007-01-26  Bruno Haible  <bruno@clisp.org>
57111
57112         Small optimization.
57113         * lib/javacomp.c: Include c-strstr.h.
57114          (is_envjavac_gcj): Use c_strstr instead of strstr.
57115         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57116
57117 2007-01-26  Bruno Haible  <bruno@clisp.org>
57118
57119         * MODULES.html.sh (Unicode string functions): Add the new modules.
57120
57121         * modules/uniconv/u32-strconv-to-locale: New file.
57122         * lib/uniconv/u32-strconv-to-locale.c: New file.
57123
57124         * modules/uniconv/u16-strconv-to-locale: New file.
57125         * lib/uniconv/u16-strconv-to-locale.c: New file.
57126
57127         * modules/uniconv/u8-strconv-to-locale: New file.
57128         * lib/uniconv/u8-strconv-to-locale.c: New file.
57129
57130         * modules/uniconv/u32-strconv-from-locale: New file.
57131         * lib/uniconv/u32-strconv-from-locale.c: New file.
57132
57133         * modules/uniconv/u16-strconv-from-locale: New file.
57134         * lib/uniconv/u16-strconv-from-locale.c: New file.
57135
57136         * modules/uniconv/u8-strconv-from-locale: New file.
57137         * lib/uniconv/u8-strconv-from-locale.c: New file.
57138
57139         * modules/uniconv/u32-strconv-to-enc: New file.
57140         * lib/uniconv/u32-strconv-to-enc.c: New file.
57141         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57142         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57143
57144         * modules/uniconv/u16-strconv-to-enc: New file.
57145         * lib/uniconv/u16-strconv-to-enc.c: New file.
57146         * lib/uniconv/u-strconv-to-enc.h: New file.
57147         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57148         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57149
57150         * modules/uniconv/u8-strconv-to-enc: New file.
57151         * lib/uniconv/u8-strconv-to-enc.c: New file.
57152         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57153         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57154
57155         * modules/uniconv/u32-strconv-from-enc: New file.
57156         * lib/uniconv/u32-strconv-from-enc.c: New file.
57157         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57158         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57159
57160         * modules/uniconv/u16-strconv-from-enc: New file.
57161         * lib/uniconv/u16-strconv-from-enc.c: New file.
57162         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57163         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57164
57165         * modules/uniconv/u8-strconv-from-enc: New file.
57166         * lib/uniconv/u8-strconv-from-enc.c: New file.
57167         * lib/uniconv/u-strconv-from-enc.h: New file.
57168         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57169         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57170
57171         * modules/uniconv/u32-conv-from-enc: New file.
57172         * lib/uniconv/u32-conv-from-enc.c: New file.
57173         * modules/uniconv/u32-conv-from-enc-tests: New file.
57174         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57175
57176         * modules/uniconv/u16-conv-from-enc: New file.
57177         * lib/uniconv/u16-conv-from-enc.c: New file.
57178         * lib/uniconv/u-conv-from-enc.h: New file.
57179         * modules/uniconv/u16-conv-from-enc-tests: New file.
57180         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57181
57182         * modules/uniconv/u8-conv-from-enc: New file.
57183         * lib/uniconv/u8-conv-from-enc.c: New file.
57184         * modules/uniconv/u8-conv-from-enc-tests: New file.
57185         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57186
57187         * modules/uniconv/base: New file.
57188         * lib/uniconv.h: New file.
57189
57190 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * doc/gnulib-tool.texi (Initial import): Update to match current
57193         behavior with strdup module.
57194         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57195         * lib/memmem.h: Remove; all uses removed.  This is now done
57196         by <string.h>.
57197         * lib/mempcpy.h: Likewise.
57198         * lib/memrchr.h: Likewise.
57199         * lib/stpcpy.h: Likewise.
57200         * lib/stpncpy.h: Likewise.
57201         * lib/strcase.h: Likewise.
57202         * lib/strchrnul.h: Likewise.
57203         * lib/strdup.h: Likewise.
57204         * lib/strndup.h: Likewise.
57205         * lib/strnlen.h: Likewise.
57206         * lib/strpbrk.h: Likewise.
57207         * lib/strsep.h: Likewise.
57208         * lib/strstr.h: Likewise.
57209         * lib/strtok_r.h: Likewise.
57210         * lib/string_.h: New file.
57211         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57212         Rely on <string.h> instead.
57213         * lib/canon-host.c: Likewise.
57214         * lib/chdir-long.c: Likewise.
57215         * lib/concatpath.c: Likewise.
57216         * lib/exclude.c: Likewise.
57217         * lib/fchdir.c: Likewise.
57218         * lib/getaddrinfo.c: Likewise.
57219         * lib/getcwd.c: Likewise.
57220         * lib/getsubopt.c: Likewise.
57221         * lib/glob.c: Likewise.
57222         * lib/hard-locale.c: Likewise.
57223         * lib/iconvme.c: Likewise.
57224         * lib/javacomp.c: Likewise.
57225         * lib/mempcpy.c: Likewise.
57226         * lib/memrchr.c: Likewise.
57227         * lib/regex_internal.h: Likewise.
57228         * lib/stpncpy.c: Likewise.
57229         * lib/strcasecmp.c: Likewise.
57230         * lib/strchrnul.c: Likewise.
57231         * lib/strdup.c: Likewise.
57232         * lib/striconv.c: Likewise.
57233         * lib/striconveh.c: Likewise.
57234         * lib/striconveha.c: Likewise.
57235         * lib/strncasecmp.c: Likewise.
57236         * lib/strndup.c: Likewise.
57237         * lib/strnlen.c: Likewise.
57238         * lib/strsep.c: Likewise.
57239         * lib/strstr.c: Likewise.
57240         * lib/strtok_r.c: Likewise.
57241         * lib/userspec.c: Likewise.
57242         * lib/w32spawn.h: Likewise.
57243         * lib/xstrndup.c: Likewise.
57244         * lib/mountlist.c (strstr): Remove decl.
57245         * m4/string_h.m4: New file.
57246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57249         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57250         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57251         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57252         Set REPLACE_STRCASECMP if necessary.
57253         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57254         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57255         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57256         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57257         HAVE_DECL_STRDUP if necessary.
57258         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57259         since gl_FUNC_STRNDUP does that now.
57260         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57261         Check for decl here...
57262         (gl_PREREQ_STRNLEN): ... not here.
57263         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57264         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57265         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57267         necessary.
57268         * modules/string: New file.
57269         * modules/memmem (Files): Remove special-purpose include file.
57270         (Depends-on): Add string.
57271         (Include): Include <string.h>, not the removed file.
57272         * modules/mempcpy: Likewise.
57273         * modules/memrchr: Likewise.
57274         * modules/stpcpy: Likewise.
57275         * modules/stpncpy: Likewise.
57276         * modules/strcase: Likewise.
57277         * modules/strchrnul: Likewise.
57278         * modules/strdup: Likewise.
57279         * modules/strndup: Likewise.
57280         * modules/strnlen: Likewise.
57281         * modules/strpbrk: Likewise.
57282         * modules/strsep: Likewise.
57283         * modules/strstr: Likewise.
57284         * modules/strtok_r: Likewise.
57285         * tests/test-dirname.c: Don't include "strdup.h", since
57286         <string.h> now suffices.
57287         * tests/test-memmem.c: Don't include "memmem.h", since
57288         <string.h> now suffices.
57289
57290 2007-01-25  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57293         *resultp is 0.
57294
57295         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57296         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57297         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57298         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57299
57300         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57301         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57302         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57303         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57304         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57305         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57306
57307 2007-01-24  Bruno Haible  <bruno@clisp.org>
57308
57309         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57311         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57312         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57313         gl_FUNC_FTS_CORE.
57314         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57315         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57316         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57317         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57318         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57319         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57320         gl_FUNC_FCHOWNAT.
57321         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57322         gl_FUNC_STRFTIME.
57323         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57324         Reported by Ralf Wildenhues.
57325
57326 2007-01-24  Bruno Haible  <bruno@clisp.org>
57327
57328         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57329         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57330         gl_GETADDRINFO.
57331         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57332         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57333         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57334
57335 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57338         Don't use 'exit'; just return from 'main'.
57339         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57340
57341         * lib/fnmatch_.h: Readjust white space and comments to match
57342         glibc, to avoid spurious diffs.
57343
57344 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57345
57346         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57347         2004-12-01 change by Jakub Jelinek, since this code won't compile
57348         if !LIBC.  Problem reported by Bob Proulx.
57349
57350 2007-01-23  Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/striconveh.c: Include c-strcaseeq.h.
57353         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57354         * modules/striconveh (Depends-on): Add c-strcaseeq.
57355
57356 2007-01-23  Bruno Haible  <bruno@clisp.org>
57357
57358         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57359
57360         * modules/c-strcaseeq: New file.
57361         * lib/c-strcaseeq.h: New file.
57362
57363         * modules/streq: New file.
57364         * lib/streq.h: New file.
57365
57366 2007-01-23  Bruno Haible  <bruno@clisp.org>
57367
57368         * modules/striconveha-tests: New file.
57369         * tests/test-striconveha.c: New file.
57370
57371         * lib/striconveha.h: Include <stdbool.h>.
57372         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57373         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57374         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57375         (mem_iconveha): New function.
57376         (str_iconveha_notranslit): Renamed from str_iconveha.
57377         (str_iconveha): New function.
57378         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57379         c-strcase.
57380
57381 2007-01-23  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57384         encodings without forgiving before trying any encoding with handler.
57385         (str_iconveha): Try all encodings without forgiving before trying any
57386         encoding with handler.
57387
57388 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         Import the following changes from libc.
57391
57392         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57393
57394         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57395
57396         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57397
57398         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57399         normal_bracket label.
57400
57401         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57402
57403         [BZ #361]
57404         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57405         to normal_bracket after fetching the next character.
57406
57407 2007-01-22  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57410         argument.
57411         * lib/striconveh.c (iconv_carefully_1): New function.
57412         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57413         argument.
57414         (str_cd_iconveh): Update.
57415         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57416         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57417         * tests/test-striconveh.c (MAGIC): New macro.
57418         (new_offsets): New function.
57419         (main): Test call with and without offsets.
57420
57421 2007-01-22  Bruno Haible  <bruno@clisp.org>
57422
57423         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57424         * modules/sys_select (Makefile.am): Likewise.
57425         * modules/sys_socket (Makefile.am): Likewise.
57426         * modules/sys_time (Makefile.am): Likewise.
57427
57428 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * modules/gettimeofday (License): Change from GPL to LGPL, since
57431         gettimeofday is a library function.
57432
57433 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57434
57435         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57436
57437 2007-01-21  Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57440
57441 2007-01-21  Bruno Haible  <bruno@clisp.org>
57442
57443         * modules/striconveha: New file.
57444         * lib/striconveha.h: New file.
57445         * lib/striconveha.c: New file.
57446         * MODULES.html.sh (Internationalization functions): Add striconveha.
57447         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57448         string.
57449         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57450
57451 2007-01-21  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57454         * lib/striconveh.c (str_iconveh): Likewise.
57455
57456 2007-01-21  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/striconveh.h (mem_iconveh): New declaration.
57459         * lib/striconveh.c (mem_iconveh): New function.
57460         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57461
57462 2007-01-21  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57465
57466         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57467         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57468         original result buffer.
57469         (str_cd_iconveh): Update.
57470         * tests/test-striconveh.c (main): Update.
57471
57472         * lib/striconv.h (mem_cd_iconv): Change specification.
57473         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57474         result buffer.
57475         (str_cd_iconv): Update.
57476         * tests/test-striconv.c (main): Update.
57477
57478 2007-01-21  Bruno Haible  <bruno@clisp.org>
57479
57480         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57481
57482 2007-01-20  Jim Meyering  <jim@meyering.net>
57483
57484         * lib/userspec.c (parse_with_separator): If a user or group string
57485         starts with "+", skip the corresponding name-to-ID look-up, since
57486         such a look-up must fail: user and group names may not include "+".
57487
57488 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57491         since we now assume the sys_time module.
57492         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57493         check for sys/time.h; no longer needed.
57494         * modules/poll (Depends-on): Depend on sys_time.
57495
57496 2007-01-18  Bruno Haible  <bruno@clisp.org>
57497
57498         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57500
57501         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57502         gettimeofday.
57503
57504         * tests/test-gettimeofday.c: Include <time.h>.
57505         (dummy): Remove variable.
57506
57507         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57508         gl_HEADER_SYS_TIME_H.
57509         (gl_HEADER_SYS_TIME_H): New macro.
57510
57511         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57512         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57514         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57515         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57517         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57518         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57519         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57520         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57521         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57522
57523         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57524         last change; it caused a compilation error when cross-compiling to
57525         Cygwin.
57526
57527 2007-01-18  Jim Meyering  <jim@meyering.net>
57528
57529         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57530         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57531         than the race-prone "test -d sys || mkdir sys".
57532         (configure.ac): Use AC_PROG_MKDIR_P.
57533         * modules/sys_select: Likewise.
57534         * modules/sys_socket: Likewise.
57535         * modules/sys_time: Likewise.
57536
57537 2007-01-18  Eric Blake  <ebb9@byu.net>
57538
57539         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57540         replace gettimeofday.
57541         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57542         name, to avoid infinite recursion.
57543
57544 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57547         module sys_time.
57548         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57549         assume timespec.h defines struct timeval.
57550         * lib/settime.c: Likewise.
57551         * lib/utimens.c: Likewise.
57552         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57553         since we now assume the gettimeofday module.
57554         * lib/tempname.c (__gen_tempname): Likewise.
57555         * lib/gettimeofday.h: Remove.
57556         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57557         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57558         Include <time.h>, for 'time()'.
57559         (localtime_buffer_addr): Also use this workaround if
57560         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57561         to simplify the uses.  All uses changed.
57562         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57563         that #undef is inside {}, and 'const' follows type name consistently.
57564         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57565         (gettimeofday): Do not use the maximum possible value for
57566         tv->tv_usec, since that might break usages other than ls.c.
57567         Instead, we'll leave ls.c alone.  This undoes today's patch
57568         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57569         we've never observed the problem but might as well keep the
57570         canary.
57571         * lib/nanosleep.c: Include timespec.h first, for interface check.
57572         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57573         now assume the sys_time module.
57574         * lib/tempname.c: Likewise.
57575         * lib/timespec.h: Likewise.
57576         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57577         needed.
57578         * lib/strftime.c: Likewise.
57579         * lib/timespec.h: Likewise.
57580         * lib/posixtm.c: Include posixtm.h first, for interface check.
57581         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57582         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57583         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57584         * lib/sys_time_.h: New file.
57585         * lib/timespec.h (struct timespec): Use long int, not long.
57586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57587         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57588         Remove obsolescent call to AC_HEADER_TIME.
57589         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57592         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57593         Likewise.
57594         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57595         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57597         into the sys_time module.  Check for gettimeofday just once.
57598         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57599         for gettimeofday signature to just check the signature.  Merely
57600         compile it, since linking doesn't test signature.  Improve test for
57601         whether gettimeofday.o is actually needed.
57602         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57603         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57604         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57605         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57606         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57607         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57608         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57609         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57610         than worrying about sys/time.h.
57611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57612         Don't bother worrying about TIME_WITH_SYS_TIME.
57613         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57614         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57615         * m4/sys_time_h.m4: New file.
57616         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57617         Don't include sys/time.h.  Return from main rather than exiting.
57618         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57619         all uses changed.
57620         * modules/gethrxtime (Depends-on): Add sys_time.
57621         * modules/gettime (Depends-on): Likewise.
57622         * modules/gettimeofday (Depends-on): Likewise.
57623         * modules/nanosleep (Depends-on): Likewise.
57624         * modules/settime (Depends-on): Likewise.
57625         * modules/tempname (Depends-on): Likewise.
57626         * modules/utimens (Depends-on): Likewise.
57627         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57628         (Include): Change back to <sys/time.h>.
57629         (Maintainer): Add self.
57630         * modules/sys_time: New file.
57631         * modules/tempname (Depends-on): Add gettimeofday.
57632         * tests/test-gettimeofday.c: Include <sys/time.h>
57633         rather than gettimeofday.h.
57634
57635 2007-01-17  Bruno Haible  <bruno@clisp.org>
57636
57637         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57638         the license default to GPL.
57639         (func_create_testdir): Don't complain if a module is LGPL and its
57640         tests module depends on GPLed modules.
57641
57642 2007-01-17  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/gettimeofday.c (gettimeofday): Add code for the case
57645         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57646         maximum possible value for tv->tv_usec, rather than the minimum one.
57647
57648 2005-10-08  Martin Lambers  <marlam@marlam.de>
57649 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57650 2007-01-16  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57653         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57654         gl_FUNC_GETTIMEOFDAY.
57655         (Include): Add gettimeofday.h.
57656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57657         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57658         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57659         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57660         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57661         * lib/gettimeofday.h: New file.
57662         * lib/gettimeofday.c: Include <sys/timeb.h>.
57663         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57664         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57665         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57666         fall back on time().
57667
57668         * tests/test-gettimeofday.c: New file.
57669         * modules/gettimeofday-tests: New file.
57670
57671 2007-01-16  Eric Blake  <ebb9@byu.net>
57672
57673         * modules/fnmatch (Depends-on): Depend on wchar.
57674         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57675         * m4/fnmatch.m4: Likewise.
57676         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57677         * m4/mbchar.m4: Likewise.
57678         * modules/mbswidth (Depends-on): Depend on wchar.
57679         * lib/mbswidth.c: Assume <wchar.h>.
57680         * m4/mbswidth.m4: Likewise.
57681         * modules/quotearg (Depends-on): Depend on wchar.
57682         * lib/quotearg.c: Assume <wchar.h>.
57683         * m4/quotearg.m4: Likewise.
57684         * modules/regex (Depends-on): Depend on wchar.
57685         * lib/regex_internal.h: Assume <wchar.h>.
57686         * m4/regex.m4: Likewise.
57687         * modules/stdint (Depends-on): Depend on wchar.
57688         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57689         * m4/stdint.m4: Likewise.
57690         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57691         * modules/strftime (Depends-on): Depend on wchar.
57692         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57693         * modules/strtol (Depends-on): Depend on wchar.
57694         * lib/strtol.c: Assume <wchar.h>.
57695         * modules/wcwidth (Depends-on): Depend on wchar.
57696         * lib/wcwidth.h: Assume <wchar.h>.
57697         * m4/wcwidth.m4: Likewise.
57698
57699 2007-01-16  Bruno Haible  <bruno@clisp.org>
57700
57701         * modules/csharpexec-script: New, created from...
57702         * modules/csharpexec: ... this.
57703
57704 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57705
57706         * modules/javaexec-script: New, created from...
57707         * modules/javaexec: ... this.
57708
57709 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57710
57711         * modules/poll (Dependencies): Add sys_select.
57712
57713 2007-01-15  Jim Meyering  <jim@meyering.net>
57714
57715         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57716         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57717         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57718         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57719
57720 2007-01-15  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/striconveh: New file.
57723         * lib/striconveh.h: New file.
57724         * lib/striconveh.c: New file.
57725         * MODULES.html.sh (Internationalization functions): Add striconveh.
57726
57727         * modules/striconveh-tests: New file.
57728         * tests/test-striconveh.c: New file.
57729
57730 2007-01-15  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57733         not from GNU libiconv or GNU libc.
57734
57735 2007-01-15  Bruno Haible  <bruno@clisp.org>
57736
57737         * doc/gnulib-intro.texi (Copyright): Explain the different license
57738         terms for module descriptions, autoconf macros, tests, documentation.
57739
57740 2007-01-14  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/striconv-tests: New file.
57743         * tests/test-striconv.c: New file.
57744
57745 2007-01-14  Bruno Haible  <bruno@clisp.org>
57746
57747         * modules/iconv-tests: New file.
57748         * tests/test-iconv.c: New file.
57749
57750 2007-01-14  Bruno Haible  <bruno@clisp.org>
57751
57752         * gnulib-tool (func_get_license): For test modules, use the license of
57753         the main module.
57754
57755 2007-01-14  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57758         if iconv is found to exist.
57759
57760 2007-01-14  Bruno Haible  <bruno@clisp.org>
57761
57762         * modules/c-ctype-tests: New file.
57763         * tests/test-c-ctype.c: New file.
57764
57765 2007-01-14  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/binary-io-tests: New file.
57768         * tests/test-binary-io.sh: New file.
57769         * tests/test-binary-io.c: New file.
57770
57771 2007-01-14  Bruno Haible  <bruno@clisp.org>
57772
57773         * modules/array-oset-tests: New file.
57774         * tests/test-array_oset.c: New file.
57775
57776 2007-01-14  Bruno Haible  <bruno@clisp.org>
57777
57778         * modules/array-list-tests: New file.
57779         * tests/test-array_list.c: New file.
57780
57781 2007-01-14  Bruno Haible  <bruno@clisp.org>
57782
57783         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57784         and make.
57785         Reported by Simon Josefsson in
57786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57787
57788 2007-01-14  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/allocsa-tests: New file.
57791         * tests/test-allocsa.c: New file.
57792
57793 2007-01-14  Bruno Haible  <bruno@clisp.org>
57794
57795         * modules/fchdir (Depends-on): Add absolute-header.
57796         * modules/unistd (Depends-on): Likewise.
57797
57798 2006-12-30  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/fchdir: New file.
57801         * modules/unistd (Files): Add lib/unistd_.h.
57802         (Makefile.am): Generate unistd.h from unistd_.h.
57803         * lib/fchdir.c: New file.
57804         * lib/dirent_.h: New file.
57805         * lib/unistd_.h: New file.
57806         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57807         * m4/fchdir.m4: New file.
57808         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57809         (gl_HEADER_UNISTD): Invoke it.
57810         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57811         function.
57812         * lib/backupfile.c (opendir, closedir): Undefine.
57813         * lib/chown.c (open, close): Undefine.
57814         * lib/clean-temp.c (open, close): Undefine.
57815         * lib/copy-file.c (open, close): Undefine.
57816         * lib/execute.c (open, close): Undefine.
57817         * lib/fsusage.c (open, close): Undefine.
57818         * lib/gc-gnulib.c (open, close): Undefine.
57819         * lib/getcwd.c (opendir, closedir): Undefine.
57820         * lib/glob.c (opendir, closedir): Undefine.
57821         * lib/javacomp.c (open, close): Undefine.
57822         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57823         * lib/openat-proc.c (open, close): Undefine.
57824         * lib/pagealign_alloc.c (open, close): Undefine.
57825         * lib/pipe.c (open, close): Undefine.
57826         * lib/progreloc.c (open, close): Undefine.
57827         * lib/savedir.c (opendir, closedir): Undefine.
57828         * lib/utime.c (open, close): Undefine.
57829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57830
57831 2007-01-10  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57834
57835 2007-01-12  Eric Blake  <ebb9@byu.net>
57836
57837         Provide a robust <wchar.h>.  Further simplifications are now
57838         possible in other modules, but not included here.
57839         * modules/wchar: New module.
57840         * m4/wchar.m4: New file.
57841         * lib/wchar_.h: Likewise.
57842         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57843         of the new module.
57844         * MODULES.html.sh (Extended multibyte and wide character utilities):
57845         New section.
57846
57847 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57848
57849         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57850         to a reasonable default for memory allocation.
57851         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57852         file system that reports garbage st_size values for symlinks.
57853         Problem reported by Liyang Hu.
57854
57855 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57856
57857         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57858         Emacs .#* auto-save files).
57859
57860 2007-01-11  Bruno Haible  <bruno@clisp.org>
57861
57862         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57863         directory.
57864
57865 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         Use @...@ consistently in lib/wctype_.h.
57868         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57869         on it being set to 1 or 0.
57870         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57871         go back to AC_SUBSTing it.
57872         * modules/wctype (Makefile.am): Undo previous change.
57873
57874 2007-01-10  Eric Blake  <ebb9@byu.net>
57875
57876         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57877         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57878         * modules/wctype (Makefile.am): Likewise.
57879         Reported by Chris McGuire.
57880
57881 2007-01-10  Jim Meyering  <jim@meyering.net>
57882
57883         fts.c: a small readability/maintainability improvement
57884         * lib/fts.c (fts_read): Make this code slightly more readable and
57885         maintainable by hoisting the "sp->fts_cur = p" assignments to
57886         immediately follow the statements that set P.  Derived from
57887         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57888
57889 2007-01-10  Eric Blake  <ebb9@byu.net>
57890
57891         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57892         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57894         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57895         Reported by Chris McGuire.
57896
57897 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57898
57899         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57900         in sed script.
57901
57902 2007-01-09  Bruno Haible  <bruno@clisp.org>
57903
57904         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57905         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57906         variables.
57907         (func_module): Use them.
57908
57909 2007-01-09  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/unistr/base: New file.
57912         * lib/unistr.h: New file.
57913
57914         * modules/unistr/u8-to-u16: New file.
57915         * lib/unistr/u8-to-u16.c: New file.
57916
57917         * modules/unistr/u8-to-u32: New file.
57918         * lib/unistr/u8-to-u32.c: New file.
57919
57920         * modules/unistr/u16-to-u8: New file.
57921         * lib/unistr/u16-to-u8.c: New file.
57922
57923         * modules/unistr/u16-to-u32: New file.
57924         * lib/unistr/u16-to-u32.c: New file.
57925
57926         * modules/unistr/u32-to-u8: New file.
57927         * lib/unistr/u32-to-u8.c: New file.
57928
57929         * modules/unistr/u32-to-u16: New file.
57930         * lib/unistr/u32-to-u16.c: New file.
57931
57932         * modules/unistr/u8-check: New file.
57933         * modules/unistr/u16-check: New file.
57934         * modules/unistr/u32-check: New file.
57935         * lib/unistr/u8-check.c: New file.
57936         * lib/unistr/u16-check.c: New file.
57937         * lib/unistr/u32-check.c: New file.
57938
57939         * modules/unistr/u8-chr: New file.
57940         * modules/unistr/u16-chr: New file.
57941         * modules/unistr/u32-chr: New file.
57942         * lib/unistr/u8-chr.c: New file.
57943         * lib/unistr/u16-chr.c: New file.
57944         * lib/unistr/u32-chr.c: New file.
57945
57946         * modules/unistr/u8-cmp: New file.
57947         * modules/unistr/u16-cmp: New file.
57948         * modules/unistr/u32-cmp: New file.
57949         * lib/unistr/u8-cmp.c: New file.
57950         * lib/unistr/u16-cmp.c: New file.
57951         * lib/unistr/u32-cmp.c: New file.
57952
57953         * modules/unistr/u8-cpy: New file.
57954         * modules/unistr/u16-cpy: New file.
57955         * modules/unistr/u32-cpy: New file.
57956         * lib/unistr/u8-cpy.c: New file.
57957         * lib/unistr/u16-cpy.c: New file.
57958         * lib/unistr/u32-cpy.c: New file.
57959         * lib/unistr/u-cpy.h: New file.
57960
57961         * modules/unistr/u8-cpy-alloc: New file.
57962         * modules/unistr/u16-cpy-alloc: New file.
57963         * modules/unistr/u32-cpy-alloc: New file.
57964         * lib/unistr/u8-cpy-alloc.c: New file.
57965         * lib/unistr/u16-cpy-alloc.c: New file.
57966         * lib/unistr/u32-cpy-alloc.c: New file.
57967         * lib/unistr/u-cpy-alloc.h: New file.
57968
57969         * modules/unistr/u8-endswith: New file.
57970         * modules/unistr/u16-endswith: New file.
57971         * modules/unistr/u32-endswith: New file.
57972         * lib/unistr/u8-endswith.c: New file.
57973         * lib/unistr/u16-endswith.c: New file.
57974         * lib/unistr/u32-endswith.c: New file.
57975         * lib/unistr/u-endswith.h: New file.
57976
57977         * modules/unistr/u8-mblen: New file.
57978         * modules/unistr/u16-mblen: New file.
57979         * modules/unistr/u32-mblen: New file.
57980         * lib/unistr/u8-mblen.c: New file.
57981         * lib/unistr/u16-mblen.c: New file.
57982         * lib/unistr/u32-mblen.c: New file.
57983
57984         * modules/unistr/u8-mbtouc: New file.
57985         * modules/unistr/u16-mbtouc: New file.
57986         * modules/unistr/u32-mbtouc: New file.
57987         * lib/unistr/u8-mbtouc.c: New file.
57988         * lib/unistr/u16-mbtouc.c: New file.
57989         * lib/unistr/u32-mbtouc.c: New file.
57990
57991         * modules/unistr/u8-mbtouc-safe: New file.
57992         * modules/unistr/u16-mbtouc-safe: New file.
57993         * modules/unistr/u32-mbtouc-safe: New file.
57994         * lib/unistr/u8-mbtouc-safe.c: New file.
57995         * lib/unistr/u16-mbtouc-safe.c: New file.
57996         * lib/unistr/u32-mbtouc-safe.c: New file.
57997
57998         * modules/unistr/u8-move: New file.
57999         * modules/unistr/u16-move: New file.
58000         * modules/unistr/u32-move: New file.
58001         * lib/unistr/u8-move.c: New file.
58002         * lib/unistr/u16-move.c: New file.
58003         * lib/unistr/u32-move.c: New file.
58004         * lib/unistr/u-move.h: New file.
58005
58006         * modules/unistr/u8-next: New file.
58007         * modules/unistr/u16-next: New file.
58008         * modules/unistr/u32-next: New file.
58009         * lib/unistr/u8-next.c: New file.
58010         * lib/unistr/u16-next.c: New file.
58011         * lib/unistr/u32-next.c: New file.
58012
58013         * modules/unistr/u8-prev: New file.
58014         * modules/unistr/u16-prev: New file.
58015         * modules/unistr/u32-prev: New file.
58016         * lib/unistr/u8-prev.c: New file.
58017         * lib/unistr/u16-prev.c: New file.
58018         * lib/unistr/u32-prev.c: New file.
58019
58020         * modules/unistr/u8-set: New file.
58021         * modules/unistr/u16-set: New file.
58022         * modules/unistr/u32-set: New file.
58023         * lib/unistr/u8-set.c: New file.
58024         * lib/unistr/u16-set.c: New file.
58025         * lib/unistr/u32-set.c: New file.
58026         * lib/unistr/u-set.h: New file.
58027
58028         * modules/unistr/u8-startswith: New file.
58029         * modules/unistr/u16-startswith: New file.
58030         * modules/unistr/u32-startswith: New file.
58031         * lib/unistr/u8-startswith.c: New file.
58032         * lib/unistr/u16-startswith.c: New file.
58033         * lib/unistr/u32-startswith.c: New file.
58034         * lib/unistr/u-startswith.h: New file.
58035
58036         * modules/unistr/u8-stpcpy: New file.
58037         * modules/unistr/u16-stpcpy: New file.
58038         * modules/unistr/u32-stpcpy: New file.
58039         * lib/unistr/u8-stpcpy.c: New file.
58040         * lib/unistr/u16-stpcpy.c: New file.
58041         * lib/unistr/u32-stpcpy.c: New file.
58042         * lib/unistr/u-stpcpy.h: New file.
58043
58044         * modules/unistr/u8-stpncpy: New file.
58045         * modules/unistr/u16-stpncpy: New file.
58046         * modules/unistr/u32-stpncpy: New file.
58047         * lib/unistr/u8-stpncpy.c: New file.
58048         * lib/unistr/u16-stpncpy.c: New file.
58049         * lib/unistr/u32-stpncpy.c: New file.
58050         * lib/unistr/u-stpncpy.h: New file.
58051
58052         * modules/unistr/u8-strcat: New file.
58053         * modules/unistr/u16-strcat: New file.
58054         * modules/unistr/u32-strcat: New file.
58055         * lib/unistr/u8-strcat.c: New file.
58056         * lib/unistr/u16-strcat.c: New file.
58057         * lib/unistr/u32-strcat.c: New file.
58058         * lib/unistr/u-strcat.h: New file.
58059
58060         * modules/unistr/u8-strchr: New file.
58061         * modules/unistr/u16-strchr: New file.
58062         * modules/unistr/u32-strchr: New file.
58063         * lib/unistr/u8-strchr.c: New file.
58064         * lib/unistr/u16-strchr.c: New file.
58065         * lib/unistr/u32-strchr.c: New file.
58066
58067         * modules/unistr/u8-strcmp: New file.
58068         * modules/unistr/u16-strcmp: New file.
58069         * modules/unistr/u32-strcmp: New file.
58070         * lib/unistr/u8-strcmp.c: New file.
58071         * lib/unistr/u16-strcmp.c: New file.
58072         * lib/unistr/u32-strcmp.c: New file.
58073
58074         * modules/unistr/u8-strcpy: New file.
58075         * modules/unistr/u16-strcpy: New file.
58076         * modules/unistr/u32-strcpy: New file.
58077         * lib/unistr/u8-strcpy.c: New file.
58078         * lib/unistr/u16-strcpy.c: New file.
58079         * lib/unistr/u32-strcpy.c: New file.
58080         * lib/unistr/u-strcpy.h: New file.
58081
58082         * modules/unistr/u8-strcspn: New file.
58083         * modules/unistr/u16-strcspn: New file.
58084         * modules/unistr/u32-strcspn: New file.
58085         * lib/unistr/u8-strcspn.c: New file.
58086         * lib/unistr/u16-strcspn.c: New file.
58087         * lib/unistr/u32-strcspn.c: New file.
58088         * lib/unistr/u-strcspn.h: New file.
58089
58090         * modules/unistr/u8-strdup: New file.
58091         * modules/unistr/u16-strdup: New file.
58092         * modules/unistr/u32-strdup: New file.
58093         * lib/unistr/u8-strdup.c: New file.
58094         * lib/unistr/u16-strdup.c: New file.
58095         * lib/unistr/u32-strdup.c: New file.
58096         * lib/unistr/u-strdup.h: New file.
58097
58098         * modules/unistr/u8-strlen: New file.
58099         * modules/unistr/u16-strlen: New file.
58100         * modules/unistr/u32-strlen: New file.
58101         * lib/unistr/u8-strlen.c: New file.
58102         * lib/unistr/u16-strlen.c: New file.
58103         * lib/unistr/u32-strlen.c: New file.
58104         * lib/unistr/u-strlen.h: New file.
58105
58106         * modules/unistr/u8-strmblen: New file.
58107         * modules/unistr/u16-strmblen: New file.
58108         * modules/unistr/u32-strmblen: New file.
58109         * lib/unistr/u8-strmblen.c: New file.
58110         * lib/unistr/u16-strmblen.c: New file.
58111         * lib/unistr/u32-strmblen.c: New file.
58112
58113         * modules/unistr/u8-strmbtouc: New file.
58114         * modules/unistr/u16-strmbtouc: New file.
58115         * modules/unistr/u32-strmbtouc: New file.
58116         * lib/unistr/u8-strmbtouc.c: New file.
58117         * lib/unistr/u16-strmbtouc.c: New file.
58118         * lib/unistr/u32-strmbtouc.c: New file.
58119
58120         * modules/unistr/u8-strncat: New file.
58121         * modules/unistr/u16-strncat: New file.
58122         * modules/unistr/u32-strncat: New file.
58123         * lib/unistr/u8-strncat.c: New file.
58124         * lib/unistr/u16-strncat.c: New file.
58125         * lib/unistr/u32-strncat.c: New file.
58126         * lib/unistr/u-strncat.h: New file.
58127
58128         * modules/unistr/u8-strncmp: New file.
58129         * modules/unistr/u16-strncmp: New file.
58130         * modules/unistr/u32-strncmp: New file.
58131         * lib/unistr/u8-strncmp.c: New file.
58132         * lib/unistr/u16-strncmp.c: New file.
58133         * lib/unistr/u32-strncmp.c: New file.
58134
58135         * modules/unistr/u8-strncpy: New file.
58136         * modules/unistr/u16-strncpy: New file.
58137         * modules/unistr/u32-strncpy: New file.
58138         * lib/unistr/u8-strncpy.c: New file.
58139         * lib/unistr/u16-strncpy.c: New file.
58140         * lib/unistr/u32-strncpy.c: New file.
58141         * lib/unistr/u-strncpy.h: New file.
58142
58143         * modules/unistr/u8-strnlen: New file.
58144         * modules/unistr/u16-strnlen: New file.
58145         * modules/unistr/u32-strnlen: New file.
58146         * lib/unistr/u8-strnlen.c: New file.
58147         * lib/unistr/u16-strnlen.c: New file.
58148         * lib/unistr/u32-strnlen.c: New file.
58149         * lib/unistr/u-strnlen.h: New file.
58150
58151         * modules/unistr/u8-strpbrk: New file.
58152         * modules/unistr/u16-strpbrk: New file.
58153         * modules/unistr/u32-strpbrk: New file.
58154         * lib/unistr/u8-strpbrk.c: New file.
58155         * lib/unistr/u16-strpbrk.c: New file.
58156         * lib/unistr/u32-strpbrk.c: New file.
58157         * lib/unistr/u-strpbrk.h: New file.
58158
58159         * modules/unistr/u8-strrchr: New file.
58160         * modules/unistr/u16-strrchr: New file.
58161         * modules/unistr/u32-strrchr: New file.
58162         * lib/unistr/u8-strrchr.c: New file.
58163         * lib/unistr/u16-strrchr.c: New file.
58164         * lib/unistr/u32-strrchr.c: New file.
58165
58166         * modules/unistr/u8-strspn: New file.
58167         * modules/unistr/u16-strspn: New file.
58168         * modules/unistr/u32-strspn: New file.
58169         * lib/unistr/u8-strspn.c: New file.
58170         * lib/unistr/u16-strspn.c: New file.
58171         * lib/unistr/u32-strspn.c: New file.
58172         * lib/unistr/u-strspn.h: New file.
58173
58174         * modules/unistr/u8-strstr: New file.
58175         * modules/unistr/u16-strstr: New file.
58176         * modules/unistr/u32-strstr: New file.
58177         * lib/unistr/u8-strstr.c: New file.
58178         * lib/unistr/u16-strstr.c: New file.
58179         * lib/unistr/u32-strstr.c: New file.
58180         * lib/unistr/u-strstr.h: New file.
58181
58182         * modules/unistr/u8-strtok: New file.
58183         * modules/unistr/u16-strtok: New file.
58184         * modules/unistr/u32-strtok: New file.
58185         * lib/unistr/u8-strtok.c: New file.
58186         * lib/unistr/u16-strtok.c: New file.
58187         * lib/unistr/u32-strtok.c: New file.
58188         * lib/unistr/u-strtok.h: New file.
58189
58190         * modules/unistr/u8-uctomb: New file.
58191         * modules/unistr/u16-uctomb: New file.
58192         * modules/unistr/u32-uctomb: New file.
58193         * lib/unistr/u8-uctomb.c: New file.
58194         * lib/unistr/u16-uctomb.c: New file.
58195         * lib/unistr/u32-uctomb.c: New file.
58196
58197         * MODULES.html.sh (Unicode string functions): Add the new modules.
58198
58199 2007-01-08  Bruno Haible  <bruno@clisp.org>
58200
58201         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58202         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58203         subdirectories.
58204
58205 2007-01-08  Karl Berry  <karl@gnu.org>
58206
58207         * doc/error.texi: mention that main() fns must set program_name
58208         when progname is used.
58209
58210 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58213         WCTYPE_H is empty, for the benefit of builds from non-distclean
58214         directories.  Problem reported by Eric Blake in
58215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58216
58217 2007-01-08  Bruno Haible  <bruno@clisp.org>
58218
58219         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58220         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58221         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58222         PROVIDE_CANONICALIZE_FILENAME_MODE.
58223         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58224
58225 2007-01-08  Bruno Haible  <bruno@clisp.org>
58226
58227         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58228         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58229         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58230         * lib/fts.c: Likewise.
58231         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58232
58233 2006-12-25  Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/utf8-ucs4-safe: New file.
58236         * lib/utf8-ucs4-safe.h: New file.
58237         * lib/unistr/utf8-ucs4-safe.c: New file.
58238
58239         * modules/utf16-ucs4-safe: New file.
58240         * lib/utf16-ucs4-safe.h: New file.
58241         * lib/unistr/utf16-ucs4-safe.c: New file.
58242
58243         * MODULES.html.sh (Unicode string functions): Add the new modules.
58244
58245 2007-01-08  Bruno Haible  <bruno@clisp.org>
58246
58247         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58248         (Depends-on): Add unitypes.
58249         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58250         (u8_mbtouc_aux): Move out to separate file.
58251         (u8_mbtouc): Use ucs4_t, uint8_t types.
58252         * lib/unistr/utf8-ucs4.c: New file.
58253
58254         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58255         (Depends-on): Add unitypes.
58256         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58257         (u16_mbtouc_aux): Move out to separate file.
58258         (u16_mbtouc): Use ucs4_t, uint16_t types.
58259         * lib/unistr/utf16-ucs4.c: New file.
58260
58261         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58262         (Depends-on): Add unitypes.
58263         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58264         (u8_uctomb_aux): Move out to separate file.
58265         (u8_uctomb): Use ucs4_t, uint8_t types.
58266         * lib/unistr/ucs4-utf8.c: New file.
58267
58268         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58269         (Depends-on): Add unitypes.
58270         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58271         (u16_uctomb_aux): Move out to separate file.
58272         (u16_uctomb): Use ucs4_t, uint16_t types.
58273         * lib/unistr/ucs4-utf16.c: New file.
58274
58275 2006-12-25  Bruno Haible  <bruno@clisp.org>
58276
58277         * modules/unitypes: New file.
58278         * lib/unitypes.h: New file.
58279         * MODULES.html.sh (func_all_modules): New section "Unicode string
58280         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58281         this section. Add unitypes.
58282
58283 2007-01-08  Bruno Haible  <bruno@clisp.org>
58284
58285         Avoid variable names that conflict with those from libtool.
58286         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58287         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58288         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58289         library_names_spec to acl_library_names_spec, hardcode_* to
58290         acl_hardcode_*.
58291         Reported by Ralf Wildenhues.
58292
58293 2007-01-08  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58296         definition.
58297         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58298         definition.
58299         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58300         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58301         definition.
58302         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58303         definition.
58304         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58305         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58306         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58307         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58308         definition.
58309         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58310         definition.
58311         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58312         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58313         GC_USE_<algorithm>.
58314         * lib/gc-libgcrypt.c: Likewise.
58315         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58316         * modules/gc-arctwo (configure.ac): Likewise.
58317         * modules/gc-des (configure.ac): Likewise.
58318         * modules/gc-hmac-md5 (configure.ac): Likewise.
58319         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58320         * modules/gc-md2 (configure.ac): Likewise.
58321         * modules/gc-md4 (configure.ac): Likewise.
58322         * modules/gc-md5 (configure.ac): Likewise.
58323         * modules/gc-random (configure.ac): Likewise.
58324         * modules/gc-rijndael (configure.ac): Likewise.
58325         * modules/gc-sha1 (configure.ac): Likewise.
58326
58327 2007-01-08  Bruno Haible  <bruno@clisp.org>
58328
58329         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58330         macro definition.
58331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58332         definition.
58333         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58334         definition.
58335         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58336         * modules/fcntl-safer (configure.ac): Likewise.
58337         * modules/fopen-safer (configure.ac): Likewise.
58338         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58339         GNULIB_FWRITEERROR macro definition.
58340
58341 2007-01-08  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/gnulib-common.m4: New file.
58344         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58345         (func_get_filelist): Add m4/gnulib-common.m4.
58346
58347 2007-01-08  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58350         command.
58351
58352 2007-01-08  Jim Meyering  <jim@meyering.net>
58353
58354         Use a more robust test for a "can't happen" condition.
58355         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58356         narrowed the st_size value.  Presuming the "can't happen" condition
58357         is true, that narrowing could conceivably convert an invalid st_size
58358         value into a valid one.  Instead, use a change based on Matthew
58359         Woehlke's original patch.
58360
58361         Slight readability improvement: use an assert-like macro
58362         in place of literal "abort ()" uses.
58363         * lib/fts.c (fts_assert): Define.
58364         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58365         Use this macro instead of a bare 'abort'.
58366
58367 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58370         simply work around them.
58371         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58372         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58373         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58374         declaring.
58375         Don't bother to define as macros, since the standard doesn't require it.
58376         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58377         longer worry about IRIX 5.3.
58378         (HAVE_WCTYPE_CTMP_BUG): Remove.
58379
58380 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58381
58382         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58383         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58384         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58385         Problems reported by Georg Schwarz for IRIX 5.3.
58386
58387         * gnulib-tool (autoconf_minversion): Take the maximum version number
58388         found, not the minimum.  Problem reported by James Youngman.
58389
58390 2007-01-03  Karl Berry  <karl@gnu.org>
58391
58392         * doc/error.texi: new file, explaining interaction with progname.
58393         * doc/gnulib.texi: include it.  Update copyright.
58394
58395 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58396
58397         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58398         AC_CANONICAL_HOST, to improve autobuild outputs.
58399
58400 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58401             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58402
58403         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58404         sockets, server sockets, and other file descriptors.  Count errors
58405         to compute the return value.  Reorder the code a bit to be easier
58406         to follow.  Don't set event bits that were not requested (except
58407         POLLERR and POLLHUP).
58408
58409 2007-01-01  Bruno Haible  <bruno@clisp.org>
58410
58411         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58412
58413 2007-01-03  Jim Meyering  <jim@meyering.net>
58414
58415         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58416
58417 2007-01-02  Bruno Haible  <bruno@clisp.org>
58418
58419         * modules/settime (Include): Require timespec.h.
58420         * modules/nanosleep (Include): Likewise.
58421
58422 2007-01-01  Bruno Haible  <bruno@clisp.org>
58423
58424         * gnulib-tool (func_emit_copyright_notice): Bump year.
58425         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58426
58427 2007-01-01  Bruno Haible  <bruno@clisp.org>
58428
58429         Improve support for OpenBSD.
58430         * build-aux/config.rpath (libname_spec): Export.
58431         (library_names_spec): New variable. Export.
58432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58433         library_names_spec from the config.rpath output. Locate shared library
58434         through the name pattern in library_names_spec.
58435
58436 2007-01-01  Eric Blake  <ebb9@byu.net>
58437
58438         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58439
58440 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58443         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58444         assume the C locale, and avoid an "eval" that could cause trouble.
58445         Problem with SORT reported by Bob Proulx.
58446
58447         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58448         Define.  Trivial patch from Henning Nielsen Lund, originally
58449         sent to bug-grep@gnu.org today.
58450
58451 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58454         struct stat.  Problem reported by Henning Nielsen Lund.
58455         * lib/acl.c: Include acl.h first, to check interface.  Don't
58456         bother to include sys/types.h and sys/stat.h again.
58457
58458 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         Import the following change from libc; problem reported by
58461         Sven Verdoolaege.
58462
58463         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58464
58465         [BZ #1373]
58466         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58467
58468 2006-12-28  Jim Meyering  <jim@meyering.net>
58469
58470         * build-aux/announce-gen: Do not assume that the package
58471         builds any of tar.gz, tar.bz2, and .xdelta files.
58472         Suggestion from Simon Josefsson.
58473
58474 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58475
58476         * modules/announce-gen: New file.
58477
58478 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58481         handles its gotchas now.
58482         * lib/mbswidth.c: Likewise.
58483         * lib/wcwidth.h: Likewise.
58484         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58485         and iswcntrl; the wctype module does this stuff now.
58486         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58488         * modules/mbchar (Depends-on): Add wctype.
58489         * modules/mbswidth (Depends-on): Likewise.
58490         * modules/wcwidth (Depends-on): Likewise.
58491
58492 2006-12-27  Eric Blake  <ebb9@byu.net>
58493
58494         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58495         module uses more than what <wctype.h> is required to provide.
58496
58497 2006-12-26  Eric Blake  <ebb9@byu.net>
58498
58499         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58500
58501 2006-12-26  Eric Blake  <ebb9@byu.net>
58502
58503         * modules/absolute-header: New module.
58504         * modules/fcntl (Depends-on): Depend on it.
58505         * modules/inttypes (Depends-on): Likewise.
58506         * modules/stdint (Depends-on): Likewise.
58507         * modules/sys_stat (Depends-on): Likewise.
58508         * modules/wctype (Depends-on): Likewise.
58509         * MODULES.html.sh (Support for building libraries and
58510         executables): Document it.
58511
58512 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * gnulib-tool (SED): Remove, undoing previous change.
58515         The problem was that it broke coreutils on Solaris, because
58516         "sed --posix" leaked into a makefile.
58517         (sed): New alias, if 'alias' and GNU sed.
58518
58519 2006-12-24  Jim Meyering  <jim@meyering.net>
58520
58521         Work around an fchownat bug in glibc-2.4:
58522         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58523         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58524         in spite of the -P option.
58525         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58526         New macros.
58527         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58528         * modules/openat (Files): Add lib/fchownat.c.
58529         * lib/openat.c (fchownat): Don't define here.  Move to...
58530         * lib/fchownat.c: ...this new file.
58531
58532 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         Fix bug reported by Bruno Haible in
58535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58536         where quotearg.c didn't compile on Mac OS X 10.2 because it
58537         lacks <wchar.h> and wint_t.
58538         * lib/wctype_.h (__wctype_wint_t): New type.
58539         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58540         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58541         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58542         Arg is now of type __wctype_wint_t, not wint_t.
58543         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58544         substitute HAVE_WINT_T.
58545         * modules/wctype (Files): Add m4/wint_t.m4.
58546         (wctype.h): Substitute HAVE_WINT_T.
58547
58548 2006-12-23  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58551
58552 2006-12-23  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58555         S_ISLNK.
58556         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58557         mingw.
58558
58559 2006-12-22  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/copy-file.c: Include acl.h.
58562         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58563         Close the file descriptors only after being done with copy_acl.
58564         * modules/copy-file (Depends-on): Add acl.
58565
58566 2006-12-22  Bruno Haible  <bruno@clisp.org>
58567
58568         * gnulib-tool (SED): New variable.
58569         Use $SED instead of sed everywhere.
58570
58571 2006-12-22  Bruno Haible  <bruno@clisp.org>
58572
58573         * modules/no-c++: New file.
58574         * m4/no-c++.m4: New file.
58575         * MODULES.html.sh (Support for building libraries and executables):
58576         Add no-c++.
58577
58578 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58579
58580         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58581         Include <limits.h>, and use its INT_MAX to rewrite the
58582         j loop so that it does not overflow 'int'.  Problem reported by
58583         Ralf Wildenhues in
58584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58585         Play it safe by shifting left by 1 rather than multiplying by 2,
58586         as GCC is less likely to optimize this away when the value
58587         is signed (when it assumes overflow leads to undefined behavior).
58588         Also, don't assume time_t uses two's complement.
58589
58590 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         * MODULES.html.sh: New module wctype.
58593         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58594         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58595         <wctype.h>, since the new wctype module should fix this.
58596         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58597         the wctype module should arrange for it.
58598         * lib/regex_internal.h: Likewise.
58599         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58600         since the wctype module should handle this now.
58601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58602         * modules/fnmatch (Depends-on): Add wctype.
58603         * modules/quotearg (Depends-on): Likewise.
58604         * modules/regex (Depends-on): Likewise.
58605
58606 2006-12-19  Bruno Haible  <bruno@clisp.org>
58607
58608         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58609         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58610
58611 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58612
58613         * modules/savewd (Depends-on): Fix dependency on fcntl.
58614
58615 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58618         conforms to C99, rather than relying on the user's environment
58619         setting of STDINT_H.
58620
58621 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58622         and Eric Blake  <ebb9@byu.net>
58623
58624         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58625         This is more consistent with the other defines here.
58626         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58627         Port to z/OS.  Problem reported by Paul Gilmartin.
58628         Change local vars to use gl_ prefix rather than ac_.
58629         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58630         with other defines.
58631         * modules/double-slash-root: New module.
58632         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58633         (Depends-on): Add double-slash-root.
58634         * MODULES.html.sh (File system functions): Mention new module.
58635
58636 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58639         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58640         This is for the benefit of gzip, which doesn't do i18n.
58641
58642 2006-12-12  Jim Meyering  <jim@meyering.net>
58643
58644         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58645         Reported by Andreas Schwab <schwab@suse.de>.
58646
58647 2006-12-12  Bruno Haible  <bruno@clisp.org>
58648
58649         Merge these changes.
58650         2006-09-05  Bruno Haible  <bruno@clisp.org>
58651         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58652         iconv_alloc succeeded.
58653         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58654         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58655         test for " && dest " at the end - dest is always != NULL there. Call
58656         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58657         with 2xNULL arguments, also to flush the state storage. Handle the
58658         IRIX iconv behaviour. Realloc the final result, to throw away unused
58659         memory.
58660
58661 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58664         and fchmodat unconditionally, since glibc 2.4 has them.
58665         Problem reported by Arkadiusz Miskiewicz.
58666
58667 2006-12-10  Bruno Haible  <bruno@clisp.org>
58668
58669         * gnulib-tool (func_import): Show the include files only for those
58670         modules that are copied and specified.
58671         Reported by Karl Berry.
58672
58673 2006-12-08  Jim Meyering  <jim@meyering.net>
58674
58675         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58676         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58677
58678         * build-aux/announce-gen: Add two new options, both optional:
58679         --bootstrap-tools=TOOL_LIST
58680               a comma-separated list of tools, e.g.,
58681               autoconf,automake,bison,gnulib
58682         --gnulib-snapshot-date=DATE
58683               if gnulib is in the bootstrap tool list,
58684               then report this as the snapshot date.
58685               If not specified, use the current date/time.
58686               If you specify a date here, be sure it's UTC.
58687
58688 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58689
58690         * tests/test-argp-2.sh: Fix test to match actual output.
58691         (func_compare): Fix sed script to be portable.
58692
58693 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58696         workaround for this case.  It is not autoconfigured now; offhand
58697         it's hard to see how to autoconfigure it.
58698
58699 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58702         a directory that is about to be chowned.  Such a directory's
58703         initial file permissions should permit the owner only and this
58704         should not be changed until after the chown, since the group and
58705         other bits would be incorrect if they granted permission before
58706         the chown.
58707
58708         Fix porting problem for iswctype reported by Georg Schwarz in:
58709         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58711         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58712         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58713         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58714
58715 2006-12-03  Jim Meyering  <jim@meyering.net>
58716
58717         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58718         p->fts_statp may not yet be defined.
58719         (fts_read): Instead, set it in the caller, once p->fts_statp is
58720         sure to be defined, and corresponds to a top-level directory.
58721         This bug made du -x fail.  Here's the coreutils test case:
58722         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58723         Reported by Mike Frysinger.
58724
58725 2006-12-01  Jim Meyering  <jim@meyering.net>
58726
58727         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58728         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58729         Reported by Simon Josefsson.
58730
58731 2006-11-30  Jim Meyering  <jim@meyering.net>
58732
58733         * m4/warning.m4: Use the all-permissive copyright notice
58734         recommended by RMS (rather than LGPL).
58735         * m4/vararrays.m4: Likewise.
58736         * m4/flexmember.m4: Likewise.
58737
58738 2006-11-29  Bruno Haible  <bruno@clisp.org>
58739
58740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58741         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58742         using +=.
58743         Reported by Simon Josefsson <simon@josefsson.org>.
58744
58745 2006-11-28  James Youngman <jay@gnu.org>
58746
58747         * README: Advise users that they might find the bug-gnulib@gnu.org
58748         and autotools-announce@gnu.org mailing lists useful.
58749
58750 2006-11-28  Bruno Haible  <bruno@clisp.org>
58751
58752         * m4/ptrdiff_max.m4: Remove file.
58753
58754 2006-11-21  Bruno Haible  <bruno@clisp.org>
58755
58756         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58757         _AC_COMPUTE_INT.
58758         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58759         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58760         _AC_COMPUTE_INT.
58761         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58762         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58763         _AC_COMPUTE_INT.
58764         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58765
58766 2006-11-28  Jim Meyering  <jim@meyering.net>
58767
58768         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58769         warning from "gcc -Wshadow" about shadowing the builtin.
58770
58771 2006-11-27  Bruno Haible  <bruno@clisp.org>
58772
58773         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58774         _AC_COMPUTE_INT.
58775         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58776
58777 2006-11-27  Bruno Haible  <bruno@clisp.org>
58778             Paul Eggert  <eggert@cs.ucla.edu>
58779
58780         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58781
58782 2006-11-26  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58785         noinst_LTLIBRARIES.
58786
58787 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58788             Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58791         if compiling with "gcc -ansi".
58792
58793 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         Fix some incompatibilities with gcc -ansi -pedantic.
58796         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58797         if compiling pedantically with GCC, unless it's C99 or later.
58798         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58799         it mishandles gcc -ansi -pedantic as well.
58800         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58801         if gcc -pedantic.
58802         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58803         initializers for struct if -pedantic, unless it's C99 or later.
58804
58805 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58806
58807         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58808         Don't close an fd more than once. Identical atimes indicate
58809         success, not failure.
58810
58811 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58812
58813         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58814
58815 2006-11-23  Jim Meyering  <jim@meyering.net>
58816
58817         * build-aux/announce-gen: New file.  From coreutils.
58818
58819 2006-11-22  Jim Meyering  <jim@meyering.net>
58820
58821         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58822         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58823         (fts_read): Use a temporary to narrow the overused st_size member
58824         before using it in a switch statement.  Reported by Matthew Woehlke.
58825
58826         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58827         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58828
58829 2006-11-20  Bruno Haible  <bruno@clisp.org>
58830
58831         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58832         changequote instead of pairs of brackets.
58833         Reported by Andreas Schwab <schwab@suse.de>.
58834
58835 2006-11-21  Jim Meyering  <jim@meyering.net>
58836
58837         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58838         so as to remain compatible with older compilers.
58839         Patch from Michael Deutschmann.
58840
58841 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         * MODULES.html.sh (File system functions): Add openat.
58844
58845         * lib/openat.h (rpl_fstatat): New macro, if
58846         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58847         (fstatat): Define to rpl_fstatat under the same conditions,
58848         unless COMPILING_FSTATAT.
58849         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58850         seems to have the bug.
58851         * lib/fstatat.c: New file.
58852         * modules/openat (Files): Add it.
58853
58854 2006-11-20  Bruno Haible  <bruno@clisp.org>
58855
58856         * Makefile: New file.
58857
58858 2006-11-20  Jim Meyering  <jim@meyering.net>
58859
58860         The beginnings of syntax-related checks for gnulib.
58861         * lib/Makefile: New file.
58862         * lib/t-idcache: New script.  Ensure that the two halves of
58863         idcache.c stay in sync.
58864
58865         * lib/idcache.c: Adjust comments in user- and group- portions to
58866         be more accurate, and to be consistent with one another.
58867
58868 2006-11-20  Jim Meyering  <jim@meyering.net>
58869
58870         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58871         continue using the flexible array member (thus, this module performs
58872         half as many malloc calls), with the addition that...
58873         (getgroup, getuser): Consistently record a non-match via an empty
58874         "name" string, and map an empty string match to a NULL return value.
58875         * modules/idcache (Depends-on): Re-add flexmember.
58876
58877         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58878         (getuidbyname, getgroup, getgidbyname): Likewise.
58879
58880         Use cleaner syntax: NULL rather than 0.
58881         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58882
58883 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58886         It mishandled the case where the group was missing.
58887         Problem reported by Greg Schafer.
58888         * modules/idcache: Likewise.
58889
58890 2006-11-18  Jim Meyering  <jim@meyering.net>
58891
58892         * check-module (%exempt_header): Add exception for some
58893         conditionally-included headers.
58894
58895         * modules/i-ring (Depends-on): Add verify.
58896         (License): Change to LGPL.
58897
58898 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58899
58900         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58901         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58902         and inttostr.h.  Use snprintf rather than uinttostr, so that
58903         LGPLed code doesn't depend on GPLed.
58904
58905 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         * modules/inline (License): Change from GPL to LGPL.
58908
58909 2006-11-17  Jim Meyering  <jim@meyering.net>
58910
58911         * modules/d-type (License): Switch to LGPL.
58912
58913 2006-11-15  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58916
58917 2006-11-15  Eric Blake  <ebb9@byu.net>
58918
58919         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58920         the module dependency.
58921
58922 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58923             Bruno Haible  <bruno@clisp.org>
58924
58925         * gnulib-tool (func_create_testdir): Add license consistency check.
58926
58927 2006-11-15  Eric Blake  <ebb9@byu.net>
58928
58929         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58930         random "(cached)" in configure output.
58931
58932 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58933
58934         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58935         test for conforming inttypes.h is both announced and cached.
58936
58937         * MODULES.html.sh (seen_modules, seen_files): New variables.
58938         (func_module): Rewrite to use a few less gnulib-tool and sed
58939         invocations.  Avoid a couple of quadratic algorithms for ...
58940         (missed_modules, missed_files): ... these, with ...
58941         (func_append, func_tmpdir): ... these new functions, from
58942         gnulib-tool.  Analogously, install traps for cleanup.
58943
58944         * tests/test-gc.c (main): Remove unused variables.
58945         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58946
58947 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         * modules/inttostr (License): Change to LGPL.
58950
58951 2006-11-14  Eric Blake  <ebb9@byu.net>
58952
58953         * modules/tempname (License): Change to LGPL.
58954
58955 2006-11-14  Eric Blake  <ebb9@byu.net>
58956
58957         * doc/functions.texi (Function Portability): *printf functions on
58958         Cygwin now understand all POSIX size specifiers.
58959
58960 2006-11-14  Bruno Haible  <bruno@clisp.org>
58961
58962         * modules/c-ctype (License): Change to LGPL.
58963
58964 2006-11-12  Bruno Haible  <bruno@clisp.org>
58965
58966         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58967         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58968         for GNOME libraries, for which the include files are installed in
58969         subdirectories of $prefix/include.
58970
58971 2006-11-12  Bruno Haible  <bruno@clisp.org>
58972
58973         * m4/lib-link.m4: Require at least autoconf-2.54.
58974         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58975         name to underscores for the --with option.
58976
58977 2006-11-13  Bruno Haible  <bruno@clisp.org>
58978
58979         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58980         the tests directory.
58981         Reported by Ralf Wildenhues.
58982
58983 2006-11-13  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58986         (func_emit_initmacro_end): Undo the override here.
58987         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58988         Works around the famous automake error in coreutils.
58989
58990 2006-11-13  Eric Blake  <ebb9@byu.net>
58991
58992         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58993         element, not its node.
58994
58995 2006-11-12  Bruno Haible  <bruno@clisp.org>
58996
58997         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58998         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58999
59000 2006-11-12  Bruno Haible  <bruno@clisp.org>
59001
59002         * gnulib-tool: New option --local-symlink.
59003         (func_usage): Document it.
59004         (lsymbolic): New variable.
59005         (func_import, func_create_testdir): If --symlink was not specified,
59006         test whether --local-symlink was specified and the file comes from
59007         the local_gnulib_dir.
59008
59009 2006-11-12  Bruno Haible  <bruno@clisp.org>
59010
59011         * gnulib-tool (func_ln): New function.
59012         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59013
59014 2006-11-12  Bruno Haible  <bruno@clisp.org>
59015
59016         Finish support for source files in subdirectories.
59017         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59018         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59019         AUTOMAKE_OPTIONS.
59020         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59021
59022 2006-11-12  Bruno Haible  <bruno@clisp.org>
59023
59024         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59025         EXTRA_lib_SOURCES augmentation.
59026         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59027
59028 2006-11-12  Jim Meyering  <jim@meyering.net>
59029
59030         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59031         file descriptors.  This also averts a failure on systems with
59032         native openat support when a traversed directory lacks "x" access.
59033         * lib/fts_.h: Include "i-ring.h"
59034         (struct FTS) [fts_fd_ring]: New member.
59035         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59036         (FCHDIR): Add parentheses.
59037         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59038         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59039         When descending, rather than simply closing the previous
59040         fts_cwd_fd value, push that file descriptor onto the ring.
59041         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59042         (fts_open): Initialize the new fd_ring member.
59043         (fts_close): Clear the ring.
59044         (fts_safe_changedir): When possible, use our new fd_ring to skip
59045         the diropen and fstat and dev/ino comparison that would normally
59046         accompany a virtual `chdir ("..")'.
59047
59048         * modules/fts (Depends-on): Add i-ring.
59049         * modules/i-ring: New module.
59050         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59051         * m4/i-ring.m4: New file.
59052
59053 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59054
59055         * gnulib-tool (func_create_testdir): Fix replacement of
59056         `build-aux' in configure.ac.  Run autotools in gltests
59057         subdirectory.
59058         (func_create_testdir, func_create_megatestdir, test): There is
59059         no need for '--force' in most autotool invocations in a new
59060         tree.  Actually fail the whole test if any of the tools, or the
59061         configure or make stages fail.
59062
59063         Sync from Automake.
59064         * build-aux/gnupload: Revert last change.  Add pointer to upload
59065         instructions of the GNU Maintenance Instructions.
59066         Suggestion by Karl Berry.
59067
59068 2006-11-10  Jim Meyering  <jim@meyering.net>
59069
59070         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59071
59072 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59075         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59076         (bind_textdomain_codeset) [! ENABLE_NLS]:
59077         Evaluate all the arguments.  That way, callers get compatible behavior
59078         if the arguments have side effects.  Also, it avoids some GCC
59079         diagnostics in some cases; Joel E. Denny reported problems when Bison
59080         was configured with --enable-gcc-warnigs.
59081
59082 2006-11-10  Jim Meyering  <jim@meyering.net>
59083
59084         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59085         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59086         account.
59087
59088 2006-11-10  Jim Meyering  <jim@meyering.net>
59089
59090         * modules/inline: New file/module.
59091         * modules/xalloc (Files): Remove m4/inline.m4.
59092         (Depends-on): Add inline, instead.
59093         * modules/oset: Likewise.
59094         * modules/list: Likewise.
59095
59096 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59097
59098         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59099         Problem reported by Matthew Woehlke.
59100
59101 2006-11-09  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/tempname.c (gen_tempname): Remove variant that invokes
59104         __gen_tempname.
59105         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59106         __gen_tempname.
59107
59108 2006-11-08  Bruno Haible  <bruno@clisp.org>
59109
59110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59111         to 'yes' instead of 'cross-compiling'.
59112
59113 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59114
59115         * lib/quotearg.h (quotearg_free): New decl.
59116         * lib/quotearg.c (quotearg_free): New function.
59117         (slot0, nslots, slotvec0, slotvec):
59118         Now file-scope so that quotearg_free can get at them.
59119
59120 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59121
59122         Sync from Automake.
59123         * build-aux/gnupload: Add missing 'gnu' to example URL.
59124         Report by Karl Berry.
59125
59126 2006-11-08  Bruno Haible  <bruno@clisp.org>
59127
59128         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59129         Suggested by Paul Eggert.
59130
59131 2006-11-08  Jim Meyering  <jim@meyering.net>
59132
59133         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59134         It's already included if !_LIBC.
59135         (fts_safe_changedir): Add a comment.
59136
59137 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59140         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59141         Matthew Woehlke.
59142
59143         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59144         definitions up, to avoid colliding with change below.
59145         (static_inline) [HAVE_INLINE]: New macro.
59146         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59147         Provide extern decls when !HAVE_INLINE.  Do not define unless
59148         static_inline is defined, either by us or by xmalloc.c.  Use
59149         static_inline rather than static inline.
59150         (XCALLOC): Optimize sizeof(T) = 1 case.
59151         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59152
59153 2006-11-07  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59156         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59157         AC_C_INLINE.
59158         * modules/xalloc (Files): Add m4/inline.m4.
59159
59160 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59161
59162         * README: Fix typo.
59163         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59164         (Miscellanous Notes): ...from this.
59165
59166 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59169         Mention that offsetof should be used instead of sizeof.
59170         From Bruno Haible.
59171
59172 2006-11-07  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59175
59176 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59179         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59180         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59181         (gl_tree_add_before, gl_tree_add_after):
59182         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59183         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59184         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59185         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59186         (gl_linked_add_after, gl_linked_add_at): Likewise.
59187         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59189         (gl_tree_add_before, gl_tree_add_after): Likewise.
59190         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59191         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59192         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59193
59194 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59195
59196         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59197
59198 2006-11-06  Bruno Haible  <bruno@clisp.org>
59199
59200         * m4/inline.m4: New file.
59201         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59202         * modules/list (Files): Add m4/inline.m4.
59203         * modules/oset (Files): Likewise.
59204
59205 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * lib/idcache.c: Include <stddef.h>, for offsetof.
59208         (struct userid.name): Change from char * to a flexible array member.
59209         All uses changed.
59210         * modules/idcache (Depends-on): Add flexmember.
59211
59212         * MODULES.html.sh (Core language properties): New module flexmember.
59213         * modules/flexmember, m4/flexmember.m4: New files.
59214
59215         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59216         inline functions that are identical with the old xnmalloc_inline,
59217         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59218         that we can avoid some unnecessary integer multiplications and
59219         divisions in the common case where the element size is known at
59220         compile time.
59221         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59222         needed.
59223         (xnboundedmalloc): Remove.
59224         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59225         arguments, for consistency with rest of this header.
59226         (xcharalloc): Rewrite using XNMALLOC.
59227         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59228         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59229         versions have been moved to lib/xalloc.h and renamed to be the
59230         non-*_inline versions.
59231         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59232         and xnrealloc functions, since those functions are now inline and
59233         now call us.
59234         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59235         renaming described above.
59236         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59237         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59238         captures the dependency in AC_C_INLINE.
59239
59240         New module canonicalize-lgpl, proposed by Charles Wilson in
59241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59242         with a few small changes afterwards.
59243         * MODULES.html.sh (File system functions): New module
59244         canonicalize-lgpl.
59245         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59246         and canonicalize_file_name.
59247         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59248         * modules/canonicalize-lgpl: New files.
59249
59250 2006-11-05  Bruno Haible  <bruno@clisp.org>
59251
59252         * gnulib-tool (func_import, func_create_testdir): Create directories
59253         also for files in subdirectories of lib/.
59254
59255 2006-11-05  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59258         ANSI C compliant.
59259
59260 2006-11-03  Bruno Haible  <bruno@clisp.org>
59261
59262         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59263         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59264         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59265         (xnboundedmalloc): New inline function.
59266         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59267         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59268         xmalloc.
59269         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59270         xmalloc.
59271         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59272         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59273         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59274         xmalloc.
59275         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59276         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59277         xmalloc.
59278         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59279         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59280         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59281         xmalloc.
59282         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59283         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59284         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59285         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59286         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59287         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59288         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59289
59290 2006-11-03  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/c-ctype.h [C++]: Define functions without name mangling.
59293         * lib/fwriteerror.h [C++]: Likewise.
59294         * lib/gcd.h [C++]: Likewise.
59295         * lib/linebreak.h [C++]: Likewise.
59296
59297 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59298
59299         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59300         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59301         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59302         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59303         Check for functions and headers just once.
59304         Check for declaration of canonicalize_file_name.
59305         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59306
59307 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59308
59309         * gnulib-tool (func_import): Fix typo in actioncmd.
59310
59311 2006-11-02  Bruno Haible  <bruno@clisp.org>
59312
59313         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59314         newline sequence in the Makefile.am snippet as a space, like "make"
59315         does.
59316         Reported by Roger Persson <perrog@gmail.com>.
59317
59318 2006-11-01  Bruno Haible  <bruno@clisp.org>
59319
59320         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59321         already declared in <string.h>.
59322         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59323
59324 2006-11-01  Bruno Haible  <bruno@clisp.org>
59325
59326         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59327         * lib/strcase.h: Include <string.h>.
59328         (strcasecmp): Define to rpl_strcasecmp here.
59329
59330 2006-11-01  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59333
59334 2006-11-01  Eric Blake  <ebb9@byu.net>
59335
59336         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59337
59338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59339
59340 2006-10-29  Bruno Haible  <bruno@clisp.org>
59341
59342         Make it compile in C++ mode.
59343         * lib/full-write.c (full_rw): Add a cast.
59344
59345 2006-11-01  Bruno Haible  <bruno@clisp.org>
59346
59347         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59348         be POSIX compliant.
59349         Reported by Roger Persson <perrog@gmail.com>.
59350
59351 2006-11-01  Eric Blake  <ebb9@byu.net>
59352
59353         * lib/getopt_.h: Fix comments.
59354
59355 2006-10-31  Eric Blake  <ebb9@byu.net>
59356
59357         * modules/tmpdir (Depends-on): Add sys_stat.
59358         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59359         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59360         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59361         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59362         tempname.
59363
59364 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         Avoid some C++ diagnostics reported by Bruno Haible.
59367         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59368         xmalloc.
59369         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59370         (struct slotvec): Move to top level.
59371         (quotearg_n_options): Rewrite to avoid xmalloc.
59372         * lib/xalloc.h (xcharalloc): New function.
59373         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59374         [defined __cplusplus]: Add function template that provides result
59375         type propagation.  This part of the change is from Bruno Haible.
59376
59377 2006-10-29  Bruno Haible  <bruno@clisp.org>
59378
59379         Make it compile in C++ mode.
59380         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59381         * lib/strnlen1.c (strnlen1): Cast memchr result.
59382         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59383         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59384         (create_temp_dir): Rename local variable 'template'.
59385         (compile_csharp_using_sscli): Add cast.
59386         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59387         * lib/findprog.c (find_in_path): Likewise.
59388         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59389         * lib/wait-process.c (register_slave_subprocess): Likewise.
59390
59391 2006-10-22  Bruno Haible  <bruno@clisp.org>
59392
59393         * modules/tsearch: New file.
59394         * lib/tsearch.h: New file.
59395         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59396         * m4/tsearch.m4: New file.
59397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59398
59399 2006-10-29  Eric Blake  <ebb9@byu.net>
59400
59401         * lib/arcfour.c: Assume config.h.
59402         * lib/arctwo.c: Likewise.
59403         * lib/base64.c: Likewise.
59404         * lib/check-version.c: Likewise.
59405         * lib/crc.c: Likewise.
59406         * lib/des.c: Likewise.
59407         * lib/gc-gnulib.c: Likewise.
59408         * lib/gc-libgcrypt.c: Likewise.
59409         * lib/gc-pbkdf2-sha1.c: Likewise.
59410         * lib/getaddrinfo.c: Likewise.
59411         * lib/getdelim.c: Likewise.
59412         * lib/getline.c: Likewise.
59413         * lib/hmac-md5.c: Likewise.
59414         * lib/hmac-sha1.c: Likewise.
59415         * lib/iconvme.c: Likewise.
59416         * lib/md2.c: Likewise.
59417         * lib/md4.c: Likewise.
59418         * lib/memxor.c: Likewise.
59419         * lib/read-file.c: Likewise.
59420         * lib/readline.c: Likewise.
59421         * lib/rijndael-alg-fst.c: Likewise.
59422         * lib/rijndael-api-fst.c: Likewise.
59423         * lib/xgetdomainname.c: Likewise.
59424
59425 2006-10-28  Eric Blake  <ebb9@byu.net>
59426
59427         * lib/xstrndup.c: Assume config.h.
59428
59429 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59432         stat-macros.h is now for our own macros, whereas stat_h is for
59433         macros in the <sys/stat.h> name space.
59434         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59435         (STAT_MACROS_H): Remove.
59436         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59437         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59438         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59439         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59440         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59441         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59442         Move these macros to ...
59443         * lib/stat_.h: here.  Don't include stat-macros.h.
59444         * lib/canonicalize.c: Don't include stat-macros.h.
59445         * lib/chown.c: Likewise.
59446         * lib/euidaccess.c: Likewise.
59447         * lib/file-type.c: Likewise.
59448         * lib/filemode.c: Likewise.
59449         * lib/glob.c: Likewise.
59450         * lib/isapipe.c: Likewise.
59451         * lib/lchown.c: Likewise.
59452         * lib/lstat.c: Likewise.
59453         * lib/mkdir-p.c: Likewise.
59454         * lib/rmdir.c: Likewise.
59455         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59457         unless mkdir isn't declared, to speed up 'configure'.
59458         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59459         would define all the S_* symbols.
59460         * modules/canonicalize (Depends-on):
59461         Depend on sys_stat, not stat-macros.
59462         * modules/chown: Likewise.
59463         * modules/euidaccess: Likewise.
59464         * modules/filemode: Likewise.
59465         * modules/file-type: Likewise.
59466         * modules/glob: Likewise.
59467         * modules/isapipe: Likewise.
59468         * modules/lchown: Likewise.
59469         * modules/lstat: Likewise.
59470         * modules/mkancesdirs: Likewise.
59471         * modules/rmdir: Likewise.
59472         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59473         * modules/modechange: Likewise.
59474         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59475         (configure.ac): Remove gl_STAT_MACROS.
59476         * modules/sys_stat (Depends-on): Remove stat-macros.
59477
59478 2006-10-27  Bruno Haible  <bruno@clisp.org>
59479
59480         * m4/signed.m4: Remove file.
59481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59482         invocation.
59483         * modules/vasnprintf (Files): Remove m4/signed.m4.
59484
59485 2006-10-27  Bruno Haible  <bruno@clisp.org>
59486
59487         Update to GNU gettext 0.16.
59488         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59489         m4/inttypes-h.m4, m4/signed.m4.
59490         * m4/gettext.m4: Update to GNU gettext 0.16.
59491         * m4/intl.m4: New file, from GNU gettext.
59492         * m4/intldir.m4: New file, from GNU gettext.
59493         * config/srclist.txt: Update
59494
59495 2006-10-27  Eric Blake  <ebb9@byu.net>
59496
59497         * MODULES.html.sh: Document tempname.
59498         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59499         dependencies.
59500         (Files): Move lib/tempname.c...
59501         * modules/tempname: ...to this new module.
59502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59503         (gl_PREREQ_TEMPNAME): Move...
59504         * m4/tempname.m4: ...to this new file.
59505         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59506         * modules/sys_stat (Depends-on): Add stat-macros.
59507         * lib/stat_.h (includes): Pick up stat macros.
59508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59509         if stat macros are broken.
59510         * lib/tempname.c (includes): No need to include "stat-macros.h".
59511         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59512         (direxists, __path_search) [!_LIBC]: Don't compile these in
59513         gnulib; the tmpdir module covers that.
59514         * lib/tempname.h: New file.
59515
59516 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         * COPYING: Explain how gnulib-tool converts licence headers.
59519         Almost all wording by Eric Blake.
59520
59521 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * lib/mbchar.h (is_basic_table): Make read-only.
59524         * lib/mbchar.c (is_basic_table): Likewise.
59525         Reported by John Darrington.
59526
59527 2006-10-25  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/progname.h (set_program_name): Undefine before defining.
59530
59531 2006-10-25  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59534         false for non-gcc C++ compilers.
59535         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59536
59537 2006-10-24  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59540         iconv implementations like Irix iconv.
59541
59542 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59543
59544         * modules/vararrays: New file.
59545         * m4/vararrays.m4: New file, taken from diffutils.
59546         * MODULES.html.sh: New module vararrays.
59547
59548 2006-10-24  Karl Berry  <karl@gnu.org>
59549
59550         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59551         Don't call GNU Unix.
59552
59553 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59554
59555         * users.txt: Add Libtool.
59556
59557         Sync from Libtool:
59558
59559         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59562         to gnulib's policy of including config.h unconditionally.
59563
59564 2006-10-24  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/wcwidth (Files): Add m4/wint_t.m4.
59567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59568         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59569
59570 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59573         to pacify GCC with some -W flags enabled.  Problem reported by
59574         Bruno Haible.
59575
59576 2006-10-24  Jim Meyering  <jim@meyering.net>
59577
59578         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59579         Reported by Karl Berry.
59580
59581 2006-10-23  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59584
59585 2006-10-24  Bruno Haible  <bruno@clisp.org>
59586
59587         * lib/gl_list.h: Use C comment style, not C++ comment style.
59588
59589 2006-10-23  Eric Blake  <ebb9@byu.net>
59590
59591         * lib/getaddrinfo.c (includes): Add missing include.
59592
59593 2006-10-23  Bruno Haible  <bruno@clisp.org>
59594             Paul Eggert  <eggert@cs.ucla.edu>
59595
59596         Ability to rename obstack_free.
59597         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59598         obstack_free.
59599         (obstack_free): Invoke the __obstack_free macro.
59600         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59601
59602 2006-10-23  Bruno Haible  <bruno@clisp.org>
59603             Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59606         __argc, __argv from the declaration. (They are defined as macros on
59607         mingw.)
59608
59609 2006-10-22  Bruno Haible  <bruno@clisp.org>
59610
59611         * doc/gnulib-intro.texi: New file.
59612         * doc/gnulib.texi: Include it.
59613
59614 2006-10-21  Bruno Haible  <bruno@clisp.org>
59615
59616         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59617         "Introduction", "Miscellanous Notes", "Particular Modules".
59618
59619 2006-10-21  Bruno Haible  <bruno@clisp.org>
59620
59621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59622         Change mostlyclean-local rule to avoid sh syntax error from bash
59623         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59624
59625 2006-10-23  Jim Meyering  <jim@meyering.net>
59626
59627         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59628         in place of snprintf.
59629
59630         * modules/inttostr (Files): Add lib/uinttostr.c.
59631         * lib/uinttostr.c (inttostr): New file/function.
59632         * lib/inttostr.h (uinttostr): Declare.
59633         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59634         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59635         Add uinttostr.
59636         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59637
59638 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * lib/canonicalize.c (ELOOP): Define if not already defined.
59641         Problem reported by Bruno Haible in
59642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59643
59644 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59647         Problem reported by Perry Smith and Ville Laurikari.
59648
59649         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59650         uses.
59651
59652 2006-10-19  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59655         for mingw.
59656
59657 2006-10-19  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59660         Needed for mingw.
59661
59662 2006-10-19  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59665
59666 2006-10-19  Bruno Haible  <bruno@clisp.org>
59667
59668         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59669         it.
59670
59671 2006-10-19  Bruno Haible  <bruno@clisp.org>
59672
59673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59674         invocation.
59675
59676 2006-10-19  Bruno Haible  <bruno@clisp.org>
59677
59678         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59679         mountlist by default.
59680
59681 2006-10-16  Bruno Haible  <bruno@clisp.org>
59682
59683         * lib/c-strstr.c: Include c-strstr.h.
59684
59685 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59686
59687         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59688         in a slash.
59689
59690 2006-10-18  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/lock.h [C++]: Wrap definitions in extern "C".
59693
59694 2006-10-18  Bruno Haible  <bruno@clisp.org>
59695
59696         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59697         gl_LIBOBJS list.
59698
59699 2006-10-18  Bruno Haible  <bruno@clisp.org>
59700
59701         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59702
59703 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * lib/xstrtol.h: Include gettext.h.
59706         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59707         Problem reported by Eric Blake.
59708         * modules/xstrtol (Depends-on): Add gettext-h.
59709
59710 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59711
59712         * lib/strftime.c (advance): New macro.
59713         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59714         incomplete type, so you can't add 0 to it.  Problem and patch
59715         reported by Eelco Dolstra for dietlibc.
59716
59717 2006-10-18  Jim Meyering  <jim@meyering.net>
59718
59719         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59720         type for a local, and rename it: s/up/user_proc/.
59721
59722 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59723
59724         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59725         READ_UTMP_USER_PROCESS.
59726         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59727
59728 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59731         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59732
59733 2006-10-17  Eric Blake  <ebb9@byu.net>
59734
59735         * lib/sigprocmask.c (sigprocmask): Fix typo.
59736
59737         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59738
59739         * modules/clean-temp (Makefile.am): Don't add to make output...
59740         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59741         config.h.
59742
59743 2006-10-17  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59746         differently if DEFAULT_TEXT_DOMAIN is set.
59747
59748 2006-10-16  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/clean-temp.c: Include fwriteerror.h.
59751
59752 2006-10-16  Bruno Haible  <bruno@clisp.org>
59753
59754         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59755
59756 2006-10-16  Bruno Haible  <bruno@clisp.org>
59757
59758         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59759         * lib/sigprocmask.h: Include <sys/types.h>.
59760         (sigset_t): Use the system's definition if present.
59761
59762 2006-10-17  Eric Blake  <ebb9@byu.net>
59763
59764         * lib/xvasprintf.c (includes): Assume config.h.
59765         * lib/xasprintf.c (includes): Likewise.
59766
59767 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59770         at least as wide as intmax_t.
59771
59772 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59773
59774         (Imported from Automake.)
59775         * build-aux/gnupload: Update to version 1.1 of directive file.
59776
59777 2006-10-16  Eric Blake  <ebb9@byu.net>
59778
59779         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59780         match Automake 1.10a.
59781
59782 2006-10-14  Bruno Haible  <bruno@clisp.org>
59783
59784         * modules/sigprocmask: New file.
59785         * lib/sigprocmask.h: New file.
59786         * lib/sigprocmask.c: New file.
59787         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59788         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59789         request sigprocmask.o.
59790         (gl_PREREQ_SIGPROCMASK): New macro.
59791         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59792         (Depends-on): Add sigprocmask.
59793         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59794         gt_SIGNALBLOCKING. Test for 'raise' only once.
59795         * lib/fatal-signal.c: Include sigprocmask.h.
59796         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59797         unblock_fatal_signals): Define always.
59798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59799         sigprocmask.
59800
59801 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         Sync from Automake.
59804         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59805         which incorrectly sets the mode of an existing destination
59806         directory.  In some cases the unpatched install-sh could do the
59807         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59808         system.  We hope this is rare in practice, but it's clearly worth
59809         fixing.  Problem reported by Alex Unleashed in
59810         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59811         Also, don't bother to check for -m bugs unless we're using -m;
59812         suggested by Stepan Kasal.
59813
59814 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59815
59816         Sync from Automake.
59817         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59818         `-c' flag, so they appear at the same position as in %FASTDEP%
59819         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59820         which ignores unknown options only after the first non-option.
59821         Bug report against M4 by Nelson H. F. Beebe.
59822
59823 2006-10-13  Jim Meyering  <jim@meyering.net>
59824
59825         Fix a bug in yesterday's change.
59826         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59827         p->fts_statp->st_dev would be used uninitialized.
59828         Ensures that we always call fts_stat on the very first entry.
59829         Miklos Szeredi reported that find -xdev stopped working.
59830
59831 2006-10-12  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool (func_get_automake_snippet): Append an automatically
59834         computed EXTRA_DIST augmentation.
59835         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59836         * modules/alloca-opt (Makefile.am): Likewise.
59837         * modules/allocsa (Makefile.am): Likewise.
59838         * modules/arcfour (Makefile.am): Likewise.
59839         * modules/arctwo (Makefile.am): Likewise.
59840         * modules/argmatch (Makefile.am): Likewise.
59841         * modules/argz (Makefile.am): Likewise.
59842         * modules/atexit (Makefile.am): Likewise.
59843         * modules/backupfile (Makefile.am): Likewise.
59844         * modules/byteswap (Makefile.am): Likewise.
59845         * modules/c-strtod (Makefile.am): Likewise.
59846         * modules/c-strtold (Makefile.am): Likewise.
59847         * modules/calloc (Makefile.am): Likewise.
59848         * modules/canon-host (Makefile.am): Likewise.
59849         * modules/canonicalize (Makefile.am): Likewise.
59850         * modules/chdir-long (Makefile.am): Likewise.
59851         * modules/chdir-safer (Makefile.am): Likewise.
59852         * modules/check-version (Makefile.am): Likewise.
59853         * modules/chown (Makefile.am): Likewise.
59854         * modules/cloexec (Makefile.am): Likewise.
59855         * modules/close-stream (Makefile.am): Likewise.
59856         * modules/closeout (Makefile.am): Likewise.
59857         * modules/crc (Makefile.am): Likewise.
59858         * modules/csharpexec (Makefile.am): Likewise.
59859         * modules/cycle-check (Makefile.am): Likewise.
59860         * modules/des (Makefile.am): Likewise.
59861         * modules/dev-ino (Makefile.am): Likewise.
59862         * modules/dirfd (Makefile.am): Likewise.
59863         * modules/dirname (Makefile.am): Likewise.
59864         * modules/dup2 (Makefile.am): Likewise.
59865         * modules/eealloc (Makefile.am): Likewise.
59866         * modules/error (Makefile.am): Likewise.
59867         * modules/euidaccess (Makefile.am): Likewise.
59868         * modules/exclude (Makefile.am): Likewise.
59869         * modules/exitfail (Makefile.am): Likewise.
59870         * modules/fcntl-safer (Makefile.am): Likewise.
59871         * modules/fcntl (Makefile.am): Likewise.
59872         * modules/file-type (Makefile.am): Likewise.
59873         * modules/fileblocks (Makefile.am): Likewise.
59874         * modules/filemode (Makefile.am): Likewise.
59875         * modules/filenamecat (Makefile.am): Likewise.
59876         * modules/fnmatch (Makefile.am): Likewise.
59877         * modules/fopen-safer (Makefile.am): Likewise.
59878         * modules/fpending (Makefile.am): Likewise.
59879         * modules/fprintftime (Makefile.am): Likewise.
59880         * modules/free (Makefile.am): Likewise.
59881         * modules/fsusage (Makefile.am): Likewise.
59882         * modules/ftruncate (Makefile.am): Likewise.
59883         * modules/fts (Makefile.am): Likewise.
59884         * modules/gc-arcfour (Makefile.am): Likewise.
59885         * modules/gc-des (Makefile.am): Likewise.
59886         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59887         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59888         * modules/gc-md4 (Makefile.am): Likewise.
59889         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59890         * modules/gc-sha1 (Makefile.am): Likewise.
59891         * modules/gc (Makefile.am): Likewise.
59892         * modules/getaddrinfo (Makefile.am): Likewise.
59893         * modules/getcwd (Makefile.am): Likewise.
59894         * modules/getdelim (Makefile.am): Likewise.
59895         * modules/getdomainname (Makefile.am): Likewise.
59896         * modules/getgroups (Makefile.am): Likewise.
59897         * modules/gethostname (Makefile.am): Likewise.
59898         * modules/gethrxtime (Makefile.am): Likewise.
59899         * modules/getline (Makefile.am): Likewise.
59900         * modules/getloadavg (Makefile.am): Likewise.
59901         * modules/getlogin_r (Makefile.am): Likewise.
59902         * modules/getndelim2 (Makefile.am): Likewise.
59903         * modules/getopt (Makefile.am): Likewise.
59904         * modules/getpagesize (Makefile.am): Likewise.
59905         * modules/getpass-gnu (Makefile.am): Likewise.
59906         * modules/getpass (Makefile.am): Likewise.
59907         * modules/getsubopt (Makefile.am): Likewise.
59908         * modules/gettime (Makefile.am): Likewise.
59909         * modules/gettimeofday (Makefile.am): Likewise.
59910         * modules/getugroups (Makefile.am): Likewise.
59911         * modules/getusershell (Makefile.am): Likewise.
59912         * modules/glob (Makefile.am): Likewise.
59913         * modules/group-member (Makefile.am): Likewise.
59914         * modules/hard-locale (Makefile.am): Likewise.
59915         * modules/hash (Makefile.am): Likewise.
59916         * modules/hmac-md5 (Makefile.am): Likewise.
59917         * modules/hmac-sha1 (Makefile.am): Likewise.
59918         * modules/human (Makefile.am): Likewise.
59919         * modules/idcache (Makefile.am): Likewise.
59920         * modules/imaxabs (Makefile.am): Likewise.
59921         * modules/imaxdiv (Makefile.am): Likewise.
59922         * modules/inet_ntop (Makefile.am): Likewise.
59923         * modules/inet_pton (Makefile.am): Likewise.
59924         * modules/intprops (Makefile.am): Likewise.
59925         * modules/inttostr (Makefile.am): Likewise.
59926         * modules/inttypes (Makefile.am): Likewise.
59927         * modules/isapipe (Makefile.am): Likewise.
59928         * modules/javaversion (Makefile.am): Likewise.
59929         * modules/lchmod (Makefile.am): Likewise.
59930         * modules/lchown (Makefile.am): Likewise.
59931         * modules/localcharset (Makefile.am): Likewise.
59932         * modules/long-options (Makefile.am): Likewise.
59933         * modules/lstat (Makefile.am): Likewise.
59934         * modules/malloc (Makefile.am): Likewise.
59935         * modules/mathl (Makefile.am): Likewise.
59936         * modules/mbchar (Makefile.am): Likewise.
59937         * modules/md2 (Makefile.am): Likewise.
59938         * modules/md4 (Makefile.am): Likewise.
59939         * modules/md5 (Makefile.am): Likewise.
59940         * modules/memcasecmp (Makefile.am): Likewise.
59941         * modules/memchr (Makefile.am): Likewise.
59942         * modules/memcmp (Makefile.am): Likewise.
59943         * modules/memcoll (Makefile.am): Likewise.
59944         * modules/memcpy (Makefile.am): Likewise.
59945         * modules/memmem (Makefile.am): Likewise.
59946         * modules/memmove (Makefile.am): Likewise.
59947         * modules/mempcpy (Makefile.am): Likewise.
59948         * modules/memrchr (Makefile.am): Likewise.
59949         * modules/memset (Makefile.am): Likewise.
59950         * modules/memxor (Makefile.am): Likewise.
59951         * modules/mkancesdirs (Makefile.am): Likewise.
59952         * modules/mkdir-p (Makefile.am): Likewise.
59953         * modules/mkdir (Makefile.am): Likewise.
59954         * modules/mkdtemp (Makefile.am): Likewise.
59955         * modules/mkstemp (Makefile.am): Likewise.
59956         * modules/mktime (Makefile.am): Likewise.
59957         * modules/modechange (Makefile.am): Likewise.
59958         * modules/mountlist (Makefile.am): Likewise.
59959         * modules/nanosleep (Makefile.am): Likewise.
59960         * modules/obstack (Makefile.am): Likewise.
59961         * modules/openat (Makefile.am): Likewise.
59962         * modules/pagealign_alloc (Makefile.am): Likewise.
59963         * modules/pathmax (Makefile.am): Likewise.
59964         * modules/physmem (Makefile.am): Likewise.
59965         * modules/poll (Makefile.am): Likewise.
59966         * modules/posixtm (Makefile.am): Likewise.
59967         * modules/posixver (Makefile.am): Likewise.
59968         * modules/putenv (Makefile.am): Likewise.
59969         * modules/quote (Makefile.am): Likewise.
59970         * modules/quotearg (Makefile.am): Likewise.
59971         * modules/raise (Makefile.am): Likewise.
59972         * modules/read-file (Makefile.am): Likewise.
59973         * modules/readline (Makefile.am): Likewise.
59974         * modules/readlink (Makefile.am): Likewise.
59975         * modules/readtokens (Makefile.am): Likewise.
59976         * modules/readutmp (Makefile.am): Likewise.
59977         * modules/realloc (Makefile.am): Likewise.
59978         * modules/regex (Makefile.am): Likewise.
59979         * modules/rename-dest-slash (Makefile.am): Likewise.
59980         * modules/rename (Makefile.am): Likewise.
59981         * modules/rijndael (Makefile.am): Likewise.
59982         * modules/rmdir (Makefile.am): Likewise.
59983         * modules/rpmatch (Makefile.am): Likewise.
59984         * modules/safe-read (Makefile.am): Likewise.
59985         * modules/safe-write (Makefile.am): Likewise.
59986         * modules/same-inode (Makefile.am): Likewise.
59987         * modules/same (Makefile.am): Likewise.
59988         * modules/save-cwd (Makefile.am): Likewise.
59989         * modules/savedir (Makefile.am): Likewise.
59990         * modules/setenv (Makefile.am): Likewise.
59991         * modules/settime (Makefile.am): Likewise.
59992         * modules/sha1 (Makefile.am): Likewise.
59993         * modules/sig2str (Makefile.am): Likewise.
59994         * modules/snprintf (Makefile.am): Likewise.
59995         * modules/stat-macros (Makefile.am): Likewise.
59996         * modules/stat-time (Makefile.am): Likewise.
59997         * modules/stdbool (Makefile.am): Likewise.
59998         * modules/stdint (Makefile.am): Likewise.
59999         * modules/stdlib-safer (Makefile.am): Likewise.
60000         * modules/stpcpy (Makefile.am): Likewise.
60001         * modules/stpncpy (Makefile.am): Likewise.
60002         * modules/strcase (Makefile.am): Likewise.
60003         * modules/strcasestr (Makefile.am): Likewise.
60004         * modules/strchrnul (Makefile.am): Likewise.
60005         * modules/strcspn (Makefile.am): Likewise.
60006         * modules/strdup (Makefile.am): Likewise.
60007         * modules/strerror (Makefile.am): Likewise.
60008         * modules/strftime (Makefile.am): Likewise.
60009         * modules/strndup (Makefile.am): Likewise.
60010         * modules/strnlen (Makefile.am): Likewise.
60011         * modules/strpbrk (Makefile.am): Likewise.
60012         * modules/strsep (Makefile.am): Likewise.
60013         * modules/strstr (Makefile.am): Likewise.
60014         * modules/strtod (Makefile.am): Likewise.
60015         * modules/strtoimax (Makefile.am): Likewise.
60016         * modules/strtok_r (Makefile.am): Likewise.
60017         * modules/strtol (Makefile.am): Likewise.
60018         * modules/strtoll (Makefile.am): Likewise.
60019         * modules/strtoul (Makefile.am): Likewise.
60020         * modules/strtoull (Makefile.am): Likewise.
60021         * modules/strtoumax (Makefile.am): Likewise.
60022         * modules/strverscmp (Makefile.am): Likewise.
60023         * modules/sys_socket (Makefile.am): Likewise.
60024         * modules/sys_stat (Makefile.am): Likewise.
60025         * modules/sysexits (Makefile.am): Likewise.
60026         * modules/time_r (Makefile.am): Likewise.
60027         * modules/timegm (Makefile.am): Likewise.
60028         * modules/timespec (Makefile.am): Likewise.
60029         * modules/tmpfile-safer (Makefile.am): Likewise.
60030         * modules/trim (Makefile.am): Likewise.
60031         * modules/unistd-safer (Makefile.am): Likewise.
60032         * modules/unlinkdir (Makefile.am): Likewise.
60033         * modules/unlocked-io (Makefile.am): Likewise.
60034         * modules/userspec (Makefile.am): Likewise.
60035         * modules/utime (Makefile.am): Likewise.
60036         * modules/utimecmp (Makefile.am): Likewise.
60037         * modules/utimens (Makefile.am): Likewise.
60038         * modules/vasnprintf (Makefile.am): Likewise.
60039         * modules/vasprintf (Makefile.am): Likewise.
60040         * modules/vsnprintf (Makefile.am): Likewise.
60041         * modules/xalloc (Makefile.am): Likewise.
60042         * modules/xgetcwd (Makefile.am): Likewise.
60043         * modules/xnanosleep (Makefile.am): Likewise.
60044         * modules/xreadlink (Makefile.am): Likewise.
60045         * modules/xstrtod (Makefile.am): Likewise.
60046         * modules/xstrtol (Makefile.am): Likewise.
60047         * modules/xstrtold (Makefile.am): Likewise.
60048         * modules/yesno (Makefile.am): Likewise.
60049         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60050
60051 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60052
60053         * modules/error (Makefile.am): Distribute files through
60054         EXTRA_DIST, not lib_SOURCES.
60055
60056 2006-10-12  Eric Blake  <ebb9@byu.net>
60057
60058         * modules/error (Makefile.am): Distribute files in /lib.
60059         * modules/obstack (Makefile.am): Likewise.
60060
60061 2006-10-12  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/acl (Makefile.am): Distribute all files in lib/ through
60064         EXTRA_DIST.
60065         * modules/arcfour (Makefile.am): Likewise.
60066         * modules/arctwo (Makefile.am): Likewise.
60067         * modules/argmatch (Makefile.am): Likewise.
60068         * modules/argz (Makefile.am): Likewise.
60069         * modules/atexit (Makefile.am): Likewise.
60070         * modules/backupfile (Makefile.am): Likewise.
60071         * modules/c-strtod (Makefile.am): Likewise.
60072         * modules/c-strtold (Makefile.am): Likewise.
60073         * modules/calloc (Makefile.am): Likewise.
60074         * modules/canon-host (Makefile.am): Likewise.
60075         * modules/canonicalize (Makefile.am): Likewise.
60076         * modules/chdir-long (Makefile.am): Likewise.
60077         * modules/chdir-safer (Makefile.am): Likewise.
60078         * modules/check-version (Makefile.am): Likewise.
60079         * modules/chown (Makefile.am): Likewise.
60080         * modules/cloexec (Makefile.am): Likewise.
60081         * modules/close-stream (Makefile.am): Likewise.
60082         * modules/closeout (Makefile.am): Likewise.
60083         * modules/crc (Makefile.am): Likewise.
60084         * modules/cycle-check (Makefile.am): Likewise.
60085         * modules/des (Makefile.am): Likewise.
60086         * modules/dirfd (Makefile.am): Likewise.
60087         * modules/dirname (Makefile.am): Likewise.
60088         * modules/dup2 (Makefile.am): Likewise.
60089         * modules/euidaccess (Makefile.am): Likewise.
60090         * modules/exclude (Makefile.am): Likewise.
60091         * modules/exitfail (Makefile.am): Likewise.
60092         * modules/fcntl-safer (Makefile.am): Likewise.
60093         * modules/file-type (Makefile.am): Likewise.
60094         * modules/fileblocks (Makefile.am): Likewise.
60095         * modules/filemode (Makefile.am): Likewise.
60096         * modules/filenamecat (Makefile.am): Likewise.
60097         * modules/fnmatch (Makefile.am): Likewise.
60098         * modules/fopen-safer (Makefile.am): Likewise.
60099         * modules/fpending (Makefile.am): Likewise.
60100         * modules/fprintftime (Makefile.am): Likewise.
60101         * modules/free (Makefile.am): Likewise.
60102         * modules/fsusage (Makefile.am): Likewise.
60103         * modules/ftruncate (Makefile.am): Likewise.
60104         * modules/fts (Makefile.am): Likewise.
60105         * modules/gc (Makefile.am): Likewise.
60106         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60107         * modules/getaddrinfo (Makefile.am): Likewise.
60108         * modules/getcwd (Makefile.am): Likewise.
60109         * modules/getdelim (Makefile.am): Likewise.
60110         * modules/getdomainname (Makefile.am): Likewise.
60111         * modules/getgroups (Makefile.am): Likewise.
60112         * modules/gethostname (Makefile.am): Likewise.
60113         * modules/gethrxtime (Makefile.am): Likewise.
60114         * modules/getline (Makefile.am): Likewise.
60115         * modules/getloadavg (Makefile.am): Likewise.
60116         * modules/getlogin_r (Makefile.am): Likewise.
60117         * modules/getopt (Makefile.am): Likewise.
60118         * modules/getpass (Makefile.am): Likewise.
60119         * modules/getpass-gnu (Makefile.am): Likewise.
60120         * modules/getsubopt (Makefile.am): Likewise.
60121         * modules/gettime (Makefile.am): Likewise.
60122         * modules/gettimeofday (Makefile.am): Likewise.
60123         * modules/getugroups (Makefile.am): Likewise.
60124         * modules/getusershell (Makefile.am): Likewise.
60125         * modules/glob (Makefile.am): Likewise.
60126         * modules/group-member (Makefile.am): Likewise.
60127         * modules/hard-locale (Makefile.am): Likewise.
60128         * modules/hash (Makefile.am): Likewise.
60129         * modules/hmac-md5 (Makefile.am): Likewise.
60130         * modules/hmac-sha1 (Makefile.am): Likewise.
60131         * modules/human (Makefile.am): Likewise.
60132         * modules/idcache (Makefile.am): Likewise.
60133         * modules/imaxabs (Makefile.am): Likewise.
60134         * modules/imaxdiv (Makefile.am): Likewise.
60135         * modules/inet_ntop (Makefile.am): Likewise.
60136         * modules/inet_pton (Makefile.am): Likewise.
60137         * modules/inttostr (Makefile.am): Likewise.
60138         * modules/isapipe (Makefile.am): Likewise.
60139         * modules/lchown (Makefile.am): Likewise.
60140         * modules/long-options (Makefile.am): Likewise.
60141         * modules/lstat (Makefile.am): Likewise.
60142         * modules/malloc (Makefile.am): Likewise.
60143         * modules/mathl (Makefile.am): Likewise.
60144         * modules/mbchar (Makefile.am): Likewise.
60145         * modules/md2 (Makefile.am): Likewise.
60146         * modules/md4 (Makefile.am): Likewise.
60147         * modules/md5 (Makefile.am): Likewise.
60148         * modules/memcasecmp (Makefile.am): Likewise.
60149         * modules/memchr (Makefile.am): Likewise.
60150         * modules/memcmp (Makefile.am): Likewise.
60151         * modules/memcoll (Makefile.am): Likewise.
60152         * modules/memcpy (Makefile.am): Likewise.
60153         * modules/memmem (Makefile.am): Likewise.
60154         * modules/memmove (Makefile.am): Likewise.
60155         * modules/mempcpy (Makefile.am): Likewise.
60156         * modules/memrchr (Makefile.am): Likewise.
60157         * modules/memset (Makefile.am): Likewise.
60158         * modules/memxor (Makefile.am): Likewise.
60159         * modules/mkancesdirs (Makefile.am): Likewise.
60160         * modules/mkdir (Makefile.am): Likewise.
60161         * modules/mkdir-p (Makefile.am): Likewise.
60162         * modules/mkdtemp (Makefile.am): Likewise.
60163         * modules/mkstemp (Makefile.am): Likewise.
60164         * modules/mktime (Makefile.am): Likewise.
60165         * modules/modechange (Makefile.am): Likewise.
60166         * modules/mountlist (Makefile.am): Likewise.
60167         * modules/nanosleep (Makefile.am): Likewise.
60168         * modules/openat (Makefile.am): Likewise.
60169         * modules/pagealign_alloc (Makefile.am): Likewise.
60170         * modules/physmem (Makefile.am): Likewise.
60171         * modules/poll (Makefile.am): Likewise.
60172         * modules/posixtm (Makefile.am): Likewise.
60173         * modules/posixver (Makefile.am): Likewise.
60174         * modules/putenv (Makefile.am): Likewise.
60175         * modules/quote (Makefile.am): Likewise.
60176         * modules/quotearg (Makefile.am): Likewise.
60177         * modules/raise (Makefile.am): Likewise.
60178         * modules/read-file (Makefile.am): Likewise.
60179         * modules/readline (Makefile.am): Likewise.
60180         * modules/readlink (Makefile.am): Likewise.
60181         * modules/readtokens (Makefile.am): Likewise.
60182         * modules/readutmp (Makefile.am): Likewise.
60183         * modules/realloc (Makefile.am): Likewise.
60184         * modules/regex (Makefile.am): Likewise.
60185         * modules/rename (Makefile.am): Likewise.
60186         * modules/rename-dest-slash (Makefile.am): Likewise.
60187         * modules/rijndael (Makefile.am): Likewise.
60188         * modules/rmdir (Makefile.am): Likewise.
60189         * modules/rpmatch (Makefile.am): Likewise.
60190         * modules/safe-read (Makefile.am): Likewise.
60191         * modules/safe-write (Makefile.am): Likewise.
60192         * modules/same (Makefile.am): Likewise.
60193         * modules/save-cwd (Makefile.am): Likewise.
60194         * modules/savedir (Makefile.am): Likewise.
60195         * modules/setenv (Makefile.am): Likewise.
60196         * modules/settime (Makefile.am): Likewise.
60197         * modules/sha1 (Makefile.am): Likewise.
60198         * modules/sig2str (Makefile.am): Likewise.
60199         * modules/snprintf (Makefile.am): Likewise.
60200         * modules/stdlib-safer (Makefile.am): Likewise.
60201         * modules/stpcpy (Makefile.am): Likewise.
60202         * modules/stpncpy (Makefile.am): Likewise.
60203         * modules/strcase (Makefile.am): Likewise.
60204         * modules/strcasestr (Makefile.am): Likewise.
60205         * modules/strchrnul (Makefile.am): Likewise.
60206         * modules/strcspn (Makefile.am): Likewise.
60207         * modules/strdup (Makefile.am): Likewise.
60208         * modules/strerror (Makefile.am): Likewise.
60209         * modules/strftime (Makefile.am): Likewise.
60210         * modules/strndup (Makefile.am): Likewise.
60211         * modules/strnlen (Makefile.am): Likewise.
60212         * modules/strpbrk (Makefile.am): Likewise.
60213         * modules/strsep (Makefile.am): Likewise.
60214         * modules/strstr (Makefile.am): Likewise.
60215         * modules/strtod (Makefile.am): Likewise.
60216         * modules/strtoimax (Makefile.am): Likewise.
60217         * modules/strtok_r (Makefile.am): Likewise.
60218         * modules/strtol (Makefile.am): Likewise.
60219         * modules/strtoll (Makefile.am): Likewise.
60220         * modules/strtoul (Makefile.am): Likewise.
60221         * modules/strtoull (Makefile.am): Likewise.
60222         * modules/strtoumax (Makefile.am): Likewise.
60223         * modules/strverscmp (Makefile.am): Likewise.
60224         * modules/time_r (Makefile.am): Likewise.
60225         * modules/timegm (Makefile.am): Likewise.
60226         * modules/tmpfile-safer (Makefile.am): Likewise.
60227         * modules/unistd-safer (Makefile.am): Likewise.
60228         * modules/unlinkdir (Makefile.am): Likewise.
60229         * modules/userspec (Makefile.am): Likewise.
60230         * modules/utime (Makefile.am): Likewise.
60231         * modules/utimecmp (Makefile.am): Likewise.
60232         * modules/utimens (Makefile.am): Likewise.
60233         * modules/vasnprintf (Makefile.am): Likewise.
60234         * modules/vasprintf (Makefile.am): Likewise.
60235         * modules/vsnprintf (Makefile.am): Likewise.
60236         * modules/xalloc (Makefile.am): Likewise.
60237         * modules/xgetcwd (Makefile.am): Likewise.
60238         * modules/xnanosleep (Makefile.am): Likewise.
60239         * modules/xreadlink (Makefile.am): Likewise.
60240         * modules/xstrtod (Makefile.am): Likewise.
60241         * modules/xstrtol (Makefile.am): Likewise.
60242         * modules/xstrtold (Makefile.am): Likewise.
60243         * modules/yesno (Makefile.am): Likewise.
60244
60245 2006-10-12  Jim Meyering  <jim@meyering.net>
60246
60247         * m4/getloadavg.m4: Revert the change below.
60248
60249         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60250         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60251         fail with a symlink, which is what coreutils' ./bootstrap now
60252         creates by default.
60253
60254 2006-10-12  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60257         mingw.
60258         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60259         MSVC and mingw explicitly.
60260
60261 2006-10-11  Simon Josefsson  <jas@extundo.com>
60262             Bruno Haible  <bruno@clisp.org>
60263
60264         Add support for multiple gnulib-tool invocations in the scope of a
60265         single configure.ac file.
60266         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60267         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60268         with the same contents as the _LIBADD variable.
60269         (func_emit_initmacro_start, func_emit_initmacro_end,
60270         func_emit_initmacro_done): New functions.
60271         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60272         gl_LIBOBJS and gl_LTLIBOBJS.
60273
60274 2006-10-11  Bruno Haible  <bruno@clisp.org>
60275
60276         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60277         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60278         autoreconf. Instead, invoke autopoint explicitly but move back the
60279         *.m4 files from gnulib.
60280
60281 2006-10-11  Bruno Haible  <bruno@clisp.org>
60282
60283         * gnulib-tool (func_usage): Make module names after --create-testdir
60284         optional.
60285         (func_create_testdir): If no module was specified, use nearly all
60286         modules.
60287
60288 2006-10-12  Jim Meyering  <jim@meyering.net>
60289
60290         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60291         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60292         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60293         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60294         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60295         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60296         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60297         (fts_set_stat_required): New function.
60298         (fts_open): Defer the calls to fts_stat, if possible or requested.
60299         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60300         into fts_stat itself.
60301         (fts_read): Perform any required (deferred) fts_stat call.
60302         (fts_build): Likewise, for the directory we're about to open and read.
60303         In the readdir loop, carefully decide whether each entry will require
60304         an eventual call to fts_stat, using dirent.d_type info if available.
60305         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60306         a command line argument into this function.  Update all callers.
60307         Map a return value of FTS_DOT to FTS_D for a command line argument.
60308         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60309         Thanks to Miklos Szeredi for his tenacity and for the initial
60310         bug report about "find" failing on a FUSE-based file system.
60311
60312         * lib/fts.c (fts_open): Use consistent indentation.
60313
60314 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60317         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60318         reported by Jim Meyering.  All uses of cache variables renamed
60319         to match Autoconf's.
60320         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60321         the other one.
60322
60323         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60324         Fix misspelling in diagnostic.
60325
60326 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60329         defined.  Problem reported by Matthew Woehlke.
60330
60331         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60332         Add support for Tandem NonStop R series.
60333         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60334         Use new macro.
60335
60336         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60337         (has_trailing_slash): Omit size arg; all callers changed.
60338         Omit 'inline', since it doesn't help performance and we'd
60339         need to configure it.
60340         Don't count //, ///, etc. as having a trailing slash.
60341         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60342         (rpl_rename_dest_slash): On failure, use rename's errno rather
60343         than (in some cases) an incorrect or junk errno.
60344         Simplify code by removing need to compute length; this does
60345         cause it to make two passes instead of one over the file name,
60346         but it's worth it.
60347
60348         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60349         change, since Autoconf's version may no longer be appropriate now
60350         that we are using CVS Autoconf's version.  Add support for Tandem.
60351
60352 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60353             Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60356         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60357         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60358         gl_AC_TYPE_LONG_LONG.
60359
60360         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60361         instead of HAVE_LONG_LONG.
60362         * lib/printf-args.c (printf_fetchargs): Likewise.
60363         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60364         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60366         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60367         gl_AC_TYPE_LONG_LONG.
60368
60369 2006-10-11  Bruno Haible  <bruno@clisp.org>
60370
60371         * m4/longlong.m4: Add comments.
60372         * m4/ulonglong.m4: Likewise.
60373
60374 2006-10-10  Bruno Haible  <bruno@clisp.org>
60375
60376         Make it possible to #define stpcpy, strdup to aliases.
60377         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60378         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60379
60380 2006-10-10  Bruno Haible  <bruno@clisp.org>
60381
60382         Make it possible to #define gcd to an alias.
60383         * lib/gcd.c: Include config.h.
60384
60385 2006-10-10  Bruno Haible  <bruno@clisp.org>
60386
60387         Make it possible to #define c_isascii to an alias.
60388         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60389         defined. Undefine the macros before defining them, to avoid gcc
60390         warnings.
60391         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60392         define NO_C_CTYPE_MACROS early.
60393
60394 2006-10-10  Bruno Haible  <bruno@clisp.org>
60395
60396         Make it possible to #define set_program_name to an alias.
60397         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60398         ENABLE_RELOCATABLE early.
60399
60400 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60401
60402         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60403         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60404         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60405         More generally, don't assume that 64-bit signed int is available
60406         if unsigned int is, and vice versa.
60407         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60408         unsigned symbols, not on their signed counterparts.
60409         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60410         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60411         (UINT64_C, UINTMAX_C):
60412         Likewise.
60413         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60414         unsigned counterparts.
60415         (Have_long_long, Unsigned): New macros.
60416         (Int): Renamed from INT.
60417         (strtoimax): Use the new macros.
60418         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60419         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60420         * modules/inttypes (inttypes.h): Substitute
60421         HAVE_UNSIGNED_LONG_LONG_INT.
60422         * modules/stdint (stdint.h): Likewise.
60423         (Files): Add m4/ulonglong.m4.
60424
60425 2006-10-10  Bruno Haible  <bruno@clisp.org>
60426
60427         Fix a gcc -Wshadow warning.
60428         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60429         to 'bucket'.
60430         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60431         gl_linked_indexof_from_to): Likewise.
60432         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60433         Likewise.
60434         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60435         Likewise.
60436         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60437         Reported by Eric Blake.
60438
60439 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60442         for NetBSD.  Problem reported by Bruno Haible.
60443
60444 2006-10-09  Jim Meyering  <jim@meyering.net>
60445
60446         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60447         Patch from Bruno Haible.
60448
60449 2006-10-09  Jim Meyering  <jim@meyering.net>
60450
60451         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60452         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60453         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60454
60455 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         Don't include <config.h> twice; this doesn't work in some cases,
60458         e.g., when config.h has "#define intmax_t long long int" and
60459         we include <config.h>, <inttypes.h>, <config.h> in that order.
60460         Problem reported by Matthew Woehlke in:
60461         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60462         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60463         * lib/fts-cycle.c: Don't include config.h.
60464         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60465         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60466         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60467         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60468         inttypes.h.
60469         * lib/xstrtoumax.c: Likewise.
60470         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60471         __strtol and the like, so that this module is more like its siblings.
60472         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60473         Remove; no longer needed now that we assume gnulib inttypes.h.
60474
60475 2006-10-08  Bruno Haible  <bruno@clisp.org>
60476
60477         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60478         option.
60479
60480 2006-10-07  Jim Meyering  <jim@meyering.net>
60481
60482         * modules/inttypes (inttypes.h): Revert what seems to have been
60483         an inadvertent part of today's change: use "|", not "/" in the
60484         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60485
60486 2006-10-07  Bruno Haible  <bruno@clisp.org>
60487
60488         * modules/sublist: New file.
60489
60490 2006-10-07  Bruno Haible  <bruno@clisp.org>
60491
60492         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60493         * modules/argz (argz.h): Likewise.
60494         * modules/arpa_inet (arpa/inet.h): Likewise.
60495         * modules/byteswap (byteswap.h): Likewise.
60496         * modules/configmake (configmake.h): Likewise.
60497         * modules/fcntl (fcntl.h): Likewise.
60498         * modules/fnmatch (fnmatch.h): Likewise.
60499         * modules/getopt (getopt.h): Likewise.
60500         * modules/glob (glob.h): Likewise.
60501         * modules/inttypes (inttypes.h): Likewise.
60502         * modules/netinet_in (netinet/in.h): Likewise.
60503         * modules/poll (poll.h): Likewise.
60504         * modules/stdbool (stdbool.h): Likewise.
60505         * modules/stdint (stdint.h): Likewise.
60506         * modules/sys_select (sys/select.h): Likewise.
60507         * modules/sys_socket (sys/socket.h): Likewise.
60508         * modules/sys_stat (sys/stat.h): Likewise.
60509         * modules/sysexits (sysexits.h): Likewise.
60510         * modules/unistd (unistd.h): Likewise.
60511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60512         Add a "DO NOT EDIT" comment to the generated file.
60513         (func_import): Likewise for gnulib-comp.m4.
60514
60515 2006-10-07  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/gl_sublist.h: New file.
60518         * lib/gl_sublist.c: New file.
60519
60520 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60523         name (relative to the original working directory) and the file
60524         name component (relative to the temporary working directory).  All
60525         callers changed.
60526         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60527         * lib/mkdir-p.c (make_dir_parents): Likewise.
60528         * lib/mkdir-p.h (make_dir_parents): Likewise.
60529
60530 2006-10-06  Eric Blake  <ebb9@byu.net>
60531
60532         Define several macros for use by the clean-temp module.
60533         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60534         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60535         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60536
60537         * lib/clean-temp.h (close_stream_temp): New declaration.
60538         * lib/clean-temp.c (includes): Pull in headers according to what
60539         other modules are in use.
60540         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60541
60542 2006-10-06  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60545         instead of fopen, fwriteerror.
60546
60547 2006-10-06  Bruno Haible  <bruno@clisp.org>
60548
60549         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60550         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60551         int.
60552         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60553         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60554         Return an error indicator.
60555         Suggested by Eric Blake.
60556
60557 2006-10-06  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60560         Reported by Eric Blake.
60561
60562 2006-10-06  Bruno Haible  <bruno@clisp.org>
60563
60564         * modules/closeout (Description): Mention stderr too.
60565
60566 2006-10-06  Bruno Haible  <bruno@clisp.org>
60567         and Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * lib/closeout.c (close_stdout): Also close stderr.
60570         * lib/closeout.h: Update comment.
60571
60572 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60575         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60576         * lib/dirchownmod.c: Include lchown.h.
60577         * lib/lchown.c: Don't include files that lchown.h now includes.
60578         Don't declare chown, since lchown.h now does that.
60579         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60580         (lchown): Define to rpl_chown if lchown is declared but
60581         does not exist.  Declare using a prototype if lchown is not
60582         declared.  Add a copyright notice.
60583         * lib/mkstemp.h: Include <unistd.h>.
60584         * lib/openat.c: Include lchown.h.
60585
60586         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60587         we now test for that separately.
60588         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60589         rather than O_NOFOLLOW, when testing whether it's possible to
60590         avoid a race condition reliably.
60591         * lib/savewd.c (savewd_chdir): Likewise.
60592
60593         Remove macros that are no longer needed now that stdint.h is
60594         reliable.
60595         * lib/fsusage.c (UINTMAX_MAX): Remove.
60596         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60597         * lib/utimecmp.c (SIZE_MAX): Remove.
60598
60599         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60600
60601         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60602         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60603         O_NOATIME works.
60604
60605 2006-10-05  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/gl_list.h (gl_sortedlist_search_from_to,
60608         gl_sortedlist_indexof_from_to): New declarations.
60609         (gl_list_implementation): New fields sortedlist_search_from_to,
60610         sortedlist_indexof_from_to.
60611         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60612         inline functions.
60613         * lib/gl_list.c (gl_sortedlist_search_from_to,
60614         gl_sortedlist_indexof_from_to): New functions.
60615         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60616         function.
60617         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60618         (gl_array_sortedlist_search_from_to): New function.
60619         (gl_array_list_implementation): Update.
60620         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60621         function.
60622         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60623         (gl_carray_sortedlist_search_from_to): New function.
60624         (gl_carray_list_implementation): Update.
60625         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60626         gl_linked_sortedlist_indexof_from_to): New functions.
60627         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60628         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60629         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60630         gl_tree_sortedlist_indexof_from_to): New functions.
60631         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60632         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60633         Update.
60634         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60635         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60636         Update.
60637
60638 2006-10-05  Bruno Haible  <bruno@clisp.org>
60639
60640         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60641         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60642         (struct gl_list_implementation): Add fields search_from_to,
60643         indexof_from_to. Remove fields search, indexof.
60644         (gl_list_search): Use the search_from_to method.
60645         (gl_list_search_from, gl_list_search_from_to): New functions.
60646         (gl_list_indexof): Use the indexof_from_to method.
60647         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60648         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60649         (gl_list_search_from, gl_list_search_from_to): New functions.
60650         (gl_list_indexof): Use the indexof_from_to method.
60651         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60652         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60653         gl_array_indexof. Add start_index, end_index arguments.
60654         (gl_array_search_from_to): Renamed from gl_array_search. Add
60655         start_index, end_index arguments.
60656         (gl_array_remove, gl_array_list_implementation): Update.
60657         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60658         gl_carray_indexof. Add start_index, end_index arguments.
60659         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60660         start_index, end_index arguments.
60661         (gl_carray_remove, gl_carray_list_implementation): Update.
60662         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60663         gl_linked_search. Add start_index, end_index arguments.
60664         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60665         start_index, end_index arguments.
60666         (gl_linked_remove): Update.
60667         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60668         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60669         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60670         field to 'size_t'.
60671         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60672         gl_tree_search. Add start_index, end_index arguments.
60673         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60674         start_index, end_index arguments.
60675         (gl_tree_remove): Update.
60676         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60677         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60678         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60679         function.
60680         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60681         gl_tree_search. Add start_index, end_index arguments.
60682         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60683         start_index, end_index arguments.
60684         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60685         Update.
60686         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60687
60688 2006-10-05  Bruno Haible  <bruno@clisp.org>
60689
60690         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60691
60692         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60693         fwriteerror_temp): New declarations.
60694         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60695         (descriptors): New variable.
60696         (cleanup): First, close the descriptors.
60697         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60698         fclose_temp, fwriteerror_temp): New functions.
60699
60700 2006-10-04  Jim Meyering  <jim@meyering.net>
60701
60702         * lib/fts.c (fts_open): Tiny comment change.
60703
60704 2006-10-04  Bruno Haible  <bruno@clisp.org>
60705
60706         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60707         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60708         gl_LOCK_BODY.
60709         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60710         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60711         gl_LOCK_EARLY_BODY.
60712         (gl_LOCK): Require gl_LOCK_BODY.
60713
60714 2006-10-04  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60717         (gl_oset_search_atleast): New declaration.
60718         (struct gl_oset_implementation): Add field 'search_atleast'.
60719         (gl_oset_search_atleast): New inline function.
60720         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60721         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60722         (gl_array_oset_implementation): Update.
60723         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60724         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60725         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60726
60727 2006-10-04  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60730
60731 2006-10-03  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60734         from gl_avltreehash_list_implementation.
60735
60736 2006-10-03  Bruno Haible  <bruno@clisp.org>
60737
60738         * lib/gl_oset.c (gl_oset_add): Fix return type.
60739
60740 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60741
60742         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60743
60744 2006-10-02  Eric Blake  <ebb9@byu.net>
60745
60746         * modules/strnlen (Depends-on): Add extensions.
60747
60748 2006-10-02  Eric Blake  <ebb9@byu.net>
60749
60750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60751         definition in 2.60+.
60752
60753 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60754
60755         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60756         checks.
60757
60758 2006-10-02  Bruno Haible  <bruno@clisp.org>
60759
60760         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60761         to the AUTOMAKE_OPTIONS.
60762         Reported by Jim Meyering.
60763
60764 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         Work around bug in Solaris 10 /proc file system:
60767         /proc/self/fd/NNN/.. isn't the parent directory of
60768         the directory whose file descriptor is NNN.  This needs to
60769         be worked around at run time, not compile time, since a
60770         program might be built on Solaris 8, where things work, and
60771         run on Solaris 10.
60772         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60773         to use the following interface instead:
60774         (OPENAT_BUFFER_SIZE): New macro.
60775         (openat_proc_name): New function.
60776         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60777         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60778         Likewise.
60779         * lib/openat-proc.c: New file.
60780         * modules/openat (Files): Add lib/openat-proc.c.
60781         (Depends-on): Add same-inode, stdbool.
60782         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60783
60784 2006-09-29  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60787         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60788         argument. Set stdout_closed before testing for ferror, not after.
60789         (fwriteerror, fwriteerror_no_ebadf): New functions.
60790
60791 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60792
60793         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60794
60795 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60796
60797         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60798         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60799
60800 2006-09-28  Jim Meyering  <jim@meyering.net>
60801
60802         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60803         Include <unistd.h>.
60804
60805 2006-09-28  Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60808         * modules/linkedhash-list (Depends-on): Likewise.
60809         * modules/rbtreehash-list (Depends-on): Likewise.
60810
60811 2006-09-28  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/strndup.h: Simplify the redefinition of strndup.
60814         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60816
60817 2006-09-28  Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60820         * lib/gl_linkedhash_list.c: Likewise.
60821         * lib/gl_rbtreehash_list.c: Likewise.
60822
60823 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60824
60825         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60826         getaddrinfo.
60827
60828         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60829         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60830         it causes <stdio_ext.h> to cause a compile-time error.
60831         Problem reported by Nelson H. F. Beebe.
60832         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60833         of HAVE_DECL___PENDING.
60834
60835         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60837         declaration.
60838
60839 2006-09-27  Jim Meyering  <jim@meyering.net>
60840
60841         This file could end up with a definition for a function
60842         named __strndup, rather than rpl_strndup on a system with
60843         incomplete weak_alias support.
60844         * lib/strndup.c (strndup): Rename from __strndup.
60845         Remove #defines that used to map __strndup to strndup.
60846         Don't use K&R prototypes.
60847         Remove LIBC-related code, since this file is not sync'd with glibc.
60848         * lib/strndup.h: Revamp, accordingly.
60849         * m4/strndup.m4: Modernize.
60850
60851 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * modules/savewd (Depends-on): Add 'raise'.
60854         * lib/savewd.c: Include <signal.h>, for 'raise'.
60855
60856 2006-09-26  Jim Meyering  <jim@meyering.net>
60857
60858         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60859         when we detect Darwin 8.7.0's acl_get_file bug.
60860         Rearrange to perform the new (below) run-test while $LIBS
60861         contains any acl-related library.  Set USE_ACL at the end.
60862         (gl_ACL_GET_FILE): New function.
60863
60864 2006-09-26  Eric Blake  <ebb9@byu.net>
60865
60866         * lib/verror.c: Include <config.h> unconditionally.
60867
60868 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60869
60870         * modules/clock-time (Maintainer): Add self.
60871         * modules/getlogin_r (Depends-on): Add extensions.
60872
60873 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60874
60875         * modules/clock-time: New module.
60876         * modules/nanosleep (Depends-on): Add clock-time.
60877         * modules/gethrxtime (Depends-on): Likewise.
60878         * modules/gettime (Depends-on): Likewise.
60879         * modules/settime (Depends-on): Likewise.
60880
60881         * modules/fts-lgpl: Depend on openat.
60882         * modules/mkancesdirs: Depend on savewd.
60883         * modules/mkdir-p: Likewise.
60884
60885 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60886
60887         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60888
60889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60890         `gl_have_arbitrary_file_name_length_limit' to
60891         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60892         actually works between configure runs.
60893
60894 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60895             Bruno Haible  <bruno@clisp.org>
60896
60897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60898
60899 2006-09-25  Jim Meyering  <jim@meyering.net>
60900
60901         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60902         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60903
60904 2006-09-25  Eric Blake  <ebb9@byu.net>
60905
60906         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60907         exec's in 2006-09-18 patch when shuffling fds.
60908
60909 2006-09-25  Bruno Haible  <bruno@clisp.org>
60910
60911         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60912         Reported by Jim Meyering.
60913
60914 2006-09-24  Jim Meyering  <jim@meyering.net>
60915
60916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60917         compare a pointer against a literal "0".  That caused failures with
60918         at least HP-UX's hpcc.
60919
60920 2006-09-22  Simon Josefsson  <jas@extundo.com>
60921
60922         * modules/gc-sha1:
60923         * modules/gc-md4:
60924         * modules/gc-hmac-sha1:
60925         * modules/gc-hmac-md5:
60926         * modules/gc-des:
60927         * modules/gc-arcfour: Distribute more files.
60928
60929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60930
60931         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60932         (gl_linked_iterator_from_to): Initialize struct completely.
60933         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60934         (gl_tree_iterator_from_to): Likewise
60935         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60936         * lib/gl_array_list.c [lint] (gl_array_iterator)
60937         (gl_array_iterator_from_to): Likewise.
60938         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60939         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60940         (gl_carray_iterator_from_to): Likewise.
60941
60942         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60943         * lib/md4.c (md4_process_block): Remove unused variable.
60944         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60945         parentheses for clarity.
60946
60947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60948
60949         * modules/bison-i18n (Depends-on): Add gettext.
60950
60951 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60952
60953         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60954         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60955         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60956         also add missing comma that caused broken test.
60957         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60958         stdlib.h, for `abort'.
60959         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60960         variables.
60961         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60962         include unistd.h if present, for `rmdir'.
60963         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60964         variables.
60965         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60966         in the process include standard headers for prototypes.
60967         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60968         gets declared on GNU/Linux.
60969         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60970         unistd.h, for `rmdir'.
60971         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60972
60973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60974         always true.
60975         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60976
60977         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60978
60979 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60980
60981         * gnulib-tool (func_version): Create output all at once.  This
60982         may help avoid triggering unnecessary SIGPIPEs, and at any
60983         rate it doesn't hurt.
60984
60985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986             Bruno Haible  <bruno@clisp.org>
60987
60988         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60990         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60991
60992         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60993         (gl_FUNC_VASPRINTF): Invoke it.
60994
60995 2006-09-22  Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60998         getloadavg.c as first argument.
60999
61000 2006-09-22  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61003         at the beginning of the gl_INIT macro.
61004         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61005         gl_GETLOADAVG.
61006
61007 2006-09-22  Bruno Haible  <bruno@clisp.org>
61008
61009         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61010         module.
61011         Suggested by Ralf Wildenhues.
61012
61013 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         Import this patch from libc:
61016
61017         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61018
61019         * lib/regex_internal.c (re_string_reconstruct): Handle
61020         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61021         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61022         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61023         re_string_context_at.
61024
61025         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61026         now requires it.
61027         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61028         gl_REGEX now does it for us.
61029         (gl_REGEX): Add test taken from
61030         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61031
61032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61033         Check that large offsets work.  Modernize Autoconf usages.
61034         Prefer "yes" to mean a good thing rather than a bad.
61035         Don't put "#define mkstemp" in config.h, as this might interfere
61036         with standard system headers that "#define mkstemp mkstemp64".
61037
61038         * modules/mkstemp (Depends-on): Add extensions, so that
61039         mkstemp is visible on some platforms.
61040         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61041         (Include): Change to "mkstemp.h" from <stdlib.h>.
61042         (Files): Add mkstemp.h.
61043
61044         * lib/mkstemp.h: New file, since some standard headers
61045         #define mkstemp.
61046         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61047         Include "mkstemp.h".
61048         Make the _LIBC code resemble glibc original more,
61049         e.g., use K&R style.
61050         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61051         (mkstemp): Remove, since mkstemp.h does this for us.
61052         * lib/stdlib--.h: Include mkstemp.h.
61053
61054         Import this patch from libc:
61055
61056         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61057
61058         * lib/tempname.c (__gen_tempname): Change attempts_min
61059         into a macro.  Use preprocessor to decide how to initialize
61060         attempts [Coverity CID 67].
61061
61062 2006-09-20  Bruno Haible  <bruno@clisp.org>
61063
61064         * lib/mkdtemp.c: Import from libc.
61065         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61066                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61067                 attempts_min into a macro.  Use preprocessor to decide how to
61068                 initialize attempts [Coverity CID 67].
61069         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61070                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61071                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61072
61073 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61074
61075         * gnulib-tool (func_exit): New function, to allow to pass the
61076         exit status portably through the trap.  Use everywhere.
61077         (--help, --version): Signal a write error.
61078         (trap): catch SIGPIPE, for write errors.
61079         Exit at the end of the trap, with the correct exit status.
61080
61081 2006-09-19  Karl Berry  <karl@gnu.org>
61082
61083         * doc/gnulib.texi: note about the license texinfo files.
61084
61085 2006-09-19  Eric Blake  <ebb9@byu.net>
61086
61087         * gnulib-tool: Avoid space-tab.
61088
61089 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61092         that prevented coreutils 6.1 from building.  Problem reported
61093         by Petter Reinholdtsen.
61094
61095 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61096
61097         * gnulib-tool (avoidlist): Fix typo that broke options like
61098         --avoid=lock that are used by coreutils bootstrap.
61099
61100 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61101
61102         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61103         more systematically.
61104
61105 2006-09-18  Jim Meyering  <jim@meyering.net>
61106
61107         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61108
61109 2006-09-18  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61112
61113 2006-09-18  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61116         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61117         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61118         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61119         * m4/gettext.m4: Require autoconf >= 2.52.
61120         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61121         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61122         of gl_cv_header_inttypes_h.
61123
61124 2006-09-18  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/javaversion.c: Include configmake.h.
61127
61128 2006-09-18  Bruno Haible  <bruno@clisp.org>
61129
61130         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61131         avoid that the while loops be executed in a subshell.
61132
61133 2006-09-18  Bruno Haible  <bruno@clisp.org>
61134
61135         * MODULES.html.sh (func_module): Break long lines.
61136         Suggested by Bruce Korb <bkorb@gnu.org>.
61137
61138 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61139
61140         Speed up by a factor of 1.12.
61141         * gnulib-tool (nl): New variable.
61142         (func_import): Rewrite include directive extraction to only read each
61143         directive once.
61144
61145 2006-09-17  Bruno Haible  <bruno@clisp.org>
61146
61147         * modules/javaversion (Makefile.am): Remove DEFS setting.
61148         (Depends-on): Add configmake, for PKGDATADIR definition.
61149
61150 2006-09-17  Bruno Haible  <bruno@clisp.org>
61151
61152         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61153
61154 2006-09-17  Bruno Haible  <bruno@clisp.org>
61155
61156         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61157         (func_modules_transitive_closure, func_modules_add_dummy,
61158         func_modules_to_filelist, func_import, func_create_testdir,
61159         func_create_megatestdir, ...): Use it wherever possible.
61160         Suggested by Ralf Wildenhues.
61161
61162 2006-09-16  Karl Berry  <karl@gnu.org>
61163
61164         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61165         to avoid sectioning errors.
61166         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61167         [ifinfo]: blank line after @center-ed titles.
61168         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61169         Spell FSF address consistently with others.
61170         (These changes approved by rms.)
61171
61172 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61173
61174         Speed up by a factor of 1.61.
61175         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61176         already checked module names again.
61177
61178 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61179
61180         Speed up by a factor of 1.13.
61181         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61182         for new_files, and the input to func_add_or_update.
61183
61184 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61185
61186         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61187         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61188
61189 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         * modules/mkancesdirs (Depends-on): Add fcntl.
61192         * modules/savewd: New file.
61193         * MODULES.html.sh (File system functions): Add savewd.
61194
61195         * modules/configmake (Makefile.am): Add support for the
61196         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61197
61198 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * m4/savewd.m4: New file.
61201
61202 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61203
61204         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61205         (dirchownmod): New arg FD.  All callers changed.
61206         Use FD rather than opening the directory ourself, as opening is
61207         now the caller's responsibility.
61208         * lib/dirchownmod.h: Likewise.
61209         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61210         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61211         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61212         (test_dir): Remove.
61213         (mkancesdirs): Return length of prefix of FILE that has already
61214         been made, or -2 if there is a child doing the work.  Redo
61215         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61216         ".", and treat ".." specially since it might stray back into
61217         already-created areas.  Use a subprocess if necessary.  New arg
61218         WD; all users changed.  MAKE_DIR function should now return 1
61219         if it creates a directory that is not readable.  Return -2 if
61220         a child process is spun off.
61221         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61222         Adjust signature to match code.
61223         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61224         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61225         all users changed.
61226         * lib/savewd.c, lib/savewd.h: New files.
61227
61228 2006-09-15  Jim Meyering  <jim@meyering.net>
61229
61230         * modules/rename-dest-slash: New module.
61231         * MODULES.html.sh (posix_compat): Add it here.
61232
61233         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61234
61235 2006-09-15  Jim Meyering  <jim@meyering.net>
61236
61237         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61238         file.
61239
61240         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61241
61242 2006-09-15  Jim Meyering  <jim@meyering.net>
61243
61244         * lib/rename-dest-slash.c (has_trailing_slash): Use
61245         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61246         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61247         test before testing whether SRC is a directory.
61248         Suggestions from Bruno Haible.
61249
61250         Avoid a warning about an unused variable.
61251         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61252         into the #ifdef block where it's used.
61253
61254         * lib/rename-dest-slash.c: New file.
61255
61256 2006-09-14  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/allocsa.c: Include <config.h> unconditionally.
61259         * lib/asnprintf.c: Likewise.
61260         * lib/asprintf.c: Likewise.
61261         * lib/c-strcasecmp.c: Likewise.
61262         * lib/c-strcasestr.c: Likewise.
61263         * lib/c-strncasecmp.c: Likewise.
61264         * lib/c-strstr.c: Likewise.
61265         * lib/classpath.c: Likewise.
61266         * lib/clean-temp.c: Likewise.
61267         * lib/concatpath.c: Likewise.
61268         * lib/copy-file.c: Likewise.
61269         * lib/csharpcomp.c: Likewise.
61270         * lib/csharpexec.c: Likewise.
61271         * lib/execute.c: Likewise.
61272         * lib/fatal-signal.c: Likewise.
61273         * lib/findprog.c: Likewise.
61274         * lib/fwriteerror.c: Likewise.
61275         * lib/gl_array_list.c: Likewise.
61276         * lib/gl_array_oset.c: Likewise.
61277         * lib/gl_avltree_list.c: Likewise.
61278         * lib/gl_avltree_oset.c: Likewise.
61279         * lib/gl_avltreehash_list.c: Likewise.
61280         * lib/gl_carray_list.c: Likewise.
61281         * lib/gl_linked_list.c: Likewise.
61282         * lib/gl_linkedhash_list.c: Likewise.
61283         * lib/gl_list.c: Likewise.
61284         * lib/gl_oset.c: Likewise.
61285         * lib/gl_rbtree_list.c: Likewise.
61286         * lib/gl_rbtree_oset.c: Likewise.
61287         * lib/gl_rbtreehash_list.c: Likewise.
61288         * lib/imaxabs.c: Likewise.
61289         * lib/imaxdiv.c: Likewise.
61290         * lib/javacomp.c: Likewise.
61291         * lib/javaexec.c: Likewise.
61292         * lib/javaversion.c: Likewise.
61293         * lib/linebreak.c: Likewise.
61294         * lib/localcharset.c: Likewise.
61295         * lib/lock.c: Likewise.
61296         * lib/mbchar.c: Likewise.
61297         * lib/mbswidth.c: Likewise.
61298         * lib/mkdtemp.c: Likewise.
61299         * lib/pipe.c: Likewise.
61300         * lib/printf-args.c: Likewise.
61301         * lib/printf-parse.c: Likewise.
61302         * lib/progname.c: Likewise.
61303         * lib/progreloc.c: Likewise.
61304         * lib/readlink.c: Likewise.
61305         * lib/sh-quote.c: Likewise.
61306         * lib/stpcpy.c: Likewise.
61307         * lib/stpncpy.c: Likewise.
61308         * lib/strcasecmp.c: Likewise.
61309         * lib/strcasestr.c: Likewise.
61310         * lib/strcspn.c: Likewise.
61311         * lib/striconv.c: Likewise.
61312         * lib/strncasecmp.c: Likewise.
61313         * lib/strnlen1.c: Likewise.
61314         * lib/strstr.c: Likewise.
61315         * lib/strtok_r.c: Likewise.
61316         * lib/tls.c: Likewise.
61317         * lib/tmpdir.c: Likewise.
61318         * lib/unicodeio.c: Likewise.
61319         * lib/unsetenv.c: Likewise.
61320         * lib/vasnprintf.c: Likewise.
61321         * lib/vasprintf.c: Likewise.
61322         * lib/wait-process.c: Likewise.
61323         * lib/xallocsa.c: Likewise.
61324         * lib/xsetenv.c: Likewise.
61325         * lib/xstriconv.c: Likewise.
61326
61327 2006-09-13  Simon Josefsson  <jas@extundo.com>
61328
61329         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61330         that internally, suggested by Ralf Wildenhues
61331         <Ralf.Wildenhues@gmx.de>.
61332
61333 2006-09-13  Simon Josefsson  <jas@extundo.com>
61334
61335         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61336         @LIBOBJS@.
61337         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61338
61339 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61340
61341         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61342         longer worry about uses that don't define HAVE_CONFIG_H.
61343         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61344         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61345         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61346         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61347         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61348         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61349         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61350         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61351         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61352         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61353         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61354         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61355         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61356         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61357         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61358         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61359         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61360         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61361         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61362         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61363         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61364         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61365         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61366         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61367         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61368         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61369         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61370         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61371         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61372         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61373         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61374         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61375         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61376         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61377         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61378         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61379         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61380         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61381         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61382         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61383         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61384         Likewise.
61385
61386 2006-09-13  Eric Blake  <ebb9@byu.net>
61387
61388         * lib/getopt.c: Fix typo in last commit.
61389
61390 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61391
61392         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61393         dgettext.
61394
61395 2006-09-12  Jim Meyering  <jim@meyering.net>
61396
61397         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61398         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61399         Reported by Nelson H. F. Beebe.
61400
61401 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61402
61403         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61404         program_invocation_name and program_invocation_short_name are
61405         initialized.
61406         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61407         and program_invocation_short_name to argp.h, so they are visible
61408         to user programs.
61409         * lib/argp.h: Likewise
61410
61411 2006-09-10  Bruno Haible  <bruno@clisp.org>
61412
61413         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61414         m4/inttypes_h.m4, m4/uintmax_t.m4.
61415
61416 2006-09-10  Bruno Haible  <bruno@clisp.org>
61417
61418         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61419         gl_AC_TYPE_UINTMAX_T.
61420
61421 2006-09-10  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61424
61425 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61426
61427         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61428         convention.  Text proposed by Bruno Haible.
61429         (struct argp_option): Document the use of N_() wrappers.
61430
61431         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61432         '\v', and translate the two parts separately, instead of feeding
61433         the whole string to gettext.  This allows to exclude
61434         '\v' from the strings visible to the translator by writing doc
61435         strings as N_("..") "\v" N_("..").
61436
61437 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * config/srclist.txt: Undo latest change; the bug was fixed.
61440
61441 2006-09-09  Bruno Haible  <bruno@clisp.org>
61442
61443         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61444         assignments if building a library without libtool.
61445         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61446         in func_emit_lib_Makefile_am.
61447         (func_import): When building a static library libfoo.a, arrange to
61448         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61449         (func_create_testdir): Likewise.
61450         * modules/gc (configure.ac, Makefile.am): If building statically,
61451         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61452         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61453         * modules/striconv (configure.ac, Makefile.am): Likewise.
61454         Based on a suggestion by Ralf Wildenhues.
61455
61456 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61459         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61460         Also:
61461
61462         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61463         Add year_2050_test to catch glibc bug 2821
61464         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61465
61466         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61467         Prefer #ifdef to #if.
61468
61469         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61470         Return from 'main' instead of calling 'exit'.
61471
61472 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61475         returned the maximum time_t value rather than (time_t) -1.
61476         Problem originally reported by William Bardwell
61477         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61478
61479         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61480         Moved to here ...
61481         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61482         ... from here.
61483
61484 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61487         2821 is fixed.
61488
61489 2006-09-08  Jim Meyering  <jim@meyering.net>
61490
61491         Don't make generated files read-only.  That would bother too many
61492         people.  However, do retain the ability to work when targets are
61493         read-only: remove the destination and temporary files before writing
61494         them (when generated via sed or echo), or by using the -f option for
61495         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61496         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61497         * modules/byteswap, modules/configmake, modules/fcntl:
61498         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61499         * modules/localcharset, modules/netinet_in, modules/poll:
61500         * modules/stdbool, modules/stdint, modules/sys_select:
61501         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61502
61503 2006-09-08  Jim Meyering  <jim@meyering.net>
61504
61505         Avoid new build failure on FreeBSD 6.0.
61506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61507         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61508         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61509
61510 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61511
61512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61513
61514 2006-09-07  Jim Meyering  <jim@meyering.net>
61515
61516         Fix global typo in last change: use chmod u-w, not chmod u-x.
61517         Spotted by Paul Eggert and Bruce Korb.
61518         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61519         * modules/byteswap, modules/configmake, modules/fcntl:
61520         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61521         * modules/localcharset, modules/netinet_in, modules/poll:
61522         * modules/stdbool, modules/stdint, modules/sys_select:
61523         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61524
61525 2006-09-06  Jim Meyering  <jim@meyering.net>
61526
61527         Make generated files be read-only.
61528         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61529         Ensure that each generated file is now read-only.
61530         * modules/argz: Likewise.
61531         * modules/arpa_inet: Likewise.
61532         * modules/byteswap: Likewise.
61533         * modules/configmake: Likewise.
61534         * modules/fcntl: Likewise.
61535         * modules/fnmatch: Likewise.
61536         * modules/getopt: Likewise.
61537         * modules/glob: Likewise.
61538         * modules/inttypes: Likewise.
61539         * modules/netinet_in: Likewise.
61540         * modules/poll: Likewise.
61541         * modules/stdbool: Likewise.
61542         * modules/stdint: Likewise.
61543         * modules/sys_select: Likewise.
61544         * modules/sys_socket: Likewise.
61545         * modules/sys_stat: Likewise.
61546         * modules/sysexits: Likewise.
61547         * modules/localcharset: Same as above, but continue using temporary
61548         file named "t-$@" (why different?) rather than the "$@-t" used
61549         everywhere else.
61550
61551         * modules/sysexits (Makefile.am): Replace literal occurrences
61552         of "sysexit.h" more readable, and more consistent, "$@".
61553
61554 2006-09-06  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/striconv: New file.
61557         * modules/xstriconv: New file.
61558         * MODULES.html.sh (Internationalization functions): Add striconv,
61559         xstriconv.
61560
61561 2006-09-06  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61564         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61565         not using libtool correctly.
61566
61567 2006-09-06  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/striconv.h: New file.
61570         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61571         iconvstring.c.
61572         * lib/xstriconv.h: New file.
61573         * lib/xstriconv.c: New file.
61574
61575 2006-09-06  Bruno Haible  <bruno@clisp.org>
61576
61577         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61578         lib_..._LDFLAGS.
61579
61580 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61581
61582         * lib/argz_.h: Sync from Libtool.
61583
61584         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61585                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61586
61587         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61588
61589 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61590
61591         * modules/trim: New file.
61592
61593 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61594
61595         * lib/trim.h: New file.
61596         * lib/trim.c: New file.
61597
61598 2006-09-05  Bruno Haible  <bruno@clisp.org>
61599
61600         * MODULES.html.sh (String handling): Add trim.
61601
61602 2006-09-04  Karl Berry  <karl@gnu.org>
61603
61604         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61605         until next release.
61606
61607 2006-09-03  Bruno Haible  <bruno@clisp.org>
61608
61609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61610         correctly.
61611
61612 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61615         not gl_GETLOADAVG.  Omit unneeded semicolons.
61616         Problems reported by Ralf Wildenhues in
61617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61618         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61619         at the end, which is the usual gnulib style.
61620
61621         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61622         of doing all the work ourselves.
61623         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61624         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61625
61626 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61629         Problem reported by Ralf Wildenhues in
61630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61631
61632         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61633         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61634
61635 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61638         yesterday's patch by changing test -n to test -z.
61639
61640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61641
61642         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61643         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61644         the former is now obsolescent.
61645
61646         * modules/chdir-long (Depends-on): Add fcntl.
61647
61648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61649
61650         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61651         obsolescent, and programs should use gnulib instead.
61652         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61653         but with prefixes changed.
61654
61655 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61658         or stdbool.h, because they might not exist while configuring.
61659
61660         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61661         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61662         does that for us.
61663         (O_DIRECTORY): Remove.
61664
61665 2006-08-31  Eric Blake  <ebb9@byu.net>
61666
61667         * gnulib-tool: Don't let emacs change spaces to TAB.
61668
61669 2006-08-31  Bruno Haible  <bruno@clisp.org>
61670
61671         * gnulib-tool: When calling func_import more than once, do it in a
61672         subshell.
61673         Reported by Eric Blake <ebb9@byu.net>.
61674
61675 2006-08-31  Bruno Haible  <bruno@clisp.org>
61676
61677         * gnulib-tool (nl): Remove variable.
61678         (sed_transform_lib_file): Use more robust test for config-h module.
61679         (func_import): Fix typo in 2006-08-25 patch.
61680
61681 2006-08-31  Bruno Haible  <bruno@clisp.org>
61682
61683         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61684         specified, augment Makefile.am variables instead of assigning them.
61685
61686 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         Work around a bug in both the Linux and SunOS 64-bit kernels:
61689         nanosleep mishandles sleeps for longer than 2**31 seconds.
61690         Problem reported by Frank v Waveren in
61691         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61693         Check for nanosleep bug.
61694         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61695
61696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         Work around a bug in both the Linux and SunOS 64-bit kernels:
61699         nanosleep mishandles sleeps for longer than 2**31 seconds.
61700         Problem reported by Frank v Waveren in
61701         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61702         * lib/nanosleep.c (BILLION): New constant.
61703         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61704         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61705         implementation.
61706
61707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * modules/nanosleep (Depends-on): Add gettime.
61710
61711 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61712         and Simon Josefsson  <jas@extundo.com>
61713         and Oskar Liljeblad  <oskar@osk.mine.nu>
61714
61715         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61716         * gnulib-tool (func_import): New license type 'unmodifiable license
61717         text'.
61718         * modules/fdl: Use it.  Longer description.
61719         * module/gpl, module/lgpl: New files.
61720
61721 2006-08-30  Jim Meyering  <jim@meyering.net>
61722
61723         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61724         shadowing the parameter.
61725
61726 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61727
61728         Sync from Libtool:
61729
61730         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61731
61732         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61733         sharing with gnulib.  Report by Eric Blake.
61734
61735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * modules/isapipe: New file.
61738         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61739
61740 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * modules/configmake (Makefile.am): Add a comment, and omit
61743         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61744         by Bruno Haible.
61745
61746 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * m4/isapipe.m4: New file.
61749
61750 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * lib/isapipe.c, lib/isapipe.h: New files.
61753
61754 2006-08-29  Jim Meyering  <jim@meyering.net>
61755
61756         * modules/configmake (Makefile.am): Make configmake.h depend on
61757         Makefile.  Otherwise, a stale configmake.h could hang around.
61758
61759 2006-08-29  Eric Blake  <ebb9@byu.net>
61760
61761         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61762         resolution of upstream bug 3044.
61763
61764 2006-08-29  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/localcharset (Depends-on): Add configmake.
61767         (Makefile.am): Remove setting of LIBDIR through DEFS.
61768
61769 2006-08-29  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61772         defined.
61773
61774 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * modules/fcntl: New file.
61777         * modules/chdir-safer (Depends-on): Add fcntl.
61778         * modules/fts: Likewise.
61779         * modules/mkdir-p: Likewise.
61780
61781         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61782         This undoes the most recent change, since we're now addressing the
61783         problem in a different way.
61784
61785         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61786         into output, since the output might be called Makefile.am even
61787         if $makefile_name is something different.
61788         (func_import): Use $makefile_am rather than
61789         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61790         empty.
61791
61792         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61793
61794 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61795
61796         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61797         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61798         recent change to stdint.m4, since we're now addressing the problem in a
61799         different way.
61800
61801 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * m4/fcntl_h.m4: New file.
61804
61805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * lib/fcntl_.h: New file.
61808         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61809         the fcntl module.
61810         * lib/dirchownmod.c: Likewise.
61811         * lib/fts.c: Likewise.
61812
61813         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61814         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61815         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61816         just before including <inttypes.h>, to avoid circular inclusion.
61817
61818 2006-08-28  Jim Meyering  <jim@meyering.net>
61819
61820         * doc/visibility.texi: Actually read and correct the grammar of the
61821         sentence affected by yesterday's change.
61822
61823 2006-08-28  Eric Blake  <ebb9@byu.net>
61824
61825         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61826         needs wrapper.
61827
61828 2006-08-28  Eric Blake  <ebb9@byu.net>
61829
61830         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61831
61832 2006-08-28  Eric Blake  <ebb9@byu.net>
61833
61834         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61835
61836 2006-08-28  Bruno Haible  <bruno@clisp.org>
61837
61838         * modules/c-strstr: New file, from GNU gettext.
61839         * MODULES.html.sh (String handling): Add c-strstr.
61840
61841 2006-08-28  Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61844         macros.
61845         Reported by Eric Blake.
61846
61847 2006-08-28  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61850         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61851         * lib/vasprintf.c: Include errno.h, limits.h.
61852         (EOVERFLOW): New fallback definition.
61853         (vasprintf): Test here whether the string length is > INT_MAX.
61854         * lib/vsnprintf.c: Include errno.h, limits.h.
61855         (EOVERFLOW): New fallback definition.
61856         (vsnprintf): Fix bug when generated string was too long for the buffer.
61857         Test here whether the string length is > INT_MAX.
61858
61859 2006-08-28  Bruno Haible  <bruno@clisp.org>
61860
61861         * lib/inttypes_.h (SCNX*): Remove definitions.
61862         Reported by Eric Blake.
61863
61864 2006-08-28  Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/c-strstr.h: New file, from GNU gettext.
61867         * lib/c-strstr.c: New file, from GNU gettext.
61868
61869 2006-08-28  Bruno Haible  <bruno@clisp.org>
61870
61871         * gnulib-tool: Reorder some statements.
61872
61873 2006-08-28  Bruno Haible  <bruno@clisp.org>
61874
61875         * gnulib-tool: New option --makefile-name.
61876         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61877         $makefile_name.
61878         (func_import): Write $makefile_name to the cache file, and read it from
61879         there unless explicitly specified. Use $makefile_name as file name
61880         instead of Makefile.am. Adjust the recommendations accordingly.
61881
61882 2006-08-28  Bruno Haible  <bruno@clisp.org>
61883
61884         * gnulib-tool (func_verify_module): Check against misapplying patch.
61885
61886 2006-08-28  Bruno Haible  <bruno@clisp.org>
61887
61888         * gnulib-tool (func_relativize, func_relconcat): New functions.
61889         Give an error if --local-dir is given with --update.
61890         Remove trailing slashes from $local_gnulib_dir.
61891         (func_import): Store the relativized $local_gnulib_dir in
61892         gnulib-cache.m4, and read it from there if not specified explicitly.
61893
61894 2006-08-28  Bruno Haible  <bruno@clisp.org>
61895
61896         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61897         is the current directory. Respect also $local_gnulib_dir.
61898
61899 2006-08-28  Bruno Haible  <bruno@clisp.org>
61900             Simon Josefsson  <jas@extundo.com>
61901
61902         BeOS portability.
61903         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61904
61905 2006-08-27  Jim Meyering  <jim@meyering.net>
61906
61907         * doc/visibility.texi: Remove duplicate word: "pointer".
61908
61909 2006-08-26  Bruno Haible  <bruno@clisp.org>
61910
61911         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61912         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61913         (Makefile.am): Create inttypes.h from inttypes_.h.
61914         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61915
61916         * modules/imaxabs: New file.
61917
61918         * modules/imaxdiv: New file.
61919
61920 2006-08-26  Bruno Haible  <bruno@clisp.org>
61921
61922         * m4/inttypes.m4: New file.
61923         * m4/_inttypes_h.m4: Remove file.
61924         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61925         PRI_MACROS_BROKEN.
61926         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61927
61928         * m4/imaxabs.m4: New file.
61929
61930         * m4/imaxdiv.m4: New file.
61931
61932 2006-08-26  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/inttypes_.h: New file.
61935         * lib/inttypes.h: Remove file.
61936         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61937
61938         * lib/imaxabs.c: New file.
61939
61940         * lib/imaxdiv.c: New file.
61941
61942 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         New config-h module, so that "make" output needn't be cluttered
61945         by -DHAVE_CONFIG_H.
61946         * MODULES.html.sh (Support for building libraries and executables):
61947         Add config-h.
61948         * modules/config-h: New file.
61949         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61950         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61951         the config-h module is used.
61952
61953         New configmake module, so that "make" output needn't be cluttered
61954         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61955         * MODULES.html.sh (Support for building libraries and executables):
61956         Add configmake.
61957         * modules/configmake: New file.
61958
61959 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * m4/config-h.m4: New file.
61962
61963 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61964
61965         * config/srclist.txt: Add elisp-comp.
61966
61967 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         * MODULES.html.sh (Support for building libraries and executables):
61970         Add elisp-comp.
61971         * build-aux/elisp-comp: New file.
61972         * modules/elisp-comp: New file.
61973
61974 2006-08-24  Bruno Haible  <bruno@clisp.org>
61975
61976         * gnulib-tool (func_create_testdir): Use non-default values of
61977         sourcebase and m4base.
61978
61979 2006-08-24  Bruno Haible  <bruno@clisp.org>
61980
61981         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61982         HTML structure.
61983
61984 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61985
61986         * modules/openat (Depends-on): Add lchown.
61987
61988 2006-08-23  Bruno Haible  <bruno@clisp.org>
61989
61990         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61991         of gl_LOCK_EARLY instead of gl_LOCK.
61992
61993 2006-08-23  Bruno Haible  <bruno@clisp.org>
61994
61995         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61996         on OSF/1 to no.
61997         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61998
61999 2006-08-23  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62002         as unusable.
62003
62004         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62005         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62006         (gl_LOCK): New macro.
62007
62008 2006-08-22  Simon Josefsson  <jas@extundo.com>
62009
62010         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62011         to md5 module.
62012
62013 2006-08-22  Simon Josefsson  <jas@extundo.com>
62014
62015         * MODULES.html.sh: Add "Support for maintaining and release
62016         projects".
62017
62018         * build-aux/gnupload: New file, from coreutils.
62019
62020 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         Avoid the need for AC_LIBSOURCES in m4 macros.
62023         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62024         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62025         * modules/check-version (EXTRA_DIST): Add check-version.h.
62026         * modules/crc (EXTRA_DIST): Add crc.h.
62027         * modules/des (EXTRA_DIST): Add des.h.
62028         * modules/gc (EXTRA_DIST): Add gc.h.
62029         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62030         * modules/getline (EXTRA_DIST): Add getline.h.
62031         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62032         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62033         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62034         * modules/md2 (EXTRA_DIST): Add md2.h.
62035         * modules/md4 (EXTRA_DIST): Add md4.h.
62036         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62037         * modules/read-file (EXTRA_DIST): Add read-file.h.
62038         * modules/readline (EXTRA_DIST): Add readline.h.
62039         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62040         rijndael-api-fst.h.
62041
62042 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         * m4/rijndael.m4 (gl_ARCFOUR):
62045         * m4/arctwo.m4 (gl_ARCTWO):
62046         * m4/check-version.m4 (gl_CHECK_VERSION):
62047         * m4/crc.m4 (gl_CRC):
62048         * m4/des.m4 (gl_DES):
62049         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62050         * m4/gc.m4 (gl_GC):
62051         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62052         * m4/getline.m4 (gl_FUNC_GETLINE):
62053         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62054         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62055         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62056         * m4/md2.m4 (gl_MD2):
62057         * m4/md4.m4 (gl_MD4):
62058         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62059         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62060         * m4/readline.m4 (gl_FUNC_READLINE):
62061         * m4/rijndael.m4 (gl_RIJNDAEL):
62062         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62063         to get the necessary .h files and whatnot.
62064
62065 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62068         gnulib rather than the other way around.
62069         * config/srclistvars.sh (COREUTILS): Remove.
62070
62071 2006-08-22  Jim Meyering  <jim@meyering.net>
62072
62073         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62074
62075         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62076
62077 2006-08-22  Eric Blake  <ebb9@byu.net>
62078
62079         * modules/regexprops-generic: New file.
62080         * MODULES.html.sh (Support for building documentation): List it.
62081
62082 2006-08-22  Eric Blake  <ebb9@byu.net>
62083
62084         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62085         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62087         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62088
62089 2006-08-22  Bruno Haible  <bruno@clisp.org>
62090
62091         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62092         and lib_LTLIBRARIES like the other lib_* variables.
62093
62094 2006-08-22  Bruno Haible  <bruno@clisp.org>
62095
62096         * build-aux/x-to-1.in: New file, from GNU gettext.
62097
62098 2006-08-22  Bruno Haible  <bruno@clisp.org>
62099
62100         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62101         <utmpx.h> exists.
62102
62103 2006-08-22  Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62106         <utmpx.h> exists.
62107
62108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         BeOS portability.
62111         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62112         exist.
62113         Problem reported by Bruno Haible.
62114
62115 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62116
62117         Avoid the need for AC_LIBSOURCES in m4 macros.
62118         * modules/acl (EXTRA_DIST): Add acl.h.
62119         * modules/argmatch (Files): Add m4/argmatch.m4.
62120         (configure.ac): Add gl_ARGMATCH.
62121         (EXTRA_DIST): Renamed from lib_SOURCES, for
62122         consistency with the other modules.  Remove argmatch.c.
62123         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62124         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62125         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62126         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62127         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62128         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62129         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62130         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62131         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62132         * modules/closeout (EXTRA_DIST): Add closeout.h.
62133         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62134         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62135         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62136         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62137         dirname.h; remove basename.c and stripslash.c.
62138         * modules/exclude (EXTRA_DIST): Add exclude.h.
62139         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62140         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62141         * modules/file-type (EXTRA_DIST): Add file-type.h.
62142         * modules/filemode (EXTRA_DIST): Add filemode.h.
62143         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62144         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62145         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62146         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62147         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62148         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62149         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62150         * modules/getdate (EXTRA_DIST): Add getdate.c.
62151         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62152         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62153         * modules/getpass (EXTRA_DIST): Add getpass.h.
62154         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62155         * modules/group-member (EXTRA_DIST): Add group-member.h.
62156         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62157         * modules/hash (EXTRA_DIST): Add hash.h.
62158         * modules/human (EXTRA_DIST): Add human.h.
62159         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62160         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62161         * modules/lchown (EXTRA_DIST): Add lchown.h.
62162         * modules/long-options (EXTRA_DIST): Add long-options.h.
62163         * modules/lstat (EXTRA_DIST): Add lstat.h.
62164         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62165         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62166         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62167         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62168         * modules/memxor (EXTRA_DIST): Add memxor.h.
62169         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62170         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62171         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62172         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62173         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62174         * modules/physmem (EXTRA_DIST): Add physmem.h.
62175         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62176         * modules/posixver (EXTRA_DIST): Add posixver.h.
62177         * modules/quote (EXTRA_DIST): Add quote.h.
62178         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62179         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62180         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62181         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62182         regex_internal.h regexec.c.
62183         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62184         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62185         * modules/same (EXTRA_DIST): Add same.h.
62186         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62187         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62188         * modules/savedir (EXTRA_DIST): Add savedir.h.
62189         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62190         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62191         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62192         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62193         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62194         * modules/strdup (EXTRA_DIST): Add strdup.h.
62195         * modules/strftime (EXTRA_DIST): Add strftime.h.
62196         * modules/strndup (EXTRA_DIST): Add strndup.h.
62197         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62198         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62199         * modules/time_r (EXTRA_DIST): Add time_r.h.
62200         * modules/timespec (EXTRA_DIST): Add timespec.h.
62201         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62202         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62203         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62204         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62205         * modules/userspec (EXTRA_DIST): Add userspec.h.
62206         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62207         * modules/utimens (EXTRA_DIST): Add utimens.h.
62208         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62209         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62210         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62211         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62212         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62213         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62214         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62215         * modules/yesno (EXTRA_DIST): Add yesno.h.
62216
62217 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62220
62221         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62222         * m4/dev-ino.m4, same-inode.m4: Remove.
62223
62224         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62225         * m4/acl.m4 (AC_FUNC_ACL):
62226         * m4/backupfile.m4 (gl_BACKUPFILE):
62227         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62228         * m4/canon-host.m4 (gl_CANON_HOST):
62229         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62230         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62231         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62232         * m4/cloexec.m4 (gl_CLOEXEC):
62233         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62234         * m4/closeout.m4 (gl_CLOSEOUT):
62235         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62236         * m4/dirname.m4 (gl_DIRNAME):
62237         * m4/exclude.m4 (gl_EXCLUDE):
62238         * m4/exitfail.m4 (gl_EXITFAIL):
62239         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62240         * m4/file-type.m4 (gl_FILE_TYPE):
62241         * m4/filemode.m4 (gl_FILEMODE):
62242         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62243         * m4/fpending.m4 (gl_FUNC_FPENDING):
62244         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62245         * m4/fts.m4 (gl_FUNC_FTS):
62246         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62247         * m4/getdate.m4 (gl_GETDATE):
62248         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62249         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62250         * m4/getpass.m4 (gl_FUNC_GETPASS):
62251         * m4/gettime.m4 (gl_GETTIME):
62252         * m4/getugroups.m4 (gl_GETUGROUPS):
62253         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62254         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62255         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62256         * m4/hash.m4 (gl_HASH):
62257         * m4/idcache.m4 (gl_IDCACHE):
62258         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62259         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62260         * m4/long-options.m4 (gl_LONG_OPTIONS):
62261         * m4/lstat.m4 (gl_FUNC_LSTAT):
62262         * m4/md5.m4 (gl_MD5):
62263         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62264         * m4/memcoll.m4 (gl_MEMCOLL):
62265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62267         * m4/memxor.m4 (gl_MEMXOR):
62268         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62270         * m4/modechange.m4 (gl_MODECHANGE):
62271         * m4/mountlist.m4 (gl_MOUNTLIST):
62272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62273         * m4/openat.m4 (gl_FUNC_OPENAT):
62274         * m4/pathmax.m4 (gl_PATHMAX):
62275         * m4/physmem.m4 (gl_PHYSMEM):
62276         * m4/posixtm.m4 (gl_POSIXTM):
62277         * m4/posixver.m4 (gl_POSIXVER):
62278         * m4/quote.m4 (gl_QUOTE):
62279         * m4/quotearg.m4 (gl_QUOTEARG):
62280         * m4/readtokens.m4 (gl_READTOKENS):
62281         * m4/readutmp.m4 (gl_READUTMP):
62282         * m4/regex.m4 (gl_REGEX):
62283         * m4/safe-read.m4 (gl_SAFE_READ):
62284         * m4/safe-write.m4 (gl_SAFE_WRITE):
62285         * m4/same.m4 (gl_SAME):
62286         * m4/save-cwd.m4 (gl_SAVE_CWD):
62287         * m4/savedir.m4 (gl_SAVEDIR):
62288         * m4/settime.m4 (gl_SETTIME):
62289         * m4/sha1.m4 (gl_SHA1):
62290         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62291         * m4/stat-macros.m4 (gl_STAT_MACROS):
62292         * m4/stat-time.m4 (gl_STAT_TIME):
62293         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62294         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62295         * m4/strdup.m4 (gl_FUNC_STRDUP):
62296         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62297         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62298         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62299         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62300         * m4/time_r.m4 (gl_TIME_R):
62301         * m4/timespec.m4 (gl_TIMESPEC):
62302         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62303         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62304         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62305         * m4/userspec.m4 (gl_USERSPEC):
62306         * m4/utimecmp.m4 (gl_UTIMECMP):
62307         * m4/utimens.m4 (gl_UTIMENS):
62308         * m4/xalloc.m4 (gl_XALLOC):
62309         * m4/xgetcwd.m4 (gl_XGETCWD):
62310         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62311         * m4/xreadlink.m4 (gl_XREADLINK):
62312         * m4/xstrtod.m4 (gl_XSTRTOD):
62313         * m4/yesno.m4 (gl_YESNO):
62314         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62315         to get the necessary .h files and whatnot.
62316
62317 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62318             Bruno Haible  <bruno@clisp.org>
62319
62320         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62321         /bin/sh understanding of '!' conditional negation.
62322
62323 2006-08-21  Jim Meyering  <jim@meyering.net>
62324
62325         * modules/openat (Depends-on): Really alphabetize.
62326
62327         * modules/acl (Depends-on): Add error and quote.
62328
62329         * check-module (find_included_lib_files): Add at-func.c to the
62330         ok-to-include-more-than-once white list.
62331
62332         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62333
62334 2006-08-21  Bruno Haible  <bruno@clisp.org>
62335
62336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62337         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62338         Reported by Martin Lambers <marlam@marlam.de>.
62339
62340 2006-08-21  Bruno Haible  <bruno@clisp.org>
62341
62342         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62343         specify an installation location, don't emit a noinst_LIBRARIES or
62344         noinst_LTLIBRARIES assignment.
62345
62346 2006-08-21  Bruno Haible  <bruno@clisp.org>
62347
62348         BeOS portability.
62349         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62350         BeOS has mbrtowc() but no <wctype.h>.
62351
62352 2006-08-21  Bruno Haible  <bruno@clisp.org>
62353
62354         BeOS portability.
62355         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62356         exist.
62357
62358 2006-08-21  Bruno Haible  <bruno@clisp.org>
62359
62360         BeOS portability.
62361         * lib/mbchar.h: Include <wctype.h> only if it exists.
62362
62363 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         Remove files that are no longer needed by their respective modules.
62366         * m4/obstack.m4: Remove.
62367         * m4/strerror_r.m4: Remove.
62368         * m4/uint32_t.m4: Remove.
62369         * m4/uintptr_t.m4: Remove.
62370         * m4/ullong_max.m4: Remove.
62371         * m4/xstrtoimax.m4: Remove.
62372         * m4/xstrtoumax.m4: Remove.
62373
62374         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62375         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62376         dependencies now capture this.
62377
62378         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62379         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62380         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62381         * m4/human.m4 (gl_HUMAN): Likewise.
62382         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62383         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62384
62385         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62386
62387         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62388         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62389         stdint.
62390         * m4/human.m4 (gl_HUMAN): Likewise.
62391         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62392         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62393         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62394         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62395         * m4/xstrtol (gl_XSTRTOL): Likewise.
62396
62397         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62398         AC_TYPE_LONG_LONG_INT.
62399         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62400         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62401         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62403
62404         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62405         on stdbool.
62406
62407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62408         (gl_PREREQ_XSTRTOUL): Remove.
62409
62410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62411
62412         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62413         mode.
62414
62415 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         Add and change modules to make it easier for coreutils to use
62418         gnulib-tool.
62419         * modules/backupfile (Files): Remove m4/d-ino.m4.
62420         (Depends-on): Add d-ino.
62421         * modules/cycle-check (Depends-on): Add stdint.
62422         (lib_SOURCES): Add cycle-check.h.
62423         * modules/d-ino: New module.
62424         * modules/d-type: New module.
62425         * modules/error (Files): Remove m4/strerror_r.m4.
62426         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62427         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62428         m4/inttypes_h.m4, m4/uintmax_t.m4.
62429         (Depends-on): Add stdint.
62430         (lib_SOURCES): Add fsusage.h.
62431         * modules/getcwd (Files): Remove d-ino.m4.
62432         (Depends-on): Add d-ino.
62433         * modules/getndelim2 (Depends-on): Add stdint.
62434         * modules/glob (Files): Remove m4/d-type.m4.
62435         (Depends-on): Add d-type.
62436         * modules/host-os: New module.
62437         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62438         m4/inttypes_h.m4, m4/uintmax_t.m4.
62439         * Depends-on: Add stdint.
62440         (lib_SOURCES): Add human.h.
62441         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62442         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62443         m4/uintmax_t.m4, m4/ulonglong.m4.
62444         (Depends-on): Add stdint.
62445         (EXTRA_DIST): Add inttostr.h.
62446         * modules/lchmod: New module.
62447         * modules/link-follow: New module.
62448         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62449         (Depends-on): Add lchmod.
62450         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62451         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62452         (Depends-on): Add stdint.
62453         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62454         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62455         (Depends-on): Add stdint.
62456         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62457         * modules/perl: New module.
62458         * modules/regex (Depends-on): Add stdint.
62459         * modules/rmdir-errno: New module.
62460         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62461         m4/intmax_t.m4.
62462         (Depends-on): Add stdint.
62463         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62464         m4/uintmax_t.m4.
62465         (Depends-on): Add stdint.
62466         * modules/unlink-busy: New module.
62467         * modules/utimecmp (Depends-on): Add stdint.
62468         * modules/uptime: New module.
62469         * modules/winsz-ioctl: New module.
62470         * modules/winsz-termios: New module.
62471         * modules/xnanosleep (Depends-on): Add nanosleep.
62472         * modules/ullong_max: Remove.
62473         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62474         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62475         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62476         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62477         (Depends-on): Add inttypes.
62478         (lib_SOURCES): Add xstrtol.h.
62479         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62480         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62481         * MODULES.html.sh: Move 'assert' into the assert section.
62482         Move 'dummy' into the linking section.
62483         Remove ullong_max.
62484         Add section for compatibility checks for POSIX:2001 functions,
62485         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62486         winsz-ioctl, and winsz-termios into it.
62487         Add lchmod.
62488         Add top-level Misc section and put host-os, perl, and uptime
62489         into it.
62490
62491 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62494         now assume the stdint module.  Do not include inttypes.h.
62495         * lib/fsusage.h: Likewise.
62496         * lib/getndelim2.c: Likewise.
62497         * lib/human.h: Likewise.
62498         * lib/inttostr.h: Likewise.
62499         * lib/obstack.c: Likewise.
62500         * lib/regex_internal.h: Likewise.
62501         * lib/tempname.c: Likewise.
62502         * lib/utimecmp.c: Likewise.
62503         * lib/xstrtol.h: Likewise.
62504
62505         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62506
62507         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62508         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62509         * lib/xtime.h: Likewise.
62510
62511 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62512
62513         * modules/openat (Files): Add lib/fchmodat.c.
62514         Fixes problem reported by Jay Youngman.
62515
62516 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62519         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62520
62521 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62522             Bruno Haible  <bruno@clisp.org>
62523
62524         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62525         and is a script that invokes bison. Tighten the code. Add comments.
62526
62527 2006-08-18  Jim Meyering  <jim@meyering.net>
62528
62529         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62530         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62531         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62532         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62533
62534 2006-08-18  Bruno Haible  <bruno@clisp.org>
62535
62536         * modules/bison-i18n: New file.
62537         * MODULES.html.sh (Internationalization functions): Add it.
62538
62539 2006-08-18  Bruno Haible  <bruno@clisp.org>
62540
62541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62542         sys/statvfs.h. When getmntinfo was found, check its declaration and
62543         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62544
62545 2006-08-18  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/bison-i18n.m4: New file, from bison.
62548
62549 2006-08-18  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62552         (ME_DUMMY): Treat "kernfs" as a dummy.
62553         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62554
62555 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         Update from coreutils.
62558
62559         2006-08-15  Jim Meyering  <jim@meyering.net>
62560
62561         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62562
62563         2006-01-17  Jim Meyering  <jim@meyering.net>
62564
62565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62566
62567         2006-01-11  Jim Meyering  <jim@meyering.net>
62568
62569         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62570         Check for the lchmod function.
62571
62572 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         Update from coreutils.
62575
62576         * lib/__fpending.h: Add copyright notice.
62577         * lib/fprintftime.h: Likewise.
62578         * lib/savedir.c: Use (C) in copyright notice.
62579         * lib/savedir.h: Likewise.
62580
62581         2006-08-15  Jim Meyering  <jim@meyering.net>
62582
62583         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62584         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62585         in support of the EXPECTED_ERRNO macro.
62586         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62587         definitions.  Instead, define the appropriate symbols and include
62588         "at-func.c".
62589         * lib/mkdirat.c (mkdirat): Likewise.
62590         * lib/fchmodat.c (fchmodat): Likewise.
62591         (ENOSYS): Remove definition.
62592         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62593         it.  Don't include "unistd--.h" -- it wasn't ever used.
62594
62595         2006-01-17  Jim Meyering  <jim@meyering.net>
62596
62597         Rewrite fts.c not to change the current working directory,
62598         by using openat, fstatat, fdopendir, etc..
62599
62600         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62601         (HAVE_OPENAT_SUPPORT): Define.
62602         [_LIBC] (fchdir): Don't undef or define; no longer used.
62603         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62604         Now, this `function' always succeeds, and consumes its file descriptor
62605         parameter -- so callers must not close such FDs.  Update callers.
62606         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62607         (diropen): Add parameter, SP.  Adjust all callers.
62608         Implement using diropen_fd, rather than open.
62609         (fts_open): Initialize new member, fts_cwd_fd.
62610         Remove fts_rft-setting code.
62611         (fts_close): Close fts_cwd_fd, if necessary.
62612         (__opendir2): Define in terms of opendir or opendirat,
62613         depending on whether the FST_NOCHDIR flag is set.
62614         (fts_build): Since fts_safe_changedir consumes its FD, and since
62615         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62616         and close the dup'd file descriptor upon failure.
62617         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62618         (fts_safe_changedir): Tweak semantics to reflect that this function
62619         now calls cwd_advance_fd and hence consumes its FD argument.
62620         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62621         [struct FTS] (fts_rft): Remove now-unused member.
62622         [struct FTS] (fts_cycle.state): Improve comment.
62623
62624         * lib/openat.c (openat_needs_fchdir): New function.
62625         * lib/openat.h (openat_needs_fchdir): Declare it.
62626
62627 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62630         Problem and fix reported by Pádraig Brady in
62631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62632
62633 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62636
62637 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/memcoll.c (memcoll): Optimize for the common case where the
62640         arguments are bytewise equal.
62641
62642 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * doc/regexprops-generic.texi: Add a copyright notice.
62645
62646 2006-08-15  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/tmpdir (License): Change to LGPL.
62649
62650 2006-08-15  Bruno Haible  <bruno@clisp.org>
62651
62652         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62653         module.
62654
62655 2006-08-14  Simon Josefsson  <jas@extundo.com>
62656
62657         * config/srclist.txt: Add gnupload.
62658
62659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62660
62661         Change copyright notice from LGPL 2 to GPL 2, since that's the
62662         standard form used in the gnulib repository.
62663         * tests/test-lock.c: Likewise.
62664         * tests/test-stdint.c: Likewise.
62665         * tests/test-tls.c: Likewise.
62666
62667         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62668         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62669         Add copyright notice.
62670
62671         * check-module: Add copyright notice.  Output a copyright
62672         notice if "--version" is specified.
62673         * modules/COPYING: New file.
62674         * tests/test-getaddrinfo.c: Add copyright notice.
62675         * tests/test-verify.c: Likewise.
62676
62677 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62678
62679         Change copyright notice from LGPL 2 to GPL 2, since that's the
62680         standard form used in the gnulib repository.
62681         * lib/lock.c: LGPL -> GPL.
62682         * lib/lock.h: Likewise.
62683         * lib/strnlen1.c: Likewise.
62684         * lib/strnlen1.h: Likewise.
62685         * lib/tls.c: Likewise.
62686         * lib/tls.h: Likewise.
62687         * lib/tmpdir.c: Likewise.
62688
62689         * lib/TODO: Remove; this belongs only in coreutils.
62690
62691 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         Add copyright notices to long-enough files that lack them, since
62694         otherwise the files aren't clearly free.  Use the same notice that
62695         getdate.texi already uses.
62696         * doc/alloca-opt.texi: Add copyright notice.
62697         * doc/alloca.texi: Likewise.
62698         * doc/ctime.texi: Likewise.
62699         * doc/functions.texi: Likewise.
62700         * doc/gcd.texi: Likewise.
62701         * doc/gnulib-tool.texi: Likewise.
62702         * doc/inet_ntoa.texi: Likewise.
62703         * doc/visibility.texi: Likewise.
62704
62705         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62706         * doc/quote.texi: Add copyright notice.
62707
62708         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62709         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62710         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62711         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62712         is now obsolete, and give a pointer to the Sun list.
62713         Add copyright notice.
62714
62715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * config/srclistvars.sh: Add copyright notice.
62718
62719 2006-08-14  Eric Blake  <ebb9@byu.net>
62720
62721         Import the following change from libc:
62722
62723         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62724
62725         Upstream bug 2997.
62726         * lib/misc/error.c: Add space between program name and message if file
62727         name is missing.
62728
62729 2006-08-12  Karl Berry  <karl@gnu.org>
62730
62731         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62732         remove, these originate in gnulib now.
62733
62734 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62735
62736         * doc/Makefile (standards.info standards.html standards.dvi):
62737         Also depend on make-stds.texi.
62738
62739 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62742         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62743
62744         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62745         in wchar_t.  Problem reported by Eric Blake.
62746
62747         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62748         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62749         Also, help the compiler to keep LEN in a register.
62750
62751 2006-08-11  Eric Blake  <ebb9@byu.net>
62752
62753         * users.txt: Sort.  Add tar.
62754
62755 2006-08-11  Bruno Haible  <bruno@clisp.org>
62756
62757         * users.txt: New file.
62758
62759 2006-08-11  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62762         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62763
62764 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * modules/snprintf (Depends-on): Remove minmax.
62767         (Maintainer): Add self and Bruno.
62768
62769 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62772         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62773         (EOVERFLOW): Define if the system does not.
62774         Do not include "minmax.h"; it wasn't used.
62775         (snprintf): Don't assume size_t promotes to an unsigned type.
62776         Fix bug when generated string was too long for the buffer: the
62777         buffer's contents are supposed to be the initial prefix of the
62778         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62779         exceeds INT_MAX; do the check ourselves.
62780
62781         Import the following changes from libc:
62782
62783         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62784
62785         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62786         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62787         set wc to the byte which couldn't be converted.
62788         (re_string_reconstruct): Don't clear valid_raw_len before calling
62789         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62790         tip_context using re_string_context_at.
62791
62792         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62793
62794         * lib/posix/regex.h: g++ still cannot handled [restrict].
62795
62796         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62797
62798         * lib/posix/regex.h: Remove special handling for VMS.
62799
62800 2006-08-10  Jim Meyering  <jim@meyering.net>
62801
62802         * modules/same-inode: New module.
62803         * modules/dev-ino: New module.
62804         * modules/cycle-check: Depend on these modules, rather than simply
62805         including their .h files.
62806         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62807         required via m4/cycle-check.m4.
62808         * modules/same: Depend on new same-inode module, rather than
62809         including same-inode.h.
62810         * modules/chdir-safer: New file.
62811
62812         * modules/chown (Depends-on): Add stat-macros.
62813
62814 2006-08-10  Jim Meyering  <jim@meyering.net>
62815
62816         * m4/cycle-check.m4: New file.
62817         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62818         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62819
62820 2006-08-10  Eric Blake  <ebb9@byu.net>
62821
62822         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62823         in from original proposal.
62824
62825 2006-08-10  Eric Blake  <ebb9@byu.net>
62826         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62827
62828         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62829         namespace.
62830
62831 2006-08-10  Bruno Haible  <bruno@clisp.org>
62832
62833         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62834         as well.
62835
62836 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62837
62838         Sync from coreutils.
62839
62840         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62841
62842         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62843         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62844
62845 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         * modules/restrict: Remove; no longer needed now that we assume
62848         Autoconf 2.59 or later.
62849         * MODULES.html.sh: Remove 'restrict'.
62850         * modules/argp (Depends-on): Remove 'restrict'.
62851         * modules/base64 (Depends-on): Likewise.
62852         * modules/gc (Depends-on): Likewise.
62853         * modules/getaddrinfo (Depends-on): Likewise.
62854         * modules/glob (Depends-on): Likewise.
62855         * modules/inet_ntop (Depends-on): Likewise.
62856         * modules/inet_pton (Depends-on): Likewise.
62857         * modules/memxor (Depends-on): Likewise.
62858         * modules/regex (Depends-on): Likewise.
62859         * modules/strtok_r (Depends-on): Likewise.
62860         * modules/time_r (Depends-on): Likewise.
62861
62862 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62865         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62866         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62867         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62868         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62869         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62870         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62871         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62872
62873         Merge from coreutils.
62874         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62875         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62876         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62877         * m4/time_r.m4 (gl_TIME_R): Likewise.
62878
62879 2006-08-09  Karl Berry  <karl@gnu.org>
62880
62881         * config/srclist.txt: no more gettext-tools, per Bruno.
62882
62883 2006-08-08  Eric Blake  <ebb9@byu.net>
62884
62885         * modules/verror: New module.
62886         * MODULES.html.sh: Document it.
62887
62888 2006-08-08  Eric Blake  <ebb9@byu.net>
62889
62890         * lib/verror.h, lib/verror.c: New files.
62891
62892 2006-08-08  Eric Blake  <ebb9@byu.net>
62893
62894         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62895         verror_at_line output complies with GNU Coding Standards even when
62896         file is NULL.
62897
62898 2006-08-07  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62901         versions of AIX.
62902         Reported by Ralf Wildenhues.
62903
62904 2006-08-07  Bruno Haible  <bruno@clisp.org>
62905
62906         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62907         in an AC_DEFUN. Needed so that the autoconf snippets can use
62908         AC_REQUIRE.
62909
62910 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62911
62912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62913         Initialize pkgdata_DATA.
62914         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62915         overriding it.
62916
62917 2006-08-06  Eric Blake  <ebb9@byu.net>
62918
62919         * lib/error.h: Fold in some upstream changes from glibc.
62920         * lib/error.c: Likewise.
62921
62922 2006-08-04  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62925         Make the mostlyclean-local rule depend on mostlyclean-generic.
62926         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62927
62928 2006-07-31  Bruno Haible  <bruno@clisp.org>
62929
62930         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62931         <stdlib.h>, <string.h>.
62932
62933 2006-07-30  Bruno Haible  <bruno@clisp.org>
62934
62935         * modules/readlink (License): Change to LGPL.
62936
62937 2006-07-30  Bruno Haible  <bruno@clisp.org>
62938
62939         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62940         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62941         set PKGDATADIR to point to it.
62942
62943 2006-07-30  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/csharpexec (configure.ac): Comment out macro invocation.
62946         * modules/javaexec (configure.ac): Likewise.
62947         * modules/javacomp-script (configure.ac): Likewise.
62948
62949         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62950
62951 2006-07-30  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62954         linked-list.
62955
62956 2006-07-30  Bruno Haible  <bruno@clisp.org>
62957
62958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62959
62960 2006-07-30  Bruno Haible  <bruno@clisp.org>
62961
62962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62963         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62964         get removed.
62965
62966 2006-07-29  Bruno Haible  <bruno@clisp.org>
62967
62968         Make it possible for gnulib-tool to work with locally modified or
62969         augmented gnulib repositories.
62970         * gnulib-tool (func_usage): Document --local-dir option.
62971         (local_gnulib_dir): New variable.
62972         Handle --local-dir option.
62973         (func_lookup_file): New function.
62974         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62975         (func_get_description, func_get_filelist, func_get_description,
62976         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62977         func_get_automake_snippet, func_get_include_directive,
62978         func_get_license, func_get_maintainer): Use func_lookup_file.
62979         (func_import, func_create_testdir): Use func_lookup_file.
62980
62981 2006-07-29  Bruno Haible  <bruno@clisp.org>
62982
62983         * modules/setenv (Depends-on): Add unistd.
62984
62985 2006-07-29  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62988
62989 2006-07-29  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62992
62993 2006-07-29  Bruno Haible  <bruno@clisp.org>
62994
62995         * gnulib-tool (import, update): If there is no Makefile.am, look at
62996         aclocal.m4, instead of bailing out.
62997
62998 2006-07-29  Bruno Haible  <bruno@clisp.org>
62999
63000         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63001         Categorize the options by when they are useful.
63002
63003 2006-07-29  Bruno Haible  <bruno@clisp.org>
63004
63005         * gnulib-tool (func_usage): Document option --no-libtool.
63006         Handle option --no-libtool.
63007         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63008         for changed semantics of $libtool variable.
63009         (func_import): Likewise. If libtool is not used, show this through
63010         an option --no-libtool.
63011         (func_create_testdir): Update.
63012
63013 2006-07-29  Bruno Haible  <bruno@clisp.org>
63014
63015         * gnulib-tool (func_import): Extend error message about missing
63016         --doc-base.
63017
63018 2006-07-29  Bruno Haible  <bruno@clisp.org>
63019
63020         * gnulib-tool (func_import): Don't create the $docbase directory if
63021         there is no file to store there.
63022
63023 2006-07-29  Bruno Haible  <bruno@clisp.org>
63024
63025         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63026         relevant, look for configure.ac there, not in the current directory.
63027         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63028
63029 2006-07-29  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool (SORT): New variable.
63032         (func_usage): Undocument --assume-autoconf option.
63033         Remove --assume-autoconf option handling.
63034         (autoconf_minversion): Determine from the contents of configure.ac.
63035         (func_import): Remove autoconf_minversion handling.
63036         Suggested by Eric Blake.
63037
63038 2006-07-29  Bruno Haible  <bruno@clisp.org>
63039
63040         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63041
63042 2006-07-29  Bruno Haible  <bruno@clisp.org>
63043
63044         * config/srclist.txt (*setenv.[ch]): Remove rules.
63045
63046 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63047
63048         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63049
63050 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63051
63052         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63053         arpa/inet.h.
63054
63055 2006-07-28  Simon Josefsson  <jas@extundo.com>
63056
63057         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63058         * modules/inet_pton (Depends-on): Likewise.
63059
63060 2006-07-28  Simon Josefsson  <jas@extundo.com>
63061
63062         * m4/netinet_in_h.m4: New file.
63063
63064 2006-07-28  Simon Josefsson  <jas@extundo.com>
63065
63066         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63067         #include's.
63068
63069 2006-07-28  Simon Josefsson  <jas@extundo.com>
63070
63071         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63072         #include's.
63073
63074 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63077         setgid on directories only if they set these bits.
63078         * lib/modechange.h: Remove obsolete comment about masks.
63079
63080 2006-07-28  Eric Blake  <ebb9@byu.net>
63081
63082         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63083         macro expansion.
63084
63085 2006-07-28  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63088
63089 2006-07-28  Bruno Haible  <bruno@clisp.org>
63090
63091         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63092
63093 2006-07-28  Bruno Haible  <bruno@clisp.org>
63094
63095         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63096         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63097         Define fallbacks.
63098         Avoids link error on FreeBSD 4.x.
63099         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63100
63101         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63102         encoding.
63103         * lib/mbswidth.c (iswcntrl): Likewise.
63104
63105 2006-07-27  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63108         test.
63109
63110 2006-07-27  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63113         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63114         defined.
63115
63116 2006-07-26  Eric Blake  <ebb9@byu.net>
63117
63118         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63119
63120 2006-07-26  Eric Blake  <ebb9@byu.net>
63121
63122         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63123         like mingw that lack mkstemp.
63124         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63125         avoid compilation warning on mingw.
63126
63127 2006-07-26  Bruno Haible  <bruno@clisp.org>
63128
63129         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63130         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63131         INT_FAST*_MIN, INTPTR_MIN.
63132
63133 2006-07-25  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/version-etc (Depends-on): Add stdarg.
63136
63137 2006-07-25  Bruno Haible  <bruno@clisp.org>
63138
63139         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63140         complex commands.
63141
63142 2006-07-25  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63145         defined in <stdarg.h> or config.h.
63146
63147 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63150         (gl_STDIO_SAFER): Remove.
63151
63152 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63153
63154         * MODULES.html.sh (File stream based Input/Output):
63155         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63156         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63157         * modules/fopen-safer, modules/tmpfile-safer: New files.
63158         * modules/stdio-safer: Remove.
63159
63160 2006-07-24  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/tmpdir: New file.
63163         * MODULES.html.sh (File system functions): Add it.
63164
63165 2006-07-24  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63168         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63169
63170 2006-07-24  Bruno Haible  <bruno@clisp.org>
63171
63172         * modules/clean-temp: New file.
63173
63174 2006-07-24  Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/tmpdir.m4: New file, from GNU gettext.
63177
63178 2006-07-24  Bruno Haible  <bruno@clisp.org>
63179
63180         * lib/tmpdir.h: New file, from GNU gettext.
63181         * lib/tmpdir.c: New file, from GNU gettext.
63182
63183 2006-07-24  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/clean-temp.h: New file, from GNU gettext.
63186         * lib/clean-temp.c: New file, from GNU gettext.
63187
63188 2006-07-23  Eric Blake  <ebb9@byu.net>
63189
63190         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63191         (Depends-on): Add binary-io.
63192
63193 2006-07-23  Eric Blake  <ebb9@byu.net>
63194
63195         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63196
63197 2006-07-23  Eric Blake  <ebb9@byu.net>
63198
63199         * lib/tmpfile-safer.c: New file.
63200         * lib/stdio-safer.h (fopen_safer): Add prototype.
63201         * lib/stdio--.h (tmpfile): Make safer.
63202
63203 2006-07-23  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63206         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63207         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63208         gl_linked_remove_at): Use it.
63209
63210 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63211         and Simon Josefsson <jas@extundo.com>
63212
63213         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63214
63215         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63216
63217 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * modules/close-stream: New file.
63220         * modules/closeout (Description): Make it clear that it exits
63221         with a diagnostic on error.
63222         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63223         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63224
63225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * m4/close-stream.m4: New file.
63228
63229 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/close-stream.c, lib/close-stream.h: New files.
63232
63233 2006-07-22  Bruno Haible  <bruno@clisp.org>
63234
63235         Merge from GNU gettext 0.15.
63236
63237         2006-05-01  Bruno Haible  <bruno@clisp.org>
63238
63239                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63240
63241         2006-07-22  Bruno Haible  <bruno@clisp.org>
63242
63243                 * modules/javaversion: New file.
63244                 * MODULES.html.sh (Java): Add javaversion.
63245
63246         2006-03-12  Bruno Haible  <bruno@clisp.org>
63247
63248                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63249
63250         2005-12-04  Bruno Haible  <bruno@clisp.org>
63251
63252                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63253                 (untested).
63254
63255         2006-06-21  Bruno Haible  <bruno@clisp.org>
63256
63257                 Avoid warnings from recent versions of mcs.
63258                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63259                 -o, -L, -r any more. Use options documented since mcs-1.0
63260                 instead. Similarly for -g.
63261
63262         2005-12-04  Bruno Haible  <bruno@clisp.org>
63263
63264                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63265                 .resources, not .resource.
63266
63267         2005-07-09  Bruno Haible  <bruno@clisp.org>
63268
63269                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63270                 add a .dll suffix.
63271                 Reported by Mark Junker <mjscod@gmx.de>.
63272
63273         2006-07-22  Bruno Haible  <bruno@clisp.org>
63274
63275                 * modules/gettext: Upgrade to gettext-0.15.
63276                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63277                 m4/visibility.m4.
63278                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63279
63280 2006-07-22  Bruno Haible  <bruno@clisp.org>
63281
63282         Merge from GNU gettext 0.15.
63283
63284         2006-03-25  Bruno Haible  <bruno@clisp.org>
63285
63286                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63287
63288         2006-07-21  Bruno Haible  <bruno@clisp.org>
63289
63290                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63291                 "1.1".
63292
63293         2006-05-09  Bruno Haible  <bruno@clisp.org>
63294
63295                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63296                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63297                 for the conftestver execution.
63298
63299         2006-05-01  Bruno Haible  <bruno@clisp.org>
63300
63301                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63302                 optional target-version argument. Verify that the compiler
63303                 groks source of the specified source-version, or add -source
63304                 option as necessary. Verify that the compiler produces
63305                 bytecode in the specified target-version, or add -target and
63306                 -source options as necessary. Make the result of the test
63307                 available as variable CONF_JAVAC. Also log error output in
63308                 config.log.
63309
63310         2006-03-11  Bruno Haible  <bruno@clisp.org>
63311
63312                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63313
63314         2006-05-09  Bruno Haible  <bruno@clisp.org>
63315
63316                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63317                 CLASSPATH_SEPARATOR to a semicolon.
63318
63319         2006-03-12  Bruno Haible  <bruno@clisp.org>
63320
63321                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63322                 available as variable CONF_JAVA, for subsequent autoconf
63323                 tests. Also log error output in config.log.
63324
63325         2006-07-19  Bruno Haible  <bruno@clisp.org>
63326
63327                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63328                 that getline works on glibc2 systems. Needed to avoid trouble
63329                 in relocatable.c.
63330                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63331
63332         2005-12-04  Bruno Haible  <bruno@clisp.org>
63333
63334                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63335                 launcher (untested).
63336
63337         2005-12-04  Bruno Haible  <bruno@clisp.org>
63338
63339                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63340
63341         2006-07-22  Bruno Haible  <bruno@clisp.org>
63342
63343                 * gettext.m4: Update from GNU gettext-0.15.
63344                 * nls.m4: Likewise.
63345                 * po.m4: Likewise.
63346                 * inttypes-pri.m4: Likewise.
63347                 * inttypes-h.m4: Renamed from inttypes.m4.
63348                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63349
63350 2006-07-22  Bruno Haible  <bruno@clisp.org>
63351
63352         Merge from GNU gettext 0.15.
63353
63354         2005-07-05  Bruno Haible  <bruno@clisp.org>
63355
63356                 * printf-args.c (printf_fetchargs): Work around broken
63357                 definition of wint_t on mingw.
63358
63359         2005-02-12  Bruno Haible  <bruno@clisp.org>
63360
63361                 * xallocsa.h: Add extern "C" for C++.
63362
63363         2006-05-17  Bruno Haible  <bruno@clisp.org>
63364
63365                 Cygwin portability.
63366                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63367
63368         2006-04-30  Bruno Haible  <bruno@clisp.org>
63369
63370                 * progreloc.c: Include <mach-o/dyld.h> if available.
63371                 (find_executable): Use _NSGetExecutablePath when possible.
63372
63373         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63374
63375                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63376                 function.
63377
63378         2005-12-29  Bruno Haible  <bruno@clisp.org>
63379
63380                 * progreloc.c (set_program_name_and_installdir): Fix
63381                 compilation error.
63382
63383         2005-12-04  Bruno Haible  <bruno@clisp.org>
63384
63385                 Cygwin portability.
63386                 * progreloc.c: Include <windows.h> also on Cygwin.
63387                 (find_executable): Add support for Cygwin.
63388                 (set_program_name_and_installdir): Handle also platforms with
63389                 nonempty EXEEXT.
63390
63391         2006-07-11  Bruno Haible  <bruno@clisp.org>
63392
63393                 * javacomp.c: Fix a comment.
63394                 Reported by Jim Meyering.
63395
63396         2006-04-30  Bruno Haible  <bruno@clisp.org>
63397
63398                 * javacomp.h (compile_java_class): Add source_version,
63399                 target_version arguments.
63400                 * javacomp.c: Rewritten to choose only a compiler that
63401                 respects the specified source_version and target_version.
63402
63403         2006-06-27  Bruno Haible  <bruno@clisp.org>
63404
63405                 Assume correct S_ISDIR macro.
63406                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63407
63408         2006-07-22  Bruno Haible  <bruno@clisp.org>
63409
63410                 * javaversion.h: New file, from GNU gettext.
63411                 * javaversion.c: New file, from GNU gettext.
63412                 * javaversion.java: New file, from GNU gettext.
63413                 * javaversion.class: New file, from GNU gettext.
63414
63415         2006-05-17  Bruno Haible  <bruno@clisp.org>
63416
63417                 Cygwin portability.
63418                 * javaexec.c (execute_java_class): Test for jview program
63419                 also on Cygwin.
63420
63421         2006-04-09  Bruno Haible  <bruno@clisp.org>
63422
63423                 * fatal-signal.c: Don't include string.h.
63424                 (at_fatal_signal): Use a copying loop instead of memcpy.
63425
63426         2005-12-04  Bruno Haible  <bruno@clisp.org>
63427
63428                 * csharpexec.c: Add support for 'clix' launcher (untested).
63429                 (execute_csharp_using_sscli): New function.
63430                 (execute_csharp_program): Call it.
63431
63432         2006-06-21  Bruno Haible  <bruno@clisp.org>
63433
63434                 Avoid warnings from recent versions of mcs.
63435                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63436                 -o, -L, -r any more. Use options documented since mcs-1.0
63437                 instead. Similarly for -g.
63438
63439         2005-07-09  Bruno Haible  <bruno@clisp.org>
63440
63441                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63442                 add a .dll suffix.
63443                 Reported by Mark Junker <mjscod@gmx.de>.
63444
63445         2006-06-17  Bruno Haible  <bruno@clisp.org>
63446
63447                 * config.charset: Update for NetBSD 3.0.
63448
63449         2006-05-17  Bruno Haible  <bruno@clisp.org>
63450
63451                 Cygwin portability.
63452                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63453
63454         2006-05-16  Bruno Haible  <bruno@clisp.org>
63455
63456                 * localcharset.c [CYGWIN]: Include <windows.h>.
63457                 (get_charset_aliases): For Cygwin, return the same CPxxx
63458                 aliases list as under WIN32.
63459                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63460                 the environment variables. Fall back to GetACP().
63461
63462         2006-04-05  Bruno Haible  <bruno@clisp.org>
63463
63464                 * config.charset: Update Juan Manuel Guerrero's address.
63465
63466         2005-02-12  Bruno Haible  <bruno@clisp.org>
63467
63468                 * allocsa.h: Add extern "C" for C++.
63469
63470         2005-02-10  Bruno Haible  <bruno@clisp.org>
63471
63472                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63473                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63474
63475         2006-07-22  Bruno Haible  <bruno@clisp.org>
63476
63477                 * gettext.h: Update to GNU gettext-0.15.
63478
63479 2006-07-22  Bruno Haible  <bruno@clisp.org>
63480
63481         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63482         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63483         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63484
63485 2006-07-21  Eric Blake  <ebb9@byu.net>
63486
63487         * modules/stdlib-safer: New file.
63488         * MODULES.html.sh (File stream based Input/Output): Add
63489         stdlib-safer.
63490
63491 2006-07-21  Eric Blake  <ebb9@byu.net>
63492
63493         * lib/stdlib-safer.h: New file from coreutils, required by
63494         stdlib--.h.
63495
63496 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63497
63498         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63499
63500 2006-07-20  Bruno Haible  <bruno@clisp.org>
63501
63502         * gnulib-tool: Recognize new option --assume-autoconf.
63503         (autoconf_minversion): New variable.
63504         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63505
63506 2006-07-20  Bruno Haible  <bruno@clisp.org>
63507
63508         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63509
63510 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63511
63512         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63513         Reindent and repaginate.
63514
63515 2006-07-19  Derek Price  <derek@ximbiot.com>
63516
63517         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63518         Correct grammar.
63519
63520 2006-07-17  Bruno Haible  <bruno@clisp.org>
63521
63522         * modules/list: New file.
63523         * modules/array-list: New file.
63524         * modules/carray-list, modules/carray-list-tests: New files.
63525         * modules/linked-list, modules/linked-list-tests: New files.
63526         * modules/avltree-list, modules/avltree-list-tests: New files.
63527         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63528         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63529         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63530         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63531         * modules/oset: New file.
63532         * modules/array-oset: New file.
63533         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63534         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63535         * tests/test-carray_list.c: New file.
63536         * tests/test-linked_list.c: New file.
63537         * tests/test-avltree_list.c: New file.
63538         * tests/test-rbtree_list.c: New file.
63539         * tests/test-linkedhash_list.c: New file.
63540         * tests/test-avltreehash_list.c: New file.
63541         * tests/test-rbtreehash_list.c: New file.
63542         * tests/test-avltree_oset.c: New file.
63543         * tests/test-rbtree_oset.c: New file.
63544         * MODULES.html.sh (Container data structures): New section.
63545
63546 2006-07-17  Bruno Haible  <bruno@clisp.org>
63547
63548         * m4/gl_list.m4: New file.
63549
63550 2006-07-17  Bruno Haible  <bruno@clisp.org>
63551
63552         * lib/gl_list.h: New file.
63553         * lib/gl_list.c: New file.
63554         * lib/gl_array_list.h: New file.
63555         * lib/gl_array_list.c: New file.
63556         * lib/gl_carray_list.h: New file.
63557         * lib/gl_carray_list.c: New file.
63558         * lib/gl_linked_list.h: New file.
63559         * lib/gl_linked_list.c: New file.
63560         * lib/gl_anylinked_list1.h: New file.
63561         * lib/gl_anylinked_list2.h: New file.
63562         * lib/gl_avltree_list.h: New file.
63563         * lib/gl_avltree_list.c: New file.
63564         * lib/gl_anyavltree_list1.h: New file.
63565         * lib/gl_anyavltree_list2.h: New file.
63566         * lib/gl_rbtree_list.h: New file.
63567         * lib/gl_rbtree_list.c: New file.
63568         * lib/gl_anyrbtree_list1.h: New file.
63569         * lib/gl_anyrbtree_list2.h: New file.
63570         * lib/gl_anytree_list1.h: New file.
63571         * lib/gl_anytree_list2.h: New file.
63572         * lib/gl_linkedhash_list.h: New file.
63573         * lib/gl_linkedhash_list.c: New file.
63574         * lib/gl_anyhash_list1.h: New file.
63575         * lib/gl_anyhash_list2.h: New file.
63576         * lib/gl_avltreehash_list.h: New file.
63577         * lib/gl_avltreehash_list.c: New file.
63578         * lib/gl_rbtreehash_list.h: New file.
63579         * lib/gl_rbtreehash_list.c: New file.
63580         * lib/gl_anytreehash_list1.h: New file.
63581         * lib/gl_anytreehash_list2.h: New file.
63582
63583         * lib/gl_oset.h: New file.
63584         * lib/gl_oset.c: New file.
63585         * lib/gl_array_oset.h: New file.
63586         * lib/gl_array_oset.c: New file.
63587         * lib/gl_avltree_oset.h: New file.
63588         * lib/gl_avltree_oset.c: New file.
63589         * lib/gl_rbtree_oset.h: New file.
63590         * lib/gl_rbtree_oset.c: New file.
63591         * lib/gl_anytree_oset.h: New file.
63592
63593 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * m4/mkancesdirs.m4: New file.
63596         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63597         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63598         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63599         it.
63600
63601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63604         * lib/mkancesdirs.h: New files.
63605         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63606         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63607         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63608         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63609         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63610         callers changed.  Revamp internals significantly, by not
63611         attempting to create directories that are temporarily more
63612         permissive than the final results.  Do not attempt to use
63613         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63614         This removes some race conditions, fixes some bugs, and simplifies
63615         things.  Use new dirchownmod function to do owner and mode changes.
63616         * lib/mkdir-p.h: Likewise.
63617         * lib/modechange.c (octal_to_mode): New function.
63618         (struct mode_change): New member mentioned.
63619         (make_node_op_equals): New arg mentioned.  All callers changed.
63620         (mode_compile): Keep track of which mode bits the user has explicitly
63621         mentioned.
63622         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63623         New arg PMODE_BITS, to keep track of which mode bits the user
63624         mentioned; it treats S_ISUID and S_ISGID speciall.
63625         All callers changed.
63626         * lib/modechange.h: Likewise.
63627
63628 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         * MODULES.html.sh: Add mkancestors.
63631         * modules/mkancesdirs: New module.
63632         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63633         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63634         The chdir-safer and afs files are now orphans; I'll remove them
63635         unless someone speaks up.
63636         Add lib/dirchownmod.c, lib/dirchownmod.h.
63637         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63638         Add lchown, mkancesdirs.
63639         (Maintainer): Add self.
63640
63641 2006-07-15  Karl Berry  <karl@gnu.org>
63642
63643         * gnulib-tool: help message wording/arrangement.
63644
63645 2006-07-14  Simon Josefsson  <jas@extundo.com>
63646
63647         * doc/gnulib.texi (Libtool and Windows): New section.
63648
63649 2006-07-12  Simon Josefsson  <jas@extundo.com>
63650
63651         * modules/gendocs (License): Fix license, approved by Karl.
63652
63653 2006-07-12  Eric Blake  <ebb9@byu.net>
63654
63655         * MODULES.html.sh: Add gendocs.
63656
63657 2006-07-11  Eric Blake  <ebb9@byu.net>
63658
63659         * modules/fdl: New module, to install doc/fdl.texi.
63660         * MODULES.html.sh: Add new section for documentation modules.
63661         * gnulib-tool: Avoid space-tab.
63662         (--doc-base): New option, to manage files from doc.
63663
63664 2006-07-11  Eric Blake  <ebb9@byu.net>
63665
63666         * m4/absolute-header.m4: Fix comments to match recent change.
63667
63668 2006-07-11  Eric Blake  <ebb9@byu.net>
63669
63670         * gnulib-tool: List --doc-base before --tests-base.
63671
63672 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63673
63674         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63675
63676 2006-07-11  Bruno Haible  <bruno@clisp.org>
63677
63678         * README: Mention where to put documentation.
63679
63680 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63681
63682         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63683
63684 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63687         to stdint.m4.
63688
63689 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63690
63691         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63692         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63693         "no/such/file/stdint.h" when there is no such file, so that
63694         the resulting C code can be parsed by dodgy compilers.
63695         Problems reported by Bob Proulx.
63696
63697 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63698
63699         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63700         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63701         macros into the GNU _D_EXACT_NAMLEN.
63702         * lib/savedir.c:  Likewise.
63703         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63704
63705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63706         and Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63709         * m4/savedir.m4:
63710         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63711         macros into the GNU _D_EXACT_NAMLEN.
63712
63713 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63714
63715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63716         around the absolute name, to work around a problem with the HP-UX
63717         11.23 native C compiler, reported by Bob Proulx.
63718
63719 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         * doc/maintain.texi, make-stds.texi: Sync from
63722         <http://savannah.gnu.org/projects/gnustandards>.
63723
63724 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63727
63728 2006-07-09  Jim Meyering  <jim@meyering.net>
63729
63730         * m4/glob.m4: Remove a doubled word in a comment.
63731
63732 2006-07-09  Jim Meyering  <jim@meyering.net>
63733
63734         * lib/argp-pv.c: Remove a doubled word in a comment.
63735         * lib/check-version.c (check_version): Likewise.
63736         * lib/javacomp.c (compile_java_class): Likewise.
63737
63738 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63741         for the benefit of people using Autoconf 2.60.  If you want to
63742         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63743         (or m4/onceonly.m4, if pre-2.57) manually.
63744
63745 2006-07-08  Jim Meyering  <jim@meyering.net>
63746
63747         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63748         comment.
63749         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63750         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63751         comment.
63752
63753 2006-07-08  Jim Meyering  <jim@meyering.net>
63754
63755         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63756
63757 2006-07-07  Simon Josefsson  <jas@extundo.com>
63758
63759         * tests/test-crc.c: Change expected crc value, the test vector
63760         were probably computed using the old broken crc.c?
63761
63762 2006-07-06  Simon Josefsson  <jas@extundo.com>
63763
63764         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63765         now the canonical place for the M4 file).
63766
63767         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63768         from the sys_socket dependency now.
63769
63770         * modules/inet_pton (Files): Ditto.
63771
63772         * modules/inet_ntop (Files): Ditto.
63773
63774 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63775
63776         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63777         not gl_PREREQ_GETUSERSHELL.
63778
63779 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63780
63781         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63782         with only one argument, for Autoconf 2.60.
63783         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63784         expand to nothing, so add a shell command to avoid syntax error.
63785         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63786
63787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63788
63789         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63790
63791 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63792
63793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63794         no longer needed.  Check for isblank decl.
63795         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63796         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63797         of existence.
63798
63799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63800
63801         * lib/getloadavg.c: Use __VMS, not VMS.
63802         * lib/getopt.c: Likewise.
63803         * lib/getpagesize.h: Likewise.
63804         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63805         and probably does not work.
63806
63807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * lib/.cppi-disable: Add wcwidth.
63810         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63811         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63812         (ISGRAPH): Remove.  All uses changed to isgraph.
63813         (FOLD) [!defined _LIBC]: Remove special case.
63814         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63815         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63816         HAVE_ISBLANK.
63817         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63818         case.
63819
63820 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63821
63822         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63823         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63824         brackets.  Other minor changes to suppress some compiler
63825         warnings.
63826
63827 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63828         and Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63831         of invoking obsolescent AC_HEADER_DIRENT macro.
63832         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63833         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63836         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63837         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63838         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63839         * m4/readdir.m4: Remove; no longer needed.
63840
63841 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63842         and Paul Eggert  <eggert@cs.ucla.edu>
63843
63844         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63845         Don't worry about this obsolete case any more.
63846         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63847         directories.
63848         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63849         worry about this obsolete case any more.
63850         * lib/fts.c: Likewise.
63851         * lib/getcwd.c: Likewise.
63852         * lib/glob.h: Likewise.
63853         * lib/savedir.c: Likewise.
63854
63855 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63858         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63859         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63860         needed.
63861         All uses removed.
63862         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63863         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63864         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63865         needed.
63866         * m4/getdate.m4 (gl_GETDATE): Likewise.
63867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63868         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63869         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63873         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63874         needed.
63875
63876 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63877
63878         * lib/memcasecmp.c: Include <limits.h>.
63879         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63880         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63881         Don't assume isdigit succeeds only on '0' through '9'.
63882
63883 2006-07-05  Eric Blake  <ebb9@byu.net>
63884
63885         * modules/getaddrinfo (Depends-on): Add snprintf.
63886
63887 2006-07-05  Eric Blake  <ebb9@byu.net>
63888
63889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63890         to avoid 'header present but could not be compiled' on cygwin.
63891
63892 2006-07-05  Eric Blake  <ebb9@byu.net>
63893
63894         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63895         missing from netdb.h.
63896         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63897
63898 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63899
63900         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63901         no longer needed.
63902         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63903         * m4/getdate.m4 (gl_GETDATE): Likewise.
63904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63905         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63906         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63907         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63908         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63909
63910 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63911
63912         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63913         All uses of is_space replaced by isspace.
63914         * lib/exit.h: Don't talk about STDC_HEADERS.
63915         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63916         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63917         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63918         replaced by isprint etc.
63919         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63920         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63921         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63922         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63923         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63924         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63925
63926 2006-07-05  Bruno Haible  <bruno@clisp.org>
63927
63928         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63929         the function exists, before testing against AIX.
63930         Reported by Martin Lambers <marlam@marlam.de>.
63931
63932 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63935         From Mark D. Baushke.
63936
63937 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63938
63939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63940         to the absolute name, not just one, to bypass Sun C 5.8's
63941         "warning: #include of /usr/include/... may be non-portable".
63942
63943 2006-07-04  Eric Blake  <ebb9@byu.net>
63944
63945         * modules/dirname-tests: New test module.
63946         * tests/test-dirname.c: New file, replacing dirname.c
63947         TEST_DIRNAME section that was recently deleted.
63948
63949 2006-07-04  Bruno Haible  <bruno@clisp.org>
63950
63951         Assume ANSI C header files and <ctype.h> functions.
63952         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63953         (mbsnwidth): Use isprint, iscntrl instead.
63954
63955 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         Merge from coreutils.
63958         * MODULES.html.sh: Add xstrtold.
63959         * modules/xstrtold: New file.
63960         * modules/cycle-check (Files): Add lib/same-inode.h.
63961         * modules/dirname (Files): Add m4/double-slash-root.m4.
63962         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63963         * modules/mkdir-p (Files): Add lib/same-inode.h.
63964         * modules/same (Files): Add lib/same-inode.h.
63965
63966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63969         This is to keep the terminology clean; POSIX talks about
63970         "absolute pathnames", not "full pathnames", but the GNU
63971         Coding Standards say to use "path" for something else;
63972         so use "absolute" to keep both sides happy.
63973         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63974         Set gl_absolute_header, not gl_full_header_path.
63975         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63976         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63977         All uses changed.
63978
63979         Merge from coreutils.
63980
63981         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63984         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63985         want to require the building of c-strtod.o.
63986         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63987         needs -lm directly.
63988         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63989
63990         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63993         --as-needed option if available.  Problem reported by Albert Chin in
63994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63995         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63996         cc merely issues a bunch of annoying warnings for --as-needed
63997         (this problem was reported by Bob Proulx).  Also, try linking with
63998         -lm to detect a bug in binutils 2.16 (this problem was reported
63999         by Ralf Wildenhues).
64000
64001         2006-06-18  Jim Meyering  <jim@meyering.net>
64002
64003         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64004         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64005         macro.
64006         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64007         also check for glibc-2.4's abort-inducing bug.
64008
64009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64010         Low-probability clean-up should be to use rmdir to get rid of
64011         the just-created directory, not unlink.
64012
64013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64014         configure fail, and request a bug report to inform us about it.
64015         Add a comment that, barring reports to the contrary, in 2007 we'll
64016         assume ftruncate is universally available.
64017
64018         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64021
64022         2006-03-12  Jim Meyering  <jim@meyering.net>
64023
64024         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64025         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64026         * m4/same.m4 (gl_SAME): Likewise.
64027         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64028
64029         2006-03-11  Eric Blake  <ebb9@byu.net>
64030
64031         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64032         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64033         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64034         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64035
64036 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64039         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64040         reported by Mark D. Baushke, one in
64041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64042
64043         Merge from coreutils.
64044
64045         * lib/.cppi-disable: Add stdint_.h.
64046         * lib/.cvsignore: Add stdint.h.
64047
64048         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64051         both double and long double versions.
64052         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64053         * lib/xstrtold.c: New file.
64054         * lib/xstrtod.h (xstrtold): New decl.
64055
64056         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64057
64058         * lib/filemode.c (setst): Remove.
64059         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64060         (arguably) clearer, and the generated code is a bit smaller on my
64061         Debian GNU/Linux stable x86 host.
64062
64063         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64066         Assume that filemode.h includes sys/types.h and sys/stat.h.
64067         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64068         (ftypelet): Reorder to put common cases first, for efficiency.
64069         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64070         to do 'M'.
64071         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64072         of 10, for compatibility with FreeBSD.  All callers changed.
64073         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64074         types that can't be deduced solely from st_mode.  First arg is now a
64075         const pointer.
64076         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64077         (strmode): Renamed from mode_string.
64078         (filemodestring): New decl.
64079         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64080         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64081         needed.
64082         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64083
64084         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64085
64086         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64087         fsusage.h now does that.  Include fsusage.h first, to test interface.
64088         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64089         at most one method (the old code could have generated decls that
64090         didn't conform to C89, not that this was ever exercised).
64091         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64092
64093         2006-03-19  Jim Meyering  <jim@meyering.net>
64094
64095         Work even in a chroot where d_ino values for entries in "/"
64096         don't match the stat.st_ino values for the same names.
64097         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64098         number, iterate through all entries again, using lstat instead.
64099         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64100         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64101
64102         * lib/getcwd.c (__getcwd): Clarify a comment.
64103         Use memcpy in place of a call to strcpy.
64104
64105         2006-03-12  Jim Meyering  <jim@meyering.net>
64106
64107         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64108         matches that of the current directory (which we're about to chdir ".."
64109         out of), then save the dev-ino of the parent, instead.
64110
64111         * lib/same-inode.h (SAME_INODE): New file/macro.
64112         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64113         Include "same-inode.h", instead.
64114         * lib/same.c: Likewise.
64115         * lib/cycle-check.h: Include "same-inode.h".
64116         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64117         * lib/cycle-check.c (SAME_INODE): Remove definition.
64118         * lib/root-dev-ino.h: Include "same-inode.h".
64119
64120         2006-03-11  Eric Blake  <ebb9@byu.net>
64121
64122         * lib/same.c (same_name): s/base_name/last_component/
64123         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64124         * lib/filenamecat.c (file_name_concat): Likewise.
64125
64126         2006-03-11  Eric Blake  <ebb9@byu.net>,
64127                     Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64130         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64131         drive prefix.
64132         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64133         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64134         (last_component): New method.
64135         * lib/dirname.c (dir_len): Determine when drive letters need a
64136         subsequent slash.  Preserve // when it is special.
64137         (dir_name): Don't append dot when drive letter is absolute.
64138         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64139         * lib/basename.c (base_name): New semantics - malloc the result.
64140         Preserve // when it is special.  Preserve relative files that look
64141         like drive letters.
64142         (base_len): Preserve // when it is special.
64143         (last_component): New method, similar to old base_name semantics.
64144         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64145         base_name.  Strip redundant slashes from ///.
64146
64147 2006-07-03  Jim Meyering  <jim@meyering.net>
64148
64149         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64150         macro is used before the first cycle_check call.
64151
64152 2006-07-03  Eric Blake  <ebb9@byu.net>
64153
64154         * modules/dirname (Depends-on): Add xstrndup.
64155
64156 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64159         test cases, so that config.log is a bit easier to follow.
64160
64161 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64164         both are 64 bits, since this seems to be the tradition, and this
64165         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64166         we ever run into a host that prefers long long to long in this
64167         case, we'll need another configure-time test.  Problem reported by
64168         Jim Meyering.
64169
64170 2006-07-02  Eric Blake  <ebb9@byu.net>
64171
64172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64173
64174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * modules/inttypes (Depends-on): No longer depends on stdint.
64177         * modules/stdint (Description): Say more about assumptions.
64178         Say that the fast types might differ.  Say macros are used.
64179         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64180         (Makefile.am): Revise list of substituted symbols to match
64181         new stdint.m4.
64182         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64183         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64184         * tests/test-stdint.c (verify_same_types)
64185         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64186         the code conforms to C99/C89.
64187         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64188         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64189
64190 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64193         but fix a bug, by requiring at least 64 bits.
64194         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64195         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64196         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64197         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64198
64199         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64200         changes.  Make 2.59 a prerequisite.  Check and substitute for
64201         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64202         inttypes.h.  Do not use special include files; just use the
64203         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64204         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64205         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64206         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64207         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64208         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64209         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64210         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64211         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64212         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64213         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64214         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64215         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64216         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64217         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64218         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64219         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64220         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64221         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64222         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64223         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64224         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64225         not check for things that C99 does not require, e.g., int8_t.  If
64226         a test isn't needed unless <stdint.h> isn't working, and is
64227         unlikely to be needed for any other reason, then don't do it
64228         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64229         size_t, since we assume C89 freestanding at least.  Do not check
64230         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64231         the right thing even if the types are not defined.  Instead use:
64232         (gl_STDINT_TYPE_PROPERTIES): New macro.
64233         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64234         testing whether <sys/types.h> clashes, as Autoconf does this for
64235         us now.  All uses removed.
64236         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64237         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64238         (gl_CHECK_TYPE_SAME):
64239         Remove; no longer needed.
64240         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64241         exists, since we'll return 0 anyway in that case.
64242         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64243
64244 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64245
64246         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64247         possible collision with system files.
64248         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64249         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64250         WCHAR_MIN and WCHAR_MAX in this case.
64251         (<stddef.h>): Do not include; no longer needed.
64252         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64253         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64254         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64255         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64256         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64257         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64258         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64259         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64260         !defined(__c99))]: Include in this case too, since it's harmless
64261         now.
64262         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64263         dangerous to do so.
64264         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64265         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64266         (_STDINT_MIN, _STDINT_MAX): New macros.
64267         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64268         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64269         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64270         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64271         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64272         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64273         macros, not typedefs; this simplifies things quite a bit.
64274         Use long int for all types narrower than int64_t.
64275         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64276         Define in terms of long long int or int64_t or long int,
64277         not int64_t or int32_t.  This saves some compile-time testing.
64278         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64279         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64280         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64281         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64282         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64283         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64284         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64285         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64286         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64287         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64288         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64289         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64290         undef any previous version and define our own version, for
64291         simplicity and consistency with the new macros for types.
64292         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64293         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64294         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64295         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64296         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64297         @WINT_T_SUFFIX@ to keep things simple here.
64298         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64299         Simplify by assuming typical 8/16/32/64 host, since we're
64300         already doing that elsewhere anyway.
64301         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64302         and assume long long int is 64 bits if available.  This
64303         speeds up 'configure'.
64304
64305 2006-07-01  Eric Blake  <ebb9@byu.net>
64306
64307         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64308         Reported by Andreas Buening.
64309
64310 2006-07-01  Eric Blake  <ebb9@byu.net>
64311
64312         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64313
64314 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64315
64316         * lib/getaddrinfo.c: fixed typo
64317
64318 2006-06-29  Jim Meyering  <jim@meyering.net>
64319
64320         * modules/strftime (Maintainer): Add my name, since with the
64321         FPRINTFTIME changes strftime.c has forked from glibc.
64322
64323 2006-06-29  Eric Blake  <ebb9@byu.net>
64324
64325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64326
64327 2006-06-29  Eric Blake  <ebb9@byu.net>
64328
64329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64330
64331 2006-06-29  Eric Blake  <ebb9@byu.net>
64332
64333         * lib/stat_.h: New file.
64334
64335 2006-06-29  Eric Blake  <ebb9@byu.net>
64336
64337         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64338         unused static function.
64339
64340 2006-06-29  Eric Blake  <ebb9@byu.net>
64341
64342         * doc/functions.texi (Function Portability): Document missing lstat
64343         on mingw.
64344
64345 2006-06-29  Eric Blake  <ebb9@byu.net>
64346
64347         * MODULES.html.sh: Add sys_stat.
64348         * modules/sys_stat: New module.
64349         * modules/mkstemp (Depends-on): Add sys_stat.
64350
64351 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64352
64353         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64354
64355 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64356
64357         * m4/c-bs-a.m4: Removed.
64358
64359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64360
64361         * lib/strftime.c: Assume strftime() exists.
64362
64363 2006-06-29  Derek Price  <derek@ximbiot.com>
64364
64365         * modules/c-bs-a: Removed - \a is C89.
64366         * MODULES.html.sh: Remove c-bs-a.
64367
64368 2006-06-29  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/wcwidth (License): Change to LGPL.
64371
64372 2006-06-28  Simon Josefsson  <jas@extundo.com>
64373
64374         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64375         on _WIN32.
64376
64377         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64378         getnameinfo.
64379
64380 2006-06-28  Simon Josefsson  <jas@extundo.com>
64381
64382         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64383
64384 2006-06-28  Simon Josefsson  <jas@extundo.com>
64385
64386         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64387         functions there.  It will succeed on Windows XP, but on Windows
64388         2000 and (presumably) earlier, it will fail, and use the internal
64389         re-implementation.
64390         (use_win32_p): New function.
64391         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64392         Support AI_NUMERICSERV to disable getservbyname.
64393         (getnameinfo): New function, only supports
64394         NI_NUMERICHOST|NI_NUMERICSERV for now.
64395
64396         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64397         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64398         getnameinfo.
64399
64400 2006-06-28  Eric Blake  <ebb9@byu.net>
64401
64402         * modules/wcwidth: New file.
64403         * modules/mbchar (Depends-on): Add wcwidth.
64404         * modules/mbswidth (Depends-on): Add wcwidth.
64405         * MODULES.html.sh: Add wcwidth.
64406
64407 2006-06-28  Eric Blake  <ebb9@byu.net>
64408
64409         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64411
64412 2006-06-28  Eric Blake  <ebb9@byu.net>
64413
64414         * lib/xvasprintf.h: Fix comments.
64415
64416 2006-06-28  Eric Blake  <ebb9@byu.net>
64417
64418         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64419         * lib/mbswidth.c (wcwidth): Move from here...
64420         * lib/wcwidth.h: ...to this new file.
64421
64422 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64423
64424         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64425
64426         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64427         it's obsolete.
64428         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64429
64430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64431
64432         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64433         Autoconf 2.60 says this stuff was obsolete.
64434
64435 2006-06-28  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64438
64439 2006-06-28  Bruno Haible  <bruno@clisp.org>
64440
64441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64442         gt_TYPE_WCHAR_T.
64443
64444 2006-06-28  Bruno Haible  <bruno@clisp.org>
64445
64446         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64447         declaration for wcwidth.
64448         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64449
64450 2006-06-28  Bruno Haible  <bruno@clisp.org>
64451
64452         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64453         (mkdir): Define using _mkdir.
64454
64455 2006-06-28  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/getaddrinfo.h: Fix POSIX URL.
64458         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64459         _WIN32.
64460         (use_win32_p): Make static.
64461         (getaddrinfo): Reject service name if it is empty or does not consist
64462         solely of decimal digits, or if its value is > 65535.
64463         (getnameinfo): Remove useless casts.
64464
64465 2006-06-27  Simon Josefsson  <jas@extundo.com>
64466
64467         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64468         Eggert and Martin Lambers.
64469
64470 2006-06-27  Simon Josefsson  <jas@extundo.com>
64471
64472         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64473         Eggert and Martin Lambers.
64474
64475 2006-06-27  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64478         result to 0, not to empty.
64479         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64480
64481 2006-06-27  Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64484
64485 2006-06-26  Simon Josefsson  <jas@extundo.com>
64486
64487         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64488         present.
64489
64490 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64493         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64494         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64495
64496 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64497
64498         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64499
64500 2006-06-26  Bruno Haible  <bruno@clisp.org>
64501
64502         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64503
64504 2006-06-26  Bruno Haible  <bruno@clisp.org>
64505
64506         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64507
64508 2006-06-26  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64511         SGI C compiler in pre-C99 mode.
64512         Suggested by Mark D. Baushke and Larry Jones.
64513
64514 2006-06-26  Bruno Haible  <bruno@clisp.org>
64515
64516         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64517         WCHAR_MAX.
64518         Reported by Mark D. Baushke and Larry Jones.
64519
64520 2006-06-26  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64523         in pre-C99 mode.
64524         Suggested by Mark D. Baushke and Larry Jones.
64525
64526 2006-06-23  Simon Josefsson  <jas@extundo.com>
64527             Bruno Haible  <bruno@clisp.org>
64528
64529         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64530         Emit mostlyclean-local rule.
64531         (func_emit_tests_Makefile_am): Likewise.
64532         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64533
64534 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64535
64536         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64537
64538 2006-06-23  Bruno Haible  <bruno@clisp.org>
64539
64540         * tests/test-stdint.c: Update to match ISO C 99 Technical
64541         Corrigendum 1.
64542
64543 2006-06-23  Bruno Haible  <bruno@clisp.org>
64544
64545         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64546
64547 2006-06-23  Bruno Haible  <bruno@clisp.org>
64548
64549         * lib/stdint_.h: Treat IRIX like OpenBSD.
64550
64551 2006-06-23  Bruno Haible  <bruno@clisp.org>
64552
64553         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64554         ISO C 99 Technical Corrigendum 1.
64555
64556 2006-06-22  Simon Josefsson  <jas@extundo.com>
64557
64558         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64559         MinGW.
64560
64561 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64564         needed.  Some compiler complained about some of them.  Problem reported
64565         by Larry Jones in
64566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64567
64568 2006-06-21  Simon Josefsson  <jas@extundo.com>
64569
64570         * tests/test-getaddrinfo.c: New file.
64571
64572         * modules/getaddrinfo-tests: New file.
64573
64574         * MODULES.html.sh: Add inet_pton.
64575
64576         * modules/inet_pton: New file.
64577
64578 2006-06-21  Simon Josefsson  <jas@extundo.com>
64579
64580         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64581         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64582         of using the (limited) gnulib implementation on Windows XP.
64583
64584         * m4/inet_pton.m4: New file.
64585
64586 2006-06-21  Simon Josefsson  <jas@extundo.com>
64587
64588         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64589         variable.
64590
64591         * lib/socket_.h: Don't define WINVER.
64592
64593         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64594         slightly modified to work in gnulib.
64595
64596 2006-06-21  Simon Josefsson  <jas@extundo.com>
64597
64598         * doc/gnulib.texi (Windows sockets): Add.
64599
64600 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * lib/read-file.c (fread_file): Start with buffer allocation of
64603         0 bytes rather than 1 byte; this simplifies the code.
64604         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64605         code to free buffer and save/restore errno.
64606         (internal_read_file): Remove unused local.
64607
64608 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64609
64610         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64611         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64612         Problem reported by Denis Excoffier in
64613         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64614
64615 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64616
64617         * modules/sys_socket, modules/socklen: Include sys/types since
64618         FreeBSD 4.x's sys/socket.h needs it.
64619
64620 2006-06-19  Simon Josefsson  <jas@extundo.com>
64621
64622         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64623
64624 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64625
64626         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64627
64628 2006-06-19  Bruno Haible  <bruno@clisp.org>
64629
64630         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64631         and FULL_PATH_INTTYPES_H in angle brackets.
64632         Reported by Mark D. Baushke <mdb@gnu.org>.
64633
64634 2006-06-17  Eric Blake  <ebb9@byu.net>
64635
64636         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64637         errno.
64638
64639 2006-06-17  Bruno Haible  <bruno@clisp.org>
64640
64641         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64642         <sys/inttypes.h>.
64643
64644 2006-06-17  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64647         whether errno is declared. Assume <errno.h> declares errno.
64648
64649 2006-06-17  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64652
64653 2006-06-17  Bruno Haible  <bruno@clisp.org>
64654
64655         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64656         problem on Solaris 2.5.1.
64657
64658 2006-06-16  Eric Blake  <ebb9@byu.net>
64659
64660         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64661         * lib/unicodeio.c [!defined errno]: Likewise.
64662         * lib/strtol.c [!defined errno]: Likewise.
64663         * lib/strtod.c [!defined errno]: Likewise.
64664
64665 2006-06-15  Eric Blake  <ebb9@byu.net>
64666
64667         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64668
64669 2006-06-15  Eric Blake  <ebb9@byu.net>
64670
64671         * config/srclist.txt (ssize_t.m4): Lose sync.
64672
64673 2006-06-15  Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/stdint (Files): Include m4/full-header-path.m4,
64676         m4/size_max.m4, m4/wchar_t.m4.
64677         (Makefile.am): Many more substitutions.
64678         * modules/stdint-tests: New file.
64679         * tests/test-stdint.c: New file.
64680
64681 2006-06-15  Bruno Haible  <bruno@clisp.org>
64682
64683         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64684         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64685         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64686         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64687         gl_CHECK_TYPE_SAME): New macros.
64688
64689 2006-06-15  Bruno Haible  <bruno@clisp.org>
64690
64691         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64692
64693 2006-06-15  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/stdint_.h: Rewritten to be fully auto-configured.
64696         Fixes bug on HP-UX/IA64.
64697
64698 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * lib/getdate.y (__attribute__): Don't define if already defined.
64701         Problem reported by Larry Jones.
64702         * lib/utimens.c (__attribute__): Likewise.
64703
64704 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64707         reported by Andreas Schwab.
64708
64709 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64710             Bruno Haible  <bruno@clisp.org>
64711
64712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64713         check for the declaration of strnlen and a run test that exposes the
64714         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64715         rpl_strndup.
64716
64717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64718             Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64721
64722 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64723
64724         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64725         compile test, for Tru64 4.0D.
64726
64727 2006-05-28  Karl Berry  <karl@gnu.org>
64728
64729         * config/srclist.txt (printf-args.c): lose sync.
64730
64731 2006-05-26  Martin Lambers  <marlam@marlam.de>
64732
64733         * lib/getpass.c: Updates the test for the native W32 API, and adds
64734         missing includes, thus fixing compilation warnings.
64735
64736 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64737
64738         * lib/exclude.c (exclude_fnmatch): New function.
64739         (excluded_file_name): Call exclude_fnmatch.
64740         * lib/exclude.h (excluded_file_name): New prototype
64741
64742 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64743
64744         * lib/tempname.c (small_open, large_open): New macros.
64745         (__open, __open64) [!_LIBC]: Remove.
64746         (__gen_tempname): Use small_open and large_open instead of __open
64747         and __open64.  This fixes a portability bug on HP-UX 11.11i
64748         reported by Simon Wing-Tang in
64749         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64750
64751 2006-05-24  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64754         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64755         Reported by Thorsten Maerz <torte@netztorte.de> via
64756         Aaron Stone <aaron@serendipity.cx>.
64757
64758 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64761         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64762         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64763         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64764         not really conditional on the cache.
64765         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64766
64767 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64770         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64771         (my_usleep): Don't mishandle maximum value.
64772
64773 2006-05-19  Jim Meyering  <jim@meyering.net>
64774
64775         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64776
64777 2006-05-17  Bruno Haible  <bruno@clisp.org>
64778
64779         Cygwin portability.
64780         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64781
64782 2006-05-17  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/stdint_.h: Fix recognition of Cygwin.
64785
64786 2006-05-15  Bruno Haible  <bruno@clisp.org>
64787
64788         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64789         on libtool patch by Ralf Wildenhues.
64790
64791 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64794         test for C99 conformance; (bool) 0.5 is an integer constant
64795         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64796         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64797
64798 2006-05-11  Simon Josefsson  <jas@extundo.com>
64799
64800         * m4/xvasprintf.m4: Fix obvious typo.
64801
64802 2006-05-11  Jim Meyering  <jim@meyering.net>
64803
64804         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64805         James Lemley.
64806
64807 2006-05-10  Simon Josefsson  <jas@extundo.com>
64808
64809         * lib/md4.c: Typo fix, update copyright years.
64810         (K1, K2): Don't use L because it turn computations into 64-bit on
64811         64-bit platforms.
64812
64813 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64814
64815         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64816         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64817         unwanted sign propagation, e.g., on hosts with 64-bit int.
64818         There still are some problems with reeelly weird theoretical hosts
64819         (e.g., 33-bit int) but it's not worth worrying about now.
64820         * lib/sha1.c (rol): Likewise.
64821         (K1, K2, K3, K4): Remove unnecessary L suffix.
64822
64823 2006-05-10  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/des.c: Cast to avoid warnings.
64826
64827 2006-05-09  Bruno Haible  <bruno@clisp.org>
64828
64829         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64830         (Depends-on): Depend also on xsize, stdarg.
64831         (configure.ac): Add gl_XVASPRINTF.
64832
64833 2006-05-09  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/xvasprintf.m4: New file.
64836
64837 2006-05-09  Bruno Haible  <bruno@clisp.org>
64838
64839         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64840         (EOVERFLOW): Define fallback value.
64841         (xstrcat): New function.
64842         (xvasprintf): Recognize the special case of a string concatenation.
64843
64844 2006-05-08  Eric Blake  <ebb9@byu.net>
64845
64846         * gnulib-tool (func_version): Base copyright year on CVS date.
64847         (func_emit_copyright_notice): New function.
64848         (func_emit_lib_Makefile_am): Use it.
64849         (func_emit_tests_Makefile_am): Likewise.
64850         (func_import): Likewise.
64851
64852 2006-05-08  Bruno Haible  <bruno@clisp.org>
64853
64854         * modules/stdarg: New file.
64855         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64856
64857 2006-05-08  Bruno Haible  <bruno@clisp.org>
64858
64859         * m4/stdarg.m4: New file, from GNU gettext.
64860
64861 2006-05-08  Bruno Haible  <bruno@clisp.org>
64862
64863         * config/srclist.txt (build-aux/config.rpath): different from latest
64864         release.
64865
64866 2006-05-08  Bruno Haible  <bruno@clisp.org>
64867
64868         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64869
64870 2006-05-05  Jim Meyering  <jim@meyering.net>
64871
64872         * m4/warning.m4: New file, derived from bison's file by the same name.
64873
64874 2006-05-03  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/stdint_.h: Shorter URL.
64877         * lib/inttypes.h: Likewise.
64878
64879 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64882
64883 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * lib/verify.h: Document the internals better.  Most of this change
64886         was written by Bruno Haible.
64887
64888 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * doc/verify.texi: New file, partly based on a proposal by
64891         Bruno Haible.
64892
64893 2006-05-02  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64896         test from here...
64897         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64898
64899 2006-04-29  Bruno Haible  <bruno@clisp.org>
64900
64901         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64902         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64903
64904 2006-04-29  Bruno Haible  <bruno@clisp.org>
64905
64906         * gnulib-tool: Make --update option actually work.
64907
64908 2006-04-29  Bruno Haible  <bruno@clisp.org>
64909
64910         * doc/gcd.texi: New file.
64911         * doc/gnulib.texi: Include it.
64912
64913 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64914
64915         * lib/getdate.y (get_date): When adding relative date, start with the
64916         initial time, not with the result of the first mktime call.
64917
64918 2006-04-25  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_import): Output the include directives in three
64921         blocks, sorted separately.
64922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64923
64924 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64927         to define main with arguments, for C++.  Reported by Eric Blake.
64928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64929         Prefer 'int main ()' to 'int main (void)', for C++.
64930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64932         for 'main', for C99 and C++.
64933
64934 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64937         Don't assume that exit status -1 is valid.
64938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64940         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64941         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64942         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64943         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64944         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64945         functions can be used without declaring them, or that you can
64946         exit with status -1.
64947         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64948
64949 2006-04-24  Karl Berry  <karl@gnu.org>
64950
64951         * config/srclist.txt (longdouble.m4): sync lost.
64952
64953 2006-04-24  Eric Blake  <ebb9@byu.net>
64954
64955         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64956
64957 2006-04-24  Bruno Haible  <bruno@clisp.org>
64958
64959         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64960         poll() implementation in AIX.
64961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64962
64963 2006-04-24  Bruno Haible  <bruno@clisp.org>
64964
64965         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64966         assigned exactly once.
64967
64968 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64969             Bruno Haible  <bruno@clisp.org>
64970
64971         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64972         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64973         for AM_CPPFLAGS.
64974
64975 2006-04-23  Bruno Haible  <bruno@clisp.org>
64976
64977         * modules/copy-file: Depend on unistd.
64978         * modules/execute: Likewise.
64979         * modules/fatal-signal: Likewise.
64980         * modules/findprog: Likewise.
64981         * modules/mkdtemp : Likewise.
64982         * modules/pipe: Likewise.
64983         * modules/wait-process: Likewise.
64984
64985 2006-04-23  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64988         condition was already detected.
64989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64990
64991 2006-04-23  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/copy-file.c: Include <unistd.h> unconditionally.
64994         * lib/execute.c: Likewise.
64995         * lib/fatal-signal.c: Likewise.
64996         * lib/findprog.c: Likewise.
64997         * lib/mkdtemp.c: Likewise.
64998         * lib/pipe.h: Likewise.
64999         * lib/pipe.c: Likewise.
65000         * lib/wait-process.h: Likewise.
65001
65002 2006-04-23  Bruno Haible  <bruno@clisp.org>
65003
65004         * gnulib-tool (func_usage): Fix --import description. Document
65005         --update.
65006         (func_import): Create temporary file in a temporary directory, if
65007         --dry-run is specified. Silence errors from 'grep' when there are no
65008         m4 files in $m4dir.
65009         (func_create_testdir): Silence errors from 'grep' when there are no
65010         m4 files in $m4dir.
65011         Reported by Karl Berry <karl@freefriends.org>.
65012
65013 2006-04-20  Bruno Haible  <bruno@clisp.org>
65014
65015         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65016         one argument, so that the code will be portable to Autoconf 2.60.
65017         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65019         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65020
65021 2006-04-19  Derek Price  <derek@ximbiot.com>
65022             Eric Blake  <ebb9@byu.net>
65023
65024         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65025         rather than "/full/path.h".  Update comment to match.  Shorten &
65026         generalize m4_translit call via AS_TR_CPP.
65027
65028 2006-04-19  Derek Price  <derek@ximbiot.com>
65029             Eric Blake  <ebb9@byu.net>
65030
65031         * lib/inttypes.h: Correct grammar in comment.
65032
65033 2006-04-18  Derek Price  <derek@ximbiot.com>
65034             Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * modules/inttypes: New file.
65037         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65038
65039 2006-04-18  Derek Price  <derek@ximbiot.com>
65040             Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65043         New files.
65044
65045 2006-04-18  Derek Price  <derek@ximbiot.com>
65046             Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         * lib/inttypes.h: New file.
65049         * lib/strtoimax.c: Assume <inttypes.h>.
65050
65051 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65054         isn't mounted.  Problem reported by Kir Kolyshkin.
65055
65056 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65059         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65060         Derek R. Price.
65061         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65062         implementation.
65063
65064 2006-04-12  Eric Blake  <ebb9@byu.net>
65065
65066         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65067         is now done automatically by the corresponding Autoconf macro.
65068
65069 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65072         time_r.h.
65073
65074 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         Merge regex changes from libc, removing some of our
65077         POSIX-conformance changes that were rejected and redoing them in a
65078         less-intrusive way.
65079
65080         * lib/regcomp.c (re_compile_internal, init_dfa):
65081         Length arg is now size_t, not Idx.  All uses changed.
65082         (peek_token): Forward decl now says internal_function.
65083         (__re_error_msgid, __re_error_msgid_idx):
65084         Now static rather than extern with attribute_hidden.
65085         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65086         For some reason libc prefers K&R style defns for external functions.
65087         (regerror) [!defined _LIBC]: Likewise.
65088         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65089         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65090         (build_range_exp, build_collating_symbol):
65091         Use K&R-style defn.
65092         (re_compile_fastmap): Use '\0' to memset, not 0.
65093         (utf8_sb_map): Make the calculations more obvious.
65094         (init_dfa, parse_bracket_exp, build_charclass_op):
65095         Call calloc and cast result, as glibc does.
65096         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65097         (build_range_exp, build_collating_symbol):
65098         Now internal functions.
65099
65100         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65101
65102         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65103         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65104         Don't depend on VMS; depend on __VMS instead, for POSIX
65105         namespace cleanness.
65106         (regoff_t): Define to ssize_t, not long int.
65107
65108         Remove the REG_ macros named below.  Instead, make the old names
65109         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65110         __USE_GNU_REGEX.
65111         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65112         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65113         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65114         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65115         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65116         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65117         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65118         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65119         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65120         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65121         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65122         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65123         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65124         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65125         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65126         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65127         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65128         (REG_NREGS):
65129         Remove.  All uses replaced by the old RE_* names.
65130         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65131         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65132         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65133         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65134         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65135         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65136         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65137         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65138         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65139         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65140         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65141         Don't bother having these macros be independent of each others'
65142         values, since they no longer exist in the POSIX name space.
65143
65144         Rename the following member names back to their old names,
65145         unless !__USE_GNU_REGEX.  All uses changed back.
65146         (buffer): Renamed from re_buffer.
65147         (allocated): Renamed from re_allocated.
65148         (used): Renamed from re_used.
65149         (syntax): Renamed from re_syntax.
65150         (fastmap): Renamed from re_fastmap.
65151         (translate): Renamed from re_translate.
65152         (can_be_null): Renamed from re_can_be_null.
65153         (regs_allocated): Renamed from re_regs_allocated.
65154         (fastmap_accurate): Renamed from re_fastmap_accurate.
65155         (no_sub): Renamed from re_no_sub.
65156         (not_bol): Renamed from re_not_bol.
65157         (not_eol): Renamed from re_not_eol.
65158         (newline_anchor): Renamed from re_newline_anchor.
65159         (num_regs): Renamed from rm_num_regs.
65160         (start): Renamed from rm_start.
65161         (end): Renamed from rm_end.
65162
65163         (free_state): Move up a bit.
65164
65165         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65166         #define to be empty.
65167         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65168         when that is what is intended.
65169         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65170         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65171         (MAX): New macro.
65172         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65173         All uses changed back to re_malloc, etc.  It's now the caller's
65174         responsibility to check for overflow; all callers changed.
65175         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65176         (re_x2nrealloc): Remove.
65177         (free_state): Remove decl.
65178
65179         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65180         (re_set_registers, re_exec):
65181         Use K&R-style defn.
65182
65183         2006-01-31  Roland McGrath  <roland@redhat.com>
65184
65185         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65186         Reported by Mike Frysinger <vapier@gentoo.org>.
65187
65188         2006-01-15  Andreas Jaeger  <aj@suse.de>
65189
65190         [BZ #1950]
65191         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65192         build_wcs_upper_buffer change.
65193         (build_wcs_upper_buffer): Change return type.
65194
65195         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65196
65197         * lib/regex_internal.h: Include <stdint.h> if available.
65198
65199         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65200
65201         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65202
65203         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65204
65205         * lib/regcomp.c: Adjust for changed secondary hash function.
65206
65207         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65208
65209         * lib/regex.h: Pretty printing.
65210         Clean up namespace a bit.
65211
65212         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65213
65214         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65215         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65216
65217         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65218                     Ulrich Drepper  <drepper@redhat.com>
65219
65220         [BZ #1302]
65221         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65222         changed.
65223         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65224
65225         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65226
65227         [BZ #281]
65228         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65229         * lib/regcomp.c: Remove unnecessary uses of
65230         unsigned RE_TRANSLATE_TYPE.
65231         * lib/regex_internal.h: Likewise.
65232         * lib/regex_internal.c: Likewise.
65233         * lib/regexec.c: Likewise.
65234         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65235
65236         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65237
65238         * lib/regexec.c (find_recover_state): Remove unnecessary
65239         initialization.
65240         (transit_state_bkref): Make DFA a const pointer.
65241         (get_subexp): Likewise.
65242         (check_arrival): Likewise.
65243         (update_cur_sifted_state): Likewise.
65244         (re_search_internal): Likewise.
65245         (prune_impossible_nodes): Likewise.
65246         (acquire_init_state_context): Likewise.
65247         (proceed_next_node): Likewise.
65248         (set_regs): Likewise.
65249         (free_fail_stack_return): Likewise.
65250         (check_arrival_expand_ecl): Mark DFA parameter as const.
65251         (check_arrival_expand_ecl_sub): Likewise.
65252         (check_subexp_limits): Likewise.
65253         (sub_epsilon_src_nodes):  Likewise.
65254         (add_epsilon_src_nodes):  Likewise.
65255         (merge_state_array): Likewise.
65256         (update_regs): Likewise.
65257         (build_trtable): Likewise.
65258         (sift_states_backward): Mark MCTX parameter as const.
65259         (build_sifted_states): Likewise.
65260         (update_cur_sifted_state): Likewise.
65261         (sift_states_mkref): Likewise.
65262         (check_arrival_expand_ecl): Mark eclosure as const.
65263         (check_dst_limits_calc_pos_1): Likewise.
65264         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65265         pointer.
65266
65267         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65268
65269         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65270         (transit_state_sb): Likewise.
65271         (transit_state_mb): Likewise.
65272         (sift_states_iter_mb): Likewise.
65273         (check_arrival_add_next_nodes): Likewise.
65274         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65275         [_LIBC] (re_search_2_stub): Use mempcpy.
65276
65277         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65278         mbrtowc for very simple UTF-8 case.
65279
65280         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65281         a pointer-to-const.
65282         (re_acquire_state_context): Likewise.
65283         * lib/regex_internal.h: Adjust prototypes.
65284
65285         * lib/regex.c: Prevent using C++ compilers.
65286
65287         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65288         (re_acquire_state_context): Likewise.
65289
65290 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * modules/regex (Depends-on): Add ssize_t.
65293
65294 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65297         translation table.
65298
65299 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65302
65303 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65304             Bruno Haible  <bruno@clisp.org>
65305
65306         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65307         <sys/types.h> and <inttypes.h>.
65308
65309 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65310
65311         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65312         `__error_t_defined', so argp.h will not typedef the former.
65313
65314 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65317         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65318         glibc names.  Even if glibc is changed to conform to POSIX, the
65319         traditional names will be available anyway, since regex depends on
65320         the extensions module.  Also, fix a longstanding typo in the
65321         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65322         reported by Emanuele Giaquinta.  Also, change sense of cached
65323         variable, so that the message makes sense.
65324
65325 2006-03-24  Simon Josefsson  <jas@extundo.com>
65326
65327         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65328         including some doc fixes.
65329         (base64_encode_alloc): Fix +1 bug on allocation failures.
65330
65331 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65332
65333         * lib/base64.c (base64_encode): Do not read past end of array with
65334         unsanitized input on systems with CHAR_BIT > 8.
65335
65336 2006-03-24  Eric Blake  <ebb9@byu.net>
65337
65338         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65339
65340 2006-03-22  Karl Berry  <karl@gnu.org>
65341
65342         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65343         * config/srclistvars.sh (COREUTILS): new var.
65344
65345 2006-03-17  Jim Meyering  <jim@meyering.net>
65346
65347         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65348         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65349
65350 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65351
65352         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65353         no longer needs it.  Instead, check that regoff_t is as least
65354         as wide as ptrdiff_t.
65355
65356         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65357         so that our regex.h stays compatible with the installed regex.
65358         This is helpful for installers who configure --without-included-regex.
65359         Problem reported by Emanuele Giaquinta.
65360
65361 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65364         Typedef to long int, not to off_, as POSIX will likely change
65365         in that direction.
65366
65367 2006-03-15  Eric Blake  <ebb9@byu.net>
65368
65369         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65370
65371 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65372
65373         * lib/argp-help.c (validate_uparams): Fix typo
65374         * lib/argp-parse.c (argp_default_options): Consistently begin help
65375         messages with a lowercase letter.
65376
65377 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65380         overrun buffers and shouldn't be used (much as gets shouldn't be
65381         used).
65382         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65383
65384 2006-03-08  Simon Josefsson  <jas@extundo.com>
65385
65386         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65387         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65388
65389 2006-03-08  Simon Josefsson  <jas@extundo.com>
65390
65391         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65392         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65393
65394 2006-03-08  Simon Josefsson  <jas@extundo.com>
65395
65396         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65397         signal that configure disabled the device.
65398
65399 2006-03-08  Simon Josefsson  <jas@extundo.com>
65400
65401         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65402         languages.
65403
65404 2006-03-07  Simon Josefsson  <jas@extundo.com>
65405
65406         * modules/getopt (Depends-on): Add unistd.
65407
65408         * modules/unistd: New file.
65409
65410 2006-03-07  Simon Josefsson  <jas@extundo.com>
65411
65412         * modules/gc-random: New file.
65413
65414 2006-03-07  Simon Josefsson  <jas@extundo.com>
65415
65416         * m4/unistd_h.m4: New file.
65417
65418 2006-03-07  Simon Josefsson  <jas@extundo.com>
65419
65420         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65421         test to be side-effect free by storing the result in the cache
65422         variable gl_cv_lib_readline, and moving the assignment of
65423         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65424         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65425
65426 2006-03-07  Simon Josefsson  <jas@extundo.com>
65427
65428         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65429         error on missing devices (the functions will return an error).
65430
65431         * m4/gc.m4: Move random stuff to gc-random.m4
65432
65433 2006-03-07  Simon Josefsson  <jas@extundo.com>
65434
65435         * lib/unistd_.h: New file.
65436
65437 2006-03-07  Simon Josefsson  <jas@extundo.com>
65438
65439         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65440
65441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65444         Problem reported by Juan Manuel Guerrero.
65445
65446 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65449         the unistd module.
65450         * lib/getlogin_r.c: Likewise.
65451         * lib/getlogin_r.h: Likewise.
65452         * lib/glob.c: Likewise.
65453         * lib/pagealign_alloc.c: Likewise.
65454         * lib/unistd_.h: Remove; no longer needed.
65455
65456 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65457
65458         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65459         Add unistd.
65460         * modules/c-stack (Depends-on): Add unistd.
65461         * modules/getlogin_r: Likewise.
65462         * modules/glob: Likewise.
65463         * modules/pagealign_alloc: Likewise.
65464         * modules/unistd (Files): Remove lib/unistd_.h.
65465         (EXTRA_DIST): Remove.
65466         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65467         need unistd_.h.
65468         (MOSTLYCLEANFILES): Remove unistd.h-t.
65469
65470 2006-03-03  Simon Josefsson  <jas@extundo.com>
65471
65472         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65473
65474 2006-03-03  Simon Josefsson  <jas@extundo.com>
65475
65476         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65477         libidn and bison.
65478
65479 2006-03-03  Simon Josefsson  <jas@extundo.com>
65480
65481         * build-aux/maint.mk: Add indent target.
65482
65483 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65484
65485         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65486         our replacement poll.h in any case, to avoid a differing
65487         declaration from a system header.  Seen on AIX.
65488
65489 2006-03-01  Simon Josefsson  <jas@extundo.com>
65490
65491         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65492         <kasal@ucw.cz>.
65493
65494 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65495
65496         * modules/gettime (Depends-on): Add extensions module.
65497         * modules/nanosleep (Depends-on): Likewise.
65498         * modules/settime (Depends-on): Likewise.
65499
65500 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65503         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65504         pedantically.
65505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65506         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65507
65508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65509         not "==".  Reported by Ralf Wildenhues.
65510
65511 2006-03-01  Karl Berry  <karl@gnu.org>
65512
65513         * doc/Copyright/request-*: new files, synced from gnuorg.
65514
65515 2006-03-01  Karl Berry  <karl@gnu.org>
65516
65517         * config/srclist.txt (Copyright/*): new entries.
65518
65519 2006-02-28  Simon Josefsson  <jas@extundo.com>
65520
65521         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65522
65523 2006-02-27  Simon Josefsson  <jas@extundo.com>
65524
65525         * lib/base64.h: Indent #define's.  From Jim Meyering
65526         <jim@meyering.net>.
65527
65528 2006-02-27  Jim Meyering  <jim@meyering.net>
65529
65530         Revert the change of 2006-02-24, so these files can continue
65531         to be sync'd from gettext.
65532         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65533         of `config.h'.
65534
65535 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * modules/intprops: New file.
65538         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65539         Add intprops.
65540         * modules/getloadavg (Files): Remove lib/intprops.h.
65541         (Depends-on): Add intprops.
65542         * modules/human: Likewise.
65543         * modules/inttostr: Likewise.
65544         * modules/openat: Likewise.
65545         * modules/sig2str: Likewise.
65546         * modules/userspec: Likewise.
65547         * modules/utimecmp: Likewise.
65548         * modules/xnanosleep: Likewise.
65549         * modules/xstrtol: Likewise.
65550
65551 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65552
65553         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65554         * modules/lock-tests (TESTS): Use $(EXEEXT).
65555         * modules/tls-tests: Likewise.
65556         * modules/argp-tests: Likewise.
65557         (check_PROGRAMS): New var, replacing...
65558         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65559
65560 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65561
65562         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65563         `config.h'.
65564
65565 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65568
65569 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65570
65571         Sync from coreutils.
65572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65573         gl_CHDIR_SAFER.
65574
65575 2006-02-22  Jim Meyering  <jim@meyering.net>
65576
65577         Sync from coreutils.
65578         * m4/chdir-safer.m4: New file.
65579
65580 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65583         AT_FDCWD exceeds INT_MAX.
65584         * lib/openat.h (AT_FDCWD): Likewise.
65585
65586 2006-02-17  Eric Blake  <address@hidden>
65587
65588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65589
65590 2006-02-16  Simon Josefsson  <jas@extundo.com>
65591
65592         * modules/getaddrinfo (Depends-on): Add sys_socket.
65593
65594 2006-02-15  Simon Josefsson  <jas@extundo.com>
65595
65596         * build-aux/maint.mk: Add dsyntax-check rule.
65597
65598 2006-02-15  Eric Blake  <ebb9@byu.net>
65599
65600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65601         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65602         'present but cannot compile' warnings on cygwin.
65603         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65604         use ws2tcpip.h if sys/socket.h works.
65605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65606         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65607
65608 2006-02-14  Simon Josefsson  <jas@extundo.com>
65609
65610         * modules/maintainer-makefile (Files): Rename.
65611
65612         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65613         and (the local) Makefile.cfg to maint-cfg.mk.
65614
65615         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65616         to the latter.
65617
65618         * modules/maintainer-makefile: New module.
65619
65620         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65621         severaly stripped to make it possible to build it up from scratch
65622         with reliable tests.
65623
65624         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65625         fixes to permit overriding the default actions when configure and
65626         makefile are not available.
65627
65628 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         Sync from coreutils.
65631         * modules/lstat (Depends-on): Don't depend on xalloc.
65632         (License): Change from GPL to LGPL, since this is now simply a
65633         replacement for a libc function.
65634
65635 2006-02-14  Jim Meyering  <jim@meyering.net>
65636
65637         Sync from coreutils.
65638
65639         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65640         failure on deficient systems, and simplify gnulib lgpl dependencies.
65641         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65642         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65643
65644         * lib/xalloc-die.c: Remove unused definition of N_.
65645
65646 2006-02-14  Jim Meyering  <jim@meyering.net>
65647
65648         Sync from coreutils.
65649         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65650         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65651         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65652         double-quote uses of that variable, to accommodate the rare case in
65653         which getmntent is available in none of the libraries checked.  This
65654         happens at least on FreeBSD 5.0.
65655
65656 2006-02-13  Simon Josefsson  <jas@extundo.com>
65657
65658         * gnulib-tool (Usage): Fix --import, from
65659         karl@freefriends.org (Karl Berry).
65660
65661 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65662
65663         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65664
65665 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65666
65667         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65668         "autoupdate" on 2005-12-12.
65669
65670 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65671
65672         * modules/closeout (Depends-on): Remove atexit.
65673
65674 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65677         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65678
65679 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65682         __EXTENSIONS__ if this causes compilation to fail.  Problem
65683         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65684         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65685
65686 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65687
65688         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65689         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65691         All uses changed.
65692
65693 2006-01-26  Simon Josefsson  <jas@extundo.com>
65694
65695         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65696         prototype is visible on mingw32.
65697
65698         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65699         for mingw32.
65700
65701         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65702         mingw32).
65703
65704 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65707         attempt to open for write; this always fails, at least on POSIX
65708         hosts.  This reinstates the 2006-01-09 change, which was
65709         inadvertently removed.
65710
65711 2006-01-26  Bruno Haible  <bruno@clisp.org>
65712
65713         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65714         Reported by Paul Eggert.
65715
65716 2006-01-26  Bruno Haible  <bruno@clisp.org>
65717             Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         * lib/stdbool_.h (_Bool)
65720         [(! (defined __cplusplus || defined __BEOS__)
65721           && !defined __GNUC__
65722           && !(defined __HP_cc || defined __xlc__
65723                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65724                || defined __sgi))]:
65725         #define to signed char in these cases too; this simplifies
65726         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65727         etc., separately) and makes it more conservative.
65728
65729 2006-01-25  Simon Josefsson  <jas@extundo.com>
65730
65731         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65732         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65733         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65734
65735 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65736
65737         * lib/argp-namefrob.h: Bugfix. Remove stray #
65738
65739 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65742         so that we test the test.
65743         Check for yet another HP-UX cc bug involving *bool |= bool.
65744
65745 2006-01-25  Karl Berry  <karl@gnu.org>
65746
65747         * config/srclist.txt (vasnprintf.c): sync lost.
65748
65749 2006-01-25  Jim Meyering  <jim@meyering.net>
65750
65751         Sync from the stable (b5) branch of coreutils:
65752
65753         * lib/fts.c (fts_children): Don't let close() clobber errno from
65754         failed fchdir().
65755
65756         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65757         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65758         a dangling symlink.  That can also happen at least for ELOOP.
65759         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65760         FYI, this bug predates the inclusion of fts.c in coreutils.
65761
65762         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65763         in their own block, so pre-c99 compilers don't object.
65764
65765         Avoid the double-free (first in fts_read, second in fts_close) that
65766         would occur when an `active' directory is made inaccessible (e.g.,
65767         via chmod a-x) during a traversal.
65768         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65769         before returning.  Reproduce this failure by
65770         mkdir -p a/b; cd a; chmod a-x . b
65771         Reported by Stavros Passas.
65772
65773 2006-01-25  Jim Meyering  <jim@meyering.net>
65774
65775         * lib/fileblocks.c: Remove more useless parentheses.
65776         * lib/readutmp.h: Likewise.
65777
65778 2006-01-25  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65781         warnings.
65782         Reported by Paul Eggert.
65783
65784 2006-01-25  Bruno Haible  <bruno@clisp.org>
65785
65786         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65787         rid of a trap command. For Solaris sh.
65788         Reported by Mark D. Baushke <mdb@gnu.org>.
65789
65790 2006-01-24  Simon Josefsson  <jas@extundo.com>
65791
65792         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65793         Bruno.
65794
65795 2006-01-24  Karl Berry  <karl@gnu.org>
65796
65797         * config/srclist.txt (argp-namefrob.h): sync lost.
65798
65799 2006-01-24  Jim Meyering  <jim@meyering.net>
65800
65801         * modules/openat (Files): Add lib/intprops.h.
65802         From Mark D. Baushke.
65803
65804 2006-01-24  Jim Meyering  <jim@meyering.net>
65805
65806         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65807         Reported by Mark D. Baushke.
65808
65809 2006-01-24  Jim Meyering  <jim@meyering.net>
65810
65811         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65812
65813 2006-01-24  Bruno Haible  <bruno@clisp.org>
65814
65815         * modules/strnlen (Maintainer): Change from glibc to all.
65816
65817 2006-01-24  Bruno Haible  <bruno@clisp.org>
65818
65819         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65820         Patch by Paul Eggert.
65821
65822 2006-01-24  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65825         already has it.
65826         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65827         2005-11-26.
65828
65829         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65830         'signed char' to avoid problems with the built-in _Bool type.
65831         Reported by Paul Eggert on 2005-11-26.
65832
65833 2006-01-24  Bruno Haible  <bruno@clisp.org>
65834
65835         * gnulib-tool (func_import): Avoid constructing complicated sed
65836         expressions inside backquote.
65837         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65838
65839 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65840
65841         These changes imported from libc.
65842         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65843         test and two separate function calls.
65844         * lib/strndup.c (__strndup): Add libc_hidden_def.
65845
65846 2006-01-23  Simon Josefsson  <jas@extundo.com>
65847
65848         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65849         Remove the test_*_SOURCES variable: automake infers it by default.
65850         * modules/tls-tests: Likewise.
65851
65852 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         Work around porting bugs reported by Dieter in
65855         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65856         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65857         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65858         Include "getopt.h" first, to check interface.
65859         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65860         !HAVE_DECL_GETENV.
65861         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65862         (__strndup): Revert to K&R-style function dfns, the glibc style.
65863         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65864         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65865         Include strnlen.h first, to get prototype properly.
65866         (strnlen): Renamed from __strnlen.
65867         Remove weak alias.
65868
65869 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65870
65871         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65872
65873 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65874
65875         * config/srclist.txt: Adjust to reflect glibc reorganization.
65876         This affects only comments.
65877
65878 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65879
65880          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65881          Reported by Bruce Korb <bkorb@gnu.org>.
65882
65883 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65886         to pacify gcc -Wswitch-default.
65887
65888 2006-01-22  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65891         temporary buffer for sprintf, take into account the precision also
65892         for 'd', 'i', 'u', 'o', 'x', 'X'.
65893
65894 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65895
65896         * modules/argp-tests: New module
65897         * tests/test-argp.c: New file
65898         * tests/test-argp-2.sh: New file
65899
65900 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65901
65902         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65903         (__argp_base_name): Removed
65904         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65905         typo.
65906         (__argp_base_name): Provide macro definition or extern declaration
65907         depending on the configuration
65908
65909 2006-01-20  Simon Josefsson  <jas@extundo.com>
65910
65911         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65912
65913 2006-01-20  Simon Josefsson  <jas@extundo.com>
65914
65915         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65916
65917 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65920         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65921         Suggested by Bruno Haible.
65922
65923 2006-01-20  Karl Berry  <karl@gnu.org>
65924
65925         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65926         until changes propagate, I guess.
65927
65928 2006-01-19  Simon Josefsson  <jas@extundo.com>
65929
65930         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65931
65932 2006-01-19  Simon Josefsson  <jas@extundo.com>
65933
65934         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65935
65936 2006-01-19  Simon Josefsson  <jas@extundo.com>
65937
65938         * gnulib-tool: Set check_PROGRAMS.
65939
65940         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65941         modules/des-tests, modules/gc-arcfour-tests,
65942         modules/gc-arctwo-tests, modules/gc-des-tests,
65943         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65944         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65945         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65946         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65947         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65948         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65949         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65950         test_*_SOURCES.
65951
65952 2006-01-18  Simon Josefsson  <jas@extundo.com>
65953
65954         * modules/socklen (Depends-on): Depend on sys_socket.
65955
65956 2006-01-18  Simon Josefsson  <jas@extundo.com>
65957
65958         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65959         modules/des-tests, modules/gc-arcfour-tests,
65960         modules/gc-arctwo-tests, modules/gc-des-tests,
65961         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65962         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65963         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65964         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65965         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65966         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65967         $(EXEEXT) to automake TESTS variable, for mingw32.
65968
65969 2006-01-17  Simon Josefsson  <jas@extundo.com>
65970
65971         * modules/socklen (Include): Need sys/socket.h.
65972
65973 2006-01-17  Bruno Haible  <bruno@clisp.org>
65974
65975         * modules/ssize_t (Include): Add <sys/types.h>.
65976
65977 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65980         it's not portable and it doesn't work with cross-compiles.
65981         Problem reported by Bruno Haible.  Fix missing-$ typo in
65982         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65983         -zignore from being used with Sun's C compiler.
65984
65985 2006-01-12  Simon Josefsson  <jas@extundo.com>
65986
65987         * lib/base64.c: Fix warning, reported by Bruno Haible
65988         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65989
65990 2006-01-12  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/ldd: New file.
65993         * build-aux/ldd.sh.in: New file.
65994         * MODULES.html.sh (Support for building libraries and executables): Add
65995         ldd.
65996
65997 2006-01-12  Bruno Haible  <bruno@clisp.org>
65998
65999         * m4/ldd.m4: New file.
66000
66001 2006-01-12  Bruno Haible  <bruno@clisp.org>
66002
66003         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66004         endless loop while replacing $auxdir with build-aux.
66005
66006 2006-01-11  Simon Josefsson  <jas@extundo.com>
66007
66008         * lib/stdint_.h (SIZE_MAX): Add missing (.
66009
66010 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66011
66012         Sync from coreutils.
66013         * lib/md5.c: Fix commentary typos.
66014         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66015         * lib/md5.h (__attribute__): Remove; unused.
66016         * lib/sha1.c: Fix commentary to match md5 better.
66017         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66018         so that we don't need to worry about alignment.  All uses changed.
66019         This merges the 2005-10-28 md5 change into sha1.
66020
66021 2006-01-11  Jim Meyering  <jim@meyering.net>
66022
66023         Sync from coreutils.
66024         * lib/md5.c (OP): Fix spacing.
66025
66026 2006-01-11  Bruno Haible  <bruno@clisp.org>
66027
66028         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66029         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66030         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66031
66032 2006-01-11  Bruno Haible  <bruno@clisp.org>
66033
66034         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66035         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66036         the "early" section as well.
66037
66038 2006-01-11  Bruno Haible  <bruno@clisp.org>
66039
66040         Avoid "ar: no archive members specified" error on MacOS X.
66041         * gnulib-tool (func_modules_add_dummy): New function.
66042         (func_import, func_create_testdir): Invoke it.
66043
66044 2006-01-11  Bruno Haible  <bruno@clisp.org>
66045
66046         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66047         with $auxdir in AC_CONFIG_FILES statements.
66048
66049 2006-01-11  Bruno Haible  <bruno@clisp.org>
66050
66051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66052         Initialize also noinst_HEADERS to empty.
66053
66054 2006-01-11  Bruno Haible  <bruno@clisp.org>
66055
66056         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66057         variables.
66058         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66059         autoreconf.
66060
66061 2006-01-11  Bruno Haible  <bruno@clisp.org>
66062
66063         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66064         overridable by the user.
66065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66066
66067 2006-01-10  Simon Josefsson  <jas@extundo.com>
66068
66069         * modules/sys_socket: New file.
66070
66071 2006-01-10  Simon Josefsson  <jas@extundo.com>
66072
66073         * m4/sys_socket_h.m4: New file.
66074
66075 2006-01-10  Simon Josefsson  <jas@extundo.com>
66076
66077         * lib/socket_.h: New file.
66078
66079 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * modules/readutmp (Maintainer): Add myself.
66082
66083 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66086         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66087         People who are still concerned with buggy memcmp implementations
66088         can invoke gl_FUNC_MEMCMP themselves.
66089
66090 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * lib/regex_internal.h (BITSET_WORD_BITS):
66093         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66094         preprocessor mishandles large unsigned values as if they were signed.
66095         Problem reported by Claudio Fontana in
66096         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66097
66098 2006-01-10  Jim Meyering  <jim@meyering.net>
66099
66100         Avoid the double-free (first in fts_read, second in fts_close) that
66101         would occur when an `active' directory is made inaccessible (e.g.,
66102         via chmod a-x) during a traversal.
66103         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66104         before returning.  Reproduce this failure by
66105         mkdir -p a/b; cd a; chmod a-x . b
66106         Reported by Stavros Passas.
66107
66108         Sync from coreutils.
66109         * lib/sha1.c: Tweak grammar in a comment.
66110
66111 2006-01-10  Jim Meyering  <jim@meyering.net>
66112
66113         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66114         Patch by Joerg Sonnenberger.
66115
66116 2006-01-10  Bruno Haible  <bruno@clisp.org>
66117
66118         * modules/readutmp: Depend on module free.
66119         * modules/strtok_r: Depend on module restrict.
66120
66121 2006-01-10  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/gettext (configure.ac): Add an invocation of
66124         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66125
66126 2006-01-10  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66129         Reported by Werner Lemberg <wl@gnu.org>.
66130
66131 2006-01-10  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/localcharset.c: Update from GNU gettext.
66134
66135 2006-01-10  Bruno Haible  <bruno@clisp.org>
66136
66137         * lib/argp.h (__const): Remove macro. Use const instead.
66138         * lib/argp-fmtstream.h (__const): Likewise.
66139         * lib/glob_.h (__const): Remove macro.
66140         * lib/glob-libc.h: Use const instead of __const.
66141
66142 2006-01-10  Bruno Haible  <bruno@clisp.org>
66143
66144         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66145         variable.
66146         Needed to avoid an automake error regarding the 'gettext' module.
66147
66148 2006-01-09  Simon Josefsson  <jas@extundo.com>
66149
66150         * modules/inet_ntop (Depends-on): Add restrict.
66151
66152 2006-01-09  Simon Josefsson  <jas@extundo.com>
66153
66154         * modules/gc-rijndael-tests (License): Put under LGPL.
66155
66156         * modules/gc-des-tests (License): Likewise.
66157
66158         * modules/gc-arcfour-tests (License): Likewise.
66159
66160         * modules/gc-arctwo-tests (License): Likewise.
66161
66162         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66163
66164         * modules/gc-hmac-sha1-tests (Files): Likewise.
66165
66166         * modules/gc-hmac-md5-tests (License): Likewise.
66167
66168         * modules/gc-sha1-tests (License): Likewise.
66169
66170         * modules/gc-md5-tests (License): Likewise.
66171
66172         * modules/gc-md4-tests (License): Likewise.
66173
66174         * modules/gc-md2-tests (License): Likewise.
66175
66176         * modules/gc-tests (License): Likewise.
66177
66178         * modules/des-tests (License): Likewise.
66179
66180         * modules/md4-tests (License): Likewise.
66181
66182         * modules/md2-tests (License): Likewise.
66183
66184 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         Sync from coreutils:
66187
66188         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66189         * modules/lib-ignore: New file.
66190         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66191         chdir-safer.m4, lchmod.m4.
66192         * modules/openat: Add mkdirat.c, openat-priv.h.
66193
66194 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         Sync from coreutils.
66197         * m4/lib-ignore.m4: New file.
66198         * m4/lchmod.m4: New file.
66199
66200 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         Sync from coreutils.
66203         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66204         for write access: POSIX says that must fail.
66205         * lib/fts.c (diropen): Likewise.
66206         * lib/save-cwd.c (save_cwd): Likewise.
66207         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66208         well, for minor improvements on hosts that lack O_DIRECTORY.
66209         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66210         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66211         Fall back on chown if open failed with EACCES.
66212
66213         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66214         Report an error at compile-time if only a 1-second nominal clock
66215         resolution is found.
66216
66217         * lib/lchmod.h: New file.
66218         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66219         (make_dir_parents): Use lchown rather than chown, and
66220         lchmod rather than chmod.
66221
66222         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66223         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66224         "proc" reported by n0dalus.
66225
66226         * lib/mountlist.c: Include <limits.h>.
66227         (dev_from_mount_options)
66228         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66229         New function.  It no longer assumes "dev=" has the System V meaning
66230         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66231         (read_file_system_list)
66232         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66233         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66234         dev= in that case.
66235
66236         * lib/posixtm.h (PDS_PRE_2000): New macro.
66237         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66238         allow_century.  All usages changed.  Reject dates outside the range
66239         1969-1999 if PDS_PRE_2000 is used.
66240
66241 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         Sync from coreutils.
66244         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66245         (Time of day items): Mention the possibility of leap seconds.
66246         Problem reported by Dr. David Alan Gilbert.
66247
66248 2006-01-09  Jim Meyering  <jim@meyering.net>
66249
66250         Sync from coreutils.
66251
66252         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66253
66254         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66255
66256         * lib/modechange.c (mode_compile): Reject an invalid mode string
66257         that starts with an octal digit.  From Andreas Gruenbacher.
66258
66259         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66260         and dup to open_safer and dup_safer, respectively.
66261         (openat_permissive): Fix typo in comment.
66262
66263         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66264         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66265         (_): Remove; no longer needed.
66266         (openat): Renamed from rpl_openat; no need for rpl_openat
66267         since openat.h renames openat for us.
66268         Replace most of the body with a call to openat_permissive,
66269         to avoid duplicate code.
66270         Port to (probably hypothetical) environments were mode_t is
66271         wider than int.
66272         (openat_permissive): Require mode arg, so that we can check
66273         types better.  Put it just after flags.  Change cwd failure
66274         indicator from pointer-to-bool to pointer-to-errno-value.
66275         All callers changed.
66276         Invoke openat_save_fail and/or openat_restore_fail if
66277         cwd_errno is null, so that openat can call us.
66278         (openat_permissive, fdopendir, fstatat, unlinkat):
66279         Simplify errno handling to avoid some duplicate code,
66280         as it's OK to set errno on success.
66281         * lib/openat.h: Revamp code so that function macros depend on
66282         __OPENAT_PREFIX only, not also on AT_FDCWD.
66283         (openat_ro): Remove.  Caller changed to use openat_permissive.
66284         (openat_permissive): Now a macro, if not a function.
66285         (openat_restore_fail, openat_save_fail): Now always functions,
66286         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66287
66288         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66289         and openat.c.
66290         * lib/mkdirat.c: Include openat-priv.h.
66291         Remove definitions of macros defined therein.
66292         * lib/openat.c: Likewise.
66293
66294         * lib/mkdirat.c (mkdirat): New file and function.
66295         * lib/openat.h (mkdirat): Declare.
66296
66297         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66298
66299         * lib/openat.h (openat_permissive): Declare.
66300         (openat_ro): Define.
66301
66302         * lib/openat.c (EXPECTED_ERRNO): New macro.
66303         (openat_permissive): New function -- used in remove.c rewrite.
66304         (all functions): Set errno just before returning, only if there
66305         was an actual failure.
66306         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66307
66308         Emulate openat-family functions using Linux's procfs, if possible.
66309         Idea and some code based on Ulrich Drepper's glibc changes.
66310
66311         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66312         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66313         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66314         before falling back on save_cwd and restore_cwd.
66315         (fdopendir, fstatat, unlinkat): Likewise.
66316
66317         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66318         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66319
66320         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66321         as second argument to va_arg.  Otherwise, some versions of gcc
66322         warn that `if this code is reached, the program will abort'.
66323
66324 2006-01-09  Jim Meyering  <jim@meyering.net>
66325
66326         Sync from coreutils.
66327         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66328         Require openat-priv.h.
66329
66330 2006-01-09  Bruno Haible  <bruno@clisp.org>
66331
66332         * modules/strnlen (Include): Use strnlen.h.
66333
66334 2006-01-09  Bruno Haible  <bruno@clisp.org>
66335
66336         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66337
66338 2006-01-09  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/sysexit_.h (EX_OK): New macro.
66341         Suggested by Martin Lambers <marlam@marlam.de>.
66342
66343 2006-01-09  Bruno Haible  <bruno@clisp.org>
66344
66345         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66346         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66347
66348 2006-01-09  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66351         numbers.
66352
66353 2006-01-09  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66356         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66357         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66358         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66359
66360 2006-01-09  Bruno Haible  <bruno@clisp.org>
66361
66362         * build-aux/javacomp.sh.in: New file, moved from lib/.
66363         * modules/javacomp-script (Files): Update.
66364         (configure.ac): Add AC_CONFIG_FILES invocation.
66365         (EXTRA_DIST): Remove variable.
66366
66367         * build-aux/javaexec.sh.in: New file, moved from lib/.
66368         * modules/javaexec (Files): Update.
66369         (configure.ac): Add AC_CONFIG_FILES invocation.
66370         (EXTRA_DIST): Remove javaexec.sh.in.
66371
66372         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66373         * modules/csharpcomp-script (Files): Update.
66374         (configure.ac): Add AC_CONFIG_FILES invocation.
66375         (EXTRA_DIST): Remove variable.
66376
66377         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66378         * modules/csharpexec (Files): Update.
66379         (configure.ac): Add AC_CONFIG_FILES invocation.
66380         (EXTRA_DIST): Remove csharpexec.sh.in.
66381
66382 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66383
66384         Sync from coreutils.
66385
66386         Add POSIX ACL support
66387         * lib/acl.h (copy_acl, set_acl): Add declarations.
66388         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66389         systems other than Linux.
66390         (chmod_or_fchmod): New function: use fchmod when possible,
66391         and chmod otherwise.
66392         (file_has_acl): Add a POSIX ACL implementation, with a
66393         Linux-specific subcase.
66394         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66395         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66396         acls are unsupported.
66397         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66398         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66399         are unsupported.
66400
66401 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66402
66403         Sync from coreutils.
66404         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66405
66406 2006-01-07  Bruno Haible  <bruno@clisp.org>
66407
66408         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66409         gl_EARLY.
66410
66411 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66414         Problem reported for Mingw by Mark Junker.
66415
66416 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * README: Gnulib normally doesn't generate a tarball.
66419
66420 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66423         long int, not int, for nanosecond counts, so that people who are
66424         used to POSIX struct timespec won't be surprised.  Reported by Jim
66425         Meyering.
66426
66427 2005-12-28  Bruno Haible  <bruno@clisp.org>
66428
66429         * build-aux/config.rpath: Update from GNU gettext.
66430
66431 2005-12-16  Jim Meyering  <jim@meyering.net>
66432
66433         * modules/fprintftime: New module.
66434         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66435
66436 2005-12-16  Jim Meyering  <jim@meyering.net>
66437
66438         * m4/fprintftime.m4: New file.
66439
66440 2005-12-16  Jim Meyering  <jim@meyering.net>
66441
66442         * lib/fprintftime.c, lib/fprintftime.h: New files.
66443
66444 2005-12-15  Simon Josefsson  <jas@extundo.com>
66445
66446         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66447         new m4/socklen.m4.
66448
66449 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66450
66451         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66452         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66453
66454 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66455
66456         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66457         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66458         struct uparams is valid. Fall back to the default values if it is
66459         not.
66460
66461 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66462
66463         * modules/argp (Files): Add argp-pin.c
66464         (Depends-on): dirname
66465         (lib_SOURCES): Add argp-pin.c
66466
66467 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66468
66469         * m4/argp.m4:  Check if program_invocation_name and
66470         program_invocation_short_name are declared and define appropriate
66471         macros if they are not.
66472
66473 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66474
66475         * lib/argp-help.c (__argp_base_name): New function
66476         (__argp_short_program_name): Rewrite using __argp_base_name
66477         * lib/argp-namefrob.h: Define program_invocation_name and
66478         program_invocation_short_name if requested
66479         (__argp_base_name): Add prototype
66480         * lib/argp-parse.c (argp_def): Use gettext wrappers
66481         (argp_default_parser): Use __argp_base_name
66482         * lib/argp-pin.c: New file. Defines program_invocation_name and
66483         program_invocation_short_name on systems that lack them.
66484
66485 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66488         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66489         porting problem reported by Georg Schwarz in
66490         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66491
66492 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66495         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66496         porting problem reported by Georg Schwarz in
66497         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66498
66499 2005-12-05  Bruno Haible  <bruno@clisp.org>
66500
66501         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66502         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66503         Reported by Mark Junker <mjscod@gmx.de>.
66504
66505 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66508         Use implementation from Albert Chin, with some
66509         comments/corrections by Stepan Kasal and myself.
66510
66511 2005-12-02  Bruno Haible  <bruno@clisp.org>
66512
66513         * gnulib-tool (func_import): Accept GPLed build tool modules when
66514         --lgpl is given.
66515         * modules/csharpcomp-script: New file.
66516         * modules/csharpcomp: Depend on it.
66517         * modules/javacomp-script: New file.
66518         * modules/javacomp: Depend on it.
66519         Suggested by Simon Josefsson.
66520
66521 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66524         statement, to work around an HP-UX 10.20 compiler bug reported by
66525         Peter O'Gorman.
66526
66527 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * modules/savedir (Depends-on): Add openat.
66530
66531 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66534         (uintmax_t) [defined uintmax_t]: Do not declare.
66535         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66536         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66537         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66538         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66539         sake of portability to weird hosts that C allows (though we don't
66540         know of any practical examples).
66541
66542         * lib/savedir.h (fdsavedir): New decl.
66543         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66544         contains most of the former guts of savedir.
66545         (savedir): Use savedirstream.
66546         Include "openat.h".
66547
66548 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         * modules/obstack (Files): Add m4/ulonglong.m4.
66551         Problem reported by Davide Angelocola.
66552
66553 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66556         coreutils no longer futzes with rounding modes.
66557
66558 2005-11-14  Jim Meyering  <jim@meyering.net>
66559
66560         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66561         replacement of mkstemp.
66562
66563 2005-11-10  Simon Josefsson  <jas@extundo.com>
66564
66565         * lib/readline.c: Remove EOL.
66566
66567 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66568
66569         * modules/gethrxtime (Depends-on): Add gettime.
66570
66571 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66574         or gettimeofday; no longer needed.
66575
66576 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66579         time business.
66580         (gethrxtime) [! (HAVE_NANOUPTIME
66581         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66582         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66583         our own approximation.
66584
66585 2005-11-08  Eric Blake  <ebb9@byu.net>
66586
66587         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66588
66589 2005-11-08  Eric Blake  <ebb9@byu.net>
66590
66591         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66592
66593 2005-11-04  Bruno Haible  <bruno@clisp.org>
66594
66595         * gnulib-tool: Implement --update mode.
66596
66597 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         Fix porting problem reported by Theodoros V. Kalamatianos.
66600         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66601         Don't assume that futimes failing means we must fail.
66602
66603 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66606         variables to suggest the intended function of the PATH_MAX check.
66607
66608 2005-10-30  Kean Johnston  <jkj@sco.com>
66609
66610         Trivial changes to support SCO systems.
66611         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66612         as PATH_MAX.
66613         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66614         where __ptr is null when no I/O is pending.
66615
66616 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66619         leave errno alone.  Problem reported by Dmitry V. Levin.
66620
66621 2005-10-28  Simon Josefsson  <jas@extundo.com>
66622
66623         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66624         Test more.
66625
66626         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66627
66628         * modules/md2, modules/md2-tests: New files.
66629
66630 2005-10-28  Simon Josefsson  <jas@extundo.com>
66631
66632         * m4/inet_ntop.m4: More tests.
66633
66634         * m4/gc-md2.m4, md2.m4: New file.
66635
66636 2005-10-28  Simon Josefsson  <jas@extundo.com>
66637
66638         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66639         "restrict" keywords, as per POSIX.  Protect the function
66640         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66641         Don't use K&R prototypes.  Check the sprintf return values.
66642         Re-define EAFNOSUPPORT if not present.  Indent.
66643
66644         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66645         suggested by Bruno Haible <bruno@clisp.org>.
66646
66647         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66648
66649         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66650
66651         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66652         libgcrypt).
66653
66654         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66655
66656         * lib/md2.h, lib/md2.c: New files.
66657
66658 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66661         errno alone.  Problem reported by Frederic Jolliton.
66662
66663 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * modules/verify (License): Change from GPL to LGPL.  This is a
66666         tiny module and there are apparently near-equivalents that are
66667         under the BSD license.
66668
66669 2005-10-24  Simon Josefsson  <jas@extundo.com>
66670
66671         * modules/sha1: Relicense to LGPL.
66672
66673 2005-10-24  Simon Josefsson  <jas@extundo.com>
66674
66675         * lib/md4.h: Shrink buffer size, now that we changed the type.
66676
66677 2005-10-23  Simon Josefsson  <jas@extundo.com>
66678
66679         * gnulib-tool (func_import): Fix --tests-base.
66680
66681 2005-10-22  Simon Josefsson  <jas@extundo.com>
66682
66683         * modules/arcfour (Depends-on): Need stdint.
66684
66685 2005-10-22  Simon Josefsson  <jas@extundo.com>
66686
66687         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66688         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66689
66690 2005-10-22  Simon Josefsson  <jas@extundo.com>
66691
66692         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66693         suggested by Bruno Haible <bruno@clisp.org>.
66694
66695 2005-10-22  Simon Josefsson  <jas@extundo.com>
66696
66697         * lib/crc.h: Include stddef.h, for size_t.
66698
66699 2005-10-22  Simon Josefsson  <jas@extundo.com>
66700
66701         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66702         arcfour_context struct (simplify test vector testing in GNU
66703         Shishi).
66704
66705 2005-10-21  Simon Josefsson  <jas@extundo.com>
66706
66707         * modules/des, modules/des-tests: New files.
66708
66709         * modules/gc-des, modules/gc-des-tests: New files.
66710
66711         * tests/test-des.c, tests/test-gc-des.c: New file.
66712
66713 2005-10-21  Simon Josefsson  <jas@extundo.com>
66714
66715         * modules/arctwo, modules/arctwo-tests: New files.
66716
66717         * tests/test-arctwo.c: New file.
66718
66719         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66720
66721         * tests/test-gc-arctwo.c: New file.
66722
66723 2005-10-21  Simon Josefsson  <jas@extundo.com>
66724
66725         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66726         Bruno Haible <bruno@clisp.org>.
66727
66728         * m4/gc-des.m4: New file.
66729
66730 2005-10-21  Simon Josefsson  <jas@extundo.com>
66731
66732         * m4/arctwo.m4: New file.
66733
66734         * m4/gc-arctwo.m4: New file.
66735
66736 2005-10-21  Simon Josefsson  <jas@extundo.com>
66737
66738         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66739         block.
66740
66741 2005-10-21  Simon Josefsson  <jas@extundo.com>
66742
66743         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66744         <bruno@clisp.org>.
66745
66746         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66747
66748         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66749         Bruno Haible <bruno@clisp.org>.
66750
66751         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66752         <bruno@clisp.org>.
66753
66754 2005-10-21  Simon Josefsson  <jas@extundo.com>
66755
66756         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66757
66758 2005-10-21  Simon Josefsson  <jas@extundo.com>
66759
66760         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66761
66762 2005-10-21  Simon Josefsson  <jas@extundo.com>
66763
66764         * lib/des.h, lib/des.c: New files.
66765
66766         * lib/gc-gnulib.c: Support DES.c
66767
66768 2005-10-21  Simon Josefsson  <jas@extundo.com>
66769
66770         * lib/arctwo.h, lib/arctwo.c: New files.
66771
66772         * lib/gc-gnulib.c: Support ARCTWO.
66773
66774 2005-10-21  Simon Josefsson  <jas@extundo.com>
66775
66776         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66777         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66778
66779 2005-10-21  Simon Josefsson  <jas@extundo.com>
66780
66781         * gnulib-tool (func_import, func_create_testdir): Define automake
66782         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66783         Makefile.am snippet),
66784         suggested by Bruno Haible <bruno@clisp.org>.
66785
66786         * modules/gc (Makefile.am): Use it.
66787
66788 2005-10-21  Bruno Haible  <bruno@clisp.org>
66789
66790         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66791         patch.
66792
66793 2005-10-19  Simon Josefsson  <jas@extundo.com>
66794
66795         * tests/test-gc-rijndael.c: New file.
66796
66797         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66798
66799 2005-10-19  Simon Josefsson  <jas@extundo.com>
66800
66801         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66802         interface too.
66803
66804 2005-10-19  Simon Josefsson  <jas@extundo.com>
66805
66806         * tests/test-gc-arcfour.c: New file.
66807
66808         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66809
66810 2005-10-19  Simon Josefsson  <jas@extundo.com>
66811
66812         * modules/gc-md4, modules/gc-md4-tests: New file.
66813
66814         * tests/test-gc-md4.c: New file.
66815
66816 2005-10-19  Simon Josefsson  <jas@extundo.com>
66817
66818         * m4/gc-md4.m4: New file.
66819
66820 2005-10-19  Simon Josefsson  <jas@extundo.com>
66821
66822         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66823         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66824         <kasal@ucw.cz>.
66825
66826 2005-10-19  Simon Josefsson  <jas@extundo.com>
66827
66828         * m4/gc-arcfour.m4: New file.
66829
66830         * m4/gc-rijndael.m4: New file.
66831
66832 2005-10-19  Simon Josefsson  <jas@extundo.com>
66833
66834         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66835
66836 2005-10-19  Simon Josefsson  <jas@extundo.com>
66837
66838         * lib/gc-gnulib.c: Support ARCFOUR.
66839
66840 2005-10-19  Simon Josefsson  <jas@extundo.com>
66841
66842         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66843         support.
66844
66845         * lib/gc.h: Add ECB enum type.
66846
66847         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66848
66849 2005-10-18  Simon Josefsson  <jas@extundo.com>
66850
66851         * tests/test-md5.c: New file.
66852
66853         * modules/md5-tests: New file.
66854
66855 2005-10-18  Simon Josefsson  <jas@extundo.com>
66856
66857         * tests/test-md4.c: New file.
66858
66859         * modules/md4, modules/md4-tests: New files.
66860
66861 2005-10-18  Simon Josefsson  <jas@extundo.com>
66862
66863         * m4/md4.m4: New file.
66864
66865 2005-10-18  Simon Josefsson  <jas@extundo.com>
66866
66867         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66868
66869 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66870
66871         * gnulib-tool (func_create_testdir): Omit the second check whether
66872         BUILT_SOURCES in nonempty.
66873
66874 2005-10-17  Simon Josefsson  <jas@extundo.com>
66875
66876         * tests/test-rijndael.c: New file.
66877
66878 2005-10-17  Simon Josefsson  <jas@extundo.com>
66879
66880         * modules/sha1: Depend on stdint instead of md5.
66881
66882         * modules/md5: Depend on stdint, remove uint32_t.
66883
66884 2005-10-17  Simon Josefsson  <jas@extundo.com>
66885
66886         * modules/gc-sha1-tests: New file.
66887
66888         * tests/test-gc-sha1.c: New file.
66889
66890 2005-10-17  Simon Josefsson  <jas@extundo.com>
66891
66892         * m4/md5.m4: Remove call to uint32_t.m4.
66893
66894 2005-10-17  Simon Josefsson  <jas@extundo.com>
66895
66896         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66897
66898         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66899         md5.h.
66900
66901         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66902
66903         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66904
66905 2005-10-17  Simon Josefsson  <jas@extundo.com>
66906
66907         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66908
66909 2005-10-17  Simon Josefsson  <jas@extundo.com>
66910
66911         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66912
66913 2005-10-17  Simon Josefsson  <jas@extundo.com>
66914
66915         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66916
66917         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66918
66919 2005-10-17  Bruno Haible  <bruno@clisp.org>
66920
66921         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66922         that it can also be used in a test.
66923
66924 2005-10-16  Bruno Haible  <bruno@clisp.org>
66925
66926         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66927         TESTS_ENVIRONMENT, so that individual tests can augment it.
66928
66929         * gnulib-tool (func_create_testdir): Use an intermediate target for
66930         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66931         macros, like $(ALLOCA_H), which cannot be passed through the command
66932         line.
66933
66934 2005-10-15  Simon Josefsson  <jas@extundo.com>
66935
66936         * modules/rijndael-tests: New file.
66937
66938         * modules/rijndael: New file.
66939
66940 2005-10-15  Simon Josefsson  <jas@extundo.com>
66941
66942         * m4/rijndael.m4: New file.
66943
66944 2005-10-15  Simon Josefsson  <jas@extundo.com>
66945
66946         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66947
66948         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66949
66950 2005-10-14  Simon Josefsson  <jas@extundo.com>
66951
66952         * tests/test-arcfour.c: New file.
66953
66954         * modules/arcfour, modules/arcfour-tests: New files.
66955
66956 2005-10-14  Simon Josefsson  <jas@extundo.com>
66957
66958         * m4/arcfour.m4: New file.
66959
66960 2005-10-14  Simon Josefsson  <jas@extundo.com>
66961
66962         * lib/arcfour.h, lib/arcfour.c: New files.
66963
66964 2005-10-14  Roland McGrath  <roland@redhat.com>
66965
66966         Import from libc.  [BZ #1331]
66967         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66968         macro argument.
66969         Reported by Matej Vela <vela@debian.org>.
66970
66971 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66972
66973         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66974         include <wchar.h>; no longer needed.
66975
66976 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66979
66980 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66981         and  Ulrich Drepper  <drepper@redhat.com>
66982
66983         Import from libc.
66984         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66985         instead of inline stream orientation test and two separate
66986         function calls.  Pay no attention to USE_IN_LIBIO.
66987
66988 2005-10-13  Simon Josefsson  <jas@extundo.com>
66989
66990         * modules/gc-hmac-md5-tests: New file.
66991
66992         * tests/test-gc-hmac-sha1.c: New file.
66993
66994         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66995
66996         * modules/gc-hmac-md5-tests: New file.
66997
66998         * tests/test-gc-md5.c: New file.
66999
67000         * modules/gc-md5-tests: New file.
67001
67002 2005-10-13  Simon Josefsson  <jas@extundo.com>
67003
67004         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67005         Move memory allocation outside of loop.
67006
67007 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67008
67009         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67010         intermediate directory is in a read-only file system.  Problem
67011         reported by Eric Blake.
67012
67013 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67014
67015         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67016
67017 2005-10-12  Simon Josefsson  <jas@extundo.com>
67018
67019         * tests/test-hmac-sha1.c: New file.
67020
67021         * modules/hmac-sha1-tests: New file.
67022
67023         * modules/hmac-sha1: New file.
67024
67025 2005-10-12  Simon Josefsson  <jas@extundo.com>
67026
67027         * modules/gc-sha1: New file.
67028
67029 2005-10-12  Simon Josefsson  <jas@extundo.com>
67030
67031         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67032
67033         * tests/test-gc-pbkdf2-sha1.c: New file.
67034
67035 2005-10-12  Simon Josefsson  <jas@extundo.com>
67036
67037         * modules/gc-md5, modules/gc-hmac-md5: New files.
67038
67039         * modules/gc (Files): Remove md5, memxor and hmac files.
67040
67041 2005-10-12  Simon Josefsson  <jas@extundo.com>
67042
67043         * m4/gc-pbkdf2-sha1.m4: New file.
67044
67045         * m4/gc-hmac-sha1.m4: New file.
67046
67047         * m4/gc-sha1: New file.
67048
67049         * m4/hmac-sha1.m4: New file.
67050
67051 2005-10-12  Simon Josefsson  <jas@extundo.com>
67052
67053         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67054
67055         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67056
67057 2005-10-12  Simon Josefsson  <jas@extundo.com>
67058
67059         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67060         suggested by Bruno Haible <bruno@clisp.org>.
67061
67062 2005-10-12  Simon Josefsson  <jas@extundo.com>
67063
67064         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67065
67066 2005-10-12  Simon Josefsson  <jas@extundo.com>
67067
67068         * lib/gc-pbkdf2-sha1.c: New file.
67069
67070         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67071
67072 2005-10-12  Simon Josefsson  <jas@extundo.com>
67073
67074         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67075
67076         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67077
67078 2005-10-12  Simon Josefsson  <jas@extundo.com>
67079
67080         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67081         GC_USE_HMAC_MD5, respectively.
67082
67083         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67084         (gc_md5): Fix typo.
67085
67086         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67087
67088         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67089
67090         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67091
67092 2005-10-12  Bruno Haible  <bruno@clisp.org>
67093
67094         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67095         Reported by Stepan Kasal <kasal@ucw.cz>.
67096
67097 2005-10-11  Simon Josefsson  <jas@extundo.com>
67098
67099         * tests/test-crc.c: New file.
67100
67101         * modules/crc, modules/crc-tests: New files.
67102
67103 2005-10-11  Simon Josefsson  <jas@extundo.com>
67104
67105         * m4/crc.m4: New file.
67106
67107 2005-10-11  Simon Josefsson  <jas@extundo.com>
67108
67109         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67110
67111         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67112
67113         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67114
67115 2005-10-11  Simon Josefsson  <jas@extundo.com>
67116
67117         * lib/crc.h, lib/crc.c: New files.
67118
67119         * lib/gc.h (gc_hash_buffer): Add doc.
67120
67121 2005-10-11  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/c-strcasestr: New file.
67124         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67125
67126 2005-10-11  Bruno Haible  <bruno@clisp.org>
67127
67128         * modules/c-strcase: New file.
67129         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67130
67131 2005-10-11  Bruno Haible  <bruno@clisp.org>
67132
67133         * lib/strcasecmp.c: Include limits.h.
67134         (strcasecmp): Avoid integer overflow on exotic platforms.
67135         * lib/strncasecmp.c: Include limits.h.
67136         (strncasecmp): Avoid integer overflow on exotic platforms.
67137         Reported by Paul Eggert.
67138
67139 2005-10-11  Bruno Haible  <bruno@clisp.org>
67140
67141         * lib/c-strcasestr.h: New file, from GNU gettext.
67142         * lib/c-strcasestr.c: New file, from GNU gettext.
67143
67144 2005-10-11  Bruno Haible  <bruno@clisp.org>
67145
67146         * lib/c-strcase.h: New file, from GNU gettext.
67147         * lib/c-strcasecmp.c: New file, from GNU gettext.
67148         * lib/c-strncasecmp.c: New file, from GNU gettext.
67149
67150 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/mempcpy (License): GPL -> LGPL.
67153         * modules/strchrnul (License): Likewise.
67154         * modules/sysexits (License): Likewise.
67155
67156 2005-10-08  Simon Josefsson  <jas@extundo.com>
67157
67158         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67159
67160 2005-10-07  Simon Josefsson  <jas@extundo.com>
67161
67162         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67163
67164 2005-10-06  Simon Josefsson  <jas@extundo.com>
67165
67166         * tests/test-hmac-md5.c: New file.
67167
67168         * modules/hmac-md5-tests: New file.
67169
67170         * modules/hmac-md5: New file.
67171
67172 2005-10-06  Simon Josefsson  <jas@extundo.com>
67173
67174         * m4/hmac-md5.m4: New file.
67175
67176         * m4/memxor.m4: Require gl_C_RESTRICT.
67177
67178 2005-10-06  Simon Josefsson  <jas@extundo.com>
67179
67180         * lib/memxor.c (memxor): Avoid casts and warnings.
67181
67182 2005-10-06  Simon Josefsson  <jas@extundo.com>
67183
67184         * lib/hmac-md5.c: New file.
67185
67186         * lib/hmac.h: New file.
67187
67188 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67191         promotes to int, not unsigned int, to catch the AIX 5.3
67192         compiler bug.
67193
67194 2005-10-05  Simon Josefsson  <jas@extundo.com>
67195
67196         * modules/memxor: New file.
67197
67198         * modules/iconv (Files): Move config.rpath to havelib, it is used
67199         there.
67200
67201         * modules/havelib (Files): Add config.rpath.
67202
67203 2005-10-05  Simon Josefsson  <jas@extundo.com>
67204
67205         * m4/memxor.m4: New file.
67206
67207 2005-10-05  Simon Josefsson  <jas@extundo.com>
67208
67209         * lib/memxor.c (memxor): Fix compiler error.
67210
67211         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67212         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67213
67214         * lib/memxor.h, lib/memxor.c: New files.
67215
67216         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67217         we assume all systems have it, suggested by Jim Meyering
67218         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67219         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67220         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67221         same reasons.
67222
67223 2005-10-05  Simon Josefsson  <jas@extundo.com>
67224
67225         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67226
67227 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67230         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67231         needed, since the source code now assumes these .h files.
67232
67233 2005-10-05  Derek Price  <derek@ximbiot.com>
67234
67235         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67236
67237 2005-10-05  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/stdint (License): Change to LGPL.
67240
67241 2005-10-04  Simon Josefsson  <jas@extundo.com>
67242
67243         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67244         D. Baushke" <mdb@gnu.org>.
67245
67246 2005-10-04  Bruno Haible  <bruno@clisp.org>
67247
67248         * lib/verify.h (verify_true): Provide alternative definition for C++.
67249
67250 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67253         (SSIZE_MAX): New macro, if not already defined.
67254         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67255         than 2 GiB.
67256
67257 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67258
67259         Sync from coreutils.
67260         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67261         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67262         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67263         ULLONG_MAX doesn't work with 2.7.2.1.
67264
67265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67268         From Ben Pfaff.
67269
67270         * modules/exclude (Depends-on): Depend on verify.
67271         * modules/strtoimax (Depends-on): Likewise.
67272         * modules/utimecmp (Depends-on): Likewise.
67273
67274 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * lib/exclude.c: Include verify.h.
67277         (verify): Remove.  All callers changed to use verify.h's version.
67278         * lib/strtoimax.c: Likewise.
67279         * lib/utimecmp.c: Likewis.e
67280
67281         Sync from coreutils.
67282         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67283         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67284         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67285         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67286         bother returning ENOSYS if settimeofday or stime fails; just let
67287         them return whatever errno they want to return.
67288         * lib/utimens.c: Include unistd.h, for dup2.
67289         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67290         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67291
67292 2005-10-02  Jim Meyering  <jim@meyering.net>
67293
67294         Sync from coreutils.
67295         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67296         from glibc-2.2.5 that fails for read-only files.
67297
67298 2005-10-02  Jim Meyering  <jim@meyering.net>
67299
67300         Sync from coreutils.
67301         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67302         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67303         `#if HAVE_CONFIG_H'.
67304         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67305         Remove AT_FDCWD test.
67306         Do not consume the fd unless successful.
67307         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67308         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67309         block, so that we don't even try to compile it if settimeofday is
67310         available.  This works around a compilation failure on OSF1 V5.1,
67311         due to stime requiring a `long int*' while tv_sec is `int'.
67312
67313 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67314
67315         Sync from coreutils.
67316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67317         against `yes', rather than just testing for nonempty.
67318
67319 2005-10-01  Simon Josefsson  <jas@extundo.com>
67320
67321         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67322         and Darwin.
67323
67324         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67325         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67326         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67327         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67328         Check if struct addrinfo is declared.
67329
67330 2005-10-01  Simon Josefsson  <jas@extundo.com>
67331
67332         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67333         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67334         AI_* and EAI_* definitions.  Protect function declarations.
67335
67336 2005-10-01  Jim Meyering  <jim@meyering.net>
67337
67338         Sync from coreutils.
67339
67340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67341         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67342         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67344         in the inet and nsl libraries.  Required on Solaris 5.7.
67345
67346 2005-10-01  Jim Meyering  <jim@meyering.net>
67347
67348         Sync from coreutils.
67349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67350         in the inet and nsl libraries.  Required on Solaris 5.7.
67351
67352 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67353
67354         * lib/getdelim.c (getdelim): Remove unused variables.
67355
67356 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67359         so that the code works even with ancient cpp.  Portability problem
67360         with GCC 2.7.2.1 reported by Thomas M.Ott.
67361
67362 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * modules/regex (Depends-on): Add strcase.
67365
67366         * modules/gethostname (Licence): Change from GPL to LGPL, since
67367         gethostname.c is a trivial implementation of a standard library
67368         function.
67369         * modules/poll (License): Change from GPL to LGPL, since it's
67370         derived from LGPL code.
67371
67372 2005-09-27  Jim Meyering  <jim@meyering.net>
67373
67374         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67375         HAVE_CONFIG_H.
67376
67377         * lib/intprops.h (signed_type_or_expr__): Define.
67378         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67379         for unsigned types.
67380
67381 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * lib/verify.h (verify_expr): Remove, replacing with:
67384         (verify_true): New macro that returns true instead of void.
67385         (verify_type__): Remove.
67386         (verify): Use verify_true rather than verify_type__.
67387
67388 2005-09-26  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67391         is necessary.
67392         (lib_SOURCES): Remove mbchar.c.
67393         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67394         (Files): Add m4/mbrtowc.m4.
67395         * modules/mbiter: Likewise.
67396         * modules/mbuiter: Likewise.
67397
67398 2005-09-26  Bruno Haible  <bruno@clisp.org>
67399
67400         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67401         compile mbchar.c if they are not both present.
67402         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67403         * m4/mbiter.m4 (gl_MBITER): Likewise.
67404         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67405         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67406         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67407
67408 2005-09-25  Jim Meyering  <jim@meyering.net>
67409
67410         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67411         also uses socklen_t.
67412
67413 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * lib/utimens.c (ENOSYS): Define if not already defined.
67416         (futimens): Support having a null PATH if the file descriptor
67417         is nonnegative.
67418
67419         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67420         Remove.
67421         (__attribute): Define to empty unless GCC 3.1 or later.
67422         This works around a core dump on OpenBSD 3.4, which has GCC
67423         2.95.3, which dumps core when given __attribute__(()).  It also
67424         simplifies other tests, since we really don't want to bother with
67425         worrying about which ancient version of GCC supported what.
67426         Original problem reported by Yoann Vandoorselaere, with part of
67427         the fix suggested by Derek Price.
67428
67429 2005-09-24  Jim Meyering  <jim@meyering.net>
67430
67431         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67432         so we can once again use a positive bitfield width of 1 -- now we
67433         don't have to explain why we were using a bitfield width of 2.
67434
67435 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67438         and similarly for the other external symbols.  Problem reported
67439         by James Gallager.
67440
67441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67442         bug reported by Jim Meyering.
67443
67444         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67446         not needed, since socklen is a prerequisite module.
67447
67448 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67451         Problem reported by Eric Blake.
67452         (getaddrinfo): Initialize se so that it's not garbage.
67453         Redo internal storage allocation so that it doesn't make unportable
67454         assumptions about alignment.
67455         Fix a memory leak.
67456
67457         * lib/utimens.c (futimens): Use futimesat if available.
67458         Prefer it to futimes since it doesn't have the futimes bug.
67459
67460         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67461         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67462         Instead, declare a function that returns a pointer to an array,
67463         and use verify_type__ to declare the size of the array.
67464         Problem and germ of a solution reported by Bruno Haible.
67465         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67466         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67467
67468 2005-09-23  Jim Meyering  <jim@meyering.net>
67469
67470         Sync from coreutils.
67471         Correct build failure (socklen_t not defined) on at least
67472         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67474
67475 2005-09-23  Jim Meyering  <jim@meyering.net>
67476
67477         * modules/getaddrinfo (Depends-on): Add socklen.
67478
67479 2005-09-23  Bruno Haible  <bruno@clisp.org>
67480
67481         * tests/test-verify.c: New file.
67482
67483 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         Sync from coreutils.
67486
67487         * modules/argmatch (Depends-on): Add verify.
67488         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67489         unistd-safer.
67490         * modules/save-cwd (Depends-on): Likewise.
67491
67492         * modules/openat (Files): Add lib/openat-die.c.
67493         (Depends-on): Remove error, exitfail.
67494         Add dirname.
67495
67496         * modules/verify: New file.
67497         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67498         with "verify" module.
67499
67500 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         Sync from coreutils.
67503
67504         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67505         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67506         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67507         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67508         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67509         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67510         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67511         Don't bother checking for string.h, stdlib.h, unistd.h.
67512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67514         module's job.
67515         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67516         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67517
67518         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67519         (gl_GETDATE): Use it.
67520
67521         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67522
67523 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         Sync from coreutils.
67526
67527         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67528         stat-time.h.
67529         * lib/argmatch.h: Include verify.h
67530         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67531         (ARGMATCH_ASSERT): Remove; unused.
67532         * lib/canonicalize.c: Assume STDC_HEADERS.
67533         * lib/exclude.c: Include "strcase.h".
67534         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67535         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67536         and stdio-safer.h.
67537         (getusershell): Call fopen, not fopen_safer.
67538         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67539         Do not include unistd-safer.h.
67540         (save_cwd): Don't call fd_safer; no longer needed
67541         now that we include fcntl--.h.
67542
67543         * lib/getdate.y (relative_time): New type.
67544         (RELATIVE_TIME_0): New constant.
67545         (parser_control): Use relative_time instead of doing it ourselves.
67546         (%union): Add new relative_time rel member.
67547         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67548         Now typeless.
67549         (relunit, relunit_snumber): Now of type rel.
67550         (zone, rel, relunit, get_date): Adjust to above changes.
67551
67552         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67553         Do not include unistd-safer.h.
67554         (getloadavg): Don't call fd_safer; no longer needed
67555         now that we include fcntl--.h.
67556
67557         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67558         (make_dir_parents): Treat ENOSYS like EEXIST.
67559
67560         Improve quality of diagnostics on restore_cwd failure.
67561         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67562         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67563         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67564         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67565         each time through the loop.  Do not diagnose restore_cwd failure;
67566         that is the caller's job (and perhaps the caller does not care).
67567
67568         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67569         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67570         If the file already exists but is not a directory, don't bother
67571         to try to make its parents.
67572         Close potential file descriptor leak if we can't chdir("/") (!).
67573         Don't always return true if chdir($PWD) fails; return true only
67574         if the requested action was done successfully (except for the
67575         chdir($PWD)).
67576         Don't log final directory unless we actually made it.
67577         Refactor to avoid duplicate code to fix up permissions.
67578         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67579
67580         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67581         to make it a bit faster and (I hope) clearer.
67582         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67583         Fix bug in formats like %2N.
67584
67585         * lib/verify.h: New file.
67586
67587 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67588
67589         Sync from coreutils.
67590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67591
67592 2005-09-22  Jim Meyering  <jim@meyering.net>
67593
67594         Sync from coreutils.
67595
67596         * m4/lstat.m4 (gl_FUNC_LSTAT):
67597         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67598         Remove obsolete comment.
67599         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67600         * m4/xstrtod.m4: Likewise.
67601
67602         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67603
67604 2005-09-22  Jim Meyering  <jim@meyering.net>
67605
67606         Sync from coreutils.
67607
67608         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67609
67610         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67611         the .tm_year member, since otherwise gcc-4.0 would now warn about
67612         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67613
67614         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67615         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67616
67617         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67618         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67619         when run in a time zone for which daylight savings time is in effect
67620         for the starting date.
67621
67622         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67623         stop us from restricting permissions of just-created absolute-named
67624         directories.
67625         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67626         to restore initial working directory.
67627         * lib/mkdir-p.c (make_dir_parents): New parameter:
67628         different_working_dir, to tell caller if/when we change the working
67629         directory and are unable to return to the initial one.
67630         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67631         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67632         `return false'.  This fixes a bug introduced on 2004-07-30.
67633
67634         * lib/openat.c (fdopendir): Be sure to close the supplied
67635         file descriptor before returning.  This makes our replacement
67636         implementation a little closer to Solaris's, where fdopendir
67637         ties the file descriptor to the returned DIR* pointer.
67638         * lib/openat.c (unlinkat): New function.
67639         * lib/openat.h (unlinkat): Add prototype.
67640         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67641         (openat_restore_fail): Rename from openat_restore_die.
67642         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67643
67644         Provide an alternative to exiting immediately upon save_cwd or
67645         restore_cwd failure.  Now, an application can arrange e.g.,
67646         to perform a longjump in that case.
67647         * lib/openat.c: Include dirname.h.
67648         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67649         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67650         and openat_restore_die rather than calling error directly.
67651         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67652
67653         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67654         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67655         define.
67656
67657         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67658         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67659                             int utc, int nanoseconds);
67660         Background:
67661         date should not have to allocate a megabyte of virtual memory to
67662         handle a format argument like +%1048575T.  When implemented with
67663         strftime, it must allocate such a buffer, use strftime to fill it
67664         in, print it, then free it.
67665         With fprintftime, it simply prints everything and exits.
67666         With no need for memory allocation, that's one fewer way to fail.
67667         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67668         optional field width, not before, so we accept %9:z, not %:9z.
67669         (my_strftime): Be sure to use L_('x') for literals.
67670
67671         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67672         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67673         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67674         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67675         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67676         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67677         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67678         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67679         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67680         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67681         * lib/xgethostname.c, lib/xreadlink.c:
67682         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67683
67684         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67685         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67686         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67687         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67688         and don't include <sys/file.h>).
67689
67690 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67691
67692         Sync from coreutils.
67693
67694         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67695         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67696         [!LDAV_DONE]: Avoid unused variable warning.
67697
67698 2005-09-21  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/unicodeio.h (unicode_to_mb): New declaration.
67701
67702 2005-09-20  Derek Price  <derek@ximbiot.com>
67703
67704         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67705         getaddrinfo.h.
67706
67707 2005-09-20  Bruno Haible  <bruno@clisp.org>
67708
67709         * gnulib-tool: Remove trailing slashes from the values specified for
67710         --source-base, --m4-base, --tests-base, --aux-dir.
67711         Suggested by Simon Josefsson <jas@extundo.com>.
67712
67713 2005-09-20  Bruno Haible  <bruno@clisp.org>
67714
67715         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67716         func_modules_to_filelist, func_import, func_create_testdir): Make all
67717         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67718         change when gnulib-tool is invoked in a different locale.
67719
67720 2005-09-19  Simon Josefsson  <jas@extundo.com>
67721
67722         * m4/socklen.m4: Fix typo.
67723
67724 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67725
67726         Use a consistent style for including <config.h>.
67727         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67728         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67729         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67730         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67731         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67732         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67733         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67734         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67735         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67736         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67737         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67738         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67739         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67740         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67741         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67742         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67743         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67744         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67745         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67746         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67747         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67748         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67749         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67750         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67751         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67752         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67753         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67754         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67755         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67756         lib/xstrtoumax.c, lib/yesno.c:
67757         Standardize inclusion of config.h.
67758         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67759         lib/inttostr.h:  Removed inclusion of config.h from header files.
67760         * lib/inttostr.c:  Adjusted in-tree users.
67761         * lib/timespec.h: Remove superfluous warning to include config.h.
67762         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67763         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67764         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67765         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67766         config.h with HAVE_CONFIG_H.
67767
67768 2005-09-19  Jim Meyering  <jim@meyering.net>
67769
67770         * modules/pathmax (License): Change to LGPL.
67771
67772 2005-09-19  Derek Price  <derek@ximbiot.com>
67773
67774         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67775
67776 2005-09-19  Bruno Haible  <bruno@clisp.org>
67777
67778         * gnulib-tool (import): Provide default for --tests-base.
67779
67780 2005-09-19  Bruno Haible  <bruno@clisp.org>
67781
67782         * doc/quote.texi: New file, extracted from gnulib.texi.
67783         * doc/ctime.texi: New file, extracted from gnulib.texi.
67784         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67785         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67786         * doc/gnulib.texi: Include them.
67787
67788 2005-09-18  Bruno Haible  <bruno@clisp.org>
67789
67790         Portability fix.
67791         * gnulib-tool (func_readlink): New function.
67792         (func_ln_if_changed): Use it.
67793
67794 2005-09-18  Bruno Haible  <bruno@clisp.org>
67795
67796         * gnulib-tool: Support --with-tests also with --import.
67797         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67798         (func_import): Use variables $testsbase and $inctests. Emit a
67799         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67800         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67801         SUBDIRS += $testsdir.
67802         (func_create_testdir): Update.
67803
67804 2005-09-18  Bruno Haible  <bruno@clisp.org>
67805
67806         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67807         instead of $dry_run.
67808         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67809         (func_ln_if_changed): Don't handle dry-run here.
67810         (func_import): In dry-run mode, detect more precisely which actions
67811         would be performed, and don't use "...ing" verbs.
67812
67813 2005-09-18  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67816         (func_import): Use join on two temporary files instead of three nested
67817         loops, in order to determine which files are new or old.
67818
67819 2005-09-18  Bruno Haible  <bruno@clisp.org>
67820
67821         * gnulib-tool (func_import): Comment out code that spits out the
67822         new files with --dry-run.
67823
67824 2005-09-18  Bruno Haible  <bruno@clisp.org>
67825
67826         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67827
67828 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67829
67830         * lib/stat-time.h: New file.
67831         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67832         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67833         in a different way.
67834         (timespec_cmp): New function.
67835         * lib/utimecmp.c: Include stat-time.h.
67836         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67837         members exist, not on the obsolescent ST_MTIM_NSEC.
67838         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67839
67840 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67843
67844 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67845
67846         * MODULES.html.sh (File system functions): Add stat-time.
67847         * modules/stat-time: New file.
67848         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67849         is now done in a different way, by the stat-time module.
67850         * modules/utimecmp (Depends-on): Add stat-time.
67851
67852 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * m4/st_mtim.m4: Remove.  Superseded by...
67855         * m4/stat-time.m4: New file.
67856         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67857         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67858
67859 2005-09-15  Derek Price  <derek@ximbiot.com>
67860
67861         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67862
67863 2005-09-15  Derek Price  <derek@ximbiot.com>
67864
67865         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67866         * lib/regex_internal.c: Ditto, using this...
67867         (__GNUC_PREREQ): ...new macro.
67868         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67869         using...
67870         (__GNUC_PREREQ): ...this new macro.
67871
67872         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67873
67874 2005-09-15  Derek Price  <derek@ximbiot.com>
67875             Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67878         changes, consolidating in...
67879         * lib/regex_internal.h: ...this file.
67880
67881 2005-09-13  Jim Meyering  <jim@meyering.net>
67882
67883         * lib/canon-host.c: Filter through gnu indent and reword comments
67884         slightly.
67885         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67886
67887 2005-09-13  Derek Price  <derek@ximbiot.com>
67888
67889         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67890         failure.
67891         Reported by Jim Meyering  <jim@meyering.net>.
67892
67893 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67894
67895         * lib/base64.c: Typo.
67896         (base64_encode): Put b64str in initialized data section.
67897
67898 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Merge glibc and coreutils changes into gnulib, plus a few
67901         extra fixes.
67902         * lib/md5.c: Use #error rather than a string.
67903         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67904         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67905         (__attribute__): Define to empty for non recent-GCC.
67906         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67907         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67908         Renamed from their non-__ counterparts, with new macros replacing
67909         them if not _LIBC.  Add __THROW attribute.
67910         (rol): Remove.
67911         (struct md5_ctx): Align buffer if using GCC.
67912         * lib/sha1.h (struct sha1_ctx): Likewise.
67913         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67914         The old name was backwards.
67915         (NOTSWAP): Remove; not used.
67916         (rol): New macro, moved here from md5.h.
67917         (sha1_process_block): Remove a FIXME that doesn't make sense.
67918
67919 2005-09-12  Derek Price  <derek@ximbiot.com>
67920
67921         Return usable errors from canon-host.
67922         * lib/canon-host.h: New file.
67923         * lib/canon-host.c (canon_host): Wrap...
67924         (canon_host_r): ...this new function, which now relies exclusively on
67925         getaddrinfo.
67926         (ch_strerror): New function.
67927         (last_cherror): New global.
67928         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67929         interface.
67930         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67931         void *.
67932         (freeaddrinfo): Free ai->ai_canonname when set.
67933
67934 2005-09-12  Derek Price  <derek@ximbiot.com>
67935
67936         Make canon-host require getaddrinfo.
67937         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67938         AC_LIBSOURCE canon-host.h.  Call...
67939         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67940         gl_GETADDRINFO.
67941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67942
67943 2005-09-12  Derek Price  <derek@ximbiot.com>
67944
67945         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67946         LGPL.
67947         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67948
67949 2005-09-12  Derek Price  <derek@ximbiot.com>
67950
67951         * lib/gai_strerror.c: Include config.h when available.  Include
67952         getaddrinfo.h before other headers to test interface.
67953         Reported by Larry Jones <lawrence.jones@ugs.com>.
67954
67955 2005-09-12  Derek Price  <derek@ximbiot.com>
67956             Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * modules/glob (Files): Add glob-libc.h.
67959
67960 2005-09-12  Derek Price  <derek@ximbiot.com>
67961             Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67964         glob_.h, glob-libc.h.
67965         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67966
67967 2005-09-12  Derek Price  <derek@ximbiot.com>
67968             Paul Eggert  <eggert@cs.ucla.edu>
67969
67970         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67971         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67972         protecting things that should be done only in gnulib contexts.
67973         * lib/glob_.h: New file, containing only the glob things needed for
67974         gnulib.
67975         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67976         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67977         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67978         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67979         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67980         and to respect the namespace rules better.
67981
67982 2005-09-08  Simon Josefsson  <jas@extundo.com>
67983
67984         * modules/socklen: New file.
67985
67986 2005-09-08  Simon Josefsson  <jas@extundo.com>
67987
67988         * m4/socklen.m4: New file.
67989
67990 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * modules/utimens (Files): Add m4/utimbuf.m4, since
67993         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67994         Reported by Sergey Poznyakoff.
67995
67996 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67999         definitions, since that's the preferred style in glibc.
68000         Fix a minor spacing issue, and update copyright notice to match
68001         glibc's.
68002
68003 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68006
68007 2005-09-06  Simon Josefsson  <jas@extundo.com>
68008
68009         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68010         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68011
68012 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68015         warning.
68016
68017 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         * config/srclist.txt: Add glibc bug 1302.
68020
68021 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68022
68023         Change bitset word type from unsigned int to unsigned long int,
68024         as this has better performance on typical 64-bit hosts.
68025         Port bitset code to hosts with unusual word sizes.
68026         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68027         (build_collating_symbol):
68028         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68029         argument is a bitset.  This is merely a style issue, but it makes
68030         it clearer that an entire array is expected.
68031         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68032         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68033         Port to the case where bitset_word is not the same as unsigned int.
68034         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68035         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68036         Likewise.
68037         * lib/regexec.c (check_dst_limits_calc_pos_1,
68038         check_subexp_matching_top):
68039         (build_trtable, group_nodes_into_DFAstates):
68040         Likewise.
68041         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68042         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68043         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68044         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68045         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68046         * lib/regcomp.c (optimize_subexps, lower_subexp):
68047         Work even if bitset_word has holes in its bitwise representation.
68048         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68049         * lib/regexec.c (check_dst_limits_calc_pos_1,
68050         check_subexp_matching_top):
68051         Likewise.
68052         * lib/regex_internal.c (re_string_reconstruct):
68053         Don't assume UCHAR_MAX == 255.
68054         * lib/regex_internal.h (bitset_set_all): Likewise.
68055         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68056         All uses changed.
68057         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68058         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68059         All uses changed.
68060         (BITSET_WORD_MAX): New macro.
68061         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68062         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68063         (bitset_empty, bitset_copy):
68064         Prefer sizeof (bitset) to multiplying it out ourselves.
68065         (bitset_not_merge): Remove; unused.
68066         (bitset_contain): Return bool, not unsigned int with one bit on.
68067         All callers changed.
68068         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68069         alignment than re_node_set; do this by defining a new internal
68070         type struct dests_alloc and using it to allocate memory.
68071
68072 2005-09-05  Bruno Haible  <bruno@clisp.org>
68073
68074         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68075         links.
68076
68077 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68078
68079         * modules/size_max (Makefile.am): Add size_max.h
68080
68081 2005-09-04  Derek Price  <derek@ximbiot.com>
68082
68083         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68084
68085 2005-09-03  Simon Josefsson  <jas@extundo.com>
68086
68087         * gnulib-tool: Fix typo.
68088
68089 2005-09-03  Simon Josefsson  <jas@extundo.com>
68090
68091         * config/srclist.txt: Add glibc bug 1293.
68092
68093 2005-09-03  Derek Price  <derek@ximbiot.com>
68094
68095         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68096         From Larry Jones <lawrence.jones@ugs.com>.
68097
68098 2005-09-02  Simon Josefsson  <jas@extundo.com>
68099
68100         * modules/socklen: New file.
68101
68102 2005-09-02  Simon Josefsson  <jas@extundo.com>
68103
68104         * modules/havelib: New module.
68105
68106         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68107         Use havelib.
68108
68109 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         Check for arithmetic overflow when calculating sizes, to prevent
68112         some buffer-overflow issues.  These patches are conservative, in the
68113         sense that when I couldn't determine whether an overflow was possible,
68114         I inserted a run-time check.
68115         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68116         macros.
68117         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68118         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68119         (re_xnrealloc, re_x2nrealloc): New inline functions.
68120         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68121         parse_bracket_exp):
68122         (build_equiv_class, build_charclass): Check for arithmetic overflow
68123         in size expression calculations.
68124         * lib/regex_internal.c (re_string_realloc_buffers):
68125         (build_wcs_upper_buffer, re_node_set_add_intersect):
68126         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68127         (re_dfa_add_node, register_state): Likewise.
68128         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68129         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68130         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68131         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68132
68133 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68136         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68137
68138 2005-09-02  Bruno Haible  <bruno@clisp.org>
68139
68140         Support for lib vs. lib64 distinction on biarch platforms.
68141         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68142         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68144
68145 2005-09-02  Bruno Haible  <bruno@clisp.org>
68146
68147         * gnulib-tool (import): In the other first-use case, provide defaults
68148         as well.
68149
68150 2005-09-02  Bruno Haible  <bruno@clisp.org>
68151
68152         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68153         patches not yet found in the latest gettext release.
68154
68155 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68158         to avoid a collision with bits/local_lim.h in glibc.
68159         All uses changed.  Problem reported by Dmitry V. Levin in
68160         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68161
68162         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68163         bugs in int versus size_t comparisons.
68164         (re_string_context_at): Fix bug where the code assumed that
68165         Idx is signed.
68166
68167         Use bool where appropriate.
68168         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68169         All callers changed.
68170         (calc_eclosure_iter): Likewise, for ROOT arg.
68171         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68172         (build_charclass_op): Likewise, for NON_MATCH arg.
68173         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68174         (re_string_construct_common): Likewise, for ICASE arg.
68175         * lib/regexec.c (re_search_2_stub, re_search_stub):
68176         Likewise, for RET_LEN arg.
68177         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68178         (set_regs): Likewise, for FL_BACKTRACK arg.
68179         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68180         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68181         (calc_eclosure_iter, parse_bracket_exp):
68182         Use bool for internal variables that are booleans.
68183         * lib/regexec.c (re_search_internal, check_matching,
68184         proceed_next_node):
68185         (set_regs, build_sifted_states, sift_states_bkref):
68186         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68187         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68188         (find_collation_sequence_value):
68189         Likewise.
68190         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68191         (re_node_set_compare):
68192         Return bool, not int. All callers changed.
68193         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68194         (build_trtable, check_node_accept): Likewise.
68195         * lib/regex_internal.h: Include stdbool.h.
68196
68197         Fix bugs uncovered when converting to bool.
68198         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68199         failure instead of charging ahead blindly.
68200         * lib/regex_internal.c (register_state): Likewise.
68201         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68202         for freeing internal storage.
68203         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68204         bitset pieces used as boolean, to avoid undefined behavior
68205         on hosts that do int overflow checking.
68206
68207 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * config/srclist.txt: Add glibc bugs 1285-1287.
68210
68211 2005-09-01  Jim Meyering  <jim@meyering.net>
68212
68213         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68214         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68215         Require gl_STAT_MACROS, too.
68216
68217 2005-09-01  Bruno Haible  <bruno@clisp.org>
68218
68219         * gnulib-tool (import): In the first-use case, provide defaults.
68220
68221 2005-09-01  Bruno Haible  <bruno@clisp.org>
68222
68223         * gnulib-tool (func_import): Remove the .tmp files.
68224
68225 2005-09-01  Bruno Haible  <bruno@clisp.org>
68226
68227         * gnulib-tool (func_import): Fix handling of symbolic links.
68228
68229 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68232         old glibc regex code mishandles strings longer than 2**31 bytes.
68233         This patch fixes this when the regex code is used in gnulib
68234         (i.e., outside glibc).
68235
68236         This patch should not affect the use of the regex code inside
68237         glibc.  No doubt this problem also needs to be handled for glibc
68238         as well, but the result will be an incompatible change to the
68239         glibc ABI, and the old ABI will have to be supported too.  That
68240         can be the the subject for another patch.
68241
68242         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68243         governing whether the rest of this patch is active.  By default,
68244         the macro is disabled and the patch has no effect.
68245         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68246         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68247         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68248         (re_match_2, re_set_registers): Use the new types.
68249         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68250         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68251         New macros.
68252         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68253         (re_string_context_at, bin_tree_t, re_dfastate_t):
68254         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68255         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68256         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68257         (re_string_char_size_at, re_string_wchar_at):
68258         (re_string_elem_size_at):
68259         Use the new types and macros to port to 64-bit hosts.
68260         Use unsigned types for internal values, so that the code
68261         mostly works even for arrays larger than SSIZE_MAX.
68262         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68263         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68264         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68265         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68266         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68267         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68268         (calc_inveclosure, parse_dup_op, build_range_exp):
68269         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68270         (fetch_number, create_token_tree, mark_opt_subexp):
68271         Likewise.
68272         * lib/regex_internal.c (re_string_construct_common,
68273         create_ci_newstate):
68274         (create_cd_newstate, re_string_allocate, re_string_construct):
68275         (re_string_realloc_buffers, build_wcs_upper_buffer):
68276         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68277         (re_string_reconstruct, re_string_peek_byte_case):
68278         (re_string_fetch_byte_case, re_string_context_at):
68279         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68280         (re_node_set_init_copy, re_node_set_add_intersect):
68281         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68282         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68283         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68284         (re_acquire_state, re_acquire_state_context, register_state):
68285         Likewise.
68286         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68287         search_cur_bkref_entry):
68288         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68289         (re_search_internal, re_search_2_stub, re_search_stub)
68290         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68291         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68292         (update_cur_sifted_state, check_dst_limits):
68293         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68294         (check_subexp_limits, sift_states_bkref, merge_state_array):
68295         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68296         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68297         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68298         (expand_bkref_cache, check_node_accept_bytes):
68299         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68300         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68301         (acquire_init_state_context, check_halt_node_context):
68302         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68303         (sift_states_backward, clean_state_log_if_needed):
68304         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68305         (find_recover_state, transit_state_sb, transit_state_mb):
68306         (transit_state_bkref, build_trtable, match_ctx_clean):
68307         Likewise.
68308         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68309         to work around an assumption that REG_MISSING is negative.
68310
68311         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68312         (seek_collating_symbol_entry) [defined _LIBC]:
68313         (lookup_collation_sequence_value) [defined _LIBC]:
68314         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68315         Use prototypes rather than old-style function definitions.
68316         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68317         (transit_state_sb) [0]:
68318         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68319
68320         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68321         rm_eo.
68322
68323         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68324         (optimize_subexps, lower_subexp):
68325         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68326         since the signed shift might overflow.  Use 1u<<31 instead.
68327         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68328         Likewise.
68329         * lib/regexec.c (check_dst_limits_calc_pos_1,
68330         check_subexp_matching_top): Likewise.
68331
68332         * lib/regcomp.c (optimize_subexps, lower_subexp):
68333         Use CHAR_BIT rather than 8, for clarity.
68334         * lib/regexec.c (check_dst_limits_calc_pos_1):
68335         (check_subexp_matching_top): Likewise.
68336         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68337         have to worry about portability issues when shifting it left.
68338         Remove no-longer-needed test for table_size > 0.
68339         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68340         in a word, as the resulting behavior is undefined.
68341         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68342         in one case, a <= should have been an <, and in another case the
68343         whole test was missing.
68344         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68345         the standard name CHAR_BIT.
68346         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68347         this is not true on one's complement and signed-magnitude hosts.
68348
68349         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68350         next_last_offset.
68351         (struct re_dfa_t): Remove unused member states_alloc.
68352         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68353
68354 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68357         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68358         and large-file glibc and in 32-bit large-file Solaris.
68359
68360 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68363         lengths fit in regoff_t; this isn't true if regoff_t is the same
68364         width as size_t.
68365         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68366         (= START + RANGE) instead of RANGE.  This avoids overflow
68367         problems when regoff_t is the same width as size_t.
68368         All callers changed.
68369         (re_search_2_stub): Check for overflow when adding the
68370         sizes of the two strings.
68371         (re_search_stub): Check for overflow when adding START
68372         to RANGE; if it occurs, substitute the extreme value.
68373
68374 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68377
68378 2005-08-31  Jim Meyering  <jim@meyering.net>
68379
68380         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68381         a pointer-to-const.
68382         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68383         (register_state): Likewise.
68384         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68385         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68386         (group_nodes_into_DFAstates): Likewise.
68387
68388 2005-08-31  Jim Meyering  <jim@meyering.net>
68389
68390         * check-module: Add a FIXME comment.
68391
68392 2005-08-31  Eric Blake  <ebb9@byu.net>
68393
68394         * modules/unistd-safer (Files): Add unistd--.h.
68395         * modules/stdio-safer (Files): Add stdio--.h.
68396
68397 2005-08-31  Derek Price  <derek@ximbiot.com>
68398
68399         * lib/getdelim.c (getdelim): Return EOF on EOF.
68400         Reported by Larry Jones <lawrence.jones@ugs.com>.
68401
68402 2005-08-31  Bruno Haible  <bruno@clisp.org>
68403
68404         Avoid unnecessary diffs in the generated lib/Makefile.am.
68405         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68406         the generated files.
68407         (func_import): Don't set cmd.
68408
68409 2005-08-31  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/strstr.c: Include <stddef.h>, for NULL.
68412         * lib/strcasestr.c: Likewise.
68413         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68414
68415 2005-08-31  Bruno Haible  <bruno@clisp.org>
68416
68417         * gnulib-tool: New option --macro-prefix.
68418         (func_import): Use macro_prefix.
68419         (import): Handle option --macro-prefix.
68420
68421 2005-08-31  Bruno Haible  <bruno@clisp.org>
68422
68423         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68424         Also use new variables cached_lgpl, cached_libtool.
68425
68426 2005-08-31  Bruno Haible  <bruno@clisp.org>
68427
68428         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68429         always instantiating them.
68430
68431 2005-08-31  Bruno Haible  <bruno@clisp.org>
68432
68433         * gnulib-tool (func_import): Read the previous cached settings
68434         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68435         earlier added by gnulib but are now dropped. Warn when a gnulib file
68436         overwrites a non-gnulib file.
68437
68438 2005-08-31  Bruno Haible  <bruno@clisp.org>
68439
68440         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68441         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68442         projects that don't keep autogenerated files in CVS. Put into
68443         actioncmd only the specified modules, not the transitive closure.
68444
68445 2005-08-31  Bruno Haible  <bruno@clisp.org>
68446
68447         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68448         Create directories that shall be filled.
68449         (import): Don't look for gl_* macros in configure.ac. Recurse across
68450         all directories containing a gnulib-cache.m4 files, if meaningful.
68451
68452 2005-08-31  Bruno Haible  <bruno@clisp.org>
68453
68454         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68455         (import): Set seen_libtool when we see gl_LIBTOOL.
68456
68457 2005-08-31  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68460         declaration macro definitions from generated gnulib.m4.
68461
68462 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68463
68464         * lib/iconvme.h: Add prototype for iconv_alloc.
68465
68466 2005-08-29  Simon Josefsson  <jas@extundo.com>
68467
68468         * lib/iconvme.c: Fix errno.
68469
68470 2005-08-29  Bruno Haible  <bruno@clisp.org>
68471
68472         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68473         that it works when the directory contains spaces.
68474
68475 2005-08-29  Bruno Haible  <bruno@clisp.org>
68476
68477         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68478
68479 2005-08-29  Bruno Haible  <bruno@clisp.org>
68480
68481         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68482         Emit more advice.
68483
68484 2005-08-29  Bruno Haible  <bruno@clisp.org>
68485         and Stepan Kasal  <kasal@ucw.cz>
68486
68487         * check-module: If more parameters are given, check each of them
68488         separately; add more exceptions, as noted by Jim Meyering.
68489         (check_module): New procedure.
68490         (%exempt_header): Now contains all exceptions.
68491
68492 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68493
68494         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68495
68496 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68497
68498         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68499
68500 2005-08-28  Bruno Haible  <bruno@clisp.org>
68501
68502         * m4/gnulib-tool.m4: New file.
68503
68504 2005-08-27  Jim Meyering  <jim@meyering.net>
68505
68506         * modules/unistd-safer (Files): Add pipe-safer.c.
68507         * modules/fcntl-safer (Files): Add creat-safer.c.
68508
68509 2005-08-27  Jim Meyering  <jim@meyering.net>
68510
68511         * m4/stdlib-safer.m4: New file.  From coreutils.
68512         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68513         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68514         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68515         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68516         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68517
68518 2005-08-27  Jim Meyering  <jim@meyering.net>
68519
68520         * lib/fopen-safer.c: Merge minor changes from coreutils.
68521         * lib/dup-safer.c: Likewise.
68522         * lib/fd-safer.c: Likewise.
68523
68524         Merge from coreutils.
68525         * lib/stdio--.h: New file.
68526         * lib/stdlib--.h: New file.
68527         * lib/mkstemp-safer.c: New file.
68528
68529         GNU tar needs these.
68530         * lib/pipe-safer.c: New file.
68531         * lib/creat-safer.c: New file.
68532         * lib/fcntl--.h (creat): Define to creat_safer.
68533         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68534         * lib/unistd--.h (pipe): Define to pipe_safer.
68535         * lib/unistd-safer.h: Declare pipe_safer.
68536
68537 2005-08-26  Simon Josefsson  <jas@extundo.com>
68538
68539         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68540         Haible <bruno@clisp.org>.
68541
68542 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * lib/regex_internal.h: Remove all references to
68545         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68546         or better.
68547         (bitset_not, bitset_merge, bitset_not_merge):
68548         (bitset_mask, re_string_allocate, re_string_construct):
68549         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68550         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68551         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68552         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68553         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68554         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68555         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68556         (re_acquire_state_context):
68557         Remove unnecessary forward decls.
68558         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68559         Put __attribute at function definition,
68560         now that the function decl has been removed.
68561         * lib/regex_internal.c (re_string_peek_byte_case):
68562         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68563         Likewise.
68564
68565 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68566
68567         * m4/regex.m4: Add AC_PREREQ(2.50).
68568         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68569
68570 2005-08-25  Simon Josefsson  <jas@extundo.com>
68571
68572         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68573         __fsetlocking.
68574
68575 2005-08-25  Simon Josefsson  <jas@extundo.com>
68576
68577         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68578         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68579         GLIBC specific code.
68580
68581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         Make regex safe for g++.  This fixes one real bug (an "err"
68584         that should have been "*err").  g++ problem reported by
68585         Sam Steingold.
68586         * lib/regex_internal.h (re_calloc): New macro, consistent with
68587         re_malloc etc.  All callers of calloc changed to use re_calloc.
68588         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68589         not int.  All callers changed.
68590         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68591         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68592         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68593         (find_recover_state): Change "err" to "*err"; this fixes what
68594         appears to be a real bug.
68595         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68596         versus int.
68597
68598 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * modules/regex (Depends-on): Add malloc, since the code
68601         assumes that !malloc(0) means failure.
68602
68603 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68606
68607         alloca modernization/simplification for regex.
68608         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68609         needs to be at the start of the file, and can be moved into
68610         regex_internal.h and simplified.
68611         * lib/regex_internal.h: Include <alloca.h>.
68612         (__libc_use_alloca) [!defined _LIBC]: New macro.
68613         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68614         now works outside glibc.
68615
68616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * config/srclist.txt: Add glibc bugs 1241, 1245.
68619
68620 2005-08-25  Jim Meyering  <jim@meyering.net>
68621
68622         * lib/open-safer.c: Include <config.h>.
68623         Otherwise, we'd lose LARGEFILE support in any file using
68624         e.g. "fcntl--.h"
68625
68626 2005-08-25  Bruno Haible  <bruno@clisp.org>
68627
68628         * m4/minmax.m4: Require autoconf 2.52.
68629         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68630         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68631         alternatives of translit over the alphabet.
68632         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68633
68634 2005-08-24  Simon Josefsson  <jas@extundo.com>
68635
68636         * tests/test-getpass.c: New file.
68637
68638 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68641         for GNU regex features.
68642
68643 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68644
68645         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68646         * lib/regex.h (regerror): Likewise.
68647
68648         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68649         requires this.  (The code never needed it.)
68650
68651         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68652         All uses of recently-renamed identifiers changed to use the new,
68653         POSIX-compliant names.  The code will build and run just fine
68654         without these changes, but it's better to eat our own dog food
68655         and use the standard-conforming names.
68656
68657         * lib/regex.h: Fix a multitude of POSIX name space violations.
68658         These changes have an effect only for programs that define
68659         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68660         do not change anything for programs compiled in the normal way.
68661         Also, there is no effect on the ABI.
68662
68663         (_REGEX_SOURCE): New macro.
68664         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68665         defined and _GNU_SOURCE is not; this fixes a name space violation.
68666
68667         Rename the following macros to obey POSIX requirements.
68668         The old names are still visible as macros if _REGEX_SOURCE is defined.
68669         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68670         RE_BACKSLASH_ESCAPE_IN_LISTS.
68671         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68672         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68673         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68674         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68675         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68676         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68677         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68678         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68679         (REG_INTERVALS): renamed from RE_INTERVALS.
68680         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68681         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68682         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68683         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68684         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68685         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68686         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68687         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68688         RE_UNMATCHED_RIGHT_PAREN_ORD.
68689         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68690         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68691         (REG_DEBUG): renamed from RE_DEBUG.
68692         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68693         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68694         unusual, since we can't clash with the POSIX REG_ICASE.
68695         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68696         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68697         (REG_NO_SUB): renamed from RE_NO_SUB.
68698         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68699         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68700         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68701         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68702         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68703         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68704         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68705         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68706         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68707         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68708         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68709         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68710         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68711         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68712         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68713         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68714         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68715         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68716         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68717         (REG_FIXED): Renamed from REGS_FIXED.
68718         (REG_NREGS): Renamed from RE_NREGS.
68719
68720         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68721         of other REG_* macros, since POSIX says the user is allowed to
68722         #undef these macros selectively.
68723
68724         (reg_errcode_t): Update comment stating what other tables need
68725         to be consistent.
68726
68727         Rename the following enum values to obey POSIX requirements.
68728         The old names are still visible as macros.
68729         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68730         is not defined, since GNU is supposed to be a superset of POSIX as
68731         much as possible, and since we want reg_errcode_t to be a signed
68732         type for implementation consistency.
68733         (_REG_NOERROR): Renamed from REG_NOERROR.
68734         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68735         (_REG_BADPAT): Renamed from REG_BADPAT.
68736         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68737         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68738         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68739         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68740         (_REG_EBRACK): Renamed from REG_EBRACK.
68741         (_REG_EPAREN): Renamed from REG_EPAREN.
68742         (_REG_EBRACE): Renamed from REG_EBRACE.
68743         (_REG_BADBR): Renamed from REG_BADBR.
68744         (_REG_ERANGE): Renamed from REG_ERANGE.
68745         (_REG_ESPACE): Renamed from REG_ESPACE.
68746         (_REG_BADRPT): Renamed from REG_BADRPT.
68747         (_REG_EEND): Renamed from REG_EEND.
68748         (_REG_ESIZE): Renamed from REG_ESIZE.
68749         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68750         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68751         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68752         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68753         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68754
68755         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68756         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68757         changed.  But support the old name if the new one is not defined
68758         and if _REGEX_SOURCE.
68759
68760         Change the following member names in struct re_pattern_buffer.
68761         The old names are still supported if !_REGEX_SOURCE.
68762         The new names are always supported, regardless of _REGEX_SOURCE.
68763         (re_buffer): Renamed from buffer.
68764         (re_allocated): Renamed from allocated.
68765         (re_used): Renamed from used.
68766         (re_syntax): Renamed from syntax.
68767         (re_fastmap): Renamed from fastmap.
68768         (re_translate): Renamed from translate.
68769         (re_can_be_null): Renamed from can_be_null.
68770         (re_regs_allocated): Renamed from regs_allocated.
68771         (re_fastmap_accurate): Renamed from fastmap_accurate.
68772         (re_no_sub): Renamed from no_sub.
68773         (re_not_bol): Renamed from not_bol.
68774         (re_not_eol): Renamed from not_eol.
68775         (re_newline_anchor): Renamed from newline_anchor.
68776
68777         Change the following member names in struct re_registers.
68778         The old names are still supported if !_REGEX_SOURCE.
68779         The new names are always supported, regardless of _REGEX_SOURCE.
68780         (rm_num_regs): Renamed from num_regs.
68781         (rm_start): Renamed from start.
68782         (rm_end): Renamed from end.
68783
68784         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68785         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68786         Prepend __ to parameter names.
68787
68788         Undo yesterday's changes.
68789
68790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68793         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68794         lib/regex.c.
68795
68796 2005-08-24  Jim Meyering  <jim@meyering.net>
68797
68798         Sync from coreutils.
68799         * m4/fcntl-safer.m4: New file.
68800
68801         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68802         and object files for this module.
68803
68804 2005-08-24  Jim Meyering  <jim@meyering.net>
68805
68806         Sync from coreutils.
68807         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68808
68809 2005-08-24  Jim Meyering  <jim@meyering.net>
68810
68811         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68812         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68813
68814 2005-08-24  Jim Meyering  <jim@meyering.net>
68815
68816         * modules/fcntl-safer: New module.
68817         * modules/fts (Depends-on): Add fcntl-safer.
68818         * MODULES.html.sh (File descriptor based Input/Output):
68819         Add fcntl-safer.
68820
68821 2005-08-24  Bruno Haible  <bruno@clisp.org>
68822
68823         Support for unit test modules.
68824         * modules/README: Mention tests modules.
68825         * modules/TEMPLATE-TESTS: New file.
68826         * gnulib-tool: New options --extract-tests-module, --with-tests and
68827         --tests-base (unused for the moment).
68828         (testsbase, inctests): New variables.
68829         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68830         (func_verify_module): Exclude TEMPLATE-TESTS.
68831         (func_verify_nontests_module, func_verify_tests_module): New functions.
68832         (func_get_dependencies): Add implicit dependency for tests modules.
68833         (func_get_tests_module): New function.
68834         (func_modules_transitive_closure): When --with-tests was specified,
68835         include the unit tests as well, unless explicitly avoided.
68836         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68837         (func_emit_tests_Makefile_am): New function.
68838         (func_create_testdir): When --with-tests was specified, emit a
68839         tests/ directory.
68840         * MODULES.html.sh (Future developments): Update.
68841
68842 2005-08-24  Bruno Haible  <bruno@clisp.org>
68843
68844         * modules/tls-tests: New file.
68845         * tests/test-tls.c: New file, from GNU gettext.
68846
68847 2005-08-24  Bruno Haible  <bruno@clisp.org>
68848
68849         * modules/lock-tests: New file.
68850         * tests/test-lock.c: New file, from GNU gettext.
68851
68852 2005-08-24  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/lock.h: Add multiple inclusion guard.
68855         * lib/tls.h: Add multiple inclusion guard.
68856
68857 2005-08-24  Bruno Haible  <bruno@clisp.org>
68858
68859         * gnulib-tool: Add support for the --aux-dir option to
68860         --create-testdir, --create-megatestdir, --test, --megatest.
68861         (func_create_testdir, func_create_megatestdir): Optionally emit a
68862         AC_CONFIG_AUX_DIR directive.
68863         (create-testdir, create-megatestdir, test, megatest): Provide a
68864         default value for $auxdir.
68865
68866 2005-08-24  Bruno Haible  <bruno@clisp.org>
68867
68868         * gnulib-tool (import): Use compound statement instead of subshell
68869         where possible.
68870
68871 2005-08-24  Bruno Haible  <bruno@clisp.org>
68872
68873         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68874
68875 2005-08-24  Bruno Haible  <bruno@clisp.org>
68876
68877         * gnulib-tool (func_version): Update.
68878
68879 2005-08-24  Bruno Haible  <bruno@clisp.org>
68880
68881         * gnulib-tool (func_import, func_create_testdir,
68882         func_create_megatestdir): Quote all autoconf macro arguments.
68883
68884 2005-08-24  Bruno Haible  <bruno@clisp.org>
68885
68886         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68887         option --force, because --force causes the aclocal.m4 of each
68888         subdirectory to be newer than the corresponding config.h.in.
68889
68890 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68893         All contents moved to gl_REGEX.
68894         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68895         assume that it does.
68896
68897 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * lib/regex.h (REG_NOSYS)
68900         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68901         Define, since POSIX requires it as of 2001.
68902         (_REG_ENOSYS)
68903         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68904         New private symbol, used to keep the enum signed in all cases.
68905         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68906         Youngman in
68907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68908
68909         * lib/regex_internal.c (re_string_skip_chars, register_state):
68910         (calc_state_hash):
68911         Remove forward decls; no longer needed now that we use prototypes.
68912         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68913         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68914         (clean_state_log_if_needed): Likewise.
68915
68916 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         * config/srclist.txt: Add glibc bugs 1231-1233.
68919
68920 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         Fix problems reported by Sam Steingold in
68923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68924         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68925         assumed that reg_errcode_t is a signed type, which is not
68926         necessarily true if _XOPEN_SOURCE is not defined.
68927         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68928         since some compilers warn about it otherwise.
68929
68930 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68933         (init_word_char, create_initial_state, duplicate_node_closure):
68934         (fetch_token, peek_token_bracket, build_range_exp):
68935         (build_collating_symbol): Remove forward decls; no longer needed
68936         now that we use prototypes.
68937
68938         * lib/regcomp.c:
68939         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68940         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68941         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68942         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68943         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68944         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68945         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68946         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68947         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68948         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68949         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68950         (build_charclass, build_charclass_op, fetch_number, create_tree):
68951         (create_token_tree, mark_opt_subexp, duplicate_tree):
68952         Use prototypes rather than old-style definitions.
68953
68954         * lib/regex_internal.c:
68955         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68956         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68957         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68958         (re_string_reconstruct, re_string_peek_byte_case):
68959         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68960         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68961         (re_node_set_init_copy, re_node_set_add_intersect):
68962         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68963         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68964         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68965         (re_acquire_state, re_acquire_state_context, register_state):
68966         (create_ci_newstate, create_cd_newstate, free_state):
68967         Likewise.
68968         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68969         re_search_2):
68970         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68971         (re_search_internal, prune_impossible_nodes):
68972         (acquire_init_state_context, check_matching, static):
68973         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68974         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68975         (update_regs, sift_states_backward, build_sifted_states):
68976         (clean_state_log_if_needed, merge_state_array):
68977         (update_cur_sifted_state, add_epsilon_src_nodes):
68978         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68979         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68980         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68981         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68982         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68983         (check_arrival, check_arrival_add_next_nodes):
68984         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68985         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68986         (check_node_accept_bytes, check_node_accept, extend_buffers):
68987         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68988         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68989         (sift_ctx_init):
68990         Likewise.
68991
68992         * lib/regex_internal.h:
68993         (re_string_allocate, re_string_construct, re_string_reconstruct):
68994         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68995         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68996         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68997         (re_string_context_at, re_string_peek_byte_case):
68998         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68999         is defined, since we now use prototypes always.
69000
69001         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69002         C89 or better.  All uses removed.
69003
69004 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69005
69006         * config/srclist.txt: Add glibc bugs 1220-1227.
69007
69008 2005-08-20  Jim Meyering  <jim@meyering.net>
69009
69010         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69011         of unused local, dfa.
69012
69013 2005-08-20  Bruno Haible  <bruno@clisp.org>
69014
69015         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69016
69017 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69020         (re_node_set_insert_last, re_dfa_add_node):
69021         Rename local variables to avoid GCC shadowing warnings.
69022
69023 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69026         [defined lint]: Suppress bogus uninitialized-variable warnings.
69027
69028         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69029         and let the caller return REG_ESPACE if out of space.  This
69030         removes an uninitialied-variable warning with GCC 4.0.1, and also
69031         avoids taking the address of a local variable.  All callers
69032         changed.
69033
69034 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69037         $LIBCSRC/posix/regexec.c.
69038         Add glibc bug 1217 for regcomp.c.
69039
69040 2005-08-19  Jim Meyering  <jim@meyering.net>
69041
69042         * lib/regexec.c (proceed_next_node): Redo local variables to
69043         avoid GCC shadowing warnings.
69044
69045 2005-08-18  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/strstr.c (strstr): Fix return value in multibyte case.
69048         * lib/strcasestr.c (strcasestr): Likewise.
69049
69050 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69051
69052         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69053
69054 2005-08-17  Jim Meyering  <jim@meyering.net>
69055
69056         Make the %s format (seconds since the epoch) work for a negative
69057         number and when used with a zero-padded field width, e.g. %015s.
69058
69059         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69060         label so that it precedes the code to set `digits'.  Otherwise,
69061         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69062         print `00-22'.  Now, it prints `-0022', as it should.
69063
69064 2005-08-17  Bruno Haible  <bruno@clisp.org>
69065
69066         * modules/strstr (Files): Add m4/mbrtowc.m4.
69067         (Depends-on): Add mbuiter.
69068
69069 2005-08-17  Bruno Haible  <bruno@clisp.org>
69070
69071         * modules/strcasestr: New file.
69072         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69073         strcasestr.
69074
69075 2005-08-17  Bruno Haible  <bruno@clisp.org>
69076
69077         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69078
69079 2005-08-17  Bruno Haible  <bruno@clisp.org>
69080
69081         * modules/mbuiter: New file.
69082         * MODULES.html.sh (Extended multibyte and wide character utilities):
69083         Add mbuiter.
69084
69085 2005-08-17  Bruno Haible  <bruno@clisp.org>
69086
69087         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69088         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69089
69090 2005-08-17  Bruno Haible  <bruno@clisp.org>
69091
69092         * m4/strcasestr.m4: New file.
69093
69094 2005-08-17  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69097         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69098
69099 2005-08-17  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/strcasestr.h: New file.
69102         * lib/strcasestr.c: New file.
69103
69104 2005-08-17  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/strcasecmp.c: Use mbuiter.h.
69107
69108 2005-08-17  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/mbuiter.h: New file.
69111
69112 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69115         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69116         and gl_GETOPT are both invoked via different paths (as happens
69117         with GNU tar CVS because it uses both argp and getopt), the former
69118         wins.
69119
69120 2005-08-16  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/tls: New file.
69123         * MODULES.html.sh (Multithreading): Add tls.
69124
69125 2005-08-16  Bruno Haible  <bruno@clisp.org>
69126
69127         * modules/strnlen1: New file.
69128         * MODULES.html.sh (String handling): Add strnlen1.
69129
69130 2005-08-16  Bruno Haible  <bruno@clisp.org>
69131
69132         * modules/strcase (Files): Add m4/mbrtowc.m4.
69133         (Depends-on): Add strnlen1, mbchar.
69134
69135 2005-08-16  Bruno Haible  <bruno@clisp.org>
69136
69137         * modules/mbiter: New file.
69138         * MODULES.html.sh (Extended multibyte and wide character utilities):
69139         Add mbiter.
69140
69141 2005-08-16  Bruno Haible  <bruno@clisp.org>
69142
69143         * modules/mbfile: New file.
69144         * MODULES.html.sh (Extended multibyte and wide character utilities):
69145         Add mbfile.
69146
69147 2005-08-16  Bruno Haible  <bruno@clisp.org>
69148
69149         * modules/mbchar: New file.
69150         * MODULES.html.sh (Extended multibyte and wide character utilities):
69151         New section.
69152
69153 2005-08-16  Bruno Haible  <bruno@clisp.org>
69154
69155         * m4/tls.m4: New file, from GNU gettext.
69156
69157 2005-08-16  Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69160         always.
69161         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69162
69163 2005-08-16  Bruno Haible  <bruno@clisp.org>
69164
69165         * m4/mbiter.m4: New file.
69166
69167 2005-08-16  Bruno Haible  <bruno@clisp.org>
69168
69169         * m4/mbfile.m4: New file.
69170
69171 2005-08-16  Bruno Haible  <bruno@clisp.org>
69172
69173         * m4/mbchar.m4: New file.
69174
69175 2005-08-16  Bruno Haible  <bruno@clisp.org>
69176
69177         * lib/tls.h: New file, from GNU gettext.
69178         * lib/tls.c: New file, from GNU gettext.
69179
69180 2005-08-16  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/strnlen1.h: New file.
69183         * lib/strnlen1.c: New file.
69184
69185 2005-08-16  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69188         (mbi_init): Update.
69189         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69190         NUL byte, not after it.
69191
69192 2005-08-16  Bruno Haible  <bruno@clisp.org>
69193
69194         * lib/strcase.h (strcasecmp): Add note in comments.
69195         * lib/strncasecmp.c: Use code from strcasecmp.c.
69196         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69197         (strcasecmp): Work correctly in multibyte locales.
69198
69199 2005-08-16  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/mbiter.h: New file.
69202
69203 2005-08-16  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/mbfile.h: New file.
69206
69207 2005-08-16  Bruno Haible  <bruno@clisp.org>
69208
69209         * lib/mbchar.h: New file.
69210         * lib/mbchar.c: New file.
69211
69212 2005-08-16  Bruno Haible  <bruno@clisp.org>
69213
69214         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69215         the valid ones. Makes the comparison operations transitive:
69216         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69217         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69218
69219 2005-08-15  Simon Josefsson  <jas@extundo.com>
69220
69221         * modules/ssize_t (License): Change to 'unlimited'.
69222
69223         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69224
69225 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69228         Add comments for each pending glibc patch.
69229
69230 2005-08-15  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69233         __cplusplus is defined.
69234
69235 2005-08-14  Jim Meyering  <jim@meyering.net>
69236
69237         Sync from coreutils.
69238
69239         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69240         Use the hash-table-based cycle-detection code not just when
69241         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69242         Reported by James Youngman in
69243         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69244         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69245         FTS_TIGHT_CYCLE_CHECK.
69246         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69247         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69248         once again.
69249         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69250         * lib/fts.c (fd_safer): Remove decl.
69251         Include fcntl--.h rather than unistd-safer.h
69252         (fts_safe_changedir): Don't call fd_safer; no longer needed
69253         now that we include fcntl--.h.
69254
69255 2005-08-12  Simon Josefsson  <jas@extundo.com>
69256
69257         * modules/getndelim2: Use ssize_t module.
69258         * modules/getnline: Likewise.
69259         * modules/safe-read: Likewise.
69260         * modules/xreadlink: Likewise.
69261
69262         * modules/ssize_t: New file.
69263
69264 2005-08-12  Simon Josefsson  <jas@extundo.com>
69265
69266         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69267
69268 2005-08-12  Simon Josefsson  <jas@extundo.com>
69269
69270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69271         ssize_t.
69272
69273 2005-08-12  Simon Josefsson  <jas@extundo.com>
69274
69275         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69276         readline, getdelim and check_version.
69277         (Support for systems lacking ISO C 99: Sizes of integer types):
69278         Add size_max.
69279
69280 2005-08-12  Bruno Haible  <bruno@clisp.org>
69281
69282         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69283
69284 2005-08-11  Simon Josefsson  <jas@extundo.com>
69285
69286         * modules/readline: New file.
69287
69288         * modules/strnlen (Files): Add strnlen.h.
69289
69290 2005-08-11  Simon Josefsson  <jas@extundo.com>
69291
69292         * m4/readline.m4: New file.
69293
69294 2005-08-11  Simon Josefsson  <jas@extundo.com>
69295
69296         * lib/readline.h, readline.c: New file.
69297
69298 2005-08-11  Simon Josefsson  <jas@extundo.com>
69299
69300         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69301         gl_AVOID.
69302
69303 2005-08-11  Bruno Haible  <bruno@clisp.org>
69304
69305         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69306
69307 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69308
69309         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69310
69311 2005-08-10  Simon Josefsson  <jas@extundo.com>
69312
69313         * tests/test-iconvme.c: New file.
69314
69315 2005-08-10  Simon Josefsson  <jas@extundo.com>
69316
69317         * m4/strnlen.m4: New file.
69318
69319         * m4/strndup.m4: Don't check for strnlen declaration, done in
69320         strnlen.m4.
69321
69322 2005-08-10  Simon Josefsson  <jas@extundo.com>
69323
69324         * lib/strndup.c: Use strnlen.h.
69325
69326         * lib/strnlen.h: New file.
69327
69328 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69329
69330         * README: Typos.
69331
69332 2005-08-02  Simon Josefsson  <jas@extundo.com>
69333
69334         * modules/readline: New file.
69335
69336 2005-08-02  Simon Josefsson  <jas@extundo.com>
69337
69338         * modules/getdelim: New file.
69339
69340         * modules/getline: Rewrite, don't use getndelim2.
69341
69342 2005-08-02  Simon Josefsson  <jas@extundo.com>
69343
69344         * m4/getline.m4: Separate out getdelim stuff into separate module.
69345
69346         * m4/getdelim.m4: New file.
69347
69348 2005-08-02  Simon Josefsson  <jas@extundo.com>
69349
69350         * lib/getline.h, getline.c: Rewrite.
69351
69352         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69353
69354 2005-07-31  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/lock.h (gl_lock_initializer): New macro.
69357         (gl_lock_define_initialized): Use it.
69358         (gl_rwlock_initializer): New macro.
69359         (gl_rwlock_define_initialized): Use it.
69360         (gl_recursive_lock_initializer): New macro.
69361         (gl_recursive_lock_define_initialized): Use it.
69362
69363 2005-07-30  Karl Berry  <karl@gnu.org>
69364
69365         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69366         Report from Ben Pfaff, regarding getopt.
69367
69368 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69371         normal way.
69372         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69373         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69374         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69375         (gl_GETOPT): Use the new macros.  Most of the implementation
69376         is moved to the new macros.  This is for programs like Emacs
69377         that don't want all the functionality of gl_GETOPT.
69378
69379 2005-07-26  Bruno Haible  <bruno@clisp.org>
69380
69381         * m4/lock.m4: Update from GNU gettext.
69382
69383 2005-07-26  Bruno Haible  <bruno@clisp.org>
69384
69385         * lib/lock.h: Update from GNU gettext.
69386         * lib/lock.c: Update from GNU gettext.
69387
69388 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69391         obsolescent AC_TRY_RUN.  Include the default includes files, for
69392         'exit'.
69393
69394 2005-07-24  Bruno Haible  <bruno@clisp.org>
69395
69396         * modules/visibility: New file.
69397         * MODULES.html.sh (Misc): Add visibility.
69398
69399 2005-07-24  Bruno Haible  <bruno@clisp.org>
69400
69401         * m4/visibility.m4: New file.
69402
69403 2005-07-24  Bruno Haible  <bruno@clisp.org>
69404
69405         * doc/visibility.texi: New file.
69406
69407 2005-07-22  Bruno Haible  <bruno@clisp.org>
69408
69409         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69410         $(ALLOCA_H), redundant through BUILT_SOURCES.
69411         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69412         redundant through BUILT_SOURCES.
69413         * modules/byteswap (Makefile.am): Remove explicit dependency on
69414         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69415         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69416         $(FNMATCH_H), redundant through BUILT_SOURCES.
69417         * modules/getopt (Makefile.am): Remove explicit dependency on
69418         $(GETOPT_H), redundant through BUILT_SOURCES.
69419         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69420         redundant through BUILT_SOURCES.
69421         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69422         redundant through BUILT_SOURCES.
69423         * modules/stdbool (Makefile.am): Remove explicit dependency on
69424         $(STDBOOL_H), redundant through BUILT_SOURCES.
69425         * modules/stdint (Makefile.am): Remove explicit dependency on
69426         $(STDINT_H), redundant through BUILT_SOURCES.
69427         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69428         Remove explicit dependency on $(SYSEXITS_H).
69429         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69430
69431 2005-07-18  Simon Josefsson  <jas@extundo.com>
69432
69433         * lib/check-version.c (check_version): Accept identical versions too.
69434
69435 2005-07-18  Bruno Haible  <bruno@clisp.org>
69436
69437         * modules/lock: New file.
69438         * MODULES.html.sh (Multithreading): New section.
69439
69440 2005-07-18  Bruno Haible  <bruno@clisp.org>
69441
69442         * m4/lock.m4: New file, from GNU gettext.
69443
69444 2005-07-18  Bruno Haible  <bruno@clisp.org>
69445
69446         * lib/lock.h: New file, from GNU gettext.
69447         * lib/lock.c: New file, from GNU gettext.
69448
69449 2005-07-18  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/lock.h (gl_once_t): New type.
69452         (gl_once_define, gl_once): New macros.
69453         * lib/lock.c (fresh_once): New variable.
69454         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69455         functions.
69456
69457 2005-07-16  Simon Josefsson  <jas@extundo.com>
69458
69459         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69460         workaround, suggested by Bruno.
69461
69462 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69463
69464         * modules/xalloc (Depends-on): Add xalloc-die.
69465         * modules/xvasprintf (Depends-on): Add xalloc-die.
69466
69467 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69468
69469         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69470         with a minor change.
69471
69472 2005-07-15  Bruno Haible  <bruno@clisp.org>
69473
69474         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69475         When using lib/poll.c, define poll as rpl_poll.
69476
69477 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * modules/argp (Depends-on): Remove unlocked-io.
69480
69481 2005-07-14  Derek Price  <derek@ximbiot.com>
69482
69483         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69484         for glob symlink bug.
69485
69486 2005-07-14  Bruno Haible  <bruno@clisp.org>
69487
69488         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69489         Instead, test for *_unlocked function declarations directly.
69490
69491 2005-07-11  Simon Josefsson  <jas@extundo.com>
69492
69493         * modules/size_max: New file.
69494
69495         * modules/xsize: Depend on size_max module for size_max.m4.
69496
69497 2005-07-11  Simon Josefsson  <jas@extundo.com>
69498
69499         * lib/size_max.h: New file.
69500
69501 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69502
69503         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69504         copyright symbol and the year.
69505         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69506         (version_etc_va): Use parameterized copyright notice.
69507         Reword to conform to the current GNU coding standards.
69508
69509 2005-07-11  Karl Berry  <karl@gnu.org>
69510
69511         * doc/gnulib.texi (Quoting): new node.
69512         (Initial import): more info, from Patrice.
69513
69514 2005-07-11  Bruno Haible  <bruno@clisp.org>
69515
69516         * gnulib-tool (func_usage): Document option --avoid.
69517         (Command line options): Handle --avoid.
69518         (func_acceptable): New function.
69519         (func_modules_transitive_closure): Use it.
69520
69521 2005-07-11  Bruno Haible  <bruno@clisp.org>
69522
69523         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69524         Reported by Jim Meyering.
69525
69526 2005-07-10  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69529         Needed when size_t is smaller than 'unsigned int'.
69530         Reported by Paul Eggert.
69531
69532 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69533
69534         * modules/argp (Depends-on): Add unlocked-io
69535
69536 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69537
69538         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69539         block of defines.
69540
69541 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69544         fix now.
69545
69546 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69547         and Paul Eggert  <eggert@cs.ucla.edu>
69548
69549         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69550         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69551
69552 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69553
69554         * modules/regex (Files): Add lib/regex_internal.c,
69555         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69556         (Depends-on): Add extensions.
69557         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69558
69559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69562         pathconf.
69563         * m4/same.m4 (gl_SAME): Likewise.
69564         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69565
69566         * m4/regex.m4: Adjust to new libc regex implementation.
69567         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69568         all the .c and .h parts of (the new) regex.
69569         Quote the m4 stuff better.
69570         Check for RE_ICASE bug of old gnulib.
69571         Check for REG_STARTEND of recent libc.
69572         Rename local variables from jm_* to gl_*.
69573         Quote operand of "test -f".
69574         Say "recent enough" version of libc, not "version 2".
69575         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69576         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69577         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69578         Remove check for btowc, isascii.
69579         Require AM_LANGINFO_CODESET.
69580
69581 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * lib/regex.c, regex.h: Sync from libc.
69584         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69585         * lib/regexec.c:
69586         New files, synced from libc, except that regex_internal.h
69587         currently has a small porting fix.
69588
69589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69592         regex_internal.c, regexec.c.
69593         Add regex_internal.h too, but as a comment, since the libc version
69594         is currently broken in gnulib mode.
69595
69596 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         Support programs like Emacs that use gnulib but not gettext.
69599         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69600         * modules/gettext-h: New file.
69601         * modules/gettext (Files): Remove lib/gettext.h.
69602         (Depends-on): Add gettext-h.
69603         (Makefile.am): Remove lib_SOURCES.
69604         * modules/argmatch, modules/c-stack, modules/closeout:
69605         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69606         * modules/execute, modules/file-type, modules/getaddrinfo:
69607         * modules/getopt, modules/human, modules/javacomp:
69608         * modules/javaexec, modules/mkdir-p, modules/obstack:
69609         * modules/openat, modules/pagealign_alloc, modules/pipe:
69610         * modules/quotearg, modules/regex, modules/rpmatch:
69611         * modules/unicodeio, modules/userspec, modules/version-etc:
69612         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69613         * modules/xsetenv:
69614         Depend on gettext-h, not gettext.
69615
69616 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * gnulib-tool (func_import): Add support for 'public domain' license.
69619         * modules/alloca, modules/atexit, modules/memmove:
69620         Now public domain, not GPL.
69621         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69622         * modules/realloc, modules/strerror, modules/strtod:
69623         Now LGPL, not GPL.
69624
69625 2005-07-05  Bruno Haible  <bruno@clisp.org>
69626
69627         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69628         autoconf CVS. Needed for mingw.
69629
69630 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         Remove the dependency of the strftime module on the tzset module.
69633         * modules/strftime (Depends-on): Remove dependency on tzset.
69634
69635 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         Remove the dependency of the strftime module on the tzset module.
69638         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69639         gl_FUNC_TZSET_CLOBBER.
69640
69641 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         Remove the dependency of the strftime module on the tzset module.
69644         * lib/strftime.c (my_strftime)
69645         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69646         Copy the input structure, to work around some of the bug with
69647         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69648         Solaris releases, you should also use the tzset module, but we won't
69649         require it as a dependency any more since we don't want LGPLed code
69650         to depend on GPLed code.
69651
69652 2005-07-02  Jim Meyering  <jim@meyering.net>
69653
69654         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69655         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69656         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69657         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69658
69659 2005-07-02  Jim Meyering  <jim@meyering.net>
69660
69661         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69662
69663 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69666         declares only 'struct timespec;' (!).
69667
69668 2005-07-01  Jim Meyering  <jim@meyering.net>
69669
69670         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69671         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69672         * lib/save-cwd.c, tempname.c:
69673         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69674         and don't include <sys/file.h>).
69675
69676 2005-06-29  Jim Meyering  <jim@meyering.net>
69677
69678         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69679         type name.  Use the variable name instead.
69680         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69681         Likewise.
69682
69683 2005-06-28  Simon Josefsson  <jas@extundo.com>
69684
69685         * modules/check-version (Files): Add check-version.m4.
69686
69687 2005-06-28  Simon Josefsson  <jas@extundo.com>
69688
69689         * m4/check-version.m4: New file, suggested by Jim Meyering
69690         <jim@meyering.net>.
69691
69692 2005-06-28  Simon Josefsson  <jas@extundo.com>
69693
69694         * lib/check-version.h, lib/check-version.c: New files.
69695
69696 2005-06-28  Simon Josefsson  <jas@extundo.com>
69697
69698         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69699         collision with global variable.  Better indentation.  Don't
69700         increment buffer pointer beyond buffer end.  Based on comments
69701         from Paul Eggert <eggert@cs.ucla.edu>.
69702
69703         * lib/base64.h: Indent.
69704
69705 2005-06-28  Simon Josefsson  <jas@extundo.com>
69706
69707         * doc/gnulib.texi (Library version handling): New section.
69708
69709 2005-06-28  Jim Meyering  <jim@meyering.net>
69710
69711         * check-module (find_included_lib_files): Hard-code another
69712         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69713         but modules/fts-lgpl (correctly) does not list those files.
69714
69715         * modules/canonicalize (Files): Add lib/pathmax.h.
69716
69717 2005-06-25  Simon Josefsson  <jas@extundo.com>
69718
69719         * modules/check-version: New file.
69720
69721 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69724         initializer of struct addrinfo, as an indication that we don't
69725         care how many members the structure has.
69726
69727 2005-06-24  Derek Price  <derek@ximbiot.com>
69728         and Bruno Haible  <bruno@clisp.org>
69729
69730         Remove stat module & update lstat.
69731         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69733         * m4/stat.m4: Remove this file.
69734
69735 2005-06-24  Derek Price  <derek@ximbiot.com>
69736         and Bruno Haible  <bruno@clisp.org>
69737
69738         Remove stat module & update lstat.
69739         * lib/stat.c: Remove this file...
69740         (slash_aware_lstat): ...moving this content and its support...
69741         * lib/lstat.c (rpl_lstat): ...into here.
69742         * lib/lstat.h: New file.
69743
69744 2005-06-24  Derek Price  <derek@ximbiot.com>
69745         and Bruno Haible  <bruno@clisp.org>
69746
69747         Remove stat module & update lstat.
69748         * config/srclist.txt (libc sources): Remove stat.
69749
69750 2005-06-24  Derek Price  <derek@ximbiot.com>
69751         and Bruno Haible  <bruno@clisp.org>
69752
69753         Remove stat module & update lstat.
69754         * MODULES.html.sh (stat): Remove.
69755         * MODULES.html: Regenerated.
69756         * modules/lstat (Description): Correct function name.
69757         (Files): Add "lstat.h".
69758         (Depends-on): Remove stat, add xalloc, stat-macros.
69759         * modules/stat: Remove this file.
69760         (Include): Add "lstat.h", remove <sys/stat.h>.
69761
69762 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69763
69764         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69765         (ranged_convert): Don't save conversion in a temporary struct.
69766         This causes a warning with GCC 4.0.0, and anyway in the typical
69767         case it's not worth the extra 100 bytes or so of code.
69768         (ranged_convert, __mktime_internal): When calling a function via a
69769         pointer P, use P () rather than (*P) (), as we now assume C89 or
69770         better.
69771
69772 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69775         "who -r" failed to give output.  Problem reported by Tim Waugh.
69776
69777         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69778         (xcalloc): Use it to avoid needless tests.
69779         Problem reported by Jim Meyering.
69780
69781 2005-06-20  Derek Price  <derek@ximbiot.com>
69782
69783         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69784         unnecessary for Autoconfs > 2.59c.
69785
69786 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69787
69788         * lib/argp.h (__option_is_short): Check upper limit of
69789         __key. Isprint() requires its argument to have the value
69790         of an unsigned char or EOF.
69791
69792 2005-06-16  Jim Meyering  <jim@meyering.net>
69793
69794         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69795         when either N or S is zero.
69796
69797 2005-06-16  Derek Price  <derek@ximbiot.com>
69798
69799         * m4/bison.m4: Declare YACC & YFLAGS precious.
69800
69801 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69804         multibyte string or pattern, fall back on unibyte matching.
69805         Problem reported by James Youngman.
69806
69807 2005-06-08  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/csharpcomp: New file.
69810         * MODULES.html.sh (C#): Add csharpcomp.
69811
69812 2005-06-08  Bruno Haible  <bruno@clisp.org>
69813
69814         * m4/csharpcomp.m4: New file, from GNU gettext.
69815
69816 2005-06-08  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/csharpcomp.h: New file, from GNU gettext.
69819         * lib/csharpcomp.c: New file, from GNU gettext.
69820         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69821
69822 2005-06-08  Bruno Haible  <bruno@clisp.org>
69823
69824         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69825         warning on mingw.
69826
69827 2005-06-07  Derek Price  <derek@ximbiot.com>
69828
69829         Sync from CVS.
69830         * lib/glob_.h: Indent nested #ifdef.
69831
69832 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         Sync from coreutils.
69835         Use "file name" when talking about file names, instead of "filename"
69836         or "path", as per the GNU coding standards.
69837         * lib/mkdir-p.c: Renamed from makepath.c.
69838         (make_dir_parents): Renamed from make_path.  All callers changed.
69839         * lib/mkdir-p.h: Likewise.  All includers changed.
69840         * lib/filenamecat.c: Renamed from path-concat.c.
69841         (file_name_concat): Renamed from path_concat.  All callers changed.
69842         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69843         * lib/filenamecat.h: Likewise.  All includers changed.
69844         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69845         in comments or local variable names.
69846         * lib/basename.c: Likewise.
69847         * lib/canonicalize.c, canonicalize.h: Likewise.
69848         * lib/dirname.c, dirname.h: Likewise.
69849         * lib/euidaccess.c: Likewise.
69850         * lib/exclude.c: Likewise
69851         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69852         * lib/fsusage.c, fsuage.h: Likewise.
69853         * lib/fts.c, fts_.h: Likewise.
69854         * lib/getcwd.c: Likewise.
69855         * lib/getloadavg.c: Likewise.
69856         * lib/mkstemp.c: Likewise.
69857         * lib/mountlist.c, mountlist.h: Likewise.
69858         * lib/openat.c, openat.h: Likewise.
69859         * lib/readlink-stub.c: Likewise.
69860         * lib/readutmp.c, readutmp.h: Likewise.
69861         * lib/rename.c: Likewise.
69862         * lib/rmdir.c: Likewise.
69863         * lib/same.c: Likewise.
69864         * lib/savedir.c: Likewise.
69865         * lib/stripslash.c: Likewise.
69866         * lib/tempname.c: Likewise.
69867         * lib/xreadlink.c: Likewise.
69868         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69869         All uses changed.
69870         * lib/exclude.h: Likewise.
69871
69872         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69873         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69874         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69875         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69876         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69877         files have been getting away with it for years (MORE/BSD 4.3
69878         is extinct now).
69879         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69880         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69881
69882         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69883         Define to 256, not 255, as per modern POSIX.
69884
69885 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         Sync from coreutils.
69888         Use "file name" when talking about file names, instead of "filename"
69889         or "path", as per the GNU coding standards.
69890         * MODULES.html.sh: mkdir-p renamed from makepath.
69891         filenamecat renamed from path-concat.
69892         * modules/filenamecat: Renamed from modules/path-concat.
69893         (Files): filenamecat.h and filenamecat.c renamed from
69894         path-concat.h and path-concat.c.
69895         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69896         (Include): filenamecat.h, not path-concat.h.
69897         * modules/mkdir-p: Renamed from modules/makepath.
69898         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69899         makepath.c.
69900         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69901         (Include): mkdir-p.h, not makepath.h.
69902
69903 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         Sync from coreutils.
69906         * m4/mkdir-p.m4: Renamed from makepath.m4.
69907         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69908         Rename files from makepath.c to mkdir-p.c, and from
69909         makepath.h to mkdir-p.h.
69910         * m4/filenamecat.m4: Renamed from path-concat.m4.
69911         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69912         Rename files from path-concat.c to filenamecat.c,
69913         and from path-concat.h to filenamecat.h.
69914         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69915         "file name" in local variables or comments.
69916         * m4/rename.m4: Likewise.
69917
69918 2005-06-01  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/csharpexec: New file.
69921         * MODULES.html.sh (C#): New section.
69922
69923 2005-06-01  Bruno Haible  <bruno@clisp.org>
69924
69925         * m4/csharp.m4: New file, from GNU gettext.
69926         * m4/csharpexec.m4: New file, from GNU gettext.
69927
69928 2005-06-01  Bruno Haible  <bruno@clisp.org>
69929
69930         * lib/csharpexec.h: New file, from GNU gettext.
69931         * lib/csharpexec.c: New file, from GNU gettext.
69932         * lib/csharpexec.sh.in: New file, from GNU gettext.
69933
69934 2005-05-31  Derek Price  <derek@ximbiot.com>
69935             Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         Sync from cvs.
69938         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69939
69940 2005-05-31  Derek Price  <derek@ximbiot.com>
69941             Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         Sync from cvs.
69944         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69945
69946 2005-05-29  Derek Price  <derek@ximbiot.com>
69947
69948         * config/srclist.txt (glob_.h, glob.c): Add these files.
69949
69950 2005-05-29  Derek Price  <derek@ximbiot.com>
69951
69952         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69953         * modules/glob: New file.
69954         * modules/getlogin_r: Add link to POSIX spec in description.
69955
69956 2005-05-29  Derek Price  <derek@ximbiot.com>
69957             Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * m4/glob.m4: New file.
69960
69961 2005-05-29  Derek Price  <derek@ximbiot.com>
69962             Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/glob_.h, lib/glob.c: New files.
69965
69966 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69969         * modules/fts-lgpl (Depends-on): Remove gettext.
69970
69971 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69974         and don't require gt_INTTYPES_PRI.
69975
69976 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69979
69980         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69981         the configuration hassle isn't worth it.
69982         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69983         (LONGEST_MODIFIER, PRIuMAX): Remove.
69984
69985 2005-05-27  Bruno Haible  <bruno@clisp.org>
69986
69987         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69988
69989 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69992         _POSIX_PTHREAD_SEMANTICS for Solaris.
69993
69994 2005-05-25  Derek Price  <derek@ximbiot.com>
69995
69996         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69997
69998 2005-05-25  Derek Price  <derek@ximbiot.com>
69999             Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70002         * lib/getlogin_r.c, getlogin_r.h: New files.
70003
70004 2005-05-25  Bruno Haible  <bruno@clisp.org>
70005             Derek Price  <derek@ximbiot.com>
70006
70007         * lib/getlogin_r.h: Simplify API documentation.
70008
70009 2005-05-23  Derek Price  <derek@ximbiot.com>
70010
70011         * modules/minmax (Files): Add m4/minmax.m4.
70012         (configure.ac): Add gl_MINMAX.
70013
70014 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70017         so that unistd-safer.h (GPL'ed code) need not be included.
70018
70019 2005-05-22  Bruno Haible  <bruno@clisp.org>
70020
70021         * m4/minmax.m4: New file.
70022         Based on a patch by Derek Price <derek@ximbiot.com>.
70023
70024 2005-05-22  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70027         (INT64_MIN): Fix definition.
70028         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70029
70030         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70031         NEED_SIGNED_INT_TYPES.
70032
70033         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70034         HAVE_SYSTEM_INTTYPES.
70035
70036 2005-05-22  Bruno Haible  <bruno@clisp.org>
70037
70038         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70039         Also include <sys/param.h> if it defines MIN, MAX.
70040         Based on a patch by Derek Price <derek@ximbiot.com>.
70041
70042 2005-05-21  Jim Meyering  <jim@meyering.net>
70043
70044         * modules/fts (Files): Add m4/inttypes-pri.m4.
70045         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70046
70047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         New fts module.
70050         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70051         (setup_dir, free_dir): New functions.
70052         (enter_dir, leave_dir): Define trivial
70053         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70054         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70055         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70056         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70057         Move to fts-cycle.c.
70058         (fts_open): Use setup_dir.
70059         (fts_close): Use free_dir.
70060         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70061         This adds a label and some gotos, but the alternatives were messier.
70062         Check for memory allocation failure when entering a dir.
70063         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70064         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70065         (FTS): New member fts_cycle, that is a union that contains the
70066         old active_dir_ht and cycle_state.  All uses changed to mention
70067         fts_cycle.ht and fts_cycle.state.
70068         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70069         fts.c, with the following changes:
70070         (setup_dir, free_dir): New functions.
70071         (enter_dir): Now returns bool.  Return true if successful, false
70072         if memory exhausted.  All callers changed.
70073         Do not bother partly cleaning up on
70074         memory allocation failure; that is free_dir's job.
70075         However, free ad if hash_insert fails, to avoid memory leak.
70076         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70077         fts->fts_options to see which union member to use.
70078
70079 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70082         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70083
70084 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70087
70088 2005-05-20  Jim Meyering  <jim@meyering.net>
70089
70090         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70091         Now a macro, to pacify GCC.
70092
70093 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70094
70095         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70096         of -1.
70097
70098 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70099
70100         * lib/chown.c (rpl_chown): Return -1 on failure.
70101
70102 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70105         Don't check for stddef.h.
70106         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70107         don't use its results.
70108         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70109         since we include them unconditionally.  Don't require
70110         AM_STDBOOL_H, since stdbool is a prerequisite.
70111         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70112         since we assume C89 or better.
70113         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70114         as we don't use their results.
70115         Don't check for fchdir, memmove, memset, strrchr, as we use
70116         them unconditionally.
70117         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70118         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70119
70120 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70123         Include <stddef.h> unconditionally, since we assume C89 now.
70124         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70125         * lib/fts.c: Include fts_.h first, to check interface.
70126         Do not include intprops.h; no longer needed.
70127         Include cycle-check.h and hash.h, since fts_.h no longer does.
70128         Remove unnecessary casts of closedir to void.
70129         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70130         decide whether to decrement nlinks.
70131         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70132         (FTS): Use struct hash_table * instead of Hash_table, so that
70133         we no longer need to include hash.h here.
70134
70135 2005-05-18  Jim Meyering  <jim@meyering.net>
70136
70137         * modules/dirfd (License): Change to LGPL.  Most of the code
70138         is already in the public domain.
70139
70140 2005-05-18  Jim Meyering  <jim@meyering.net>
70141
70142         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70143         Reported by Yoann Vandoorselaere.
70144
70145 2005-05-17  Jim Meyering  <jim@meyering.net>
70146
70147         * m4/fts.m4: New file, from coreutils.
70148
70149 2005-05-17  Jim Meyering  <jim@meyering.net>
70150
70151         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70152
70153 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70154
70155         Sync from coreutils.
70156         * m4/unlinkdir.m4: New file.
70157
70158 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70159
70160         Sync from coreutils.
70161         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70162         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70163         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70164         White space changes only.
70165         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70166         special.
70167         * lib/yesno.c: Include getline.h, not ctype.h.
70168         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70169         Use getline to remove arbitrary restriction on response length.
70170
70171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * config/srclist-update: Spell out "Street" in FSF postal
70174         mail address; this is the style the FSF seems to prefer.
70175
70176         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70177         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70178         this updates FSF postal mail address.
70179
70180         Sync from coreutils.
70181         * modules/unlinkdir: New file.
70182         * modules/yesno (Depends-on): Add getline.
70183         * MODULES.html.sh (File system functions): Add unlinkdir.
70184
70185 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70186
70187         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70188         lib/strsep.h:
70189         Change the initial comment to refer to GPL, not LGPL.
70190         gnulib-tool will change it to LGPL as needed.
70191
70192         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70193         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70194         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70195         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70196         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70197         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70198         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70199         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70200         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70201         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70202         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70203         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70204         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70205         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70206         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70207         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70208         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70209         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70210         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70211         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70212         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70213         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70214         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70215         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70216         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70217         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70218         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70219         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70220         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70221         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70222         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70223         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70224         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70225         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70226         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70227         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70228         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70229         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70230         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70231         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70232         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70233         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70234         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70235         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70236         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70237         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70238         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70239         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70240         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70241         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70242         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70243         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70244         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70245         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70246         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70247         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70248         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70249         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70250         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70251         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70252         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70253         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70254         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70255         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70256         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70257         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70258         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70259         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70260         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70261         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70262         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70263         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70264         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70265         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70266         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70267         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70268         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70269         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70270         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70271         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70272         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70273         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70274         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70275         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70276         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70277         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70278         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70279         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70280         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70281         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70282         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70283         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70284         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70285         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70286         lib/yesno.c, lib/yesno.h:
70287         Update FSF postal mail address.
70288
70289 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70292         tests/test-memmem.c, tests/test-stpncpy.c:
70293         Update FSF postal mail address.
70294
70295 2005-05-13  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70298         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70299         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70300         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70301         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70302         Add support for 64-bit integers in the MSVC compiler.
70303
70304 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70305
70306         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70307
70308 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70309
70310         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70311
70312 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * doc/getdate.texi (General date syntax): Don't say that date
70315         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70316         Problem reported by Nic Ferrier.
70317
70318 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70319
70320         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70321         specified in ai_socktype. Fix invalid ai_protocol
70322         check. ai_protocol is usually set to 0 or depending on
70323         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70324         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70325         ai_socktype / ai_protocol in the returned addrinfo structure.
70326
70327 2005-05-10  Simon Josefsson  <jas@extundo.com>
70328
70329         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70330         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70331
70332 2005-05-10  Karl Berry  <karl@gnu.org>
70333
70334         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70335         (from http://www.gnu.org/licenses).
70336         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70337         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70338         fdl.texi suffices.
70339
70340 2005-05-10  Karl Berry  <karl@gnu.org>
70341
70342         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70343         (COPYING.DOC): remove.
70344
70345         * config/srclist-update: new FSF address.
70346
70347 2005-05-10  Derek Price  <derek@ximbiot.com>
70348
70349         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70350         possible.
70351
70352 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70353             Bruno Haible  <bruno@clisp.org>
70354
70355         * modules/inet_ntop: New file.
70356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70357         inet_ntop.
70358
70359 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70360             Bruno Haible  <bruno@clisp.org>
70361
70362         * m4/inet_ntop.m4: New file.
70363
70364 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70365             Bruno Haible  <bruno@clisp.org>
70366
70367         * lib/inet_ntop.h: New file.
70368         * lib/inet_ntop.c: New file, from glibc with modifications.
70369
70370 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * modules/time_r (License): Change to LGPL.
70373         * modules/extensions (License): Change to LGPL.  Actually,
70374         the license is more permissive than that, but currently gnulib-tool
70375         doesn't know how to handle more-permissive licenses.
70376
70377         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70378         Problem reported by Dave Love.
70379
70380 2005-05-08  Jim Meyering  <jim@meyering.net>
70381
70382         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70383         blank.
70384
70385 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * modules/argmatch (Depends-on): Add stdbool.
70388         * modules/backupfile (Depends-on): Likewise.
70389         * modules/chdir-long (Depends-on): Likewise.
70390         * modules/closeout (Depends-on): Likewise.
70391         * modules/cycle-check (Depends-on): Likewise.
70392         * modules/dirname (Depends-on): Likewise.
70393         * modules/fnmatch (Depends-on): Likewise.
70394         * modules/fsusage (Depends-on): Likewise.
70395         * modules/fwriteerror (Depends-on): Likewise.
70396         * modules/getcwd (Depends-on): Likewise.
70397         * modules/getloadavg (Depends-on): Likewise.
70398         * modules/hard-locale (Depends-on): Likewise.
70399         * modules/makepath (Depends-on): Likewise.
70400         * modules/mountlist (Depends-on): Likewise.
70401         * modules/nanosleep (Depends-on): Likewise.
70402         * modules/posixtm (Depends-on): Likewise.
70403         * modules/quotearg (Depends-on): Likewise.
70404         * modules/readtokens (Depends-on): Likewise.
70405         * modules/readtokens0 (Depends-on): Likewise.
70406         * modules/readutmp (Depends-on): Likewise.
70407         * modules/save-cwd (Depends-on): Likewise.
70408         * modules/strftime (Depends-on): Likewise.
70409         * modules/userspec (Depends-on): Likewise.
70410         * modules/utimecmp (Depends-on): Likewise.
70411         * modules/xgetcwd (Depends-on): Likewise.
70412         * modules/xnanosleep (Depends-on): Likewise.
70413         * modules/xstrtod (Depends-on): Likewise.
70414         * modules/yesno (Depends-on): Likewise.
70415
70416 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70419         needless checks.
70420
70421 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         Merge from coreutils.  Among other things,
70424         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70425         * lib/fd-safer.c: New file.
70426         * lib/fcntl-safer.h, open-safer.c: Remove.
70427         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70428         * lib/dup-safer.c: Include unistd-safer.h first.
70429         Don't include errno.h.
70430         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70431         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70432         * lib/file-type.c: Rely on file-type.h change.
70433         * lib/getloadavg.c: Include unistd-safer.h.
70434         (getloadavg): Use safer open.
70435         * lib/getusershell.c: Include "stdio-safer.h".
70436         (getusershell): Use safer fopen.
70437         * lib/long-options.c (long_options): Use NULL rather than 0.
70438         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70439         'free'.
70440         * lib/modechange.c: Likewise.
70441         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70442         (MODE_DONE): New constant.
70443         (struct mode_change): Remove 'next' member.
70444         (make_node_op_equals): New function; like the old one of the
70445         same name, except it allocates an array.
70446         (mode_compile, mode_create_from_ref): Use it.
70447         (mode_compile): Allocate result as an array, not a linked list.
70448         Parse octal string ourself, so that we catch mistakes like "+0".
70449         (mode_adjust): Arg is an array, not a linked list.
70450         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70451         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70452         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70453         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70454         Remove.  This is now stat-macros.h's job.
70455         (talloc): Remove.  All callers replaced by xalloc, so that
70456         our invokers don't have to worry about reporting memory failures.
70457         (make_node_op_equals): Remove.
70458         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70459         New constants.
70460         (struct mode_change): Moved here from modechange.h.
70461         (mode_append_entry): Remove.
70462         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70463         apps to have incorrect behavior.  Use simpler algorithm for head
70464         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70465         Detect more invalid usages rather than having somewhat-random behavior.
70466         Don't insert an "a=" action, as that leads to incorrect behavior.
70467         (mode_compile, mode_create_from_ref): Return NULL on error instead
70468         of an enum, since now there's only one way to have an error.  All
70469         callers changed.
70470         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70471         at the correct time.  Simplify calculation of "+u" and its ilk.
70472         Don't mishandle "+X".
70473         (mode_free): Remove "register" and localize decls.
70474         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70475         (struct mode_change): Move to modechange.c; callers don't
70476         need to see this stuff.
70477         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70478         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70479         (mode_change, mode_adjust): Reflect the new signatures noted above.
70480         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70481         that might redefine system include files.
70482         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70483         (my_usleep): Use NULL rather than (void *) 0.
70484         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70485         Use siginterrupt to specify that system calls should be interrupted.
70486         (rpl_nanosleep): Move initialization of suspended closer to call of
70487         my_usleep.
70488         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70489         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70490         (desirable_utmp_entry): New function.
70491         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70492         using x2nrealloc, to simplify logic.
70493         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70494         size calculation.  Do not assume utmp file is a regular file.
70495         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70496         (READ_UTMP_CHECK_PIDS): New constant.
70497         * lib/save-cwd.c: Include unistd-safer.h.
70498         (save_cwd): Use fd_safer.
70499         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70500         [!_LIBC] Include "stat-macros.h" instead.
70501         * lib/unistd-safer.h (fd_safer): New decl.
70502
70503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * modules/getloadavg (Depends-on): Add unistd-safer.
70506         * modules/getusershell (Depends-on): Add stdio-safer.
70507         * modules/lstat (Depends-on): Remove xalloc.
70508         * modules/mkstemp (Depends-on): Add stat-macros.
70509         * modules/modechange (Depends-on): Remove xstrtol.
70510         Add stat-macros, xalloc.
70511         * modules/save-cwd (Depends-on): Add unistd-safer.
70512         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70513         * modules/unistd-safer (Files): Add lib/fd-safer.c
70514         (Makefile.am): Remove lib_SOURCES.
70515
70516         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70517         Remove fcntl-safer; unistd-safer supersedes it.
70518
70519 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70522         AC_HEADER_STAT.
70523         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70524         (gl_PREREQ_CHOWN): Remove.
70525         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70526         it.  Don't require AC_HEADER_STAT.
70527         (gl_PREREQ_LSTAT): Remove.
70528         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70529         Don't require AC_HEADER_STAT.
70530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70531         (gl_PREREQ_RMDIR): Remove.
70532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70533         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70534         the stat-macros module a prerequisite.
70535         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70536         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70537         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70538         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70539         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70540         variable names.
70541         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70542         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70543         variable prefixes.
70544         * m4/fcntl-safer.m4: Remove.
70545         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70547         Invoke gl_PREREQ_FD_SAFER.
70548         (gl_PREREQ_FD_SAFER): New macro.
70549         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70550         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70551         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70552         Remove duplicate call to AC_LIBOBJ(readutmp).
70553         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70554
70555         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70556         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70557
70558 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * MODULES.html.sh (Misc): Add byteswap.
70561
70562 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70563
70564         * modules/getcwd (Depends-on): Add extensions.
70565         * modules/openat (Depends-on): Likewise.
70566
70567 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70568
70569         * modules/byteswap: New file.
70570
70571 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70572
70573         * m4/byteswap.m4: New file.
70574
70575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70576
70577         * lib/byteswap_.h: New file.
70578
70579 2005-04-25  Karl Berry  <karl@gnu.org>
70580
70581         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70582
70583 2005-04-25  Albert Chin  <china@thewrittenword.com>
70584
70585         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70586         Toolkit C bug.
70587
70588 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70589
70590         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70591         (func_ln_if_changed): Remove forcibly for no error message
70592         in case file does not exist.
70593
70594 2005-04-19  Simon Josefsson  <jas@extundo.com>
70595
70596         * gnulib-tool (Options): Make --symlink mean --symbolic.
70597
70598 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70599
70600         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70601
70602 2005-04-16  Simon Josefsson  <jas@extundo.com>
70603
70604         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70605
70606 2005-04-15  Simon Josefsson  <jas@extundo.com>
70607
70608         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70609
70610 2005-04-15  Simon Josefsson  <jas@extundo.com>
70611
70612         * gnulib-tool: Rename --symlink to --symbolic.
70613
70614 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70615
70616         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70617         symbolic links to files instead of copying/moving.  Add --aux-dir,
70618         specifying directory relative --dir where auxiliary build tools
70619         are placed.
70620
70621 2005-04-14  Bruno Haible  <bruno@clisp.org>
70622
70623         * modules/allocsa (License): Change to LGPL.
70624         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70625
70626 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70629         that "UTC +1 second" continues to work.  Problem reported
70630         by Dmitry V. Levin.
70631         (relunit_snumber): New rule.
70632         (relunit): Use it.
70633
70634 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * lib/getdate.y (universal_time_zone_table): New constant.
70637         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70638         universal_time_zone_table.
70639         (lookup_zone): Prefer universal_time_zone_table to
70640         local_time_zone_table, so that "GMT" time stamps are allowed in
70641         London during the summer.  Problem reported by Ian Abbott.
70642
70643 2005-04-12  Jim Meyering  <jim@meyering.net>
70644
70645         * lib/human.c (humblock): Set *options even when returning due to
70646         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70647         warning from gcc-4.
70648
70649 2005-04-09  Jim Meyering  <jim@meyering.net>
70650
70651         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70652         -Wuninitialized: initialize tm0.tm_year.
70653
70654 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70657         count, since there's no maximum.  All uses changed.
70658         Add member dsts_seen.
70659         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70660         not being INT_MAX.
70661         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70662         Use pc_rels_seen to decide whther a date is absolute.
70663
70664         * lib/getdate.y (number): Don't overwrite year.
70665         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70666         check.
70667
70668 2005-04-02  Simon Josefsson  <jas@extundo.com>
70669
70670         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70671         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70672
70673 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70674
70675         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70676         where no absolute path name can be longer than PATH_MAX.
70677
70678 2005-03-27  Jim Meyering  <jim@meyering.net>
70679
70680         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70681
70682 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70685         "one's complement" -> "ones' complement" in comment, as per Knuth.
70686         "value of type" -> "type or expression" in comment.
70687         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70688
70689 2005-03-26  Jim Meyering  <jim@meyering.net>
70690
70691         Comment nits.
70692         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70693         Correct typos: s/or/of/.
70694
70695 2005-03-26  Jim Meyering  <jim@meyering.net>
70696
70697         * modules/check-include-files: Move to ../ and rename to...
70698         * check-module: ...this.
70699
70700 2005-03-25  Jim Meyering  <jim@meyering.net>
70701
70702         * modules/xvasprintf (Files): Add xalloc.h.
70703
70704 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * modules/gettext (Files): config/config.rpath ->
70707         build-aux/config.rpath
70708         * modules/iconv (Files): Likewise.
70709         Problem reported by Oskar Liljeblad.
70710
70711 2005-03-23  Jim Meyering  <jim@meyering.net>
70712
70713         * modules/check-include-files: New script to check for
70714         missing dependencies, multiple includes, etc.
70715
70716         * modules/c-strtold (Depends-on): Add xalloc.
70717         * modules/c-strtod (Depends-on): Add xalloc.
70718         * modules/hash (Depends-on): Add xalloc.
70719         (Files): Remove lib/xalloc.h.
70720
70721         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70722         * modules/userspec (Files): Add lib/inttostr.h.
70723
70724 2005-03-23  Jim Meyering  <jim@meyering.net>
70725
70726         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70727
70728 2005-03-22  Jim Meyering  <jim@meyering.net>
70729
70730         * modules/stat-macros: New module.
70731         * modules/canonicalize, modules/euidaccess, modules/file-type,
70732         * modules/filemode, modules/lchown, modules/makepath,
70733         * modules/rmdir, modules/stat: Depend on new stat-macros module
70734         rather than listing lib/stat-macros.h manually.
70735         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70736
70737 2005-03-22  Jim Meyering  <jim@meyering.net>
70738
70739         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70740
70741 2005-03-22  Bruno Haible  <bruno@clisp.org>
70742
70743         * config/srclist.txt: Replace target directory 'config' with
70744         'build-aux'.
70745         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70746         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70747         ../build-aux/.
70748
70749 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70750
70751         * modules/chdir-long (Depends-on): Add mempcpy.
70752
70753         * modules/acl, modules/backupfile, modules/c-strtod,
70754         modules/c-strtold, modules/canon-host, modules/canonicalize,
70755         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70756         modules/exclude, modules/exitfail, modules/file-type,
70757         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70758         modules/getdate, modules/getline, modules/getpagesize,
70759         modules/getpass, modules/getugroups, modules/group-member,
70760         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70761         modules/inttostr, modules/long-options, modules/makepath,
70762         modules/md5, modules/memcasecmp, modules/memcoll,
70763         modules/modechange, modules/mountlist, modules/path-concat,
70764         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70765         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70766         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70767         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70768         modules/strftime, modules/strndup, modules/strverscmp,
70769         modules/timespec, modules/unlocked-io, modules/userspec,
70770         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70771         modules/yesno:
70772         Remove lib_SOURCES line from Makefile.am section, as this is now
70773         done automatically by the corresponding Autoconf macro.
70774
70775 2005-03-21  Jim Meyering  <jim@meyering.net>
70776
70777         Changes imported from coreutils.
70778
70779         * lib/cycle-check.c: Don't include xalloc.h.
70780
70781         * lib/path-concat.c: Don't include assert.h.
70782         (path_concat): Remove assertion that would have triggered
70783         for ABASE starting with more than one slash.
70784         Reported by Andreas Schwab.
70785
70786         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70787         properly when ABASE is an absolute file name.
70788         Correct the description of this function.
70789         Include <assert.h>.
70790         Add an assertion and a test driver.
70791         This fixes a bug introduced on 2004-07-02.
70792         Andreas Schwab reported the resulting failure of cp --parents:
70793         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70794
70795 2005-03-21  Jim Meyering  <jim@meyering.net>
70796
70797         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70798         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70799
70800 2005-03-21  Jim Meyering  <jim@meyering.net>
70801         and  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70804         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70805         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70806         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70807         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70808         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70809         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70810         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70811         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70812         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70813         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70814         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70815         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70816         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70817         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70818         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70819         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70820         for these modules.
70821
70822 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70823
70824         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70825         (which shouldn't happen), generate nothing instead of returning 0
70826         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70827
70828 2005-03-16  Bruno Haible  <bruno@clisp.org>
70829
70830         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70831         HAVE_LONGLONG_64BIT.
70832
70833 2005-03-16  Bruno Haible  <bruno@clisp.org>
70834
70835         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70836         HAVE_LONGLONG_64BIT.
70837
70838 2005-03-16  Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70841         HAVE_LONGLONG_64BIT.
70842
70843 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70846         reliably distinguish strftime failure from empty output on POSIX
70847         hosts.
70848
70849 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70852         (iconv_string): Don't guess a size-zero buffer, as that might cause
70853         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70854         result would be 'too large', where 'too large' is (heuristically)
70855         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70856         overflow concerns.  This will prevent some unwanted malloc failures
70857         when the inputs are very large.
70858
70859 2005-03-15  Karl Berry  <karl@gnu.org>
70860
70861         * config/srclist.txt (config.rpath): from gettext.
70862         * config/config.rpath: update.
70863
70864 2005-03-15  Bruno Haible  <bruno@clisp.org>
70865
70866         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70867         to 'negate'.
70868
70869         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70870         variable.
70871
70872         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70873         results.
70874
70875 2005-03-14  Simon Josefsson  <jas@extundo.com>
70876
70877         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70878         <fx@gnu.org>.
70879
70880 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70883         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70884         intprops.h.
70885         * lib/strtol.c: Likewise.
70886
70887 2005-03-14  Jim Meyering  <jim@meyering.net>
70888
70889         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70890         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70891         to be nonzero so that we (and caller) can detect the difference
70892         between a valid zero-length expansion and an error return, even
70893         when the underlying strftime fails before writing anything into
70894         that location.
70895
70896 2005-03-14  Bruno Haible  <bruno@clisp.org>
70897
70898         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70899         Update from GNU gettext 0.14.3.
70900
70901 2005-03-10  Jim Meyering  <jim@meyering.net>
70902
70903         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70904
70905 2005-03-10  Jim Meyering  <jim@meyering.net>
70906
70907         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70908         so that this module works on systems without fchdir.
70909
70910 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         Factor int-properties macros into a single file, except for
70913         glibc-related files.
70914         * lib/intprops.h: New file.
70915         * lib/getloadavg.c: Include it instead of limits.h.
70916         (INT_STRLEN_BOUND): Remove.
70917         * lib/human.c: Include intprops.h.
70918         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70919         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70920         302/1000.
70921         * lib/inttostr.h: Include intprops.h instead of limits.h.
70922         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70923         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70924         for consistency with intprops.h.
70925         (time_t_is_integer, twos_complement_arithmetic): Use them.
70926         * lib/sig2str.h: Include <signal.h>, intprops.h.
70927         (INT_STRLEN_BOUND): Remove.
70928         * lib/strftime.c (TYPE_SIGNED): Remove.
70929         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70930         * lib/strtol.c: Adjust comments to match intprops.h.
70931         * lib/userspec.c: Include intprops.h.
70932         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70933         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70934         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70935         instead of rolling our own expressions.
70936         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70937
70938         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70939         instead of int.
70940         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70941         the right thing even if adding 1900 would overflow.  Similarly
70942         for tm_mon + 1 and tm_yday + 1.
70943         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70944         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70945         (DO_SIGNED_NUMBER): New macro.
70946         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70947
70948 2005-03-07  Bruno Haible  <bruno@clisp.org>
70949
70950         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70951
70952 2005-03-07  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70955
70956 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70957
70958         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70959         (func_import): Only replace files via --import when they have actually
70960         changed.
70961
70962 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70963
70964         * m4/mmap-anon.m4: New file.
70965         * m4/pagealign_alloc.m4: New file.
70966
70967 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70968             Bruno Haible  <bruno@clisp.org>
70969
70970         * modules/pagealign_alloc: New file.
70971         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70972
70973 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70974             Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/pagealign_alloc.h: New file.
70977         * lib/pagealign_alloc.c: New file.
70978
70979 2005-03-03  Bruno Haible  <bruno@clisp.org>
70980
70981         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70982         Use an all-permissive copyright notice, recommended by RMS.
70983
70984 2005-03-02  Bruno Haible  <bruno@clisp.org>
70985
70986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70987         of AIX, the replacement has to be done only after <string.h> is
70988         included, therefore not in config.h. stpncpy.h does the replacement,
70989         and stpncpy.c uses it.
70990
70991 2005-03-02  Bruno Haible  <bruno@clisp.org>
70992
70993         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70994         stpncpy.c uses it.
70995
70996 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70997
70998         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70999         The workaround isn't strictly needed for POSIX conformance, and
71000         it's too much of a pain to configure and maintain.  We'll ask
71001         people to fix their kernels instead.
71002         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71003         (NANOSLEEP_BUG_WORKAROUND): Remove.
71004         (xnanosleep): Remove the workaround.
71005
71006 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71009         Reported by Derek Price.
71010         (Include): Add "timespec.h".
71011
71012         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71013
71014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71017         to detect nanosleep bug.
71018
71019 2005-03-01  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71022
71023 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         * modules/gethrxtime: New file.
71026         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71027         (Depends-on): Add gethrxtime.
71028         (configure.ac): Add gl_XNANOSLEEP.
71029         (Makefile.am): Remove lib_SOURCES line.
71030
71031 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71034         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71035
71036 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71039         * lib/timespec.h (gettime): Return void, since it always
71040         succeeds now.  All uses changed.
71041         * lib/gettime.c (gettime): Likewise.
71042         [HAVE_NANOTIME]: Prefer nanotime.
71043         Assume gettimeofday succeeds, as POSIX requires.
71044         Assime time () succeeds, since other code already does.
71045         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71046         (timespec_subtract): Remove.
71047         (NANOSLEEP_BUG_WORKAROUND): New constant.
71048         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71049         things considerably.  Use it only on GNU/Linux hosts, since the
71050         workaround shouldn't be needed elsewhere.
71051
71052 2005-02-24  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/gettext (Files): Add m4/glibc2.m4.
71055
71056 2005-02-24  Bruno Haible  <bruno@clisp.org>
71057
71058         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71059         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71060         * m4/progtest.m4:
71061         Update from GNU gettext 0.14.2.
71062         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71063
71064 2005-02-24  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71067         * lib/config.charset: Update from GNU gettext 0.14.2.
71068
71069 2005-02-24  Bruno Haible  <bruno@clisp.org>
71070
71071         * lib/gettext.h: Update from GNU gettext 0.14.2.
71072
71073 2005-02-23  Simon Josefsson  <jas@extundo.com>
71074
71075         * m4/iconvme.m4: New file.
71076
71077 2005-02-23  Jim Meyering  <jim@meyering.net>
71078
71079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71080         change.
71081         Thanks to Bruno Haible for catching it.
71082
71083 2005-02-22  Simon Josefsson  <jas@extundo.com>
71084
71085         * modules/iconvme: New file.
71086
71087         * MODULES.html.sh: Add iconvme.
71088
71089 2005-02-22  Simon Josefsson  <jas@extundo.com>
71090
71091         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71092
71093 2005-02-22  Simon Josefsson  <jas@extundo.com>
71094
71095         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71096
71097 2005-02-22  Jim Meyering  <jim@meyering.net>
71098
71099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71100         s/ifndef/ifdef/.
71101
71102 2005-02-20  Neil Conway  <neilc@samurai.com>
71103
71104         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71105         returned by OSX/Darwin if the specified buffer is not large
71106         enough for the hostname.
71107
71108 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71109
71110         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71111         pass it to _help, otherwise the latter coredumps trying to
71112         dereference state.root_argp.
71113
71114 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * modules/chdir-long (Depends-on): Add memrchr.
71117         * modules/memrchr (Files): Add lib/memrchr.h.
71118         (Include): "memrchr.h".
71119
71120 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71123
71124 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71125
71126         * lib/memrchr.h: New file.
71127         * lib/chdir-long.c: Include it.
71128         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71129         Don't bother including stddef.h.
71130
71131 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71134         inclusion.
71135         Include <sys/types.h>, for dev_t.
71136         (ME_DUMMY, ME_REMOTE): Move from here....
71137         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71138         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71139         Dmitry V. Levin.
71140         Include mountlist.h first, to test the interface.
71141
71142 2005-01-29  Bruno Haible  <bruno@clisp.org>
71143
71144         * lib/progname.c (program_name): Initialize.
71145         Needed when linking statically on MacOS X.
71146
71147 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         Sync from coreutils.
71150         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71151         (Depends-on): Add c-strtod.
71152         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71153
71154 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         Sync from coreutils.
71157         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71158
71159         Remove files that are specific to coreutils.
71160         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71161
71162 2005-01-28  Bruno Haible  <bruno@clisp.org>
71163
71164         * modules/javacomp: New file.
71165         * MODULES.html.sh (Java): Add javacomp.
71166
71167 2005-01-28  Bruno Haible  <bruno@clisp.org>
71168
71169         * m4/javacomp.m4: New file, from GNU gettext.
71170
71171 2005-01-28  Bruno Haible  <bruno@clisp.org>
71172
71173         * lib/javacomp.sh.in: New file, from GNU gettext.
71174         * lib/javacomp.h: New file, from GNU gettext.
71175         * lib/javacomp.c: New file, from GNU gettext.
71176
71177 2005-01-26  Simon Josefsson  <jas@extundo.com>
71178
71179         * lib/gai_strerror.c: Use GPL in header.
71180
71181 2005-01-26  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/javaexec: New file.
71184         * MODULES.html.sh (Java): Add javaexec.
71185
71186 2005-01-26  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/javaexec.m4: New file, from GNU gettext.
71189
71190 2005-01-26  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/javaexec.sh.in: New file, from GNU gettext.
71193         * lib/javaexec.h: New file, from GNU gettext.
71194         * lib/javaexec.c: New file, from GNU gettext.
71195
71196 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71197
71198         * modules/lchown (Depends-on): Remove lchown.h
71199
71200 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71201
71202         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71203         must be defined if the header file was not found, in order
71204         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71205
71206 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71207
71208         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71209         initializers for struct pentry_state.
71210         (__argp_error): Check return value of __asprintf
71211         (__argp_failure): Translate error message
71212
71213         * lib/argp-parse.c: Removed braces around the expansion of N_()
71214
71215 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71218         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71219         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71220         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71221         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71222         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71223         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71224         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71225         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71226         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71227         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71228         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71229         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71230         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71231         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71232         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71233         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71234         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71235         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71236         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71237         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71238         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71239         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71240         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71241         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71242         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71243         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71244         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71245         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71246         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71247         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71248         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71249         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71250         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71251         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71252         Use an all-permissive copyright notice, recommended by RMS.
71253
71254 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         * modules/chdir-long (Depends-on): Remove mempcpy.
71257
71258 2005-01-21  Jim Meyering  <jim@meyering.net>
71259
71260         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71261         same value as for Solaris 9.
71262
71263         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71264         component length.  This included changing the parameter to be
71265         of type `char *' rather than `char const *'.
71266         * lib/chdir-long.h (chdir_long): Update prototype.
71267
71268         * lib/openat.c (fdopendir, fstatat): New functions.
71269         * lib/openat.h: Include headers required for use of DIR and struct
71270         stat.
71271         [AT_SYMLINK_NOFOLLOW]: Define.
71272         (fdopendir, fstatat): Add prototypes.
71273
71274 2005-01-21  Bruno Haible  <bruno@clisp.org>
71275
71276         * modules/classpath: New file.
71277         * MODULES.html.sh (Java): Add classpath.
71278
71279 2005-01-21  Bruno Haible  <bruno@clisp.org>
71280
71281         * lib/classpath.h: New file, from GNU gettext.
71282         * lib/classpath.c: New file, from GNU gettext.
71283
71284 2005-01-20  Simon Josefsson  <jas@extundo.com>
71285
71286         * modules/version-etc-fsf: New file.
71287
71288 2005-01-20  Simon Josefsson  <jas@extundo.com>
71289
71290         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71291         * lib/version-etc.c: Remove version_etc_copyright.
71292         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71293         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71294
71295 2005-01-20  Simon Josefsson  <jas@extundo.com>
71296
71297         * lib/base64.h (isbase64): Add.
71298
71299         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71300         using a unsigned prototype, don't inline.
71301         (base64_decode): Use it.
71302
71303 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71306         it.
71307
71308 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/save-cwd.c (save_cwd): Remove code to support the case
71311         where fchdir is missing or flaky.
71312
71313 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71316
71317 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71320         AC_LIBSOURCES now does this.
71321         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71322         with new ullong_max module.
71323
71324 2005-01-19  Bruno Haible  <bruno@clisp.org>
71325
71326         * modules/sh-quote: New file.
71327         * MODULES.html.sh (Executing programs): Add sh-quote.
71328
71329 2005-01-19  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/sh-quote.h: New file, from GNU gettext.
71332         * lib/sh-quote.c: New file, from GNU gettext.
71333
71334 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         Merge from coreutils.
71337         * m4/ullong_max.m4: New file.
71338         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71339         (gl_MACROS): Assume localeconv exists.
71340
71341 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         Merge changes from coreutils, as described below in several
71344         changelogs dated today.
71345
71346         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71347         (O_DIRECTORY): Remove; not needed here, since "." must be
71348         a directory.  All uses removed.
71349         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71350         universal on Suns, and we also need to test for IRIX.
71351         Revamp code to use 'if' rather than '#if'.
71352         Avoid unnecessary comparison of cwd->desc to 0.
71353
71354         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71355         for known valid error numbers rather than observed invalid ones.
71356
71357 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * modules/ullong_max: New file.
71360
71361         * modules/chdir-long, modules/openat: New files.
71362         * modules/save-cwd (Depends-on): Depend on chdir-long.
71363         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71364
71365 2005-01-18  Jim Meyering  <jim@meyering.net>
71366
71367         Merge from coreutils.
71368         * m4/chdir-long.m4, m4/openat.m4: New files.
71369         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71370         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71371         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71372         is sane and DOES follow symlinks.  Besides, testing 20 different
71373         systems found no broken chown implementations.
71374         Prompted by a change in rsync's copy of this macro.
71375         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71376
71377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71378
71379         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71380         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71381         NULL-means-set-to-current-time semantics.
71382         Remove temporary file immediately, rather than waiting
71383         for configure's at-exit trap code to do it.
71384
71385 2005-01-18  Jim Meyering  <jim@meyering.net>
71386
71387         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71388
71389         * lib/utimens.c (futimens): Account for the fact that futimes
71390         can also fail with errno == ENOSYS or errno == ENOENT.
71391         Patch from Dmitry V. Levin.
71392
71393         Change the name of the robust chdir function from chdir to chdir_long.
71394         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71395         (restore_cwd): Use chdir_long, not chdir.
71396         * lib/chdir-long.c: Renamed from chdir.c.
71397         * lib/chdir-long.h: Renamed from chdir.h.
71398         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71399         Hurd.
71400
71401 2005-01-18  Bruno Haible  <bruno@clisp.org>
71402
71403         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71404         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71405         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71406         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71407         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71408         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71409         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71410         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71411         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71412         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71413         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71414         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71415         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71416         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71417         Use an all-permissive copyright notice, recommended by RMS.
71418
71419 2005-01-18  Bob Proulx  <bob@proulx.com>
71420
71421         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71422         simplify offsetof() macro construct to avoid compile failure with
71423         native HP-UX 11.0 ANSI C compiler.
71424
71425 2005-01-17  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71428         redundant because stpncpy.m4 takes care of it.
71429
71430 2005-01-17  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71433
71434 2005-01-17  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71437         used.
71438
71439 2005-01-17  Bruno Haible  <bruno@clisp.org>
71440
71441         * lib/fwriteerror.h (fwriteerror): Change specification to include
71442         fclose.
71443         * lib/fwriteerror.c: Include <stdbool.h>.
71444         (fwriteerror): At the end, close the file stream. Record whether
71445         stdout was already closed.
71446
71447 2005-01-17  Bruno Haible  <bruno@clisp.org>
71448
71449         * lib/execute.c (environ): Declare if needed.
71450         * lib/pipe.c (environ): Likewise.
71451         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71452
71453 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71454
71455         * modules/argp: Depend on vsnprintf
71456
71457 2005-01-10  Jim Meyering  <jim@meyering.net>
71458
71459         * modules/closeout (Depends-on): Add atexit.
71460
71461 2005-01-06  Bruno Haible  <bruno@clisp.org>
71462
71463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71464
71465 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71468         definitions to be after all include files, to avoid collisions.
71469         Problem reported by Bob Proulx.
71470
71471 2005-01-04  Jim Meyering  <jim@meyering.net>
71472
71473         Changes imported from coreutils.
71474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71475         as the mkstemp template, use a temporary directory and an
71476         8.3-friendly template to avoid trouble on systems like DJGPP.
71477         Reported by Juan M. Guerrero via Stepan Kasal.
71478         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71479         close. Remove the temporary directory right away, rather than waiting
71480         for configure's at-exit trap code to do it.
71481         Suggestion from Stepan Kasal.
71482
71483 2005-01-01  Simon Josefsson  <jas@extundo.com>
71484
71485         * gnulib-tool: Print #include directives when --import'ing.
71486
71487 2004-12-28  Simon Josefsson  <jas@extundo.com>
71488
71489         * tests/test-base64.c: Include required header files.  Remove
71490         unused variables.
71491
71492 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * modules/error (Depends-on): Remove gettext.
71495
71496 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71499         not needed.  This removes a dependency on the gettext module.
71500         [defined _LIBC]: Do not include <libintl.h>; not needed.
71501
71502 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71505         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71506
71507 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71510         HAVE_DECL_STRTOLD.
71511
71512 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * modules/getdate (Depends-on): Remove alloca-opt.
71515
71516 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71519
71520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * lib/argp-parse.c: Include <stddef.h>.
71523         (alignof, alignto): New macros.
71524         (parser_init): Don't assume that void * is aligned sufficiently
71525         for struct option.
71526
71527         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71528         need to extend the stack.
71529         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71530         large.
71531
71532 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71533
71534         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71535
71536 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71539         (2004-10-24) change.  Apparently this was a false alarm.
71540
71541         * modules/getdate: Depend on alloca-opt, not alloca.
71542
71543 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71546         Remove now-obsolete comment about AIX.
71547         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71548         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71549         (YYMAXDEPTH): New macro.
71550
71551 2004-12-18  Simon Josefsson  <jas@extundo.com>
71552
71553         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71554
71555 2004-12-18  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71558
71559 2004-12-18  Bruno Haible  <bruno@clisp.org>
71560
71561         * lib/fatal-signal.c (fatal_signals): Make non-const.
71562         (init_fatal_signals): New function.
71563         (uninstall_handlers, install_handlers): Ignore signals that were set to
71564         SIG_IGN.
71565         (at_fatal_signal): Call init_fatal_signals.
71566         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71567         SIG_IGN.
71568         Reported by Paul Eggert.
71569
71570 2004-12-18  Bruno Haible  <bruno@clisp.org>
71571
71572         * doc/alloca.texi: New file.
71573         * doc/alloca-opt.texi: New file.
71574
71575 2004-12-17  Jim Meyering  <jim@meyering.net>
71576
71577         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71578         Otherwise, install-sh could exit with improper exit status when
71579         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71580
71581 2004-12-16  Simon Josefsson  <jas@extundo.com>
71582
71583         * tests/test-base64.c: Add license.
71584
71585 2004-12-15  Stepan Kasal  <address@hidden>
71586
71587         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71588
71589 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * modules/getcwd (Files): Add m4/d-ino.m4.
71592         Suggested by Mark D. Baushke.
71593
71594 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * lib/getdate.y (textint): New member "negative".
71597         (time_zone_hhmm): New function.
71598         Expect 14 shift-reduce conflicts, not 13.
71599         (o_colon_minutes): New rule.
71600         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71601         (yylex): Set the "negative" member of signed numbers.
71602
71603 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * doc/getdate.texi (Time of day items, Time zone items):
71606         Describe new formats +00:00, UTC+00:00.
71607
71608 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71611         spurious "-l"s.  Problem reported by Stepan Kasal.
71612
71613 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71616         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71617
71618 2004-12-04  Simon Josefsson  <jas@extundo.com>
71619
71620         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71621         Vandoorselaere <yoann@prelude-ids.org>.
71622
71623 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         Changes imported from coreutils.
71626         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71627         exist.
71628         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71629
71630 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71631
71632         Changes imported from coreutils.
71633         * lib/hard-locale.c: Assume <locale.h> exists.
71634         Include "strdup.h".
71635         (GLIBC_VERSION): New macro.
71636         (hard_locale): Assume setlocale exists.
71637         Rewrite to avoid #ifdef.
71638         Use strdup rather than malloc + strcpy.
71639         * lib/human.c: Assume <locale.h> exists.
71640         (human_readable): Assume localeconv exists.
71641
71642 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * modules/hard-locale (Depends-on): Add strdup.
71645
71646 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71647
71648         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71649         convert T2, not T.  (Imported from libc.)
71650
71651 2004-11-30  Simon Josefsson  <jas@extundo.com>
71652
71653         * modules/restrict (License): Change to LGPL.
71654
71655 2004-11-30  Simon Josefsson  <jas@extundo.com>
71656
71657         * m4/restrict.m4: Add copyright and copying conditions.
71658
71659 2004-11-30  Simon Josefsson  <jas@extundo.com>
71660
71661         * m4/base64.m4: New file.
71662
71663 2004-11-30  Simon Josefsson  <jas@extundo.com>
71664
71665         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71666         base64.
71667
71668         * tests/test-base64.c: New file.
71669
71670         * modules/base64: New file.
71671
71672 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71675         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71676
71677         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71678
71679 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71682         (__getcwd.c): Don't restore errno; glibc doesn't.
71683         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71684         first, falling back to our code only if its results look suspicious.
71685         Ensure that the resulting buffer is only as large as necessary.
71686
71687         * lib/readutmp.c: Include readutmp.h first.
71688         Include <errno.h>, since readutmp.h no longer does that.
71689         * lib/readutmp.h: Don't include <errno.h>,
71690         <sys/param.h>, <time.h>; not needed to establish interface.
71691         (errno): Remove decl.
71692         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71693         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71694         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71695
71696 2004-11-28  Simon Josefsson  <jas@extundo.com>
71697
71698         * lib/base64.h, base64.c: New file.
71699
71700 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71703
71704 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71707         (Depends-on): Remove pathmax, same.  Add mempcpy.
71708         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71709         (Makefile.am): Append getcwd.h to lib_SOURCES.
71710         (Include): Add getcwd.h.
71711         (Maintainer): Change from Jim Meyering to "all, glibc",
71712         since getdate now uses intended-for-glibc code.
71713         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71714         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71715
71716 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71719         HP's ANSI C compiler.
71720         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71721         Declaring int functions causes warnings on some modern systems and
71722         shouldn't be needed to compile on ancient ones.
71723         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71724         defined.
71725
71726         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71727         with the following changes.
71728         (__set_errno): Parenthesize properly.
71729         Include <stdbool.h>.
71730         (MIN, MAX, MATCHING_INO): New macros.
71731         (__getcwd): Define with prototype, not K&R form.
71732         Use heuristics to allocate default buffer on stack if possible.
71733         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71734         behavior, and to avoid the PATH_MAX limit when computing
71735         ../../../../...
71736         Use MATCHING_INO to compare inode number to file.
71737         Check for arithmetic overflow in size calculations.
71738         Fix bug in reallocation of dot array that caused getcwd to fail
71739         on directories nested deeper than 75.
71740         Be more careful about saving errno on error.
71741         Do not use realloc; use only free+malloc, as this is a bit
71742         more flexible and avoids a needless copy operation.
71743         Do not inspect st_dev and st_ino for symbolic links; POSIX
71744         doesn't specify the latter.
71745         Check for closedir errors.
71746         Avoid needless casts.
71747         Use "#ifdef weak_alias" around weak_alias, to be like other
71748         glibc code.
71749         The following changes to getcwd.c have effect only when used in
71750         gnulib; they have no effect inside glibc proper.
71751         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71752         as alloca isn't used.
71753         (alloca, __alloca): Likewise.
71754         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71755         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71756         unconditionally, as gnulib assumes C89 or better.
71757         Do not include <sys/param.h>.
71758         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71759         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71760         better.
71761         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71762         Include <dirent.h> in a way that is compatible with modern Autoconf.
71763         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71764         New macros, if not already defined.
71765         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71766         Use "_LIBC", not "defined _LIBC", for consistency.
71767         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71768         a mempcpy module.
71769         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71770         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71771         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71772         credit only to Jim Meyering and adjust the copyright dates.
71773         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71774         <stdlib.h>, <unistd.h>, "pathmax.h".
71775         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71776         (INITIAL_BUFFER_SIZE): Remove.
71777         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71778
71779 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71782         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71783         Use the _ONCE methods, for efficiency.
71784         Check for fcntl.h.  In test program, include <errno.h>
71785         and <fcntl.h> if available.  Remove old K&R cruft from
71786         test program.  Check for common errors in GNU/Linux,
71787         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71788         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71789         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71790         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71791         name accordingly.
71792         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71793         accommodate new getcwd.c.
71794         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71795         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71796         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71797         that's all we need now.
71798
71799 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71800
71801         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71802         argp-parse.c depends on getopt internals, that means we should
71803         always use our getopt, to be on the safe side.
71804         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71805         order not to spoil the result of an eventual previous invocation
71806         of gl_GETOPT_SUBSTITUTE.
71807
71808 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71809
71810         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71811         redefinition warnings. To avoid them, include the defines
71812         in `#if !defined __need_getopt ... #endif'. The only place
71813         where __getopt_argv_const is used is in definitions
71814         of getopt_long and getopt_long_only below, which are as well
71815         protected by `#ifndef __need_getopt'.
71816         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71817         __need_getopt after including <stdio.h> and <unistd.h> These
71818         headers might have defined it.
71819
71820 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71823
71824 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71827         (futimens): New function, which uses futimes if available.
71828         (futimens, utimens): Support timespec==NULL, with same semantics
71829         as utime and utimens.
71830         * lib/utimens.h (futimens): New decl.
71831
71832 2004-11-23  Jim Meyering  <jim@meyering.net>
71833
71834         * lib/getopt_.h: Remove trailing blanks.
71835
71836 2004-11-23  Jim Meyering  <jim@meyering.net>
71837
71838         * lib/__fpending.c: Add comment.
71839
71840 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * modules/canonicalize (Depends-on): Add xreadlink.
71843         Problem reported by James Youngman.
71844
71845 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71848         New macros.
71849         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71850         optopt): Use them instead of invoking ## directly; otherwise, the
71851         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71852
71853 2004-11-19  Bruno Haible  <bruno@clisp.org>
71854
71855         * lib/strtok_r.c: Move comments from here...
71856         * lib/strtok_r.h: ... to here.
71857
71858 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71861         implementations that mishandle size_t overflow.
71862
71863 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71866         might fail.  Problem reported by Yoann Vandoorselaere.
71867         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71868         implementations that mishandle size_t overflow.
71869
71870 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * modules/canon-host (Depends-on): Add strdup.
71873
71874 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71877
71878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         * lib/canon-host.c: Include "strdup.h".
71881         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71882         Use strdup instead of malloc/strcpy to duplicate strings.
71883
71884         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71885         (human_space_before_unit): New constant.
71886         * lib/human.c (human_readable): Support it.
71887
71888         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71889         (xgetcwd): Set errno correctly when failing.
71890         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71891         the failure is actually due to a PATH_MAX problem.
71892
71893         Further getopt changes to make it more likely that glibc will
71894         buy the changes back.
71895         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71896         (getopt): Use it, so to preserve glibc semantic
71897         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71898         when compiling for libc.
71899         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71900         (getopt_long, getopt_long_only): Use it.
71901
71902         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71903         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71904         (getopt): Argv is now char * const *, as per standard.
71905         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71906         not char *__getopt_argv_const *.
71907         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71908         _getopt_long_only_r): Likewise.
71909         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71910         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71911         _getopt_long_r, _getopt_long_only_r): Likewise.
71912         * lib/getopt_.h (__getopt_argv_const): Remove.
71913         (getopt): Argv is now char * const *, as per standard.
71914
71915         * lib/getdate.y (tORDINAL): New token.
71916         (day, relunit): Allow it for relative times.
71917         (relative_time_table): Use tORDINAL for ordinals.
71918
71919 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71922         Document that "second" isn't allowed as an ordinal number.
71923
71924 2004-11-16  Jim Meyering  <jim@meyering.net>
71925
71926         * modules/closeout (Depends-on): Add fpending.
71927
71928 2004-11-15  Jim Meyering  <jim@meyering.net>
71929
71930         * lib/closeout.c: Include "__fpending.h" once again.
71931         Include <stdbool.h>.
71932         (close_stdout): Don't fail just because stdout was closed initially,
71933         since some programs don't write to stdout in the normal course of
71934         operation (other than --version and --help), and we don't want this
71935         function to make e.g. `touch file >&-' fail.
71936         But do fail if it was closed and someone has tried to write to it.
71937         E.g., `printf foo >&-' must fail.
71938
71939 2004-11-13  Jim Meyering  <jim@meyering.net>
71940
71941         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71942
71943 2004-11-12  Simon Josefsson  <jas@extundo.com>
71944
71945         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71946         small doc fix is still pending.
71947
71948 2004-11-11  Simon Josefsson  <jas@extundo.com>
71949
71950         * modules/strtok_r: New file.
71951
71952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71953         strtok_r.
71954
71955 2004-11-11  Simon Josefsson  <jas@extundo.com>
71956
71957         * m4/strtok_r.m4: New file.
71958
71959         * m4/getopt.m4: Replace opterr.
71960
71961 2004-11-11  Simon Josefsson  <jas@extundo.com>
71962
71963         * lib/strtok_r.h, strtok_r.c: New file.
71964
71965 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71968         of replacing opterr, getopt, etc.  This should handle the
71969         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71970
71971 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71974         we can stop lying to compilers about the constness of argv when we
71975         are compiled outside glibc.
71976         (getopt, getopt_long, getopt_long_only): Use it.
71977         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71978         _getopt_internal, getopt): Likewise.
71979         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71980         _getopt_long_only_r): Likewise.
71981         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71982         _getopt_long_r, _getopt_long_only_r): Likewise.
71983
71984         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71985         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71986         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71987         the other external symbols.
71988         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71989         declaration, since the above renaming now works around collisions.
71990
71991 2004-11-11  Jim Meyering  <jim@meyering.net>
71992
71993         * lib/linebreak.c: Remove trailing blanks.
71994         * lib/alloca_.h: Likewise.
71995         * lib/acosl.c: Likewise.
71996         * lib/euidaccess.c: Likewise.
71997         * lib/allocsa.h: Likewise.
71998
71999 2004-11-10  Simon Josefsson  <jas@extundo.com>
72000
72001         * m4/getaddrinfo.m4: New file.
72002
72003 2004-11-10  Simon Josefsson  <jas@extundo.com>
72004
72005         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72006
72007 2004-11-10  Simon Josefsson  <jas@extundo.com>
72008
72009         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72010         getaddrinfo.
72011
72012         * modules/getaddrinfo: New file.
72013
72014 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72017
72018 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * lib/mktime.c (SHR): New macro, which is a portable
72021         substitute for >> that should work even on Crays.
72022         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72023         Problem reported by Mark D. Baushke in
72024         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72025         * lib/getdate.y (SHR): Likewise.
72026         (tm_diff): Use it.
72027         * lib/strftime.c (SHR): Likewise.
72028         (tm_diff): Use it.
72029         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72030         quote_these_too, so that right shifts are well defined.  All uses
72031         changed.
72032
72033 2004-11-10  Jim Meyering  <jim@meyering.net>
72034
72035         Ensure that no close failure goes unreported.
72036         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72037         return early when it seems there's nothing to flush.
72038         Don't include __fpending.h.
72039
72040 2004-11-10  Jim Meyering  <jim@meyering.net>
72041
72042         * modules/closeout (Depends-on): Remove fpending.
72043
72044 2004-11-10  Jim Meyering  <jim@meyering.net>
72045
72046         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72047
72048 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72051         gl_FUNC_STRFTIME.
72052         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72053         and AC_REQUIRE when possible, to avoid duplicate checks.
72054         Check for <wchar.h>.
72055
72056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72059
72060 2004-11-09  Bruno Haible  <bruno@clisp.org>
72061
72062         * m4/sockpfaf.m4: New file.
72063
72064 2004-11-05  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72067         Reported by Mark D. Baushke <mdb@cvshome.org>.
72068
72069 2004-11-04  Bruno Haible  <bruno@clisp.org>
72070
72071         2004-09-11  Bruno Haible  <bruno@clisp.org>
72072                 * allocsa.valgrind: New file.
72073         2004-02-06  Bruno Haible  <bruno@clisp.org>
72074                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72075                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72076                 Reported by Christopher Seip <chris.seip@hp.com>.
72077
72078 2004-11-04  Bruno Haible  <bruno@clisp.org>
72079
72080         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72081         (Makefile.am): Distribute it.
72082
72083 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72086         with errno == ERANGE if the buffer is too small.
72087         Problem reported by Mark D. Baushke.
72088
72089 2004-11-03  Albert Chin  <china@thewrittenword.com>
72090             Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72093         equivalent, substitute $ac_type for equivalent type rather than
72094         blindly using uint32_t *always* which won't work if uint32_t is not
72095         available.  Define _UINT32_T to work around typedef of uint32_t if
72096         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72097         2.5.1.
72098
72099 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * m4/jm-macros.m4: Sync from coreutils.
72102         (gl_MACROS): Check for mbrlen, for pathchk.
72103         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72104
72105 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * lib/xreadlink.c (MAXSIZE): New macro.
72108         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72109         size does not exceed MAXSIZE.  Avoid cast.
72110         As suggested by Mark D. Baushke in
72111         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72112         if readlink fails with buffer size just under MAXSIZE, try again
72113         with MAXSIZE.
72114
72115 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72118
72119 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72120         and  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72123         (get_date): Overparenthesize to avoid GCC warning.
72124
72125 2004-11-02  Bruno Haible  <bruno@clisp.org>
72126
72127         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72128         returns void.
72129
72130 2004-11-02  Bruno Haible  <bruno@clisp.org>
72131
72132         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72133         function returns void.
72134
72135 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72138         fflush_unlocked, flockfile, funlockfile, funlockfile,
72139         fputs_unlocked, putc_unlocked.
72140
72141 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72144         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72145         already declared.
72146
72147 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * modules/getdate (Files): Add doc/getdate.texi.
72150         (Depends-on): Add setenv, xalloc.
72151
72152 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * lib/getdate.y: Add support for TZ="foo" within a date string.
72155         Fix some bugs near time_t boundaries.  Reject dates with
72156         out-of-range components, e.g., "Sept 31".
72157         Include <stdlib.h>, "setenv.h", "xalloc.h".
72158         (ISDIGIT_LOCALE): Remove; unused.
72159         Note that the TZ and time functions used here are not reentrant.
72160         (mktime_ok, get_tz): New functions.
72161         (TZBUFSIZE): New constant.
72162         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72163         This requires that we sometimes generate our own TZ="XXX..." setting.
72164
72165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * doc/getdate.texi: New file, from coreutils with modifications for
72168         the new TZ parsing.
72169
72170 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72171
72172         * lib/mktime.c (not_equal_tm): Remove redundant check.
72173
72174 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * modules/regex (lib_SOURCES): Add regex.c.
72177         Reported by James Youngman in
72178         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72179
72180 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         * lib/getdate.y: Use Bison 1.875 features, and some minor
72183         code cleanups.  This change does not affect semantics.
72184         Don't include <stdlib.h>; no longer needed.
72185         Don't include unlocked-io.h; only the "#if TEST" code uses
72186         stdio, and performance isn't crucial there.
72187         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72188         Bison 1.875 features as described below.
72189         All uses of "PC." replaced by "pc->".
72190         (YYSTYPE): Add a forward declaration.
72191         (yylex, yyerror): Use full prototypes in forward decls.
72192         Use "%pure-parser" rather than obsolescent "%pure_parser".
72193         Use %parse-param and %lex-param instead of obsolescent
72194         YYPARSE_PARAM and YYLEX_PARAM.
72195         (meridian_table, month_and_day_table, time_units_table,
72196         relative_time_table, time_zone_table, military_table,
72197         lookup_zone, lookup_word, get_date):
72198         Use NULL instead of 0 where appropriate.
72199         (to_hour): Avoid abort (), to avoid a dependency on
72200         stdlib.h.
72201         (yyerror, yylex): Now accepts parser_control * arg.
72202         (main) [TEST]: Use '\0' rather than 0 for char.
72203
72204 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72207
72208 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72211         It's now the caller's responsibility to handle the case where
72212         !HAVE_GETPAGESIZE && !defined getpagesize.
72213
72214         * lib/mktime.c (leapyear): Arg is long int, not int.
72215
72216 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72219
72220 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72223         missing.  Problem reported by James Youngman.
72224
72225 2004-10-16  Simon Josefsson  <jas@extundo.com>
72226
72227         * gnulib-tool: Fix comments.  Fix parse problem.
72228         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72229
72230 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72233         implementation of getopt_long.  Problem reported by Alexander Taler in:
72234         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72235
72236 2004-10-15  Bruno Haible  <bruno@clisp.org>
72237
72238         * gnulib-tool: Untabify. Initialize supplied_libname.
72239         (func_usage): More homogenous output.
72240         (func_modules_transitive_closure, func_modules_to_filelist,
72241         func_emit_lib_Makefile_am): New functions.
72242         (func_import): New function, extracted from big case statement. Use
72243         func_get_license, func_modules_transitive_closure,
72244         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72245         opt_lgpl. Don't use test -a, as it's not portable.
72246         (func_create_testdir): Use func_modules_transitive_closure,
72247         func_modules_to_filelist, func_emit_lib_Makefile_am.
72248
72249 2004-10-15  Bruno Haible  <bruno@clisp.org>
72250
72251         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72252
72253 2004-10-15  Bruno Haible  <bruno@clisp.org>
72254
72255         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72256         the portions belonging to each module.
72257         Suggested by Derek Robert Price <derek@ximbiot.com>.
72258
72259 2004-10-12  Simon Josefsson  <jas@extundo.com>
72260
72261         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72262         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72263         to real functions.
72264
72265 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72266
72267         * modules/vsnprintf: New file.
72268
72269 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72270
72271         * m4/vsnprintf.m4: New file.
72272
72273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72274
72275         * lib/vsnprintf.h: New file.
72276         * lib/vsnprintf.c: New file.
72277
72278 2004-10-11  Bruno Haible  <bruno@clisp.org>
72279
72280         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72281         vsnprintf.
72282
72283 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72286
72287 2004-10-07  Bruno Haible  <bruno@clisp.org>
72288
72289         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72290         fits into the provided buffer.
72291
72292 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * lib/diacrit.c, diacrit.h: Add GPL notice.
72295
72296         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72297         notice.
72298         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72299         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72300         This avoids a potential constant-folding bug.
72301
72302 2004-10-05  Bruno Haible  <bruno@clisp.org>
72303
72304         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72305         for the declaration of strsep.
72306
72307 2004-10-05  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72310
72311 2004-10-04  Simon Josefsson  <jas@extundo.com>
72312
72313         * modules/memmem: New file.
72314         * tests/test-memmem.c: New file.
72315         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72316
72317 2004-10-04  Simon Josefsson  <jas@extundo.com>
72318
72319         * m4/memmem.m4: New file.
72320
72321 2004-10-04  Simon Josefsson  <jas@extundo.com>
72322
72323         * lib/memmem.h: New file.
72324         * lib/memmem.c: New file, taken from glibc.
72325
72326 2004-10-04  Simon Josefsson  <jas@extundo.com>
72327
72328         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72329         '#ifdef USE_UNLOCKED_IO'.
72330
72331 2004-10-04  Simon Josefsson  <jas@extundo.com>
72332
72333         * config/srclist.txt: Add memmem from glibc.
72334
72335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72338
72339         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72340         modules/exclude, modules/getdate, modules/getline,
72341         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72342         modules/getusershell, modules/linebuffer, modules/md5,
72343         modules/mountlist, modules/posixtm, modules/readtokens,
72344         modules/readutmp, modules/regex, modules/sha1,
72345         modules/version-etc, modules/yesno:
72346         Remove dependency on unlocked-io.
72347
72348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72349
72350         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72351
72352         * m4/unlocked-io.m4: Add copyright notice.
72353         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72354
72355 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72358         * lib/xmalloc.c (xmemdup): Likewise.
72359         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72360         XFREE): Remove these long-obsolescent macros.
72361         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72362         * lib/xstrdup.c: Remove.
72363
72364         * lib/regex.c (re_comp): Cast gettext return value to char *,
72365         Problem reported by Martin Neitzel via Mark D. Baushke.
72366
72367 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72370         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72371         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72372         regex.c, sha1.c, version-etc.c, yesno.c:
72373         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72374         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72375         the includer's responsibility.
72376
72377         Sync from coreutils.
72378
72379         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72380         points to the start of a string, as the C Standard says the
72381         resulting behavior is undefined.
72382
72383         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72384         simple -> simple_backups, numbered_existing ->
72385         numbered_existing_backups, numbered -> numbered_backups
72386         to avoid shadowing problems.  All uses changed.
72387         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72388         * lib/backupfile.c (check_extension, numbered_backup):
72389         Rename locals to avoid shadowing 'basename'.
72390         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72391         once.
72392
72393         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72394         * lib/.cvsignore: Add getopt.h.
72395
72396 2004-10-04  Bruno Haible  <bruno@clisp.org>
72397
72398         * modules/README: New file.
72399         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72400         not a module.
72401
72402 2004-10-02  Jim Meyering  <jim@meyering.net>
72403
72404         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72405
72406 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72407
72408         * modules/strsep: New file.
72409
72410 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72411
72412         * m4/strsep.m4: New file.
72413
72414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72415
72416         * lib/strsep.h: New file.
72417         * lib/strsep.c: New file.
72418
72419 2004-10-01  Simon Josefsson  <jas@extundo.com>
72420
72421         * lib/snprintf.c (snprintf): Handle size==0.
72422
72423 2004-10-01  Simon Josefsson  <jas@extundo.com>
72424             Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72427         (snprintf): Declare 'args'.
72428
72429 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/snprintf.c: Remove comments as to why each header is needed.
72432
72433 2004-10-01  Bruno Haible  <bruno@clisp.org>
72434
72435         * MODULES.html.sh: Add strsep.
72436
72437 2004-09-30  Simon Josefsson  <jas@extundo.com>
72438
72439         * modules/snprintf: New file.
72440
72441 2004-09-30  Simon Josefsson  <jas@extundo.com>
72442
72443         * m4/snprintf.m4: New file.
72444
72445 2004-09-30  Simon Josefsson  <jas@extundo.com>
72446
72447         * lib/snprintf.h, lib/snprintf.c: New files.
72448
72449 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72450
72451         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72452         (hol_entry_help): Never translate an empty string.
72453         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72454         * lib/argp.h (OPTION_NO_TRANS): New option.
72455
72456 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * modules/argp (Maintainer): Replace Simon Josefsson
72459         by Sergey Poznyakoff.
72460
72461 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72464         changes merged back into glibc.
72465
72466 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72469
72470 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72471
72472         * lib/xvasprintf.c: Include xalloc.h.
72473         (xvasprintf): Use xalloc_die, not xmalloc_die.
72474
72475 2004-09-29  Bruno Haible  <bruno@clisp.org>
72476
72477         * modules/alloca-opt: New file, derived from modules/alloca.
72478         * modules/allocsa: Depend on alloca-opt instead of alloca.
72479         * modules/setenv: Likewise.
72480         * modules/vasnprintf: Likewise.
72481         * MODULES.html.sh: Add alloca-opt.
72482
72483 2004-09-28  Simon Josefsson  <jas@extundo.com>
72484
72485         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72486         LGPL, and to replace license template from GPL to LGPL.
72487
72488 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * modules/dummy: Change license to LGPL.
72491
72492 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72495
72496 2004-09-24  Simon Josefsson  <jas@extundo.com>
72497
72498         * modules/minmax (License): Change from GPL to LGPL.
72499
72500 2004-09-23  Simon Josefsson  <jas@extundo.com>
72501
72502         * gnulib-tool (--import): Typo.
72503
72504 2004-09-23  Simon Josefsson  <jas@extundo.com>
72505
72506         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72507
72508 2004-09-22  Bruno Haible  <bruno@clisp.org>
72509
72510         * modules/*: Add 'License' field.
72511         * gnulib-tool: Accept --extract-license option.
72512         (func_get_license): New function.
72513
72514 2004-09-21  Bruno Haible  <bruno@clisp.org>
72515
72516         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72517         Reported by Simon Josefsson.
72518
72519 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72522         gl_AC_TYPE_LONG_LONG.
72523
72524 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72527
72528 2004-09-18  Simon Josefsson  <jas@extundo.com>
72529         and  Paul Eggert  <eggert@cs.ucla.edu>
72530
72531         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72532         calls with autoreconf.  Define GL_LIB.
72533
72534 2004-09-14  Karl Berry  <karl@gnu.org>
72535
72536         * config/srclist.txt: unsync setenv.c, sigh.
72537
72538 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72541         Problem reported by Bruno Haible in:
72542         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72543
72544 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * config/srclist.txt: Comment out argp-pvh.c.
72547
72548 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72551         in case some system header has #define'd it.  Problem reported by
72552         Soeren D. Schulze in
72553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72554
72555 2004-09-09  Karl Berry  <karl@gnu.org>
72556
72557         * regex.[ch]: delete from the root.  These were supposed to be
72558                 synced with emacs cvs, but this has not happened for about
72559                 a year, and anyway nothing else uses emacs regex.[ch].
72560                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72561                 lib/regex[.ch] is untouched.
72562
72563 2004-09-09  Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72566
72567 2004-09-09  Bruno Haible  <bruno@clisp.org>
72568
72569         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72570         modifications.
72571         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72572
72573 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72574
72575         * modules/xvasprintf: New file.
72576         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72577
72578 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72579
72580         * lib/xvasprintf.h: New file.
72581         * lib/xvasprintf.c: New file.
72582         * lib/xasprintf.c: New file.
72583
72584 2004-09-08  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72587
72588 2004-09-08  Bruno Haible  <bruno@clisp.org>
72589
72590         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72591         length is > INT_MAX.
72592         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72593         more.
72594
72595 2004-09-08  Bruno Haible  <bruno@clisp.org>
72596
72597         * lib/stdint_.h: New file, taken from GNU clisp.
72598
72599 2004-09-08  Bruno Haible  <bruno@clisp.org>
72600             Oskar Liljeblad  <oskar@osk.mine.nu>
72601
72602         * modules/stdint: New file.
72603         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72604
72605 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72606
72607         Import from coreutils.
72608         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72609         strings on unbounded length.  alloca's performance benefits aren't
72610         that important here.
72611         (V_STRDUP): Remove.
72612         (parse_with_separator): New function, with most of the internals
72613         of the old parse_user_spec.  Allow user to omit both user and group,
72614         for compatibility with FreeBSD.
72615         Clone only the user name, not the entire spec.
72616         Do not set *uid, *gid unless entirely successful.
72617         Avoid memory leak in some failing cases.
72618         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72619         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72620         (parse_user_spec): Rewrite to use parse_with_separator.
72621
72622 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * modules/userspec: Don't depend on alloca.
72625
72626 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72629
72630 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72633         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72634         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72635
72636 2004-08-16  Simon Josefsson  <jas@extundo.com>
72637
72638         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72639         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72640         Add --dry-run for --import.
72641         Let user provided command line parameters override configure.ac
72642         settings.
72643
72644 2004-08-12  Simon Josefsson  <jas@extundo.com>
72645
72646         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72647         as discussed with Paul Eggert in threads rooted at
72648         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72649         and
72650         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72651         Before, the test was empty, and relied on ELIDE_CODE in source
72652         code.)
72653         (gl_PREREQ_GETOPT): New macro.
72654         (gl_GETOPT): Use them.
72655
72656 2004-08-12  Simon Josefsson  <jas@extundo.com>
72657
72658         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72659         * lib/getopt_.h: Renamed from getopt.h.
72660
72661 2004-08-12  Simon Josefsson  <jas@extundo.com>
72662
72663         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72664         Change default library name from libfoo to libgnu.
72665         Now, if you have a configure.ac that says:
72666                 gl_SOURCE_BASE(gl)
72667                 gl_M4_BASE(gl/m4)
72668                 gl_MODULES(error getopt etcetera)
72669                 gl_INIT
72670         you can import all you need by running:
72671                 ../gnulib/gnulib-tool --import
72672
72673         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72674         (Makefile.am): Rewrite, use logic from argz.
72675         (Include): Use <getopt.h> instead of "getopt.h".
72676
72677 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         * modules/argp (Files): Add m4/unlocked-io.m4.
72680         (Depends-on): Add extensions.
72681
72682 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72683
72684         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72685         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72686         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72687         Check for program_invocation_name, program_invocation_short_name,
72688         flockfile, funlockfile, features.h, _getopt_long_only_r.
72689
72690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72693         its complicated substitute.
72694         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72695         and program_invocation_name.
72696         (__argp_basename) [!_LIBC]: Remove; the only use was
72697         replaced by its body.
72698         (__argp_short_program_name): Change condition from
72699         !defined __argp_short_program_name to
72700         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72701         to match argp-namefrob.h.
72702         (__argp_failure): Don't assume strerror_r returns char *.
72703         * lib/argp-parse.c (N_): Define unconditionally.
72704         (argp_default_options): Fill out initializers with 0 to avoid
72705         gcc warnings.
72706
72707 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72710         getopt1.c.
72711
72712 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         Merge from coreutils.
72715
72716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72717
72718         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72719         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72720
72721 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         Merge from coreutils.
72724
72725         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72726         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72727         for Reliant Unix 5.43.
72728
72729         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72730         (union fooround): Use uintmax_t, not long int.
72731         The rest is a merge from libc:
72732         [defined _LIBC]: Include <shlib-compat.h>.
72733         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72734
72735         * lib/settime.c (settime): Recode to avoid warning with
72736         Sun Forte C 6U2.
72737
72738         * lib/strverscmp.c: Convert to UTF-8.
72739
72740 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72743         m4/uintmax_t.m4.
72744
72745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * modules/xalloc-die: New file.
72748         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72749
72750         * modules/md5 (Files): Add m4/uint32_t.m4.
72751         * modules/sha1: Renamed from modules/sha.
72752         (Files):
72753         Rename lib/sha.h to lib/sha1.h.
72754         Rename lib/sha.c to lib/sha1.c.
72755         Rename m4/sha.m4 to m4/sha1.m4.
72756         (lib_SOURCES): Likewise.
72757         (configure.ac): Rename gl_SHA to gl_SHA1.
72758         (Include): sha.h -> sha1.h.
72759
72760 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72763         * m4/sha1.m4: Renamed from sha.m4.
72764         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72765
72766 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * lib/obstack.h (obstack_empty_p):
72769         Don't assume that chunk->contents is suitably aligned.
72770         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72771         Likewise. Problem reported by Benno in
72772         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72773
72774         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72775         readable.  This could be improved further but it'd take some work.
72776
72777 2004-08-08  Simon Josefsson  <jas@extundo.com>
72778
72779         * modules/xgethostname (Depends-on): Remove exit and error (not
72780         used).
72781
72782         * modules/getpass-gnu: Add getpass.h.
72783         (Depends-on): Add stdbool.
72784         * modules/getpass: Add getpass.h.
72785
72786 2004-08-08  Simon Josefsson  <jas@extundo.com>
72787
72788         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72789         Check getpass declaration.
72790
72791 2004-08-08  Simon Josefsson  <jas@extundo.com>
72792
72793         * lib/xgethostname.c: Don't include error.h (not used).
72794
72795         * lib/getpass.h: Add.
72796         * lib/getpass.c: Include getpass.h first.
72797
72798 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         * lib/xalloc-die.c: New file.
72801         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72802         All uses removed.
72803         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72804         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72805         xalloc-die.c.
72806         (_, N_, xalloc_die): Move to xalloc-die.c.
72807         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72808         so that we needn't mess with xalloc_msg_memory_exhausted.
72809
72810         * lib/sha1.h: Renamed from sha.h.
72811         (SHA1_H): Renamed from _SHA_H.
72812         (sha1_ctx): Renamed from sha_ctx.
72813         (sha1_init_ctx): Renamed from sha_init_ctx.
72814         (sha1_process_block): Renamed from sha_process_block.
72815         (sha1_process_bytes): Renamed from sha_process_bytes.
72816         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72817         (sha1_read_ctx): Renamed from sha_read_ctx.
72818         (sha1_stream): Renamed from sha_stream.
72819         (sha1_buffer): Renamed from sha_buffer.
72820         * lib/sha1.c: Likewise; renamed from sha.c.
72821         Do not include <sys/types.h>.
72822         Include <stddef.h> rather than <stdlib.h>.
72823
72824 2004-08-08  Bruno Haible  <bruno@clisp.org>
72825
72826         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72827         FILESYSTEM_PREFIX_LEN.
72828         * lib/progreloc.c: Likewise.
72829         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72830
72831 2004-08-06  Simon Josefsson  <jas@extundo.com>
72832
72833         * modules/progname (Depends-on): Don't depend on stdbool.
72834
72835 2004-08-06  Simon Josefsson  <jas@extundo.com>
72836
72837         * modules/getsubopt: New file.
72838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72839         getsubopt.
72840
72841 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         More merge from coreutils.
72844
72845         * m4/utimens.m4, m4/utimecmp.m4: New files.
72846         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72847         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72848         prereq.m4, sha.m4: Import changes from coreutils.
72849
72850 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         More merge from coreutils.
72853         * modules/raise, modules/readtokens0, modules/utimens:
72854         * modules/utimecmp, module/xnanosleep: New files.
72855         * modules/strftime: Add lib/strftime.h.
72856         Change include from <time.h> to "strftime.h".
72857         * modules/yesno: Add lib/yesno.h.
72858         * modules/backupfile: Remove lib/addext.c.
72859         * modules/euidaccess: Add stat-macros.h.
72860         * modules/canonicalize, modules/euidaccess,
72861         modules/filemode, modules/lchown, modules/makepath,
72862         modules/rmdir, modules/stat: Likewise.
72863
72864 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         Merge from tar.
72867         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72868         SIZE_MAX is a valid preprocessor constant.
72869         (__argp_basename): Change from "#ifndef _LIBC"
72870         to "#ifndef __argp_short_program_name", so that
72871         we don't compile these functions for tar.
72872
72873         More merges from coreutils.
72874         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72875         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72876         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72877         * lib/addext.c: Remove; no longer needed.
72878         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72879         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72880         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72881         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72882         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72883         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72884         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72885         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72886         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72887         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72888         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72889         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72890         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72891         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72892         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72893         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72894         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72895         Import changes from coreutils.
72896
72897 2004-08-05  Simon Josefsson  <jas@extundo.com>
72898
72899         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72900
72901 2004-08-05  Simon Josefsson  <jas@extundo.com>
72902
72903         * m4/getsubopt.m4: New file.
72904
72905 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         Merge from coreutils.
72908
72909         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72910         * m4/getcwd-path-max.m4: New files.
72911
72912         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72913         FILESYSTEM_PREFIX_LEN ->
72914         FILE_SYSTEM_PREFIX_LEN.
72915         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72916         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72917         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72918         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72919
72920         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72921         prerequisite modules now handle the DOS stuff.
72922         Don't check for unistd.h.
72923
72924 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         Merge from coreutils.
72927
72928         * lib/.gdb-history: Remove; this doesn't belong here.
72929
72930         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72931         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72932         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72933         * lib/getcwd.c: New files.
72934
72935         * lib/dirname.h: Include <stdbool.h>.
72936         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72937         for consistency with POSIX terminology.  All uses changed.
72938         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72939         (strip_trailing_slashes): Use bool for booleans.
72940         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72941
72942         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72943         sometimes returns a positive errno value even when it succeeds.
72944         (print_errno_message) [!LIBC]: Fall back on strerror if
72945         __strerror_r fails.
72946
72947         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72948         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72949         (longest_relative_suffix): New function.
72950         (path_concat): Use it.  Assume first argument is not NULL.
72951         Port to DOS.  Omit redundant separators.
72952         Report an error instead of returning NULL.
72953         Use mempcpy instead of memcpy.
72954         (xpath_concat): Remove: not declared or used.
72955
72956         * lib/same.h: Include <stdbool.h>
72957         (same_name): Return bool, not int.
72958         * lib/same.c (same_name): Likewise.
72959         (errno): Don't declare; we assume C89 or better now.
72960
72961         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72962         if not already defined.
72963
72964         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72965         * lib/dup-safer.c (errno): Likewise.
72966
72967 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         Merge from coreutils.
72970         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72971         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72972         * modules/path-concat: Don't depend on strdup.
72973
72974 2004-08-03  Simon Josefsson  <jas@extundo.com>
72975
72976         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72977         * lib/progname.h: Don't include stdbool.h.
72978
72979 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72982         * MODULES.html.sh (func_all_modules): Remove fatal.
72983
72984 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72987
72988 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72991         working.
72992
72993 2004-08-02  Simon Josefsson  <jas@extundo.com>
72994
72995         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72996         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72997         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72998
72999 2004-08-01  Simon Josefsson  <jas@extundo.com>
73000
73001         * lib/xgetdomainname.c: Include stdlib.h, for free().
73002
73003 2004-07-19  Bruno Haible  <bruno@clisp.org>
73004
73005         * MODULES.html.sh (func_all_modules): Add dummy.
73006
73007 2004-07-16  Simon Josefsson  <jas@extundo.com>
73008
73009         * modules/dummy: New file.
73010
73011 2004-07-16  Simon Josefsson  <jas@extundo.com>
73012
73013         * lib/dummy.c: New file.
73014
73015 2004-07-16  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/backupfile.h: Add extern "C" for C++.
73018         * lib/closeout.h: Likewise.
73019         * lib/copy-file.h: Likewise.
73020         * lib/findprog.h: Likewise.
73021         * lib/full-write.h: Likewise.
73022         * lib/pathname.h: Likewise.
73023         * lib/progname.h: Likewise.
73024         * lib/stpcpy.h: Likewise.
73025         * lib/stpncpy.h: Likewise.
73026         * lib/strcase.h: Likewise.
73027         * lib/strstr.h: Likewise.
73028         * lib/xalloc.h: Likewise.
73029
73030         * lib/mbswidth.h: Add extern "C" for C++.
73031         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73032
73033 2004-07-13  Robert Millan  <robertmh@gnu.org>
73034
73035         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73036
73037 2004-07-09  Simon Josefsson  <jas@extundo.com>
73038
73039         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73040         failed without this.)
73041
73042 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * modules/chown (Files): Add lib/fchown-stub.c, since
73045         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73046
73047 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * lib/fchown-stub.c: New file.
73050
73051 2004-06-24  Jim Meyering  <jim@meyering.net>
73052
73053         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73054
73055 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         * modules/argz: Omit "#include".
73058
73059         * MODULES.html.sh (func_all_modules): Add calloc, to match
73060         2004-06-01 addition of calloc module.
73061
73062 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * m4/argz.m4: New file, which is autoupdated from libtool.
73065
73066 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73069         libtool.
73070
73071 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * config/srclist-update: Don't insist on "USA." before the
73074         close-comment, as libtool omits the period and puts the */ on a
73075         separate line.
73076         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73077         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73078
73079 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73080
73081         * modules/argz: New file.
73082         * MODULES.html.sh (func_all_modules): Add argz.
73083
73084 2004-06-12  Jim Meyering  <jim@meyering.net>
73085         and  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * modules/hash (Files): Add lib/xalloc.h.
73088         * modules/pipe (Depends-on): Add wait-process.
73089         * modules/stat (Depends-on): Add xalloc.
73090         * modules/userspec (Files): Add lib/userspec.h.
73091         * modules/xstrto
73092
73093         Upgrade from gettext-0.13.
73094         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73095         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73096         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73097
73098 2004-06-10  Jim Meyering  <jim@meyering.net>
73099
73100         * lib/calloc.c: New file.
73101
73102 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         * lib/getdate.y (yylex): Allow space between sign and number.
73105         Problem reported by Dan Jacobson.
73106
73107 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         Merge from coreutils CVS.
73110
73111         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73112         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73113         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73114         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73115         xstrtol.m4: Fix copyright date and/or serial number.
73116
73117         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73118         See if we need an fchown replacement.
73119         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73120         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73121         and use the replacement function if we detect either defect.
73122
73123         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73124         gl_UTIMECMP.
73125
73126 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73127         and  Jim Meyering  <jim@meyering.net>
73128
73129         Merge from coreutils CVS.
73130
73131         * lib/stat-macros.h: New file, with contents from file-type.h
73132         and coreutils' system.h.
73133         * lib/file-type.c: Include "stat-macros.h".
73134         * lib/file-type.h (file_type): Move all macro definitions to new file,
73135         stat-macros.h.
73136
73137         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73138         Wrap old code with this conditional.
73139         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73140         function that does not dereference symlinks.
73141         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73142
73143         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73144         dependency problems.
73145         (xreadlink): Accept new arg SIZE, for efficiency.
73146         All decls and uses changed.
73147         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73148
73149         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73150         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73151
73152         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73153         sysexits.h.
73154
73155 2004-06-01  Jim Meyering  <jim@meyering.net>
73156
73157         * m4/calloc.m4: New file.
73158
73159 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73162         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73163         Also, fix a typo in a diagnostic.
73164
73165 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73168         or AC_FUNC_REALLOC.
73169
73170 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73173         macros to be defined.
73174         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73175         the allocator returns NULL because the requested size is zero.
73176
73177 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73180         var.  Add comment explaining why libc still defines it.  This
73181         merges the following patch from glibc:
73182         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73183
73184 2004-05-20  Andreas Schwab  <schwab@suse.de>
73185
73186         * m4/free.m4: Replace free if it not known to work, not the other
73187         way round.
73188
73189 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73192         present in glibc since revision 1.1 of this file.
73193         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73194         obstack_alignment_mask, obstack_alloc, obstack_base,
73195         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73196         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73197         obstack_grow0, obstack_init, obstack_int_grow,
73198         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73199         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73200         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73201         nonexistent functions.
73202
73203 2004-05-18  Karl Berry  <karl@gnu.org>
73204
73205         * config/srclist.txt: break link for vasnprintf.c.
73206
73207 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         Port obstack to the AS/400, where pointers are 16 bytes wide and
73210         you cannot cast an integer to a valid pointer.  This patch is
73211         currently waiting to be integrated into glibc; see
73212         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73213
73214         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73215         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73216         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73217         (struct obstack): temp member is now a union of a pointer and
73218         an integer, instead of an integer.  All integer uses changed.
73219         This does not affect the physical layout of struct obstack,
73220         except on hosts (like the AS/400) where the size or alignment of
73221         void * is greater than that of ptrdiff_t.
73222         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73223         __STDC__)]: Store temporary in pointer member of union, not
73224         integer member.
73225         * lib/obstack.c: Include <stddef.h>, for offsetof.
73226         (struct fooalign): Remove; it doesn't need a name.
73227         (union fooround): Change double to long double, and add void *.
73228         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73229         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73230         not a macro.  Hence the values are always int; so remove all
73231         casts-to-int in uses.
73232
73233 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73236         we can get this patch merged into glibc.
73237
73238 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73239             Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * m4/argp: Depend on alloca.
73242
73243 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73244             Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73247         freecoding.
73248
73249 2004-05-17  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73252         precision that consists of a '.' followed by an empty digit string.
73253         Patch by Tor Lillqvist <tml@iki.fi>.
73254
73255 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73258         for backward compatibility with older code.  We need our own
73259         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73260         it under some other name, and our alloca.h will define it.
73261
73262 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73263             Derek Price  <derek@ximbiot.com>
73264
73265         * lib/alloca.c: Include <alloca.h>, to get our interface.
73266         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73267         include <alloca.h> first.  Use C89 prototype for alloca; this
73268         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73269         Use #elif for simplicity, since we can assume C89 now.
73270         Don't try to source the system alloca.h since it will not be found
73271         and to prevent recursively including its replacement.
73272         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73273         * lib/regex.c: Likewise.
73274
73275 2004-05-16  Derek Price  <derek@ximbiot.com>
73276             Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         getline cleanup.  This changes the getndelim2 API: both order of
73279         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73280         no delimiter).
73281
73282         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73283         interface does that.
73284         (getline): Always use getdelim, so that we don't have two
73285         copies of this code.
73286         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73287         if available.
73288         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73289         (GETNDELIM2_MAXIMUM): New macro.
73290         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73291         instead of the old practice of delim2==0.  All callers changed.
73292         Return -1 on overflow, instead of returning junk.
73293         Do not set *linesize unless allocation succeeds.
73294         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73295         that we include sys/types.h.
73296         * lib/getnline.h: Likewise.
73297         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73298         (getndelim2): Reorder arguments.
73299         * lib/getnline.c (getnline, getndelim):
73300         Don't discard the NMAX argument.
73301         (getnline): Invoke getndelim, to avoid code duplication.
73302         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73303         of (size_t) -1 by callers of the getnline family.
73304
73305 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73308         Check for gettimeofday.
73309         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73310         Check for settimeofday, stime.
73311
73312 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * lib/nanosleep.c (suspended): Change its type from int to
73315         sig_atomic_t volatile.
73316         (first_call): Make it private to rpl_nanosleep, and have it
73317         be zero initially as that's a bit faster.
73318         (my_usleep): Round up fractional times instead of truncating them,
73319         as this is the usual meaning for 'sleep'.
73320
73321         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73322         doesn't work.
73323         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73324         (ENOSYS): Define if not defined.
73325         (settime): Fall back on stime if it exists and settimeofday fails.
73326         But don't bother with fallbacks if a method fails with errno == EPERM.
73327
73328 2004-05-11  Jim Meyering  <jim@meyering.net>
73329
73330         Prior to this change, the save_cwd caller required read access to the
73331         current directory on most systems (ones with the fchdir function).
73332
73333         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73334         fails, try write-only, and finally, resort to using xgetcwd.
73335
73336 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         * lib/obstack.c, obstack.h: Import changes from libc.
73339
73340 2004-04-28  Bruno Haible  <bruno@clisp.org>
73341
73342         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73343         also implicitly appends .exe to executables.
73344         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73345         accepts Windows pathnames.
73346         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73347         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73348         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73349         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73350         Reported by Derek Robert Price <derek@ximbiot.com>.
73351
73352 2004-04-21  Karl Berry  <karl@gnu.org>
73353
73354         * config/srclist.txt (localcharset.c): break sync.
73355
73356 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73357
73358         * m4/host-os.m4: Add a copyright notice.
73359
73360 2004-04-20  Jim Meyering  <jim@meyering.net>
73361
73362         Change UTILS_ to gl_ in AC_DEFINE'd names.
73363         Change utils_- and jm_-prefixed variables, too.
73364         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73365         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73366         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73367
73368         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73369         Don't emit trailing blanks.
73370         Also rename jm_-prefixed variables to have gl_ prefix.
73371
73372         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73373         Also rename jm_-prefixed variables to have gl_ prefix.
73374
73375         * m4/jm-macros.m4: Reflect the renamings.
73376         * m4/prereq.m4: Likewise.
73377
73378 2004-04-20  Jim Meyering  <jim@meyering.net>
73379
73380         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73381         memory.
73382
73383 2004-04-20  Jim Meyering  <jim@meyering.net>
73384             Bruno Haible  <bruno@clisp.org>
73385
73386         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73387         memory when realloc fails.
73388
73389 2004-04-19  Jim Meyering  <jim@meyering.net>
73390
73391         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73392         now that readutmp.c may call `free (0)'.
73393
73394 2004-04-19  Bruno Haible  <bruno@clisp.org>
73395
73396         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73397         * m4/inttypes_h.m4: Likewise.
73398         * m4/stdint_h.m4: Likewise.
73399         * m4/intmax_t.m4: Likewise.
73400         * m4/uintmax_t.m4: Likewise.
73401
73402 2004-04-18  Jim Meyering  <jim@meyering.net>
73403
73404         * m4/prereq.m4: Don't forbid jm_ prefix.
73405
73406         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73407         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73408         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73409         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73410         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73411         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73412         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73413         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73414         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73415         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73416         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73417         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73418         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73419         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73420         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73421         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73422         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73423         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73424         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73425
73426 2004-04-18  Jim Meyering  <jim@meyering.net>
73427
73428         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73429         failure, don't leak memory and do call END_UTMP_ENT.
73430
73431 2004-04-16  Jim Meyering  <jim@meyering.net>
73432
73433         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73434         coreutils' stat program.
73435         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73436
73437 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73438
73439         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73440         C89.
73441         (CHAR_BIT): Remove, since we assume C89.
73442         Include <stdint.h> if available, as per current Autoconf CVS advice.
73443
73444 2004-03-31  Jim Meyering  <jim@meyering.net>
73445
73446         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73447         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73448         * m4/xalloc.m4: Likewise.
73449
73450 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73451
73452         Merge from coreutils.
73453
73454         * m4/inttostr.m4: New file.
73455         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73456         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73457         Require gl_CLOCK_TIME.
73458         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73459
73460 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73461
73462         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73463         not bool, to be more consistent with Unix conventions.
73464         Suggested by Bruno Haible.
73465
73466         Merge from coreutils.
73467
73468         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73469         * lib/umaxtostr.c: New files.
73470
73471         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73472         the usual <time.h> dance.
73473         (get_date): Change signature to support fractional time stamps.
73474         All callers changed.
73475         * lib/getdate.y: Include "getdate.h" first, as we can now
73476         assume C89 and don't need to worry about 'const'.
73477         Similarly, include "unlocked-io.h" near start, not in middle.
73478         Include <limits.h>.
73479         (textint.value): Use long int rather than int.
73480         (textint.digits): Use size_t rather than int.
73481         (BILLION, LOG10_BILLION): New constants.
73482         (parser_control): New member rel_ns.  Members day_ordinal,
73483         time_zone, month, day, hour, minutes, rel_year, rel_month,
73484         rel_day, rel_hour, rel_minutes, rel_seconds
73485         are now long int, not int.  Member seconds is now struct timespec,
73486         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73487         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73488         not int.
73489         (%union.intval): Now long int, not int.
73490         New member timespec.
73491         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73492         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73493         (spec): Now is a timespec or an item list.
73494         (timespec, items): New nonterminals.
73495         (time, rel, relunit, number, get_date):
73496         Add support for fractional seconds.
73497         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73498         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73499         (to_hour): First arg is now long int, not int.
73500         (to_year): Returns long int, not int.
73501         Don't treat year -70 like 70.
73502         (tm_diff): Returns long int, not int.
73503         (lookup_word): Use bool instead of int when appropriate.
73504         (yylex): Use size_t for count, not int.
73505         Detect overflow when parsing large integer constants.
73506         Add support for fractions.
73507         (get_date): Make pointers 'const' if possible.
73508         Use more-portable code to detect integer overflow.
73509         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73510         Don't use ctime; it's not reliable if the year has >4 digits.
73511
73512         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73513         This is for compatibility with BSD.
73514
73515         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73516         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73517         From coreutils' system.h.
73518
73519         * lib/userspec.c: Don't include "posixver.h".
73520         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73521         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73522         compatible extension.  Simplify code by removing a boolean int
73523         that was always nonzero if a string was nonnull.
73524
73525 2004-03-30  Jim Meyering  <jim@meyering.net>
73526
73527         Merge from coreutils.
73528
73529         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73530         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73531         on some systems one must include <grp.h> before it.
73532         Reported by Christian Krackowizer.
73533
73534 2004-03-30  Jim Meyering  <jim@meyering.net>
73535
73536         Merge from coreutils.
73537
73538         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73539
73540         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73541         an empty input stream.
73542
73543         * lib/readtokens.c: Include <stdbool.h>.
73544         (readtoken): Use `size_t' rather than int/long.
73545         All callers adjusted.
73546         Use `bool' rather than `int' where appropriate.
73547         Use memset rather than an explicit loop.
73548         Use x2nrealloc rather than xrealloc.
73549         Allow the use of `\0' as a delimiter.
73550         (readtokens): Likewise.
73551         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73552
73553 2004-03-30  Jim Meyering  <jim@meyering.net>
73554
73555         * m4/realloc.m4: Remove file, since now it does no more than
73556         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73557         the `configure.ac' section of module/realloc.
73558         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73559
73560 2004-03-30  Bruno Haible  <bruno@clisp.org>
73561
73562         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73563         nonnull.
73564
73565 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73566
73567         Merge changes to getloadavg.c from coreutils and Emacs.
73568
73569         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73570         Define to an expression, not to the empty string.
73571         Include cloexec.h and xalloc.h.
73572         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73573         Use set_cloexec_flag rather than rolling our own.
73574         * lib/cloexec.c, lib/cloexec.h: New files.
73575
73576 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73577
73578         * m4/cloexec.m4: New file.
73579
73580 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73581
73582         * lib/getopt.h: Sync with libc CVS.
73583
73584 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73585             Bruno Haible  <bruno@clisp.org>
73586
73587         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73588         mbswidth.
73589
73590 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73591             Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/mbswidth.h: Include <wchar.h> only if
73594         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73595         <wchar.h>.
73596         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73597
73598 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73599
73600         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73601         Sync with libc CVS.
73602         * lib/getopt_int.h: New file, also synced from libc.
73603
73604 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73605
73606         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73607         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73608         Bring back getopt.c, getopt.h, getopt1.c.
73609
73610 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73611
73612         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73613         All uses changed.  Check for sa_sigaction member; this fixes
73614         a bug first reported by Jason Andrade in
73615         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73616
73617 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73618
73619         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73620         '#if' expressions.  Unlike the code it replaces, it does not
73621         depend on (defined _SC_PAGESIZE).  However, it does depend on
73622         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73623         first reported by Jason Andrade in
73624         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73625
73626 2004-02-25  Simon Josefsson  <jas@extundo.com>
73627
73628         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73629
73630 2004-02-25  Simon Josefsson  <jas@extundo.com>
73631
73632         * lib/strdup.h: New file.
73633         * lib/strdup.c: Include it.
73634         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73635         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73636
73637 2004-02-23  Karl Berry  <karl@gnu.org>
73638
73639         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73640         (from fencepost.gnu.org:/gd/gnuorg).
73641
73642 2004-02-23  Karl Berry  <karl@gnu.org>
73643
73644         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73645         * config/srclist.txt: add maintain/standards documents.
73646
73647 2004-02-18  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73650         Reported by Derek Robert Price <derek@ximbiot.com>.
73651
73652 2004-02-16  Karl Berry  <karl@gnu.org>
73653
73654         * config/mkinstalldirs, install-sh: update from automake.
73655
73656 2004-02-06  Karl Berry  <karl@gnu.org>
73657
73658         * m4/po.m4: update from gettext 0.14.1.
73659
73660 2004-02-06  Karl Berry  <karl@gnu.org>
73661
73662         * lib/config.charset: update from gettext 0.14.1.
73663
73664 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73665
73666         Add comments and code, prompted by suggestions from Bruno Haible
73667         for sh-quote.
73668         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73669         describing the enum quoting_style values.
73670         * lib/quotearg.c (quotearg_alloc): New function.
73671         (quotearg_buffer_restyled): Treat lone { and } as special.
73672         Treat = as special.  Work around bug with older shells
73673         that "see" a '\' that is really the 2nd byte of a multibyte char.
73674         Quote empty string with shell_quoting_style.
73675
73676 2004-02-03  Bruno Haible  <bruno@clisp.org>
73677
73678         * m4/pipe.m4: New file, from GNU gettext.
73679
73680 2004-02-03  Bruno Haible  <bruno@clisp.org>
73681
73682         * lib/pipe.h: New file, from GNU gettext.
73683         * lib/pipe.c: New file, from GNU gettext.
73684
73685 2004-01-27  Bruno Haible  <bruno@clisp.org>
73686
73687         * m4/execute.m4: New file, from GNU gettext.
73688
73689 2004-01-27  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/execute.h: New file, from GNU gettext.
73692         * lib/execute.c: New file, from GNU gettext.
73693         * lib/w32spawn.h: New file, from GNU gettext.
73694
73695 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73696
73697         Merge from diffutils.
73698
73699         * lib/file-type.c (file_type): Add typed memory objects.
73700         * lib/file-type.h (S_TYPEISTMO): New macro.
73701
73702         * lib/c-stack.h (c_stack_action): Remove argv argument.
73703         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73704         (die): Don't calculate message unless segv_action returns.
73705         (get_stack_location, min_address_from_argv, max_address_from_argv,
73706         volatile stack_base, volatile_stack_size): Remove.
73707         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73708         that every segmentation violation is a stack overflow.  (Ouch!)
73709         See Debian bug 136249 (still outstanding) for more info about why
73710         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73711
73712 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73713
73714         Exit-status fix from coreutils.
73715
73716         Use exit_failure consistently in place of EXIT_FAILURE,
73717         so that program exit statuses are consistent on failure.
73718
73719         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73720         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73721         * lib/argmatch.h: Comment fix to match the above.
73722         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73723         Now a macro referring to exit_failure, instead of a separate
73724         variable.  Include "exitfail.h" to get it.
73725         * lib/xstrtol.h: Include "exitfail.h".
73726         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73727
73728         * lib/long-options.c (parse_long_options): Use prototype
73729         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73730         for clarity.
73731
73732 2004-01-21  Jim Meyering  <jim@meyering.net>
73733
73734         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73735         so as not to conflict with a different-sized __mktime_internal
73736         function in GNU libc.
73737         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73738         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73739
73740 2004-01-20  Karl Berry  <karl@gnu.org>
73741
73742         * config/config.guess: update from config.
73743
73744         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73745
73746 2004-01-20  Bruno Haible  <bruno@clisp.org>
73747
73748         Safer stack allocation.
73749         * lib/setenv.c: Include allocsa.h.
73750         (alloca): Remove fallback definition.
73751         (freea): Remove macro.
73752         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73753         instead of freea.
73754
73755 2004-01-20  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/eealloc.m4: New file, from GNU gettext.
73758
73759 2004-01-20  Bruno Haible  <bruno@clisp.org>
73760
73761         * m4/allocsa.m4: New file, from GNU gettext.
73762
73763 2004-01-20  Bruno Haible  <bruno@clisp.org>
73764
73765         * lib/xallocsa.h: New file, from GNU gettext.
73766         * lib/xallocsa.c: New file, from GNU gettext.
73767
73768 2004-01-20  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73771
73772 2004-01-20  Bruno Haible  <bruno@clisp.org>
73773
73774         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73775         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73776         specially.
73777
73778 2004-01-20  Bruno Haible  <bruno@clisp.org>
73779
73780         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73781         patch.
73782
73783 2004-01-20  Bruno Haible  <bruno@clisp.org>
73784
73785         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73786
73787 2004-01-20  Bruno Haible  <bruno@clisp.org>
73788
73789         * lib/eealloc.h: New file.
73790
73791 2004-01-20  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/binary-io.h: Avoid warnings on Cygwin.
73794
73795 2004-01-20  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/allocsa.h: New file, from GNU gettext.
73798         * lib/allocsa.c: New file, from GNU gettext.
73799
73800 2004-01-18  Karl Berry  <karl@gnu.org>
73801
73802         * doc/gpl.texi, doc/lgpl.texi: new files.
73803
73804 2004-01-18  Karl Berry  <karl@gnu.org>
73805
73806         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73807         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73808
73809 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73810
73811         Merge from coreutils.
73812
73813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73814         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73815         (gl_DEFAULT_POSIX2_VERSION): Move
73816         the documentation from 'configure' into 'config.hin',
73817         so that 'configure --help' isn't burdened by it and
73818         we don't have to worry about its formatting there.
73819         Reword the documentation so that it's more succinct
73820         and can be run together into a single paragraph.
73821         * m4/same.m4 (gl_SAME): Check for pathconf.
73822
73823 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73824
73825         Merge from coreutils.
73826
73827         * lib/posixver.c: Include posixver.h.
73828
73829         * lib/same.c: Include <stdbool.h>, <limits.h>.
73830         (_POSIX_NAME_MAX): Define if not defined.
73831         (MIN): New macro.
73832         (same_name): If file names are silently truncated, report
73833         that the file names are the same if they are the same after
73834         the silent truncation.
73835
73836         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73837         conversion function.
73838         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73839         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73840         longer needed.
73841
73842 2004-01-15  Jim Meyering  <jim@meyering.net>
73843
73844         Merge from coreutils.
73845
73846         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73847         if no library is required.
73848         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73849         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73850         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73851         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73852         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73853         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73854         value, $ac_cv_search_crypt, if it's "none required".
73855         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73856         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73857         not gl_FUNC_GETLOADAVG.
73858         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73859         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73860
73861 2004-01-15  Jim Meyering  <jim@meyering.net>
73862
73863         Merge from coreutils.
73864
73865         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73866         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73867         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73868
73869         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73870         optional configure-time default.
73871
73872         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73873
73874         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73875
73876 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73877
73878         Merge from coreutils.
73879
73880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73881         value, $ac_cv_search_nanosleep, if it's "none required".
73882
73883 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73884
73885         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73886         with like-named macro in fnmatch.c.
73887         (EXT): Use an internal constant instead.
73888
73889         Merge fnmatch patches from glibc.
73890         * lib/fnmatch.c (mbsinit): Remove define.
73891         Add libc_hidden_ver (__fnmatch, fnmatch).
73892         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73893         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73894
73895 2004-01-14  Karl Berry  <karl@gnu.org>
73896
73897         * config/install-sh: update from automake.
73898
73899 2004-01-13  Karl Berry  <karl@gnu.org>
73900
73901         * config/install-sh: update from automake.
73902
73903 2004-01-09  Karl Berry  <karl@gnu.org>
73904
73905         * config/install-sh: update from automake.
73906
73907 2004-01-05  Karl Berry  <karl@gnu.org>
73908
73909         * config/config.{sub,guess}: update from config.
73910
73911 2003-12-31  Karl Berry  <karl@gnu.org>
73912
73913         * config/depcomp: update from automake.
73914
73915 2003-12-14  Karl Berry  <karl@gnu.org>
73916
73917         * lib/config.charset: update from gettext-runtime.
73918
73919 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73920
73921         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73922         Bug reported by Alfred M. Szmidt.
73923
73924 2003-12-03  Bruno Haible  <bruno@clisp.org>
73925
73926         * m4/gettext.m4: Upgrade from gettext-0.13.
73927         * m4/po.m4: Upgrade from gettext-0.13.
73928         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73929         * m4/intmax.m4: New file, from gettext-0.13.
73930         * m4/printf-posix.m4: New file, from gettext-0.13.
73931
73932 2003-11-29  Karl Berry  <karl@gnu.org>
73933
73934         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73935
73936 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73937             Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/printf-parse.h: Don't include sys/types.h.
73940         (ARG_NONE): New macro.
73941         (char_directive): Change type of *arg_index fields to size_t.
73942         * lib/printf-parse.c: Don't include sys/types.h.
73943         (SSIZE_MAX): Remove macro.
73944         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73945         Remove unnecessary overflow check.
73946         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73947         fields.
73948
73949 2003-11-25  Bruno Haible  <bruno@clisp.org>
73950
73951         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73952
73953 2003-11-25  Bruno Haible  <bruno@clisp.org>
73954
73955         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73956         gt_TYPE_SSIZE_T.
73957
73958 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73959
73960         * modules/alloca: Remove dependency on xalloc.
73961
73962 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73963
73964         * lib/alloca.c: Remove dependency on xalloc module.
73965         (xalloc_die): Remove.
73966         (memory_full) [!defined emacs]: New macro.
73967         [!defined emacs]: Don't include xalloc.h.
73968         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73969         address arithmetic overflows.  Change datatypes a bit to avoid
73970         unnecessary casts.
73971
73972 2003-11-22  Jim Meyering  <jim@meyering.net>
73973
73974         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73975         s/size/size_t/.
73976
73977 2003-11-21  Karl Berry  <karl@gnu.org>
73978
73979         * config/config.{sub,guess}: update from config.
73980
73981 2003-11-18  Karl Berry  <karl@gnu.org>
73982
73983         * config/config.{sub,guess}: update from config.
73984
73985         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73986
73987 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73988
73989         * README: Mention that S+T cannot overflow if S is the size of
73990         an existing object and T is sufficiently small.
73991
73992 2003-11-17  Jim Meyering  <jim@meyering.net>
73993
73994         On systems without utime and without a utimes function capable of
73995         dealing with a NULL struct utimbuf* argument, this utime replacement
73996         could -- in unusual circumstances -- leak a file descriptor.
73997         * lib/utime.c: Include <unistd.h> and <errno.h>.
73998         (utime_null): Be sure to close `fd' and to preserve errno.
73999         Reported by Geoff Collyer via Arnold Robbins.
74000
74001 2003-11-17  Bruno Haible  <bruno@clisp.org>
74002
74003         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74004         (Depends-on): Add xsize.
74005
74006 2003-11-17  Bruno Haible  <bruno@clisp.org>
74007
74008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74009
74010 2003-11-17  Bruno Haible  <bruno@clisp.org>
74011
74012         * lib/vasnprintf.c (alloca): Remove fallback definition.
74013         (freea): Remove definition.
74014         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74015         Reported by Paul Eggert.
74016
74017 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74018             Bruno Haible  <bruno@clisp.org>
74019
74020         Protect against address arithmetic overflow.
74021         * lib/printf-args.h: Include stddef.h.
74022         (arguments): Change type of field 'count' to size_t.
74023         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74024         'unsigned int' where appropriate.
74025         * lib/printf-parse.h: Include sys/types.h.
74026         (char_directive): Change type of *arg_index fields to ssize_t.
74027         (char_directives): Change type of fields 'count', max_*_length to
74028         size_t.
74029         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74030         (SSIZE_MAX): Define fallback value.
74031         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74032         instead of 'int' where appropriate. Check a_allocated, d_allocated
74033         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74034         * lib/vasnprintf.c: Include xsize.h.
74035         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74036         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74037         overflow. Avoid wraparound when converting a width or precision from
74038         decimal to binary.
74039
74040 2003-11-16  Bruno Haible  <bruno@clisp.org>
74041
74042         Update from GNU gettext.
74043         * lib/printf-parse.c: Generalize to it can be compiled for wide
74044         strings.
74045         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74046         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74047         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74048         SNPRINTF): New macros.
74049         Don't include <alloca.h> if the file is used inside libintl.
74050         (local_wcslen): New function, for Solaris 2.5.1.
74051         (VASNPRINTF): Use it instead of wcslen.
74052
74053 2003-11-16  Bruno Haible  <bruno@clisp.org>
74054
74055         * lib/xsize.h (xmax): New function.
74056         (xsum, xsum3, xsum4): Declare as "pure" functions.
74057
74058 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74059
74060         * modules/xalloc (Files): Undo latest change, since xalloc.h
74061         no longer needs SIZE_MAX or PTRDIFF_MAX.
74062
74063 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74064
74065         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74066         gl_PTRDIFF_MAX.
74067
74068 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74071         "return", to pacify some unknown compiler.  Problem reported
74072         by Joerg Schilling.
74073
74074 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74075
74076         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74077         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74078         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74079         heuristic is just as accurate as far as we know, and it removes a
74080         dependency on size_max.m4 and ptrdiff_max.m4.
74081
74082 2003-11-11  Bruno Haible  <bruno@clisp.org>
74083
74084         * modules/xsize (Files): Add m4/size_max.m4.
74085         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74086
74087 2003-11-11  Bruno Haible  <bruno@clisp.org>
74088
74089         * m4/size_max.m4: New file.
74090         * m4/ptrdiff_max.m4: New file.
74091         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74092         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74093         (gl_XALLOC): Invoke it.
74094
74095 2003-11-11  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74098         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74099         defined.
74100
74101 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74102
74103         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74104         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74105         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74106         From Bruno Haible.
74107         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74108         not (size_t) -1, since it's defined here.
74109
74110 2003-11-09  Karl Berry  <karl@gnu.org>
74111
74112         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74113
74114 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74115
74116         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74117         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74118         Reject sizes of exactly SIZE_MAX bytes.
74119         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74120         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74121
74122 2003-11-05  Bruno Haible  <bruno@clisp.org>
74123
74124         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74125         SIZE_MAX defined in <limits.h> on Solaris.
74126
74127 2003-11-04  Jim Meyering  <jim@meyering.net>
74128
74129         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74130         variable names, rather than @VAR@.
74131         * modules/poll: Likewise.
74132
74133 2003-11-04  Bruno Haible  <bruno@clisp.org>
74134
74135         * modules/xsize: New file.
74136         * modules/linebreak: Depend on xsize.
74137         * MODULES.html.sh (func_all_modules): Add xsize.
74138
74139 2003-11-04  Bruno Haible  <bruno@clisp.org>
74140
74141         * m4/xsize.m4: New file.
74142
74143 2003-11-04  Bruno Haible  <bruno@clisp.org>
74144
74145         * lib/xsize.h: New file.
74146         * lib/linebreak.c: Include xsize.h.
74147         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74148         argument for overflow.
74149         Suggested by Paul Eggert.
74150
74151 2003-11-03  Karl Berry  <karl@gnu.org>
74152
74153         * config/config.{guess,sub}: update from config.
74154
74155 2003-11-03  Jim Meyering  <jim@meyering.net>
74156
74157         * modules/userspec (lib_SOURCES): Add userspec.h.
74158         (Include): Add "userspec.h".
74159         Improve description.
74160
74161 2003-11-03  Jim Meyering  <jim@meyering.net>
74162
74163         * lib/userspec.c: Include "userspec.h".
74164         * lib/userspec.h: New file.
74165
74166 2003-11-03  Bruno Haible  <bruno@clisp.org>
74167
74168         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74169
74170 2003-11-03  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74173         available, to avoid (extremely rare) race condition.
74174         Suggested by Paul Eggert.
74175
74176 2003-11-02  Karl Berry  <karl@gnu.org>
74177
74178         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74179
74180 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74181
74182         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74183         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74184         (read_filesystem_list): Set and use me_type_malloced.
74185         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74186         whatever the type happens to be), for brevity and consistency.
74187         Check for size calculation overflow on Alphas running OSF/1.
74188
74189 2003-10-31  Jim Meyering  <jim@meyering.net>
74190
74191         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74192
74193         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74194
74195 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74196             Bruno Haible  <bruno@clisp.org>
74197
74198         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74199         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74200
74201 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74204         netbsd*-gnu*.  Suggested by Robert Millan.
74205
74206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74207
74208         * modules/group-member: Depend on stdbool.
74209
74210 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74211
74212         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74213
74214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74215
74216         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74217         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74218         after the 'gnu' in these cases.  This fixes some bugs in the
74219         previous change, and is based on suggestions by Robert Millan.
74220
74221 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74222
74223         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74224         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74225         no longer needed.
74226         * lib/quotearg.c (quotearg_n_options): Use it.
74227         * lib/group-member.c: Include <stdbool.h>.
74228         (free_group_info): Arg is now const *; don't free arg.
74229         (get_group_info): Now returns bool and accepts struct group_info *,
74230         rather than returning a malloc'ed struct group_info *.
74231         All uses changed.  Check for overflow in internal size calculation.
74232
74233         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74234         rather than xmalloc/xrealloc.
74235         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74236         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74237         conformance bug: the old code used a pointer after freeing the
74238         storage that it addressed.
74239         * lib/hash.c (hash_initialize): Simplify the code by using
74240         xalloc_oversized rather than doing it by hand.
74241         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74242         the buffer preserved.  Use free and xmalloc instead.
74243         * lib/quotearg.c (quotearg_n_options): Likewise.
74244         Use a simpler test for size overflow.  Don't use xalloc_oversized
74245         because unsigned int might be wider than size_t (!); this suggests
74246         that we should switch from unsigned int to size_t for slot numbers.
74247
74248 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74249
74250         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74251         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74252         NetBSD kernels.  Requested by Richard Stallman.
74253
74254 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74255
74256         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74257         to allocate the returned structure.  Do not allocate a subarray,
74258         as x2nrealloc will do that.
74259         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74260         instead of xnrealloc.
74261         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74262
74263 2003-10-27  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/stdbool_.h: Better support for BeOS.
74266
74267 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74268
74269         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74270         now uses inline.
74271
74272 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74273
74274         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74275         callers that want to do their own size-overflow checking.  Include
74276         <stdbool.h>, since xalloc_oversized returns bool.
74277         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74278         to use xalloc_oversized.
74279
74280         Add two functions x2realloc, x2nrealloc, for programs that grow
74281         arrays dynamically by doubling their sizes.
74282         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74283         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74284         New functions.
74285
74286         Port to C99 semantics for 'inline' of external functions.
74287         Bug reported by Bruno Haible.
74288         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74289         with the old contents of xnmalloc.
74290         (xnmalloc, xmalloc): Use it.
74291         (xnrealloc_inline): New static inline function,
74292         with the old contents of xnrealloc.
74293         (xnrealloc, xrealloc): Use it.
74294
74295         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74296         that.
74297
74298 2003-10-26  Karl Berry  <karl@gnu.org>
74299
74300         * config/srclist.txt (COPYING.DOC): no longer available from
74301         /gd/gnuorg; don't know where the ultimate source is.
74302
74303 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74304
74305         Fix several address-calculation bugs in the hash modules,
74306         plus some minor code cleanup.
74307
74308         * lib/hash.h: Include <stdbool.h>, for bool.
74309         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74310         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74311         hash_get_n_entries, hash_get_max_bucket_length,
74312         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74313         hash_rehash): Use size_t rather than unsigned.
74314         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74315         hash_get_n_buckets_used, hash_get_n_entries,
74316         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74317         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74318         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74319         Likewise.
74320         (SIZE_MAX): Define if not defined.
74321         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74322         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74323         hash_print):
74324         Use const * when possible.
74325         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74326         (check_tuning): Fix bug: if tuning parameters were very close to
74327         0 or 1, rounding errors could have caused subscript violations.
74328         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74329         (hash_initialize): Add 'fail:' label
74330         to free table and return NULL, and use it to simplify code.
74331         Use calloc rather than clearing the storage ourself.
74332         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74333         buffer size calculations.
74334         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74335         Include <stddef.h>, for size_t.
74336         * lib/hash-pjw.c (hash_pjw): Likewise.
74337         Switch to method described by Bruno Haible.
74338         Include <limits.h>, for CHAR_BIT.
74339         (SIZE_BITS): New macro.
74340
74341 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74342
74343         * m4/getline.m4 (AM_FUNC_GETLINE):
74344         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74345         hosts.  Problem reported by Derek Robert Price in
74346         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74347         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74348         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74349
74350 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74351
74352         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74353         ceiling the allocation at NMAX bytes rather than silently
74354         discarding input bytes before NMAX is reached.  This makes
74355         a difference only if NMAX exceeds SIZE_MAX / 2.
74356
74357         * lib/obstack.c: Merge from glibc.
74358         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74359         Add libc_hidden_def (_obstack_newchunk).
74360         (_obstack_free) [! defined _LIBC]: Remove.
74361         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74362         a clone of the function body.
74363         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74364         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74365
74366         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74367         glibc.
74368         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74369         arg to memcpy.
74370
74371         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74372         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74373         Don't use lvalue casts, as GCC plans to remove support for them
74374         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74375         was also present in the non-GCC version, indicating that this
74376         code had always been buggy and had never been widely used.
74377         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74378         Use the fast variant of each macro, rather than copying the
74379         definiens of the fast variant; that way, we'll be more likely to
74380         catch future bugs in the fast variants.
74381
74382 2003-10-20  Bruno Haible  <bruno@clisp.org>
74383
74384         * modules/wait-process: New file.
74385         * MODULES.html.sh (func_all_modules): Add wait-process.
74386
74387 2003-10-20  Bruno Haible  <bruno@clisp.org>
74388
74389         * m4/wait-process.m4: New file.
74390
74391 2003-10-20  Bruno Haible  <bruno@clisp.org>
74392
74393         * lib/wait-process.h: New file, from GNU gettext.
74394         * lib/wait-process.c: New file, from GNU gettext.
74395
74396 2003-10-19  Jim Meyering  <jim@meyering.net>
74397
74398         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74399         HPUX 10.20.
74400
74401 2003-10-18  Karl Berry  <karl@gnu.org>
74402
74403         * config/config.guess: update from config.
74404
74405 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74406
74407         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74408         (getgroups): First arg is int, not size_t.
74409         Don't let 'free' mangle errno.
74410
74411 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74412
74413         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74414
74415 2003-10-16  Karl Berry  <karl@gnu.org>
74416
74417         * config/config.{guess,sub}: update from config.
74418
74419 2003-10-16  Jim Meyering  <jim@meyering.net>
74420
74421         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74422         memcpy.
74423
74424 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74425
74426         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74427         (SIZE_MAX): Remove.
74428         (new_exclude, add_exclude_file): Initial size no longer needs to
74429         be a power of 2.
74430         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74431         our own address arithmetic overflow checking.
74432
74433         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74434         (fnmatch): Do not alloca more than 2000 wide characters;
74435         instead, use malloc for large buffers.
74436         Check for address arithmetic overflow, and return -1
74437         with errno set to ENOMEM in that case.
74438         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74439         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74440         instead, return -1.  Check for address arithmetic overflow.
74441
74442 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74443
74444         Handle invalid suffixes and overflow independently, so that
74445         callers can treat them independently as needed.  Fix some bugs in
74446         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74447         suffix for a human-readable blocksize.  The major caller-visible
74448         change is the addition of a new
74449         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74450         that both overflow and suffix chars were found.
74451
74452         * lib/human.c (humblock): Don't check separately for invalid suffix
74453         char; that is xstrtoumax's job (now that its bug is fixed).
74454         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74455         INTMAX_MAX]: New macros.
74456         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74457         TYPE_MAXIMUM): New macros.
74458         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74459         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74460         if overflow occurs, as it's what __strtol does and it's more useful
74461         in practice.
74462         (__xstrtol): If __strtol reports some error other than ERANGE,
74463         reflect it to the caller as LONGINT_INVALID.  If it reports
74464         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74465         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74466         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74467         value.
74468         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74469         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74470         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74471         [defined UINTMAX_MAX]: New macros.
74472
74473 2003-10-14  Bruno Haible  <bruno@clisp.org>
74474
74475         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74476
74477 2003-10-14  Bruno Haible  <bruno@clisp.org>
74478
74479         * m4/sig_atomic_t: New file, from GNU gettext.
74480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74481
74482 2003-10-14  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74485         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74486         Also use volatile where needed.
74487
74488 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74489
74490         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74491         Change maintainer from Bruno Haible to 'all'.
74492
74493 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74494
74495         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74496
74497 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74498
74499         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74500         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74501         and define in terms of the other primitives.
74502         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74503         (SIZE_MAX): Define if not already defined.
74504         (array_size_overflow): New function.
74505         (xalloc_die): Abort instead of exiting if 'error' returns.
74506         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74507         (xmalloc, xrealloc): Use them.
74508         (xcalloc): Check for address arithmetic overflow.
74509         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74510         a bit faster than strcpy.
74511
74512 2003-10-10  Simon Josefsson  <jas@extundo.com>
74513
74514         * modules/argp (Depends-on): Add restrict and strcase.
74515
74516 2003-10-10  Simon Josefsson  <jas@extundo.com>
74517
74518         * m4/argp.m4: Add AC_C_INLINE.
74519
74520 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74521
74522         Merge getpass from libc, plus a few fixes.
74523
74524         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74525         Include <stdbool.h>.
74526         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74527         __fsetlocking to empty.
74528         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74529         do include <bits/libc-lock.h>.
74530         Do not include <fcntl.h>; not needed.
74531         [_LIBC]: Include <wchar.h>.
74532         (NOTCANCEL_MODE): New macro.
74533         (flockfile, funlockfile) [_LIBC]: New macros.
74534         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74535         [!_LIBC]: New macros.
74536         (call_fclose): New function.
74537         (getpass): Use it.  Save tty stream separately; this simplifies the
74538         code and makes it more reliable if stdin happens to equal stdout.
74539         Invoke __fsetlocking on tty.
74540         Handle thread cancellation if needed.
74541         Namespace cleanup (use __tcgetattr, __getline).
74542         Use bool for Booleans.
74543         [USE_IN_LIBIO]: Handle wide streams.
74544         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74545         stream might go where.
74546
74547         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74548         doesn't have to include <stdio.h> before us.
74549         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74550         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74551         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74552         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74553         if not declared, so that we can use getpass.c code from libc without
74554         rewriting it.
74555         (flockfile, ftrylockfile, funlockfile): New macros.
74556
74557 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74558
74559         * modules/getpass: Depend on stdbool.
74560
74561 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74562
74563         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74564
74565 2003-10-07  Karl Berry  <karl@gnu.org>
74566
74567         * config/config.{guess,sub}: update from config.
74568
74569 2003-10-06  Jim Meyering  <jim@meyering.net>
74570             Bruno Haible  <bruno@clisp.org>
74571
74572         This lets translators provide better translations for the
74573         "Written by ..." part of --version output.
74574         * lib/version-etc.h: Include stdarg.h.
74575         (version_etc_copyright): Declare as readonly.
74576         (version_etc): Make this function variadic with a NULL-terminated list
74577         of author name strings.
74578         (version_etc_va): New declaration.
74579         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74580         (version_etc_copyright): Declare as readonly.
74581         (version_etc_va): New function. Provide a different translatable string
74582         for each possible number of authors < 10. Abbreviate when there are 10
74583         authors or more.
74584         (version_etc): Make this function variadic. Call version_etc_va.
74585         Suggestion from Gary V. Vaughan.
74586
74587         * lib/long-options.h (parse_long_options): Change prototype: the
74588         authors string is moved to the end and becomes variadic.
74589         * lib/long-options.c: Include stdarg.h.
74590         (parse_long_options): Make this function variadic, too.
74591         Call version_etc_va, not version_etc.
74592
74593 2003-10-06  Bruno Haible  <bruno@clisp.org>
74594
74595         * modules/version-etc-2: Remove file.
74596         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74597
74598 2003-10-06  Bruno Haible  <bruno@clisp.org>
74599
74600         * modules/fatal-signal: New file.
74601         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74602
74603 2003-10-06  Bruno Haible  <bruno@clisp.org>
74604
74605         * m4/fatal-signal.m4: New file.
74606         * m4/signalblocking.m4: New file, from GNU gettext.
74607
74608 2003-10-06  Bruno Haible  <bruno@clisp.org>
74609
74610         * lib/version-etc-2.h: Remove file.
74611         * lib/version-etc-2.c: Remove file.
74612
74613 2003-10-06  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/fatal-signal.h: New file, from GNU gettext.
74616         * lib/fatal-signal.c: New file, from GNU gettext.
74617
74618 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74619
74620         * README: Rework advice for preventing empty .o files.
74621         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74622         not <sys/types.h>.
74623
74624 2003-10-04  Karl Berry  <karl@gnu.org>
74625
74626         * lib/argp*: update from libc.
74627
74628 2003-10-04  Karl Berry  <karl@gnu.org>
74629
74630         * config/config.{guess,sub}: update from config.
74631
74632 2003-10-02  Bruno Haible  <bruno@clisp.org>
74633
74634         * modules/lchown (Include): Add lchown.h.
74635         * modules/time_r (Include): Use "..." syntax.
74636         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74637
74638 2003-10-01  Simon Josefsson  <jas@extundo.com>
74639
74640         * MODULES.html.sh (func_all_modules): Move gethostname from section
74641         'based on' to section 'lacking' POSIX:2001.
74642
74643 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74644
74645         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74646         to output mode on the same stream.
74647
74648 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74649
74650         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74651         Fix arg typo in previous patch.
74652
74653 2003-09-28  Jim Meyering  <jim@meyering.net>
74654
74655         * lib/error.c: Correct cpp indentation.
74656
74657 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74658
74659         * modules/free: New file.
74660
74661 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74662
74663         * m4/free.m4: New file.
74664
74665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74666
74667         * lib/minmax.h (MIN, MAX)
74668         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74669         Omit the special code that used __typeof__, since we worry that
74670         it could be more trouble than it's worth.  See:
74671         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74672         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74673
74674         * lib/free.c: New file.
74675
74676 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74677
74678         Trivial fixes to Makefile.am parts of module listings.
74679         * modules/strstr: Append strstr.h to lib_SOURCES.
74680         * modules/strcase: Likewise, for strcase.h.
74681
74682 2003-09-27  Karl Berry  <karl@gnu.org>
74683
74684         * config/mkinstalldirs: update from automake.
74685
74686 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74687
74688         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74689         (error_tail): Do not loop, reallocating temporary buffer, since
74690         the output cannot contain more wide characters than the input
74691         contains bytes, the size must be big enough already.  This avoids
74692         one potential size overflow calculation.  Check for size overflow
74693         when calculating temporary buffer size.  Free temporary buffer
74694         when done, if it was allocated with malloc; this plugs a memory
74695         leak.  Remove casts from void * to pointers, that are no longer
74696         needed now that we're assuming C89 or better.
74697
74698         Merge error changes from glibc.
74699
74700         * lib/error.c, error.h: Update copyright notice header to match glibc.
74701         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74702         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74703         Disable cancellation while printing error.
74704         * lib/error.h: Prepend __ to parameter names.
74705
74706 2003-09-26  Jim Meyering  <jim@meyering.net>
74707
74708         * lib/error.c (error_tail): Move some declarations
74709         into inner scope where the local variables are used.
74710
74711 2003-09-26  Bruno Haible  <bruno@clisp.org>
74712
74713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74714         stpncpy().
74715         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74716
74717 2003-09-26  Bruno Haible  <bruno@clisp.org>
74718
74719         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74720         (stpncpy): Define as alias for gnu_stpncpy.
74721         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74722
74723 2003-09-25  Simon Josefsson  <jas@extundo.com>
74724
74725         * lib/xgetdomainname.h: New file.
74726         * lib/xgetdomainname.c: New file.
74727
74728 2003-09-25  Simon Josefsson  <jas@extundo.com>
74729             Bruno Haible  <bruno@clisp.org>
74730
74731         * modules/getdomainname: New file.
74732         * modules/xgetdomainname: New file.
74733         * MODULES.html.sh (func_all_modules): Add getdomainname,
74734         xgetdomainname.
74735
74736 2003-09-25  Simon Josefsson  <jas@extundo.com>
74737             Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/getdomainname.m4: New file.
74740
74741 2003-09-25  Simon Josefsson  <jas@extundo.com>
74742             Bruno Haible  <bruno@clisp.org>
74743
74744         * lib/getdomainname.h: New file.
74745         * lib/getdomainname.c: New file.
74746
74747 2003-09-25  Karl Berry  <karl@gnu.org>
74748
74749         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74750
74751 2003-09-25  Karl Berry  <karl@gnu.org>
74752
74753         * config/install-sh: update from automake.
74754
74755 2003-09-25  Bruno Haible  <bruno@clisp.org>
74756
74757         * modules/version-etc-2: New file, from modules/version-etc with
74758         modifications.
74759         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74760
74761 2003-09-25  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74764         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74765
74766 2003-09-24  Simon Josefsson  <jas@extundo.com>
74767
74768         * modules/xgethostname: Add xgethostname.h.
74769
74770 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74771
74772         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74773         the buffer associated with the argument.  Bug reported by
74774         Simon Josefsson.
74775
74776 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74777
74778         * README: Document assumptions that 'int' is at least 32 bits
74779         wide, that integer arithmetic is 2's complement without overflow,
74780         that there are no holes in integer values, that adding sizes of
74781         two nonoverlapping objects can't overflow, and that all-bits-zero
74782         yields scalar zero.  Fix spelling and capitalization typos.
74783
74784 2003-09-19  Karl Berry  <karl@gnu.org>
74785
74786         * lib/argp.h: update from libc.
74787
74788 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74789
74790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74791         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74792         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74793
74794 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74795
74796         * gnulib-tool: Use "test -h", not "test -L", for portability
74797         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74798         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74799         (sed_extract_prog): Issue s commands one-by-one, rather than
74800         using \| in one s command.
74801
74802 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74803
74804         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74805         input error, instead of returning NULL the next time we are called
74806         (and therefore losing track of errno).
74807
74808 2003-09-16  Bruno Haible  <bruno@clisp.org>
74809
74810         * gnulib-tool (func_create_testdir): Warn about duplicated
74811         dependencies.
74812
74813 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74814
74815         * modules/argmatch, modules/fatal, modules/obstack,
74816         modules/xalloc, modules/xgethostname: Sort dependencies by
74817         importance, not alphabetically.
74818
74819 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74820
74821         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74822         fails, so that the caller gets the proper errno.
74823
74824         * lib/readutmp.c (read_utmp): Likewise.
74825         Check for fstat error.  Close stream and free storage
74826         when failing.
74827
74828 2003-09-14  Karl Berry  <karl@gnu.org>
74829
74830         * config/srclist.txt (strdup.c): disable for c89 changes.
74831
74832 2003-09-14  Jim Meyering  <jim@meyering.net>
74833
74834         * lib/getloadavg.c: Correct cpp indentation.
74835         * lib/strdup.c: Likewise.
74836         * lib/vasnprintf.c: Likewise.
74837
74838 2003-09-14  Bruno Haible  <bruno@clisp.org>
74839
74840         * modules/fwriteerror: New file.
74841         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74842
74843 2003-09-14  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/fwriteerror.h: New file.
74846         * lib/fwriteerror.c: New file.
74847
74848 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74849
74850         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74851         modules/xgethostname, modules/xalloc: Depend on exit.
74852
74853 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74854
74855         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74856
74857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74858         and AC_MINIX, too, so that their extensions are available.
74859
74860         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74861         This macro has been superseded by gl_BACKUPFILE.
74862
74863         More patches to assume C89 or better.
74864
74865         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74866
74867         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74868         unconditionally.
74869         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74871         Include <string.h>, <stdlib.h> unconditionally.
74872         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74873         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74874         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74875         headers or for string.h.
74876         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74877         or strtoul.
74878
74879         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74880         headers.
74881         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74882         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74884         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74887         memcpy, memset.
74888         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74889         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74890         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74891         strtol.
74892         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74893         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74894         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74895         strtoul.
74896
74897 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74898
74899         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74900         * lib/obstack.c [!defined _LIBC]: Likewise.
74901         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74902         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74903         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74904
74905         More changes to assume C89 or better.
74906
74907         * lib/error.c (error_tail): Assume vprintf.
74908
74909         * lib/argmatch.c (getenv): Remove decl.
74910         * lib/progreloc.c (get_full_program_name): Define via prototype.
74911         * lib/setenv.c (clearenv): Likewise.
74912         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74913         needed.
74914         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74915         (malloc, memcpy): Remove decls.
74916         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74917         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74918         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74919         (memcpy): Remove macro.
74920         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74921         (__P): Remove.  All uses removed.
74922         (PTR): Remove.  All uses changed to void *.
74923         (CHAR_BIT, NULL): Remove.
74924         (spaces, zeros, memset_space, memset_zero)
74925         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74926         Remove.
74927         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74928         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74929         Define with prototype.
74930         Remove now-unnecessary prototype decl.
74931         (extra_args_spec): Assume ANSI C.  All uses changed.
74932         (extra_args_spec_iso): Remove.
74933         (my_strftime, emacs_strftimeu): Define via prototype.
74934         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74935         unconditionally.
74936         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74937         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74938         (strtoul, strtol): Remove decls.
74939         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74940         LONG_MAX): Remove.
74941         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74942         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74943         (LOCALE_PARAM_PROTO): New macro.
74944         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74945         (INTERNAL (strtol), strtol): Define with a prototype.
74946         (PARAMS): Remove.  All uses removed.
74947         * lib/tempname.c: Include <string.h> unconditionally.
74948         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74949         * lib/xgethostname.c (main): Define with a prototype.
74950         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74951         Include <stdlib.h> unconditionally.
74952         (calloc, malloc, realloc, free): Remove decls.
74953         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74954         Include <stdlib.h> unconditionally.  Sort include file names.
74955         (strtod): Remove.
74956         (xstrtod): Define with a prototype.
74957         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74958         (strtol, strtoul): Remove decls.
74959
74960 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74961
74962         More patches to assume C89 or better.
74963         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74964         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74965         string.h, memchr, STDC_HEADERS.
74966
74967 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74968
74969         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74970         Include <stdlib.h>, <string.h> unconditionally.
74971         Remove now-unnecessary cast to char *.
74972         * lib/strnlen.c: Include <string.h> unconditionally.
74973         * lib/yesno.c (yesno): Define with a prototype.
74974
74975 2003-09-11  Bruno Haible  <bruno@clisp.org>
74976
74977         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74978
74979 2003-09-10  Jim Meyering  <jim@meyering.net>
74980
74981         * lib/error.c: Correct indentation of cpp directives.
74982
74983 2003-09-10  Bruno Haible  <bruno@clisp.org>
74984
74985         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74986         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74987         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74988         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74989         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74990         <stdlib.h> and <string.h> checks.
74991         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74992         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74993
74994 2003-09-10  Bruno Haible  <bruno@clisp.org>
74995
74996         * lib/strcspn.c: Include <string.h> unconditionally.
74997         * lib/strpbrk.c: Include <string.h> unconditionally.
74998         * lib/strstr.c: Include <string.h> unconditionally.
74999         * lib/unicodeio.c: Include <string.h> unconditionally.
75000         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75001         * lib/unsetenv.c: Likewise.
75002         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75003         * lib/yesno.c: Include <stdlib.h> unconditionally.
75004         (rpmatch): Add prototype.
75005
75006 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75007
75008         More patches to assume C89 or better.
75009         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75010         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75011         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75012         or for string.h.
75013         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75014         stdlib.h.
75015         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75016         C headers.
75017         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75018         string.h.
75019         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75020         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75021         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75022         or for string.h.
75023         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75024         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75025         C headers.
75026         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75027         memcpy.
75028         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75029         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75030         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75031         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75032         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75033         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75034         string.h, free.
75035         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75036         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75037         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75038         C headers, or for string.h.
75039         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75040         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75041         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75042         headers, memory.h, stdlib.h, string.h, strings.h.
75043         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75044         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75045         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75046         strchr.
75047         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75048         headers, memory.h, string.h.
75049         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75050         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75051         free.
75052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75053         headers.
75054         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75055         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75056         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75057         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75058         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75059
75060 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75061
75062         More K&R removal.
75063
75064         * lib/acosl.c (main): Use a prototype.
75065         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75066         tanl.c: Likewise.
75067
75068         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75069
75070         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75071         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75072         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75073         with a prototype.
75074         * lib/getopt.c (const): Remove macro.
75075         Include <string.h> unconditionally.
75076         (my_index): Remove; all uses changed to strchr.
75077         (strlen): Remove decl.
75078         (exchange): Remove forward decl; no longer needed.
75079         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75080         Define with prototype.
75081         * lib/getopt1.c (const): Remove macro.
75082         (getopt_long, getopt_long_only, main): Define with prototype.
75083
75084         * lib/getugroups.c: Include <string.h> unconditionally.
75085
75086         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75087         (getusershell, setusershell, endusershell, readname, main):
75088         Define with prototypes.
75089
75090         * lib/group-member.c: Include group-member.h first.
75091         Include <stdlib.h> unconditionally.
75092
75093         * lib/hard-locale.c: Include hard-locale.h first.
75094         Include <stdlib.h>, <string.h> unconditionally.
75095
75096         * lib/hash.c (free, malloc): Remove decls.
75097         Include <stdlib.h> unconditionally.
75098
75099         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75100         (getenv): Do not declare.
75101
75102         * lib/idcache.c: Include <string.h> unconditionally.
75103
75104         * lib/long-options.c: Include long-options.h first, to test interface.
75105         Include <stdlib.h> unconditionally.
75106
75107         * lib/makepath.c: Include makepath.h first, to test interface.
75108         Include <stdlib.h> and <string.h> unconditionally.
75109
75110         * lib/linebuffer.c: Include <stdlib.h>.
75111         (free): Remove decl.
75112
75113         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75114         stddef.h. rpl_malloc returns void *, not char *.
75115         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75116         prototype.
75117
75118         * lib/md5.h: Include <limits.h> unconditionally.
75119         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75120         (__P): Remove; all uses removed.
75121         * lib/md5.c: Include "md5.h" first.
75122         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75123         md5_buffer, md5_process_bytes, md5_process_block):
75124         Define with prototypes.
75125         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75126         * lib/sha.c: Include "sha.h" first.
75127         Include <stdlib.h>, <string.h> unconditionally.
75128
75129         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75130         * lib/memcmp.c (__ptr_t): Likewise.
75131         * lib/memrchr.c (__ptr_t): Likewise.
75132         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75133         Include <string.h> unconditionally.
75134         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75135         * lib/memchr.c: Include <stdlib.h> unconditionally.
75136         * lib/memchr.c (LONG_MAX): Remove.
75137         * lib/memrchr.c (LONG_MAX): Likewise.
75138         * lib/memchr.c (__memchr): Define via a prototype.
75139         * lib/memrchr.c (__memrchr): Likewise.
75140         * lib/memcmp.c (__P): Remove, and remove all uses.
75141         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75142         Remove forward decls; no longer needed.
75143         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75144         Use types required by C89 in prototype.
75145
75146         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75147         * lib/savedir.c: Likewise.
75148         * lib/mkdir.c (free): Remove decl.
75149         * lib/rmdir.c (rmdir): Define with a prototype.
75150         * lib/savedir.c: Include savedir.h first, to test interface.
75151
75152         * lib/mktime.c (STDC_HEADERS): Remove.
75153         Include <stdlib.h>, <string.h> unconditionally.
75154
75155         * lib/modechange.c: Include <stdlib.h> unconditionally.
75156         (malloc): Remove decl.
75157
75158         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75159         (free): Remove decl.
75160
75161         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75162         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75163         (This type really should be intptr_t, but that's a C99ism.)
75164         (_obstack_memcpy): Remove: all uses changed to memcpy.
75165         Include <string.h> unconditionally.
75166         (struct obstack): Assume __STDC__ for types of members
75167         chunkfun, freefun, extra_arg.
75168         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75169         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75170         obstack_begin, obstack_specify_allocation,
75171         obstack_specify_allocation_with_arg, obstack_chunkfun,
75172         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75173         Remove unprototyped decls and the macros that use them.
75174         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75175         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75176         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75177         (defined __STDC__ && __STDC__)]:
75178         Remove nonprototyped code.
75179         Include <stdlib.h> unconditionally.
75180         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75181         _obstack_allocated_p, _obstack_free, obstack_free,
75182         _obstack_memory_used, print_and_abort):
75183         Define using prototypes.
75184         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75185         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75186         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75187         obstack_next_free, obstack_object_size, obstack_room) [0]:
75188         Remove unused, unprototyped code.
75189
75190         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75191
75192         * lib/physmem.c (physmem_total, physmem_available, main): Define
75193         with prototypes.
75194
75195         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75196         (main): Define with a prototype.
75197
75198         * lib/posixver.c (getenv): Remove decl.
75199
75200         * lib/putenv.c (malloc): Returns void *, not char *.
75201         Include <string.h> unconditionally.
75202         (strchr, memcpy, NULL): Do not define.
75203
75204         * lib/readtokens.c: Include readtokens.h first, to test interface.
75205         Include <stdlib.h>, <string.h> unconditionally.
75206         (init_tokenbuffer): Define with a prototype.
75207
75208         * lib/regex.c (PARAMS): Remove.  All uses removed.
75209         All uses of _RE_ARGS removed, too.
75210         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75211         unconditionally.
75212         (bzero): Assume memset exists.
75213         (memcmp, memcpy, NULL): Remove.
75214         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75215         char, or assignments to local vars of type signed char.
75216         (init_syntax_once, PREFIX(extract_number_and_incr),
75217         PREFIX(print_partial_compiled_pattern),
75218         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75219         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75220         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75221         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75222         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75223         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75224         wcs_compile_range, byte_compile_range, truncate_wchar,
75225         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75226         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75227         count_mbs_length, wcs_re_match_2_internal,
75228         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75229         PREFIX(alt_match_null_string_p),
75230         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75231         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75232         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75233         now-unnecessary declaration, if any.
75234         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75235         regcomp, regexec):
75236         Remove now-unnecessary casts among pointer types.
75237         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75238
75239         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75240         (free): Remove decl.
75241
75242         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75243
75244         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75245         (free): Remove decl.
75246
75247         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75248         * lib/xgetcwd.c: Likewise.
75249
75250         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75251         (free): Remove decl.
75252
75253         * lib/strchrnul.c (strchrnul): Define with a prototype.
75254         Fix bug: c_in was not converted to char before searching.
75255
75256         The following changes are not K&R related:
75257
75258         * lib/group-member.h: Include <sys/types.h>, so that this file is
75259         self-contained.
75260         * lib/makepath.h: Likewise.
75261
75262         * lib/getusershell.c (readname, default_index, line_size, readname):
75263         Use size_t, not int, for sizes.
75264         (readname): If the size overflows, report an error instead of
75265         looping forever.
75266
75267 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75268
75269         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75270         libc.
75271
75272 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75273
75274         * README: New section: portability guidelines.
75275
75276 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75277
75278         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75279         C89 spec.
75280
75281 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75282
75283         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75284
75285 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75286
75287         Assume C89 or better; remove K&R cruft.
75288         A few of these changes were first proposed by Derek Robert Price
75289         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75290
75291         * lib/addext.c: Include <string.h> unconditionally.
75292         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75293         Don't declare getenv or malloc.
75294
75295         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75296         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75297         (NULL): Remove.
75298         (find_stack_direction, alloca): Use prototypes.
75299
75300         * lib/atexit.c (atexit): Define using a prototype.
75301
75302         * lib/basename.c, dirname.c, stripslash.c:
75303         Include <string.h> unconditionally.
75304
75305         * lib/bcopy.c: Include <stddef.h>.
75306         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75307
75308         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75309
75310         * lib/error.h (error, error_at_line, error_print_progname)
75311         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75312         * lib/error.c: Include error.h first, to check interface.
75313         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75314         (VA_START): Remove; all uses changeed to va_start.
75315         (exit, strerror): Remove decls.
75316         (error_print_progname): Prototype uncondionally.
75317         Don't include <errno.h>; no longer needed.
75318         (private_strerror): Remove.
75319         (error_tail): Always define.
75320         (error, error_at_line): Assume C89 or better; always use prototypes.
75321         * lib/fatal.c: Include "fatal.h" first, to test interface.
75322         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75323         (VA_START): Remove; all uses changed to va_start.
75324         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75325         this case.
75326         (exit): Remove decl.
75327         (fatal): Prototype unconditionally.  Assume va_start works.
75328         Abort at end, to pacify gcc.
75329
75330         * lib/euidaccess.c (main): Define with a prototype.
75331
75332         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75333
75334         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75335
75336         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75337         prototypes.
75338         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75339         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75340         (getenv): Remove decl.
75341         (fnmatch): Define using a prototype.
75342         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75343         (FCT): Define using a prototype.
75344
75345         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75346
75347         * lib/gethostname.c: Include <stddef.h>.
75348         (gethostname): Define with prototype.  Length is size_t, not int.
75349
75350 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75351
75352         Assume C89 or better; remove K&R cruft.
75353         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75354         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75355         string.h, getenv, malloc.
75356         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75357         headers.
75358         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75359         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75360         do not check for strerror.
75361         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75362         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75363         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75364         do not check for doprnt or vprintf.
75365         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75366         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75367
75368 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75369
75370         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75371         getversion.c should have been removed then, but was accidentally
75372         preserved.
75373
75374         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75375         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75376
75377 2003-09-08  Karl Berry  <karl@gnu.org>
75378
75379         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75380                 config, forget about prep.
75381
75382         * config/depcomp, missing: update from automake.
75383
75384 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75385
75386         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75387         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75388
75389 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75390
75391         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75392         copy_tm_result.  Bug reported by Simon Josefsson in
75393         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75394
75395 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75396
75397         * m4/time_r.m4: New file.
75398         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75399         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75400         is. Check for timegm declaration.
75401         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75402         Do not check for gmtime_r.
75403         Replace mktime if __mktime_internal does not exist and if mktime
75404         hasn't been replaced already.
75405
75406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75407
75408         * lib/time_r.c, lib/time_r.h: New files.
75409
75410         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75411         __localtime_r.
75412         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75413         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75414
75415         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75416         __gmtime_r.
75417         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75418         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75419         Include <time_r.h>.
75420
75421         * lib/timegm.c: Switch to glibc implementation, with the following
75422         changes:
75423         [defined HAVE_CONFIG_H]: Include <config.h>.
75424         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75425         (__mktime_internal) [!defined _LIBC]: New decl.
75426         (__gmtime_r) [!defined _LIBC]: New macro and function.
75427         (timegm): Use a prototype, since gnulib assumes C89.
75428         Do not bother declaring tmp to be const, as it's not really usefu.
75429         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75430         (timegm): Declare only if HAVE_DECL_TIMEGM.
75431
75432 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75433
75434         * MODULES.html.sh (func_all_modules): Add time_r.
75435         * modules/time_r: New file.
75436         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75437         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75438
75439 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75440
75441         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75442         Bug reported by Lute Kamstra in
75443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75444
75445         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75446         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75447         course with correspondingly smaller numbers for tomorrow and
75448         yesterday.  From Tadayoshi Funaba.  Originally installed into
75449         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75450         coreutils merge?).
75451
75452 2003-08-31  Simon Josefsson  <jas@extundo.com>
75453
75454         * modules/timegm: New file.
75455         * MODULES.html.sh (func_all_modules): Add timegm.
75456
75457 2003-08-31  Simon Josefsson  <jas@extundo.com>
75458
75459         * m4/timegm.m4: New file.
75460
75461 2003-08-31  Simon Josefsson  <jas@extundo.com>
75462
75463         * lib/timegm.h: New file.
75464         * lib/timegm.c: New file.  Based on
75465         wget-1.8.2/src/http.c:mktime_from_utc.
75466
75467 2003-08-31  Karl Berry  <karl@gnu.org>
75468
75469         * lib/argp.h: update from libc.
75470
75471 2003-08-28  Bruno Haible  <bruno@clisp.org>
75472
75473         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75474         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75475         followed by '#define fnmatch fnmatch_posix' gives an error.
75476
75477 2003-08-28  Bruno Haible  <bruno@clisp.org>
75478
75479         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75480         warning on QNX, which defines O_BINARY to 000000.
75481
75482 2003-08-27  Jim Meyering  <jim@meyering.net>
75483
75484         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75485         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75486         would fail after 32.  Reported by Danny Levinson.  Details here:
75487         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75488
75489 2003-08-24  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75492         MSVC7 <stdio.h> is included later.
75493
75494 2003-08-22  Simon Josefsson  <jas@extundo.com>
75495
75496         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75497
75498 2003-08-20  Karl Berry  <karl@gnu.org>
75499
75500         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75501
75502 2003-08-20  Bruno Haible  <bruno@clisp.org>
75503
75504         * modules/progname: New file.
75505         * MODULES.html.sh (func_all_modules): Add progname.
75506
75507 2003-08-20  Bruno Haible  <bruno@clisp.org>
75508
75509         * lib/progname.h: New file, from GNU gettext.
75510         * lib/progname.c: New file, from GNU gettext.
75511         * lib/progreloc.c: New file, from GNU gettext.
75512
75513 2003-08-19  Jim Meyering  <jim@meyering.net>
75514
75515         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75516         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75517
75518 2003-08-19  Bruno Haible  <bruno@clisp.org>
75519
75520         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75521         more.
75522
75523 2003-08-19  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/xstrdup.c: Assume <string.h> exists.
75526
75527 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75528
75529         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75530         in makefile rules.
75531
75532 2003-08-18  Jim Meyering  <jim@meyering.net>
75533
75534         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75535         * m4/lib-ld.m4: Likewise.
75536
75537 2003-08-18  Jim Meyering  <jim@meyering.net>
75538
75539         * lib/setenv.h: Indent nested cpp directive.
75540         * lib/vasnprintf.c: Remove trailing blanks.
75541
75542 2003-08-17  Simon Josefsson  <jas@extundo.com>
75543
75544         * modules/xstrndup: New file.
75545         * MODULES.html.sh (func_all_modules): Add xstrndup.
75546
75547 2003-08-17  Simon Josefsson  <jas@extundo.com>
75548
75549         * modules/argp: Fix autoconf macro name. Add more dependencies.
75550
75551 2003-08-17  Simon Josefsson  <jas@extundo.com>
75552
75553         * m4/xstrndup.m4: New file.
75554
75555 2003-08-17  Simon Josefsson  <jas@extundo.com>
75556
75557         * m4/argp.m4: New file.
75558
75559 2003-08-17  Simon Josefsson  <jas@extundo.com>
75560             Bruno Haible  <bruno@clisp.org>
75561
75562         * lib/xstrndup.h: New file.
75563         * lib/xstrndup.c: New file.
75564
75565 2003-08-17  Bruno Haible  <bruno@clisp.org>
75566
75567         * modules/strndup (Files, Include): Add lib/strndup.h.
75568
75569 2003-08-17  Bruno Haible  <bruno@clisp.org>
75570
75571         * modules/euidaccess (Files): Add lib/euidaccess.h.
75572
75573 2003-08-17  Bruno Haible  <bruno@clisp.org>
75574
75575         * lib/strndup.h: New file.
75576
75577 2003-08-17  Bruno Haible  <bruno@clisp.org>
75578
75579         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75580         like AC_GNU_SOURCE.
75581         * modules/extensions (configure.ac): Comment out the invocation of
75582         gl_USE_SYSTEM_EXTENSIONS.
75583
75584 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75585
75586         Merges from coreutils, etc.
75587         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75588         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75589         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75590         fixing a typo.
75591         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75592         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75593
75594 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75595
75596         Document merge from coreutils.
75597         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75598         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75599         * modules/utime: Add m4/utimes-null.m4.
75600
75601 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75602
75603         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75604         space, undoing this 2003-08-12 change:
75605         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75606
75607 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75608
75609         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75610         strtoul.c from libc, undoing this 2003-08-12 change:
75611         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75612
75613 2003-08-16  Jim Meyering  <jim@meyering.net>
75614
75615         Merges from coreutils.
75616         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75617         prefix.  Adjust cache variables similarly.  Create 500 rather than
75618         just 300 files, to exercise bug on Darwin6.5, too.
75619         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75620         $missing_dir.
75621         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75622         AM_SYS_POSIX_TERMIOS.
75623         Reported by mkc@mathdogs.com.
75624         Also change use of $am_cv_sys_posix_termios
75625         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75626         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75627         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75628         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75629         in /proc/mounts until it finds one with matching device number.  This
75630         is unnecessary when the FILE argument *is* a mount point.  No stat call
75631         is necessary in that case.  So, disable the statvfs-testing code on
75632         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75633         as RedHat bug# 84846.
75634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75635         to 1MB, so as not to render systems with no stack size limit (e.g.,
75636         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75637         Include <unistd.h>.  On some systems,
75638         it is required for the definition of _SC_PAGESIZE.
75639
75640 2003-08-16  Jim Meyering  <jim@meyering.net>
75641
75642         Merge from coreutils.
75643         * lib/xstrtoimax.c: #else #if -> #elif.
75644         * lib/xstrtoumax.c: Likewise.
75645
75646 2003-08-16  Jim Meyering  <jim@meyering.net>
75647
75648         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75649         * m4/utimes.m4: Removed.
75650         * m4/utimes-null.m4: Renamed from utimes.m4.
75651
75652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75653         to 1MB, so as not to render systems with no stack size limit (e.g.,
75654         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75655         Include <unistd.h>.  On some systems,
75656         it is required for the definition of _SC_PAGESIZE.
75657
75658 2003-08-16  Jim Meyering  <jim@meyering.net>
75659         and Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         Merges from coreutils, etc.
75662
75663         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75664         using the latest version from cvs.  This avoids problems with #line
75665         directives using a vendor (Sun) compiler.
75666         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75667         Don't set GETGROUPS_LIB here; now it's
75668         done via getgroups.m4's wrapper function.
75669         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75670         rather than just in sh-util/configure.in, so that the
75671         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75672         same.
75673         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75674         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75675         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75676         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75677         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75678         Remove code that is now done by the newly-required macros.
75679         Append $(EXEEXT) to DF_PROG.
75680         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75681         Do not invoke or require the following here,
75682         since prereq.m4 or some gnulib .m4 now does this for us:
75683         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75684         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75685         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75686         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75687         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75688         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75689         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75690         AC_FUNC_OBSTACK.
75691         Do not replace the following functions, as this is now the job
75692         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75693         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75694         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75695         atexit getpass, strdup, getpagesize.
75696         Replace 'raise'.
75697         Do not check for the following functions, as this is now the job
75698         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75699         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75700         setregid.
75701         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75702         Check for sys/sysctl.h.
75703         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75704         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75705         of checking for ssize_t ourselves.
75706
75707         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75708         Require every macro that gnulib/modules/* suggests for us.
75709         (jm_PREREQ_ADDEXT): New macro.
75710         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75711         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75712
75713         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75714         (gl_PHYSMEM): Use it.
75715         Also check for `table' function.
75716         Check for new headers and functions.
75717         Add check for sys/sysmp.h.
75718         With suggestions from Kaveh Ghazi.
75719         Ignore headers that are present but cannot be compiled.  This
75720         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75721         C 5.4.
75722
75723 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75724
75725         Document merge from coreutils.
75726         * modules/userspec: Depend on posixver.
75727         * modules/strftime: Depend on tzset.
75728
75729 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75730
75731         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75732         rather than tab, after '#' in shell-script copyright notices.
75733         Suggested by Bruno Haible.
75734
75735 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75736
75737         * config/srclist-update: Use three spaces, rather than tab, after '#'
75738         in shell-script copyright notices.  Suggested by Bruno Haible.
75739         Remove unnecessary parenthesization in regular expression.
75740
75741 2003-08-15  Jim Meyering  <jim@meyering.net>
75742
75743         Merge from coreutils.
75744         * lib/xgethostname.c: Include <stdlib.h>.
75745         (xghostname): Don't exit for anything other than memory-related
75746         failure; just return NULL.
75747         * lib/userspec.c: Include "posixver.h".
75748         (parse_user_spec): Accept `.' as a separator only
75749         in pre-POSIX-200112 mode.
75750         * lib/strtoimax.c: Use #elif rather than #else #if.
75751         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75752         Remove function, now that we can rely on a working tzset function.
75753         [!_LIBC]: Ensure that the required autoconf test has been run.
75754         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75755         Use underlying_strftime for %r.
75756         * lib/sha.c: Merge in some clean-up and optimization changes from
75757         glibc.
75758         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75759         Ensure that it is a multiple of 64.
75760         Rearrange loop exit tests so as to avoid performing an
75761         additional fread after encountering an error or EOF.
75762         * lib/realloc.c: Update copyright date.
75763
75764 2003-08-15  Jim Meyering  <jim@meyering.net>
75765         and Paul Eggert  <eggert@twinsun.com>
75766
75767         Merge from coreutils.
75768         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75769         member but strut utmpx does not.  Needed for AIX 4.3.3.
75770         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75771
75772 2003-08-15  Jim Meyering  <jim@meyering.net>
75773         and Paul Eggert  <eggert@cs.ucla.edu>
75774
75775         Merges from coreutils, etc.
75776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75777         Require gl_FUNC_TZSET_CLOBBER.
75778         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75779         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75780         members.
75781
75782 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75783
75784         Help the merge from coreutils.
75785         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75786         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75787         * m4/tzset.m4: Use it too.
75788
75789 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75790
75791         * modules/tzset: New file.
75792
75793 2003-08-14  Jim Meyering  <jim@meyering.net>
75794
75795         Merges from coreutils.
75796         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75797         variable names, rather than @FNMATCH_H@.
75798         * modules/alloca: Likewise for $(ALLOCA_H).
75799
75800         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75801         the three copies of the literal target, `fnmatch.h'.
75802         * modules/alloca (alloca.h): Likewise.
75803
75804 2003-08-14  Jim Meyering  <jim@meyering.net>
75805
75806         Merge from coreutils.
75807         * m4/tzset.m4: New file.
75808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75809         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75810         otherwise, AIX 5.1 systems would end up using the latter.
75811         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75812         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75813         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75814         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75815
75816 2003-08-14  Jim Meyering  <jim@meyering.net>
75817
75818         Merge from coreutils.
75819         * lib/obstack.h: Whitespace changes.
75820         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75821         and xcalloc return values.
75822         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75823         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75824         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75825         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75826         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75827         error from mntctl.
75828         Use mntctl's return value to drive the entry-processing loop, since
75829         we can't rely on the value of the vmt_length member in the last
75830         entry.  On some systems doing so could result in exhausting
75831         virtual memory.  Based in part on a patch from Mike Jetzer.
75832
75833 2003-08-14  Jim Meyering  <jim@meyering.net>
75834         and Paul Eggert  <eggert@twinsun.com>
75835
75836         Merges from coreutils, plus other fixes.
75837         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75838         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75839         for credits and details.  Thanks to Kaveh Ghazi for helping
75840         to keep these files in sync.
75841         (ARRAY_SIZE): Define it.
75842         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75843         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75844         (memcasecmp): Don't assume size_t fits in unsigned int.
75845         Remove casts and duplicate code.
75846         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75847         (memcpy): Remove definition.
75848         Merge in some clean-up and optimization changes from glibc.
75849         [BLOCKSIZE]: Move definition to top of file.
75850         Ensure that it is a multiple of 64.
75851         Rearrange loop exit tests so as to avoid performing an
75852         additional fread after encountering an error or EOF.
75853         * lib/md5.h (md5_uintptr): Define.
75854         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75855         return to the initial working directory.  Preserve errno
75856         for caller.
75857         * lib/idcache.c: Include "xalloc.h".
75858         (xmalloc, xrealloc): Remove decls.
75859         (getuser): Remove casts no longer required in C89.
75860         * lib/human.c: Include stdio.h, for sprintf.
75861         * lib/group-member.c: Include "xalloc.h".
75862         (xmalloc, xrealloc): Remove decls.
75863         (get_group_info): Remove casts no longer required in C89.
75864         * lib/getusershell.c (readname): Remove casts no longer required in
75865         C89.
75866         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75867         * lib/getline.c: Whitespace fix, from coreutils.
75868
75869 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75870
75871         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75872         Check for isascii.
75873
75874         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75875         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75876         Undo previous (whitespace-only) change.
75877
75878 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75879
75880         * lib/exclude.c: Include <ctype.h>
75881         (IN_CTYPE_DOMAIN): New macro.
75882         (is_space): New fn.
75883         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75884         and empty lines.
75885
75886         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75887         Undo previous (whitespace-only) change.
75888
75889 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75890
75891         * config/srclist-update: Change update back to the old behavior,
75892         leaving whitespace alone.  Use one 'sed' command rather than a
75893         pipeline.
75894         (fixlicense): Now a variable, not a function.
75895         (remove_trailing_blanks): Remove.
75896         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75897         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75898         Undo previous (whitespace-only) change.
75899
75900 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75901
75902         Merge from coreutils.
75903         * modules/euidaccess: Add lib_SOURCES, include for new
75904         file euidaccess.h
75905
75906 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75907
75908         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75909         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75910         Normalize leading white space and remove trailing white space.
75911
75912         Merge from coreutils
75913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75914
75915         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75916         0.12.1.  These files are now being upgraded automatically by
75917         ../config/srclist-update.
75918
75919 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75920
75921         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75922         Normalize leading white space and remove trailing white space.
75923         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75924         notice, as per ../config/srclist-update.
75925
75926         Merge from coreutils.
75927         * lib/euidaccess.h: New file.
75928         * lib/euidaccess.c: Include it.
75929         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75930         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75931         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75932
75933 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75934
75935         * config/srclist-update: Add copyright notice.
75936         (remove_id_lines, remove_trailing_blanks): New constants.
75937         (fixfile): Use them to normalize spacing a bit in copied files.
75938         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75939         Normalize leading white space and remove trailing white space.
75940
75941         * config/texinfo.tex: Sync with texinfo.
75942
75943         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75944         strtoul.c from libc, to merge coreutils whitespace changes.
75945
75946         * config/srclist.txt: Get the following m4 files from gettext:
75947         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75948         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75949         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75950         wint_t.m4.
75951
75952 2003-08-12  Karl Berry  <karl@gnu.org>
75953
75954         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75955         been made.
75956
75957 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75958
75959         * modules/gnu-source, m4/gnu-source.m4:
75960         Remove; we're assuming Autoconf 2.54 or later now.
75961         Suggested by Bruno Haible.
75962         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75963
75964 2003-08-11  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75967
75968 2003-08-11  Bruno Haible  <bruno@clisp.org>
75969
75970         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75971         (vasnprintf): Use it instead of wcslen.
75972
75973 2003-08-11  Bruno Haible  <bruno@clisp.org>
75974
75975         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75976         value to ensure that _Bool promotes to int. Use #define for _Bool when
75977         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75978
75979 2003-08-10  Karl Berry  <karl@gnu.org>
75980
75981         * lib/regex.h: update from libc (whitespace fix).
75982
75983 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75984
75985         Merge some files from coreutils.  These changes were
75986         originally made by Jim Meyering.
75987         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75988         many older Unixes require this.
75989         * lib/alloca.c (alloca): Remove cast to argument of free;
75990         no longer needed in C89.
75991         * lib/alloca_.h, regex.h: Fix white space to match
75992         what GNU indent does.
75993
75994 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75995
75996         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75997         apparently Emacs's Unicode mode got confused before my 2003-08-05
75998         checkin.
75999
76000 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76001
76002         * m4/extensions.m4: New file.
76003         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76004         Require gl_USE_SYSTEM_EXTENSIONS.
76005         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76006         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76007
76008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76009
76010         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76011         * modules/extensions, modules/gnu-source: New files.
76012         * modules/timespec, modules/unlocked-io: Depend on extensions.
76013
76014 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76015
76016         * modules/restrict: New file.
76017         * MODULES.html.sh (func_all_modules): Add restrict.
76018         * modules/regex: Depend on restrict.
76019
76020 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76021
76022         * m4/restrict.m4: New file.
76023         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76024
76025 2003-08-07  Bruno Haible  <bruno@clisp.org>
76026
76027         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76028         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76029
76030 2003-08-07  Bruno Haible  <bruno@clisp.org>
76031
76032         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76033         makes the module 'getndelim2' compatible with the module 'getline'.
76034
76035 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76036
76037         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76038         byte with "\201" to avoid glitches when editing that source file
76039         with multi-gnome-terminal.
76040
76041 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76042
76043         * lib/bumpalloc.h: Remove.
76044
76045 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76046
76047         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76048         * modules/bumpalloc: Remove.
76049
76050 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76051
76052         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76053         GNU coding style.
76054
76055         Merge from coreutils.
76056         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76057         1. From glibc.
76058         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76059         from Karl Berry, implemented by Jim Meyering.
76060         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76061         from Dmitry V. Levin.
76062         Remove anachronistic cast of xrealloc.
76063         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76064         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76065         type. Otherwise, it wouldn't compile with at least /bin/cc on
76066         ymp-cray-unicos9.0.2.X.
76067         Combine two mostly-identical uses of alloca into one.
76068         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76069
76070 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76071
76072         [From Emacs.]
76073
76074         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76075         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76076         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76077         obsolete NLIST_NAME_UNION.
76078         [__GNU__]: Undef BSD and FSCALE.
76079         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76080
76081 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76082
76083         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76084         an enum type, so that it's guaranteed to promote to int.  See:
76085         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76086
76087 2003-08-03  Karl Berry  <karl@gnu.org>
76088
76089         * config/depcomp: update from automake.
76090
76091 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76092
76093         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76094         (strerror): Don't assume that a printable int fits in 14 bytes.
76095
76096 2003-07-31  Bruno Haible  <bruno@clisp.org>
76097
76098         * modules/getpass-gnu: New file.
76099         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76100
76101 2003-07-31  Bruno Haible  <bruno@clisp.org>
76102
76103         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76104
76105 2003-07-24  Karl Berry  <karl@gnu.org>
76106
76107         * config/missing: update from automake.
76108
76109 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76110             Bruno Haible  <bruno@clisp.org>
76111
76112         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76113         * lib/getline.c (getline, getdelim): Likewise.
76114         Remove _GNU_SOURCE define; now it's defined in config.h through
76115         m4/getline.m4.
76116
76117 2003-07-23  Karl Berry  <karl@gnu.org>
76118
76119         * config/config.sub: update from prep.
76120
76121 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76122
76123         * modules/xalloc (Depends-on): Add exitfail.
76124         * modules/xmemcoll: Likewise.
76125
76126 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76127
76128         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76129         over-parenthesization in macros.
76130
76131         Sync with coreutils.
76132
76133         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76134         required by C99.
76135
76136         Use `exit_failure' for xalloc and xmemcoll instead of their own
76137         private exit-failure variables.
76138         * lib/xalloc.h (xalloc_exit_failure): Remove.
76139         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76140         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76141         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76142         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76143         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76144
76145 2003-07-20  Jim Meyering  <jim@meyering.net>
76146
76147         * modules/closeout (Depends-on): Add exitfail.
76148         Suggestion from Bruno Haible.
76149
76150 2003-07-19  Karl Berry  <karl@gnu.org>
76151
76152         * config/config.sub: update from prep.
76153
76154 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76155
76156         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76157         Remove.
76158         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76159         to test that it can stand by itself.  Include "exitfail.h".
76160         Clients should set exit_failure instead.
76161         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76162
76163 2003-07-18  Bruno Haible  <bruno@clisp.org>
76164
76165         * modules/getndelim2: New file.
76166         * modules/getline: Share files with module getndelim2.
76167         * modules/getnline: Depend on getndelim2 instead of sharing files with
76168         it. Add getnline.c to lib_SOURCES.
76169         * MODULES.html.sh (func_all_modules): Add getndelim2.
76170
76171 2003-07-18  Bruno Haible  <bruno@clisp.org>
76172
76173         * m4/getndelim2.m4: New file.
76174         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76175         invoke gl_PREREQ_GETNDELIM2.
76176         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76177         gl_PREREQ_GETNDELIM2.
76178         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76179         gl_GETNDELIM2.
76180
76181 2003-07-18  Bruno Haible  <bruno@clisp.org>
76182
76183         * lib/getndelim2.h: New file.
76184         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76185         getndelim2.h.
76186         (getndelim2): Make non-static. Change return type to ssize_t.
76187         * lib/getline.h: Change argument names.
76188         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76189         * lib/getnline.c: Include getndelim2.h.
76190
76191 2003-07-18  Andreas Schwab  <schwab@suse.de>
76192
76193         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76194
76195 2003-07-17  Karl Berry  <karl@gnu.org>
76196
76197         * config/config.sub: update from prep.
76198
76199 2003-07-17  Bruno Haible  <bruno@clisp.org>
76200
76201         * modules/getnline: New file.
76202         * modules/getline: Add lib/getndelim2.c to source file list.
76203         * MODULES.html.sh (func_all_modules): Add getnline.
76204
76205 2003-07-17  Bruno Haible  <bruno@clisp.org>
76206
76207         * m4/getnline.m4: New file.
76208
76209 2003-07-17  Bruno Haible  <bruno@clisp.org>
76210
76211         * m4/Makefile.am.in: Remove file.
76212         * m4/Makefile.am: Remove file.
76213         * m4/Makefile.in: Remove file.
76214
76215 2003-07-17  Bruno Haible  <bruno@clisp.org>
76216
76217         * lib/getnline.h: New file.
76218         * lib/getnline.c: New file.
76219         * lib/getndelim2.c: New file, extracted from getline.c.
76220         (getndelim2): Renamed from getdelim2, with added nmax argument.
76221         * lib/getline.c: Include getndelim2.c.
76222         (getdelim2): Moved out to getndelim2.c.
76223         (getline, getdelim): Update.
76224
76225 2003-07-17  Bruno Haible  <bruno@clisp.org>
76226
76227         * lib/Makefile.am: Remove file.
76228         * lib/Makefile.in: Remove file.
76229
76230 2003-07-17  Bruno Haible  <bruno@clisp.org>
76231
76232         * configure.in: Remove file.
76233         * Makefile.in: Remove file.
76234
76235 2003-07-17  Bruno Haible  <bruno@clisp.org>
76236
76237         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76238
76239 2003-07-16  Karl Berry  <karl@gnu.org>
76240
76241         * config/srclist-update: was running fixlicense twice, which caused
76242                 texinfo.tex to be nullified for some reason.  Simplify,
76243                 $gplsrc is no longer needed as far as I can see?
76244
76245 2003-07-16  Jim Meyering  <jim@meyering.net>
76246
76247         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76248
76249 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76250
76251         * config/srclist.txt: Get the following files from gettext-runtime/intl
76252         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76253         ref-del.sin.  From Bruno Haible.
76254         * config/srclist-update (fixfile): Change grep pattern again, since the
76255         previous fix didn't work (there was another trailing $).  Use
76256         '[$]' to escape the $s.
76257
76258 2003-07-15  Karl Berry  <karl@gnu.org>
76259
76260         * lib/vasnprintf.c: update from gettext.
76261
76262 2003-07-15  Karl Berry  <karl@gnu.org>
76263
76264         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76265         gets expanded when surrounded by '$'.
76266
76267 2003-07-15  Jim Meyering  <jim@meyering.net>
76268
76269         * modules/save-cwd: Don't depend on error.  From Derek Price.
76270
76271 2003-07-15  Jim Meyering  <jim@meyering.net>
76272
76273         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76274
76275 2003-07-14  Simon Josefsson  <jas@extundo.com>
76276
76277         * modules/mempcpy: New file.
76278         * MODULES.html.sh (func_all_modules): Add mempcpy.
76279
76280 2003-07-14  Simon Josefsson  <jas@extundo.com>
76281
76282         * m4/mempcpy.m4: New file.
76283
76284 2003-07-14  Simon Josefsson  <jas@extundo.com>
76285
76286         * lib/mempcpy.h: New file.
76287         * lib/mempcpy.c: New file.
76288
76289 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76290
76291         * modules/getdate, modules/posixtm: Depend on mktime.
76292
76293 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76294
76295         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76296         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76297         unicodeio.c, unicodeio.h, unlocked-io.h:
76298         Switch from LGPL to GPL.
76299
76300 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76301
76302         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76303         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76304         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76305         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76306         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76307         updated automatically by ../config/srclist-update.  This changes
76308         their license from LPGL to GPL.
76309
76310 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76311
76312         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76313         assumed to refer to the root of the most recent stable gettext version.
76314         * config/srclistvars.sh: Add defaults for eggert.
76315         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76316         Match "This program" as well as "The program".  This is needed
76317         for gettext.
76318
76319 2003-07-14  Jim Meyering  <jim@meyering.net>
76320
76321         Don't emit diagnostics.  Let callers do that.
76322         * lib/save-cwd.c: Don't include "error.h".
76323         (save_cwd): Don't call error.  Ensure that errno is valid
76324         when returning nonzero.
76325
76326         * lib/save-cwd.h (restore_cwd): Update prototype.
76327         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76328         Simplify.  Don't call error upon failure.  Let callers do that.
76329         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76330         when auditing is enabled.  But don't bother updating the #if.
76331
76332 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76333
76334         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76335         it breaks C++ compilation.
76336         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76337
76338 2003-07-10  Simon Josefsson  <jas@extundo.com>
76339
76340         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76341
76342 2003-07-10  Jim Meyering  <jim@meyering.net>
76343
76344         * m4/clock_time.m4: Remove trailing blank.
76345         * m4/intmax_t.m4: Likewise.
76346
76347 2003-07-10  Jim Meyering  <jim@meyering.net>
76348
76349         * lib/vasnprintf.c: Remove trailing blanks.
76350         Make cpp indentation consistent.
76351
76352 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76353
76354         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76355         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76356         Switch from LGPL to GPL.
76357
76358 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76359
76360         * config/srclist.txt: Sort sublists.  Add
76361         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76362         that differ from gnulib for one reason or another; we'd like this list
76363         to be smaller but for now let's document what we have.
76364
76365 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76366
76367         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76368         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76369         and sweeter "eval x=$x".
76370         * config/srclist.txt: Get lib/argp* from glibc.
76371
76372 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76373
76374         * lib/mktime.c: Fix some boundary cases and remove need for floating
76375         point.
76376
76377         Issue a compile-time diagnostic if time_t is floating point, or if
76378         two's complement arithmetic is not in effect, or if arithmetic
76379         right shift does not propagate the sign.  These assumptions were
76380         all in the original code but they weren't checked.
76381
76382         (TIME_T_MIDPOINT, verify): New macros.
76383         (__isleap): Remove; it has integer overflow problems.
76384         (leapyear): New function, without those problems.
76385         (ydhms_tm_diff): Remove; splitting into two parts.
76386         (ydhms_diff): New function, containing the arithmetic part of
76387         the old ydhms_tm_diff function.  Issue a compile-time
76388         diagnostic if we are not using C99 integer division.
76389         Avoid casts when possible.
76390         (guess_time_tm): New function, containing the checking part of
76391         the old ydhms_tm_diff function.  Return the new value, rather than
76392         the difference between it and the old.  Accept a new argument T
76393         so that *T specifies the old value.  Check for overflow in the result.
76394
76395         (__mktime_internal): Use a time_t offset, not a long int offset.
76396         This undoes the 2003-06-04 change, which is no longer needed now
76397         that we have better overflow checking.
76398         (localtime_offset): Likewise.
76399
76400         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76401         and long are 64-bit but int is only 32-bit.
76402         (ydhms_diff): Use long int to store year1 and yday1.
76403         Issue a compile-time diagnostic if long int is not wide enough.
76404
76405         (__mktime_internal): Use long int to store adjusted year and yday.
76406         Use plain C rather than preprocessor commands, if that doesn't
76407         affect efficiency.
76408         Check for overflow (and try to repair) after each probe
76409         rather than checking only at the very end.  This avoids some bugs
76410         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76411         does not equal GMT offset at maximum time).
76412         Use integer to check for overflow rather than floating point; this
76413         is more portable to non-IEEE hosts, and is a tad faster.
76414         When we detect that we are oscillating between two values,
76415         don't check whether tm_isdst has the requested value, since
76416         we already know the answer.  When tm_isdst has the wrong value,
76417         use a different heuristic to find the right one, based on the
76418         extreme values actually observed in practice in tz2003a,
76419         rather than the (overly optimistic) "previous 3 calendar quarters".
76420
76421         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76422         "T const" to accommodate glibc style.
76423         (check_result): Use less-confusing report format.  "long" -> "long int.
76424         (main): Likewise.
76425         Don't loop if the iteration overflows time_t.
76426         Allow a negative step in the iteration.
76427
76428 2003-07-06  Karl Berry  <karl@gnu.org>
76429
76430         * config/depcomp: update from automake.
76431         * config/config.sub: update from prep.
76432
76433 2003-07-03  Karl Berry  <karl@gnu.org>
76434
76435         * config/config.guess: update from prep.
76436
76437 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76438
76439         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76440         xreadlink.c now includes it unconditionally.
76441
76442 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76443
76444         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76445         having it depend on HAVE_SYS_TYPES_H.
76446
76447 2003-07-01  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76450         <sys/types.h> should be sufficient.
76451         Reported by Paul Eggert.
76452
76453 2003-06-26  Karl Berry  <karl@gnu.org>
76454
76455         * config/depcomp: update from automake.
76456
76457 2003-06-26  Bruno Haible  <bruno@clisp.org>
76458
76459         * modules/human: Depend on module stdbool.
76460
76461 2003-06-25  Bruno Haible  <bruno@clisp.org>
76462
76463         * modules/readlink: New file.
76464         * modules/xreadlink: Depend on it.
76465         * MODULES.html.sh (func_all_modules): Add readlink.
76466
76467 2003-06-25  Bruno Haible  <bruno@clisp.org>
76468
76469         * m4/readlink.m4: New file.
76470
76471 2003-06-25  Bruno Haible  <bruno@clisp.org>
76472
76473         * lib/readlink.c: New file.
76474
76475 2003-06-22  Karl Berry  <karl@gnu.org>
76476
76477         * config/srclist.txt: update mkinstalldirs from automake.
76478         * config/mkinstalldirs: update.
76479
76480 2003-06-22  Bruno Haible  <bruno@clisp.org>
76481
76482         Portability to mingw32.
76483         * m4/ssize_t.m4: New file, from GNU gettext.
76484         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76485         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76486
76487 2003-06-22  Bruno Haible  <bruno@clisp.org>
76488
76489         * modules/safe-read: Add m4/ssize_t.m4.
76490         * modules/xreadlink: Add m4/ssize_t.m4.
76491
76492 2003-06-20  Bruno Haible  <bruno@clisp.org>
76493
76494         Assume C89, so PARAMS isn't needed.
76495         * lib/unicodeio.h (PARAMS): Remove.
76496         * lib/unicodeio.c: Don't use PARAMS.
76497
76498 2003-06-18  Karl Berry  <karl@gnu.org>
76499
76500         * config/config.{guess,sub}: update from prep.
76501
76502 2003-06-18  Jim Meyering  <jim@meyering.net>
76503
76504         Merge changes from coreutils.
76505         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76506         Remove explicit declarations of xmalloc and realloc.
76507         Include xalloc.h.
76508         (read_utmp): Remove anachronistic cast of xmalloc.
76509
76510 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76511
76512         Assume C89, so PARAMS isn't needed.
76513         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76514         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76515         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76516         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76517         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76518         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76519         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76520         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76521         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76522         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76523         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76524         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76525         no longer needed. Anyway, config.h should always be included before any
76526         other file.
76527
76528 2003-06-11  Simon Josefsson  <jas@extundo.com>
76529
76530         * modules/sysexits: New file.
76531         * MODULES.html.sh (func_all_modules): Add sysexits.
76532
76533 2003-06-11  Simon Josefsson  <jas@extundo.com>
76534
76535         * lib/sysexit_.h: New file.
76536
76537 2003-06-11  Derek Price  <derek@ximbiot.com>
76538
76539         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76540         necessary.
76541
76542 2003-06-11  Bruno Haible  <bruno@clisp.org>
76543
76544         * m4/sysexits.m4: New file.
76545
76546 2003-06-10  Simon Josefsson  <jas@extundo.com>
76547
76548         * lib/argp.h: New file, from glibc.
76549         * lib/argp-ba.c: New file, from glibc.
76550         * lib/argp-eexst.c: New file, from glibc.
76551         * lib/argp-fmtstream.c: New file, from glibc.
76552         * lib/argp-fmtstream.h: New file, from glibc.
76553         * lib/argp-fs-xinl.c: New file, from glibc.
76554         * lib/argp-help.c: New file, from glibc.
76555         * lib/argp-namefrob.h: New file, from glibc.
76556         * lib/argp-parse.c: New file, from glibc.
76557         * lib/argp-pv.c: New file, from glibc.
76558         * lib/argp-pvh.c: New file, from glibc.
76559         * lib/argp-xinl.c: New file, from glibc.
76560
76561 2003-06-10  Simon Josefsson  <jas@extundo.com>
76562
76563         * modules/strchrnul: New file.
76564
76565 2003-06-10  Simon Josefsson  <jas@extundo.com>
76566
76567         * modules/argp: New file.
76568
76569 2003-06-10  Simon Josefsson  <jas@extundo.com>
76570
76571         * m4/strchrnul.m4: New file.
76572
76573 2003-06-10  Simon Josefsson  <jas@extundo.com>
76574
76575         * lib/strchrnul.h: New file.
76576         * lib/strchrnul.c: New file.
76577
76578 2003-06-10  Bruno Haible  <bruno@clisp.org>
76579
76580         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76581
76582 2003-06-07  Karl Berry  <karl@gnu.org>
76583
76584         * config/config.{guess,sub}: update from prep.
76585
76586 2003-06-07  Jim Meyering  <jim@meyering.net>
76587
76588         * modules/strtod: Use $(...) notation, not @...@ for
76589         AC_REPLACE'd variables.
76590         * modules/localcharset: Likewise.
76591
76592 2003-06-07  Jim Meyering  <jim@meyering.net>
76593
76594         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76595         in place of my name in the copyright comment.
76596         Remove definition and uses of __P.
76597
76598         From coreutils.
76599         * lib/stat.c: Don't declare xmalloc explicitly.
76600         Instead, include "xalloc.h".
76601         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76602         xrealloc, and xcalloc return values.
76603         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76604         Improve comment.
76605         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76606
76607 2003-06-07  Bruno Haible  <bruno@clisp.org>
76608
76609         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76610         avoid AC_CONFIG_LINKS.
76611         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76612         fnmatch.h, to avoid AC_CONFIG_LINKS.
76613         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76614
76615 2003-06-07  Bruno Haible  <bruno@clisp.org>
76616
76617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76618         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76619         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76620         directory.
76621         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76622         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76623         directory.
76624
76625 2003-06-06  Jim Meyering  <jim@meyering.net>
76626
76627         Merge from coreutils.
76628         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76629         Consolidate declarations and initializations of *_base* locals.
76630
76631         Merge from coreutils.
76632         This avoids a core dump on systems without GNU putenv,
76633         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76634         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76635         (unsetenv): New static function, from GNU libc.
76636         (rpl_putenv): Use it.
76637
76638         * lib/modechange.c: Remove trailing blanks.
76639
76640         Merge from coreutils.
76641         * lib/fsusage.c: Remove declaration of statfs.
76642         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76643
76644         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76645
76646 2003-06-06  Jim Meyering  <jim@meyering.net>
76647
76648         * lib/stdbool_.h: Renamed from stdbool.h.in.
76649
76650 2003-06-06  Jim Meyering  <jim@meyering.net>
76651             Bruno Haible  <bruno@clisp.org>
76652
76653         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76654         Adjust Makefile.am snippet not to redirect directly to target.
76655         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76656
76657 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76658
76659         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76660         mismatch, look in future quarters as well as past.  This fixes a
76661         bug when processing fall-backwards gaps immediately after a long
76662         period of daylight-saving time.
76663
76664         * lib/mktime.c: Assume freestanding C89 or better.
76665         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76666         (__P): Remove; not used.
76667         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76668         (mktime, not_equal_tm, print_tm, check_result,
76669         main): Use prototypes.  Use const * where appropriate.
76670         (main): Fix typo in testing code that uncovered by above changes.
76671         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76672
76673 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76674
76675         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76676         locale.h, localeconv.  This merges changes from coreutils.
76677
76678         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76679         It can be removed after the next Autoconf is released.
76680         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76681         needed.
76682
76683 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76684
76685         * lib/mktime.c: Fix Debian bug 177940
76686         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76687         (localtime_offset): Now long int, not time_t, because we want it
76688         to be guaranteed to be signed.  All uses changed.
76689         (__mktime_internal): If overflow would occur when adding offset,
76690         don't add it.
76691
76692         Merge 'human' changes from coreutils.  Rewrite to support
76693         locale-specific notations like thousands separators.
76694         * lib/human.c: Simplify authorship notice.
76695         Include human.h immediately after config.h.
76696         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76697         <limits.h>: Do not include, since human.h does.
76698         (SIZE_MAX, UINTMAX_MAX): New macros.
76699         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76700         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76701         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76702         (power_letter): Renamed from suffixes.
76703         (generate_suffix_backwards): Remove.
76704         (adjust_value): Now takes int style (because of human.h changes)
76705         and long double value (for greater precision on some platforms).
76706         (group_number): New function.
76707         (human_readable): Use it.  Use integer options, not enum.
76708         Put the options before the sizes in the arg list.
76709         Support all the new options.
76710         The old human_readable function has been removed;
76711         use inttostr.h instead.
76712         (human_readable, default_block_size, humblock):
76713         Use uintmax_t, not int, for block sizes.
76714         (human_readable_inexact, block_size_types): Remove.
76715         (block_size_opts): New constant.
76716         (human_options): Renamed from human_block_size, with new signature
76717         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76718         * lib/human.h: Add copyright and authorship notice.
76719         Include <limits.h> and <stdbool.h> unconditionally.
76720         (PARAMS): Remove.  All uses removed.
76721         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76722         (enum human_inexact_style): Remove tag; now a nameless enum.
76723         (human_floor, human_ceiling, human_round_to_even): Now have
76724         values 2, 0, 1 rather than -1, 1, 0.
76725         (human_group_digits, human_suppress_point_zero, human_autoscale,
76726         human_base_1024, human_SI, human_B): New constants.
76727         (human_readable_inexact, human_block_size): Remove.
76728         (human_readable): Size args are now uintmax_t, not int.
76729         (human_options): New decl.
76730
76731         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76732         unnecessary now that we assume C89 or better.  This change
76733         imported from coreutils.
76734
76735         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76736         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76737         in the 2003-05-30 sync from glibc.
76738
76739         .h files should stand alone, but we shouldn't include <sys/types.h>
76740         if we can get away with just <stddef.h>.
76741
76742         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76743         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76744         rather than <sys/types.h>, as we merely need size_t.
76745         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76746         to get size_t.
76747         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76748         Include <stdio.h>, to get FILE.
76749         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76750         memcasecmp.h has included <stddef.h> and all we need is size_t.
76751         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76752         our interface, instead of including <sys/types.h>
76753
76754 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76755
76756         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76757         now, as glibc mktime is buggy on non-glibc systems.
76758
76759 2003-06-03  Karl Berry  <karl@gnu.org>
76760
76761         * config/config.sub: update from prep.
76762
76763 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76764
76765         [from coreutils]
76766         Fix some minor time-related bugs with POSIX time arguments.
76767         Some valid time stamps were being rejected (notably -1, and
76768         time stamps before 1900 on 64-bit hosts).  And some invalid
76769         time stamps were being accepted, e.g. September 31.
76770
76771         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76772         that we can return (time_t) -1 successfully.
76773         * lib/posixtm.c: Likewise.
76774         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76775         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76776         (t): Remove static var.
76777         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76778         of static var.  All uses changed.
76779         (year): Do not reject years before 1900; they can occur with
76780         64-bit time_t.
76781         (posix_time_parse): Do not check for out-of-range components;
76782         that is now the caller's responsibility, since our checks were
76783         only approximations.
76784         (posixtime): Use mktime to check for out-of-range components,
76785         since it knows them exactly.
76786         If mktime returns (time_t) -1, check whether an error actually occurred
76787         by invoking localtime on -1.
76788         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76789         posixtime failures better.
76790         Improve the test data (in comments only).
76791
76792 2003-06-02  Karl Berry  <karl@gnu.org>
76793
76794         * config/mkinstalldirs (version): new variable.
76795         (--version): new option.
76796         (usage): improve message.
76797
76798 2003-05-30  Karl Berry  <karl@gnu.org>
76799
76800         * lib/mktime.c: update from libc.
76801
76802 2003-05-30  Bruno Haible  <bruno@clisp.org>
76803
76804         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76805         * config/config.rpath: Upgrade to gettext-0.12.1.
76806
76807 2003-05-30  Bruno Haible  <bruno@clisp.org>
76808
76809         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76810         * m4/nls.m4: New file, from gettext-0.12.1.
76811         * m4/po.m4: New file, from gettext-0.12.1.
76812         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76813
76814 2003-05-30  Bruno Haible  <bruno@clisp.org>
76815
76816         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76817         * lib/localcharset.h: Likewise.
76818         * lib/localcharset.c: Likewise.
76819
76820 2003-05-29  Karl Berry  <karl@gnu.org>
76821
76822         * config/config.rpath: update from gettext.
76823
76824 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76825
76826         Assume the headers required for C89 freestanding compilers.
76827         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76828         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76829         * m4/human.m4 (gl_HUMAN): Likewise.
76830         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76831         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76832         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76833         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76835         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76836
76837 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76838
76839         Assume the headers required for C89 freestanding compilers.
76840         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76841         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76842         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76843         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76844         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76845         define, since <limits.h> is guaranteed to do that.
76846         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76847         * lib/exclude.c: Include <stdbool.h> unconditionally.
76848         * lib/tempname.c: Include <stddef.h> unconditionally.
76849         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76850         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76851         <stddef.h> does that.
76852         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76853         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76854         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76855         needed.
76856         * lib/xstrtol.c: Likewise.
76857         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76858         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76859
76860         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76861         warnings on some platforms.
76862
76863         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76864         arbitrarily.
76865
76866 2003-05-26  Jim Meyering  <jim@meyering.net>
76867
76868         Merge in a change from coreutils:
76869         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76870         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76871         that condition, rather than `-1' which is slightly misleading.
76872         Change the name of the cache variable to have the gl_ prefix.
76873         Prompted by a patch from Richard Dawe for DJGPP.
76874
76875 2003-05-24  Karl Berry  <karl@gnu.org>
76876
76877         * config/config.guess: update from prep.
76878
76879 2003-05-22  Karl Berry  <karl@gnu.org>
76880
76881         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76882
76883 2003-05-20  Karl Berry  <karl@gnu.org>
76884
76885         * config/config.guess: update from prep.
76886
76887 2003-05-18  Karl Berry  <karl@gnu.org>
76888
76889         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76890         might actually be set by the user.
76891
76892         * config/depcomp, install-sh, mdate-sh: update from automake.
76893
76894 2003-05-17  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76897         invalid expansion for AC_EGREP_CPP.
76898         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76899         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76900         Suggested by Akim Demaille <akim@epita.fr> in
76901         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76902
76903 2003-05-12  Jim Meyering  <jim@meyering.net>
76904
76905         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76906         the space-padded-by-default conversion specifiers, %e, %k, %l.
76907
76908 2003-05-12  Bruno Haible  <bruno@clisp.org>
76909
76910         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76911         the string is longer than 4 KB.
76912
76913 2003-05-11  Karl Berry  <karl@gnu.org>
76914
76915         * config/config.{guess,sub}: update from prep.
76916
76917 2003-05-09  Bruno Haible  <bruno@clisp.org>
76918
76919         * modules/error: Add m4/strerror_r.m4 to file list.
76920
76921 2003-05-03  Bruno Haible  <bruno@clisp.org>
76922
76923         Upgrade to Unicode-4.0.
76924         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76925         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76926         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76927         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76928         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76929         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76930         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76931         Change width of U+E0100..U+E01EF from 1 to 0.
76932
76933 2003-04-25  Jim Meyering  <jim@meyering.net>
76934
76935         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76936         of type size_t, not int.
76937
76938 2003-04-25  Bruno Haible  <bruno@clisp.org>
76939
76940         * lib/copy-file.c: Include <stddef.h>, for size_t.
76941
76942 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76943
76944         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76945         code which expansion is under static control.  Patch imported from
76946         Akim Demaille's patch to Bison; see
76947         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76948
76949 2003-04-14  Bruno Haible  <bruno@clisp.org>
76950
76951         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76952
76953 2003-04-11  Jim Meyering  <jim@meyering.net>
76954
76955         Merge changes from Coreutils.
76956
76957         2003-03-22  Jim Meyering  <jim@meyering.net>
76958
76959         * lib/strftime.c (widen): Cast alloca return value to proper type.
76960
76961         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76962
76963         From GNU libc.
76964         * lib/strftime.c (my_strftime): Handle very large width
76965         specifications for numeric values correctly.  Improve checks for
76966         overflow.
76967
76968         2003-01-19  Jim Meyering  <jim@meyering.net>
76969
76970         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76971         definitions.
76972         (nl_get_alt_digit) [! defined my_strftime]: Define.
76973         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76974         _nl_get_alt_digit and _nl_get_walt_digit.
76975
76976         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76977         libc. These changes have no effect outside of _LIBC.
76978
76979 2003-04-10  Bruno Haible  <bruno@clisp.org>
76980
76981         * modules/findprog: New file.
76982         * MODULES.html.sh (func_all_modules): Add it.
76983
76984 2003-04-10  Bruno Haible  <bruno@clisp.org>
76985
76986         * m4/findprog.m4: New file.
76987         * m4/eaccess.m4: New file.
76988
76989 2003-04-10  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/findprog.h: New file, from GNU gettext.
76992         * lib/findprog.c: New file, from GNU gettext.
76993
76994 2003-04-05  Jim Meyering  <jim@meyering.net>
76995
76996         Merge changes from Coreutils.
76997
76998         * lib/exclude.h (PARAMS): Remove definition and uses.
76999         * lib/exclude.c: Remove uses of `PARAMS'.
77000
77001         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77002         Add test-cases for DOS filenames. Declare program_name.
77003         (main): Set up program_name.  Patch by Rich Dawe.
77004
77005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77006         error from mntctl.
77007         Use mntctl's return value to drive the entry-processing loop, since
77008         we can't rely on the value of the vmt_length member in the last
77009         entry.  On some systems doing so could result in exhausting
77010         virtual memory.  Based in part on a patch from Mike Jetzer.
77011
77012 2003-04-04  Bruno Haible  <bruno@clisp.org>
77013
77014         * modules/linebreak: New file.
77015         * MODULES.html.sh (func_all_modules): Add it.
77016
77017 2003-04-04  Bruno Haible  <bruno@clisp.org>
77018
77019         * m4/linebreak.m4: New file.
77020
77021 2003-04-04  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/linebreak.h: New file, from GNU gettext.
77024         * lib/linebreak.c: New file, from GNU gettext with slight
77025         modifications.
77026         * lib/lbrkprop.h: New file, from GNU gettext.
77027
77028 2003-04-03  Bruno Haible  <bruno@clisp.org>
77029
77030         * modules/utf8-ucs4: New file.
77031         * modules/utf16-ucs4: New file.
77032         * modules/ucs4-utf8: New file.
77033         * modules/ucs4-utf16: New file.
77034         * MODULES.html.sh (func_all_modules): Add them.
77035
77036 2003-04-03  Bruno Haible  <bruno@clisp.org>
77037
77038         * m4/utf-ucs4.m4: New file.
77039         * m4/ucs4-utf.m4: New file.
77040
77041 2003-04-03  Bruno Haible  <bruno@clisp.org>
77042
77043         * lib/utf8-ucs4.h: New file, from GNU gettext.
77044         * lib/utf16-ucs4.h: New file, from GNU gettext.
77045         * lib/ucs4-utf8.h: New file, from GNU gettext.
77046         * lib/ucs4-utf16.h: New file, from GNU gettext.
77047
77048 2003-04-02  Bruno Haible  <bruno@clisp.org>
77049
77050         * modules/binary-io: New file.
77051         * MODULES.html.sh (func_all_modules): Add it.
77052
77053 2003-04-02  Bruno Haible  <bruno@clisp.org>
77054
77055         * lib/binary-io.h: New file, from GNU gettext.
77056
77057 2003-04-01  Bruno Haible  <bruno@clisp.org>
77058
77059         * modules/pathname: New file.
77060         * MODULES.html.sh (func_all_modules): Add it.
77061
77062 2003-04-01  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/pathname.h: New file, from GNU gettext.
77065         * lib/concatpath.c: New file, from GNU gettext.
77066
77067 2003-03-30  Bruno Haible  <bruno@clisp.org>
77068
77069         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77070
77071 2003-03-30  Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77074         function chown() doesn't exist.
77075
77076 2003-03-28  Bruno Haible  <bruno@clisp.org>
77077
77078         * modules/copy-file: New file.
77079         * MODULES.html.sh (func_all_modules): Add it.
77080
77081 2003-03-28  Bruno Haible  <bruno@clisp.org>
77082
77083         * m4/copy-file.m4: New file.
77084
77085 2003-03-28  Bruno Haible  <bruno@clisp.org>
77086
77087         * lib/copy-file.h: New file, from GNU gettext.
77088         * lib/copy-file.c: New file, from GNU gettext.
77089
77090 2003-03-18  Jim Meyering  <jim@meyering.net>
77091
77092         * lib/quote.c (quote_n): Fix typo in comment.
77093
77094 2003-03-18  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77097         checking.
77098         * m4/onceonly_2_57.m4: Likewise.
77099
77100 2003-03-17  Bruno Haible  <bruno@clisp.org>
77101
77102         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77103         (m4_quote): Remove macro.
77104         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77105
77106 2003-03-14  Jim Meyering  <jim@meyering.net>
77107
77108         Merge changes from Coreutils.
77109         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77110         to be const, in order to avoid warnings.
77111         (obstack_room): Likewise.
77112         (obstack_empty_p): Likewise.
77113
77114 2003-03-14  Bruno Haible  <bruno@clisp.org>
77115
77116         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77117         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77118
77119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77120
77121         Merge changes from Bison.
77122         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77123         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77124         when compiling Bison 1.875's `bitset bset = obstack_alloc
77125         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77126         * lib/hash.c: Include <stdbool.h> unconditionally.
77127
77128 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77129
77130         * m4/onceonly.m4 (m4_quote): New macro.
77131         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77132         Quote AC_FOREACH variable-expansions properly.
77133
77134 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77135
77136         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77137
77138 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77139
77140         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77141         Reported by Bruce Becker; see:
77142         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77143
77144 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77145             Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77148         Reported by John Hughes, see
77149         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77150
77151 2003-02-20  Bruno Haible  <bruno@clisp.org>
77152
77153         * MODULES.html.sh (func_all_modules): Add poll.
77154
77155 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77156
77157         * modules/poll: New file.
77158
77159 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77160
77161         * lib/poll_.h: New file.
77162         * lib/poll.c: New file.
77163
77164 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77165
77166         * m4/poll.m4: New file.
77167
77168 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77169
77170         * modules/mathl: New file.
77171
77172 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77173
77174         * lib/mathl.h: New file.
77175         * lib/acosl.c: New file.
77176         * lib/asinl.c: New file.
77177         * lib/atanl.c: New file.
77178         * lib/ceill.c: New file.
77179         * lib/cosl.c: New file.
77180         * lib/expl.c: New file.
77181         * lib/floorl.c: New file.
77182         * lib/frexpl.c: New file.
77183         * lib/ldexpl.c: New file.
77184         * lib/logl.c: New file.
77185         * lib/sincosl.c: New file.
77186         * lib/sinl.c: New file.
77187         * lib/sqrtl.c: New file.
77188         * lib/tanl.c: New file.
77189         * lib/trigl.c: New file.
77190         * lib/trigl.h: New file.
77191
77192 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77193
77194         * m4/mathl.m4: New file.
77195
77196 2003-02-18  Bruno Haible  <bruno@clisp.org>
77197
77198         * MODULES.html.sh (func_all_modules): Add mathl.
77199
77200 2003-02-17  Bruno Haible  <bruno@clisp.org>
77201
77202         * modules/mkdtemp: New module.
77203         * MODULES.html.sh (func_all_modules): Add it.
77204
77205 2003-02-17  Bruno Haible  <bruno@clisp.org>
77206
77207         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77208
77209 2003-02-17  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/mkdtemp.h: New file, from GNU gettext.
77212         * lib/mkdtemp.c: New file, from GNU gettext.
77213
77214 2003-02-02  Jim Meyering  <jim@meyering.net>
77215
77216         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77217         e.g. glibc-2.2.93.
77218
77219 2003-01-31  Bruno Haible  <bruno@clisp.org>
77220
77221         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77222         'rpl_rename'.
77223         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77224         'rpl_strnlen'.
77225         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77226         'rpl_strtod'.
77227         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77228         'rpl_utime'.
77229
77230 2003-01-31  Bruno Haible  <bruno@clisp.org>
77231
77232         * lib/rename.c: #undef rename before defining rpl_rename.
77233         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77234
77235 2003-01-30  Bruno Haible  <bruno@clisp.org>
77236
77237         * modules/vasnprintf, modules/vasprintf: New modules.
77238         * MODULES.html.sh (func_all_modules): Add them.
77239
77240 2003-01-30  Bruno Haible  <bruno@clisp.org>
77241
77242         * m4/signed.m4: New file, from GNU gettext.
77243         * m4/longdouble.m4: New file, from GNU gettext.
77244         * m4/wchar_t.m4: New file, from GNU gettext.
77245         * m4/wint_t.m4: New file, from GNU gettext.
77246         * m4/vasnprintf.m4: New file.
77247         * m4/vasprintf.m4: New file.
77248
77249 2003-01-30  Bruno Haible  <bruno@clisp.org>
77250
77251         * lib/printf-args.h: New file, from GNU gettext.
77252         * lib/printf-args.c: New file, from GNU gettext.
77253         * lib/printf-parse.h: New file, from GNU gettext.
77254         * lib/printf-parse.c: New file, from GNU gettext.
77255         * lib/vasnprintf.h: New file, from GNU gettext.
77256         * lib/vasnprintf.c: New file, from GNU gettext.
77257         * lib/asnprintf.c: New file, from GNU gettext.
77258         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77259         * lib/vasprintf.c: New file, from GNU gettext.
77260         * lib/asprintf.c: New file, from GNU gettext.
77261
77262 2003-01-29  Bruno Haible  <bruno@clisp.org>
77263
77264         * modules/stpncpy: New module.
77265         * MODULES.html.sh (func_all_modules): Add it.
77266
77267 2003-01-29  Bruno Haible  <bruno@clisp.org>
77268
77269         * m4/stpncpy.m4: New file.
77270
77271 2003-01-29  Bruno Haible  <bruno@clisp.org>
77272
77273         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77274         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77275
77276 2003-01-28  Bruno Haible  <bruno@clisp.org>
77277
77278         * modules/c-ctype: New module.
77279         * MODULES.html.sh (func_all_modules): Add it.
77280
77281 2003-01-28  Bruno Haible  <bruno@clisp.org>
77282
77283         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77284         Paul Eggert.
77285         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77286         Paul Eggert.
77287
77288 2003-01-27  Bruno Haible  <bruno@clisp.org>
77289
77290         * modules/xsetenv: New module.
77291         * MODULES.html.sh (func_all_modules): Add it.
77292
77293 2003-01-27  Bruno Haible  <bruno@clisp.org>
77294
77295         * lib/xsetenv.h: New file, from GNU gettext.
77296         * lib/xsetenv.c: New file, from GNU gettext.
77297
77298 2003-01-23  Jim Meyering  <jim@meyering.net>
77299
77300         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77301         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77302
77303 2003-01-23  Bruno Haible  <bruno@clisp.org>
77304
77305         * modules/minmax: New module.
77306         * MODULES.html.sh (func_all_modules): Add it.
77307
77308 2003-01-23  Bruno Haible  <bruno@clisp.org>
77309
77310         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77311         Eggert.
77312
77313 2003-01-22  Bruno Haible  <bruno@clisp.org>
77314
77315         * modules/exit: New module.
77316         * MODULES.html.sh (func_all_modules): Add it.
77317
77318 2003-01-22  Bruno Haible  <bruno@clisp.org>
77319
77320         * lib/exit.h: New file, from GNU gettext.
77321
77322 2003-01-19  Bruno Haible  <bruno@clisp.org>
77323
77324         * gnulib-tool: Recognize option --extract-maintainer.
77325         (func_get_maintainer): New function.
77326         * modules/*: Add Maintainer entry.
77327
77328 2003-01-16  Jim Meyering  <jim@meyering.net>
77329
77330         * m4/regex.m4: The `regex' struct is both input and output.
77331         Initialize it before each use.  Patch by Tim Waugh.
77332
77333 2003-01-16  Bruno Haible  <bruno@clisp.org>
77334
77335         * MODULES.html.sh: Add a table of contents. Add the module name as
77336         leftmost column. Add hyperlinks.
77337
77338 2003-01-15  Bruno Haible  <bruno@clisp.org>
77339
77340         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77341
77342 2003-01-15  Bruno Haible  <bruno@clisp.org>
77343
77344         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77345         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77346         suffix.
77347
77348 2003-01-15  Bruno Haible  <bruno@clisp.org>
77349
77350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77351
77352 2003-01-15  Bruno Haible  <bruno@clisp.org>
77353
77354         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77355         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77356
77357 2003-01-14  Jim Meyering  <jim@meyering.net>
77358
77359         * lib/same.c (same_name): Tweak a comment.
77360
77361 2003-01-14  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77364         when a string comparison is sufficient.
77365
77366 2003-01-14  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77369         'unsigned int'.
77370
77371 2003-01-14  Bruno Haible  <bruno@clisp.org>
77372
77373         * lib/hash-pjw.c: Add comment about low quality of this function.
77374
77375 2003-01-13  Bruno Haible  <bruno@clisp.org>
77376
77377         * modules/stpcpy: Distribute lib/stpcpy.h.
77378         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77379
77380 2003-01-13  Bruno Haible  <bruno@clisp.org>
77381
77382         * modules/*: Add a description.
77383         * modules/strpbrk: Fix Makefile.am snippet.
77384         * modules/strtoimax: Fix dependencies.
77385         * modules/strtoumax: Likewise.
77386
77387 2003-01-13  Bruno Haible  <bruno@clisp.org>
77388
77389         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77390         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77391         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77392
77393 2003-01-13  Bruno Haible  <bruno@clisp.org>
77394
77395         * gnulib-tool (func_create_testdir): Store config/* files in the main
77396         directory.
77397         * config.rpath: Move to ...
77398         * config/config.rpath: ... here.
77399         * modules/gettext: Contains config/config.rpath, not config.rpath.
77400         * modules/iconv: Likewise.
77401
77402 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77403
77404         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77405         to avoid collisions with libcurses and libreadline.
77406
77407         * m4/getstr.m4: Remove.
77408         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77409
77410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77411
77412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77413         to avoid collisions with libcurses and libreadline.
77414
77415         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77416         * lib/getstr.h, getstr.c: Remove.
77417         * lib/getline.c: Include "getline.h", to check interface.
77418         Move body of old getstr.c here: this defines MIN_CHUNK and
77419         declares getdelim2, which is renamed from getstr.
77420         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77421
77422         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77423         All uses changed.
77424         * lib/linebuffer.h: Likewise.
77425         (readline): Remove backward-compatibility macro.
77426
77427 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77428
77429         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77430         to avoid collisions with libcurses and libreadline.
77431         * getstr: Remove.
77432         * MODULES.html.sh: Remove getstr.
77433         * modules/getline: Depend on unlocked-io, not getstr.
77434
77435 2003-01-12  Jim Meyering  <jim@meyering.net>
77436
77437         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77438
77439 2003-01-10  Bruno Haible  <bruno@clisp.org>
77440
77441         * modules/alloca: Change Makefile.am requirements. Simplify Include
77442         requirements. Add lib/alloca_.h to file list.
77443
77444 2003-01-10  Bruno Haible  <bruno@clisp.org>
77445
77446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77447
77448 2003-01-10  Bruno Haible  <bruno@clisp.org>
77449
77450         * lib/alloca_.h: New file.
77451         * lib/getdate.y: Unconditionally include alloca.h.
77452         * lib/makepath.c: Likewise.
77453         * lib/setenv.c: Likewise.
77454         * lib/userspec.c: Likewise.
77455
77456 2003-01-09  Karl Berry  <karl@gnu.org>
77457
77458         * MODULES.html.sh: include `dirname $0` in PATH, to find
77459         gnulib-tool.
77460
77461 2003-01-09  Bruno Haible  <bruno@clisp.org>
77462
77463         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77464         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77465
77466 2003-01-09  Bruno Haible  <bruno@clisp.org>
77467
77468         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77469
77470 2003-01-09  Bruno Haible  <bruno@clisp.org>
77471
77472         * lib/stdbool.h.in: New file.
77473
77474 2003-01-09  Bruno Haible  <bruno@clisp.org>
77475
77476         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77477         * MODULES.html.sh: Likewise.
77478
77479 2003-01-08  Jim Meyering  <jim@meyering.net>
77480
77481         * lib/full-write.c: Undefine and define-away `const' after inclusion
77482         of errno.h, not before.  Suggestion from Bruno Haible.
77483
77484 2003-01-08  Bruno Haible  <bruno@clisp.org>
77485
77486         * modules/full-read: Depend on full-write.
77487
77488 2003-01-08  Bruno Haible  <bruno@clisp.org>
77489
77490         * lib/safe-read.c: Include specification header first, to ensure its
77491         selfcontainedness.
77492         * lib/full-write.c: Likewise.
77493
77494 2003-01-07  Jim Meyering  <jim@meyering.net>
77495
77496         * lib/full-write.c: Rework so that it may serve to define full_read,
77497         too.
77498         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77499
77500 2003-01-07  Bruno Haible  <bruno@clisp.org>
77501
77502         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77503         <inttypes.h>.
77504         * lib/xstrtol.h: Likewise.
77505         * lib/xstrtoimax.c: Likewise.
77506         * lib/xstrtoumax.c: Likewise.
77507         * lib/human.h: Likewise.
77508
77509         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77510         on systems that have <inttypes.h> but not <stdint.h>.
77511
77512 2003-01-07  Bruno Haible  <bruno@clisp.org>
77513
77514         * MODULES.html.sh: Add copyright notice.
77515         (missed_files): Omit CVS directory entries.
77516         (func_module): Make it work with sed-3.02.
77517         * MODULES.txt: Remove file.
77518
77519 2003-01-06  Jim Meyering  <jim@meyering.net>
77520
77521         * lib/version-etc.c: Update year in translatable copyright string.
77522
77523 2003-01-03  Karl Berry  <karl@gnu.org>
77524
77525         * config/config.{guess,sub}: update from prep.
77526
77527 2003-01-02  Karl Berry  <karl@gnu.org>
77528
77529         * doc/COPYING.DOC: belatedly updated to 1.2.
77530
77531 2003-01-01  Karl Berry  <karl@gnu.org>
77532
77533         * gnulib-tool (func_verify_module): report module name $module in
77534         error message, not $1.
77535         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77536         be created, only if it doesn't exist.
77537         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77538
77539 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77540
77541         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77542
77543 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77544
77545         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77546         memcmp if strcoll doesn't work.
77547
77548 2002-12-31  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77551         nonempty.
77552
77553 2002-12-31  Bruno Haible  <bruno@clisp.org>
77554
77555         * lib/memcoll.c (STRCOLL): New macro.
77556         (memcoll): Use it.
77557
77558 2002-12-31  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/localcharset.h: New file.
77561         * lib/localcharset.c: Include it.
77562         * lib/unicodeio.c: Likewise.
77563
77564 2002-12-31  Bruno Haible  <bruno@clisp.org>
77565
77566         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77567         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77568
77569 2002-12-31  Bruno Haible  <bruno@clisp.org>
77570
77571         * lib/getline.h: Include <stddef.h>, for size_t.
77572
77573         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77574         * lib/unicodeio.c: Don't include <stddef.h>.
77575
77576 2002-12-31  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77579         HAVE_TM_ZONE.
77580
77581 2002-12-24  Karl Berry  <karl@gnu.org>
77582
77583         * config/config.guess: update from prep.
77584
77585 2002-12-24  Bruno Haible  <bruno@clisp.org>
77586
77587         General infrasructure.
77588         * m4/README: Rewritten.
77589         * m4/onceonly.m4: New file.
77590         * m4/onceonly_2_57.m4: New file.
77591
77592         Module atexit.
77593         * m4/atexit.m4: New file.
77594
77595         Module strtod.
77596         * m4/strtod.m4: New file.
77597
77598         Module strtol.
77599         * m4/strtol.m4: New file.
77600
77601         Module strtoul.
77602         * m4/strtoul.m4: New file.
77603
77604         Module memchr.
77605         * m4/memchr.m4: New file.
77606
77607         Module memcmp.
77608         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77609         (jm_FUNC_MEMCMP): Invoke it.
77610
77611         Module memcpy.
77612         * m4/memcpy.m4: New file.
77613
77614         Module memmove.
77615         * m4/memmove.m4: New file.
77616
77617         Module memset.
77618         * m4/memset.m4: New file.
77619
77620         Module strcspn.
77621         * m4/strcspn.m4: New file.
77622
77623         Module strpbrk.
77624         * m4/strpbrk.m4: New file.
77625
77626         Module strstr.
77627         * m4/strstr.m4: New file.
77628
77629         Module strerror.
77630         * m4/strerror.m4: New file.
77631
77632         Module mktime.
77633         * m4/mktime.m4: Renamed from jm-mktime.m4.
77634         (gl_PREREQ_MKTIME): New macro.
77635         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77636
77637         Module malloc.
77638         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77639         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77640         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77641
77642         Module realloc.
77643         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77644         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77645         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77646
77647         Module strftime.
77648         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77649         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77650         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77651         gl_TM_GMTOFF.
77652         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77653
77654         Module xalloc.
77655         * m4/xalloc.m4: New file.
77656
77657         Module alloca.
77658         * m4/alloca.m4: New file.
77659
77660         Module putenv.
77661         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77662         (jm_FUNC_PUTENV): Invoke it.
77663
77664         Module setenv.
77665         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77666         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77667         when invoked twice.
77668         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77669         gt_FUNC_SETENV.
77670
77671         Module memrchr.
77672         * m4/memrchr.m4: New file.
77673
77674         Module stpcpy.
77675         * m4/stpcpy.m4: New file.
77676
77677         Module strcase.
77678         * m4/strcase.m4: New file.
77679
77680         Module strdup.
77681         * m4/strdup.m4: New file.
77682
77683         Module strnlen.
77684         * m4/strnlen.m4: New file.
77685
77686         Module strndup.
77687         * m4/strndup.m4: New file.
77688
77689         Module xstrtod.
77690         * m4/xstrtod.m4: New file.
77691
77692         Module xstrtol.
77693         * m4/xstrtol.m4: New file.
77694
77695         Module getdate.
77696         * m4/getdate.m4: New file.
77697
77698         Module unlocked-io.
77699         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77700         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77701         * m4/jm-glibc-io.m4n: Remove file.
77702
77703         Module long-options.
77704         * m4/long-options.m4: New file.
77705
77706         Module md5.
77707         * m4/md5.m4: New file.
77708
77709         Module sha.
77710         * m4/sha.m4: New file.
77711
77712         Module getstr.
77713         * m4/getstr.m4: New file.
77714
77715         Module getline.
77716         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77717         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77718         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77719         simply getline. Infoke gl_PREREQ_GETLINE.
77720
77721         Module obstack.
77722         * m4/obstack.m4: New file.
77723
77724         Module hash.
77725         * m4/hash.m4: New file.
77726
77727         Module readtokens.
77728         * m4/readtokens.m4: New file.
77729
77730         Module strverscmp.
77731         * m4/strverscmp.m4: New file.
77732
77733         Module stdbool.
77734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77735         OSF/1.
77736
77737         Module strtoll.
77738         * m4/strtoll.m4: New file.
77739
77740         Module strtoull.
77741         * m4/strtoull.m4: New file.
77742
77743         Module strtoimax.
77744         * m4/strtoimax.m4: New file.
77745
77746         Module strtoumax.
77747         * m4/strtoumax.m4: New file.
77748
77749         Module xstrtoimax.
77750         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77751         jm_AC_PREREQ_XSTRTOIMAX.
77752         Moved the strtol prerequisites to strtol.m4.
77753         Moved the strtoll prerequisites to strtoll.m4.
77754         Moved the strtoimax prerequisites to strtoimax.m4.
77755
77756         Module xstrtoumax.
77757         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77758         jm_AC_PREREQ_XSTRTOUMAX.
77759         Moved the strtoul prerequisites to strtoul.m4.
77760         Moved the strtoull prerequisites to strtoull.m4.
77761         Moved the strtoumax prerequisites to strtoumax.m4.
77762
77763         Module chown.
77764         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77765         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77766
77767         Module dup2.
77768         * m4/dup2.m4: New file.
77769
77770         Module ftruncate.
77771         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77772         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77773
77774         Module getgroups.
77775         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77776         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77777
77778         Module gettimeofday.
77779         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77780         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77781         gl_PREREQ_GETTIMEOFDAY.
77782
77783         Module mkdir.
77784         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77785         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77786
77787         Module mkstemp.
77788         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77789         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77790         jm_AC_TYPE_UINTMAX_T.
77791         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77792
77793         Module stat.
77794         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77795         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77796
77797         Module lstat.
77798         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77799         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77800
77801         Module timespec.
77802         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77803         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77804         * m4/st_mtim.m4: Indentation.
77805
77806         Module nanosleep.
77807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77808         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77809         gl_PREREQ_NANOSLEEP.
77810
77811         Module regex.
77812         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77813         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77814         (gl_REGEX): New macro.
77815
77816         Module rename.
77817         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77818         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77819
77820         Module rmdir.
77821         * m4/rmdir.m4: New file.
77822
77823         Module utime.
77824         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77825         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77826         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77827
77828         Module dirname.
77829         * m4/dirname.m4: New file.
77830
77831         Module getopt.
77832         * m4/getopt.m4: New file.
77833
77834         Module unistd-safer.
77835         * m4/unistd-safer.m4: New file.
77836
77837         Module fnmatch.
77838         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77839         declaration.
77840         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77841         (gl_FUNC_FNMATCH_POSIX): New macro.
77842         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77843         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77844         simply fnmatch.
77845
77846         Module exclude.
77847         * m4/exclude.m4: New file.
77848
77849         Module human.
77850         * m4/human.m4: New file.
77851
77852         Module acl.
77853         * m4/acl.m4: Nop.
77854
77855         Module backupfile.
77856         * m4/backupfile.m4: New file.
77857         * m4/d-ino.m4: Indentation.
77858
77859         Module fsusage.
77860         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77861         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77862         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77863
77864         Module dirfd.
77865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77866         requirements.
77867
77868         Module euidaccess.
77869         * m4/euidaccess.m4: New file.
77870
77871         Module file-type.
77872         * m4/file-type.m4: New file.
77873
77874         Module fileblocks.
77875         * m4/fileblocks.m4: New file.
77876
77877         Module filemode.
77878         * m4/filemode.m4: New file.
77879
77880         Module isdir.
77881         * m4/isdir.m4: New file.
77882
77883         Module lchown.
77884         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77885         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77886
77887         Module makepath.
77888         * m4/makepath.m4: New file.
77889
77890         Module modechange.
77891         * m4/modechange.m4: New file.
77892
77893         Module mountlist.
77894         * m4/mountlist.m4: New file.
77895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77896         Indentation.
77897
77898         Module path-concat.
77899         * m4/path-concat.m4: New file.
77900
77901         Module pathmax.
77902         * m4/pathmax.m4: New file.
77903
77904         Module same.
77905         * m4/same.m4: New file.
77906
77907         Module save-cwd.
77908         * m4/save-cwd.m4: New file.
77909
77910         Module savedir.
77911         * m4/savedir.m4: New file.
77912
77913         Module xgetcwd.
77914         * m4/xgetcwd.m4: New file.
77915         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77916
77917         Module xreadlink.
77918         * m4/xreadlink.m4: New file.
77919
77920         Module safe-read.
77921         * m4/safe-read.m4: New file.
77922
77923         Module safe-write.
77924         * m4/safe-write.m4: New file.
77925
77926         Module closeout.
77927         * m4/closeout.m4: New file.
77928
77929         Module stdio-safer.
77930         * m4/stdio-safer.m4: New file.
77931
77932         Module getpass.
77933         * m4/getpass.m4: New file.
77934
77935         Module getugroups.
77936         * m4/getugroups.m4: New file.
77937
77938         Module group-member.
77939         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77940         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77941
77942         Module idcache.
77943         * m4/idcache.m4: New file.
77944
77945         Module userspec.
77946         * m4/userspec.m4: New file.
77947
77948         Module gettime.
77949         * m4/clock_time.m4: New file.
77950         * m4/gettime.m4: New file.
77951
77952         Module settime.
77953         * m4/settime.m4: New file.
77954
77955         Module posixtm.
77956         * m4/posixtm.m4: New file.
77957
77958         Module gethostname.
77959         * m4/gethostname.m4: New file.
77960
77961         Module canon-host.
77962         * m4/canon-host.m4: New file.
77963
77964         Module gettext.
77965         * m4/codeset.m4: New file, from gettext-0.11.5.
77966         * m4/gettext.m4: New file, from gettext-0.11.5.
77967         * m4/glibc21.m4: New file, from gettext-0.11.5.
77968         * m4/iconv.m4: New file, from gettext-0.11.5.
77969         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77970         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77971         * m4/inttypes.m4: New file, from gettext-0.11.5.
77972         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77973         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77974         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77975         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77976         * m4/lib-link.m4: New file, from gettext-0.11.5.
77977         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77978         * m4/progtest.m4: New file, from gettext-0.11.5.
77979         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77980         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77981         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77982
77983         Module localcharset.
77984         * m4/localcharset.m4: New file.
77985
77986         Module hard-locale.
77987         * m4/hard-locale.m4: New file.
77988
77989         Module mbswidth.
77990         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77991         onceonly macros.
77992         * m4/mbrtowc.m4: Add comment.
77993
77994         Module memcasecmp.
77995         * m4/memcasecmp.m4: New file.
77996
77997         Module memcoll.
77998         * m4/memcoll.m4: New file.
77999
78000         Module unicodeio.
78001         * m4/unicodeio.m4: New file.
78002
78003         Module rpmatch.
78004         * m4/rpmatch.m4: New file.
78005
78006         Module yesno.
78007         * m4/yesno.m4: New file.
78008
78009         Module exitfail.
78010         * m4/exitfail.m4: New file.
78011
78012         Module c-stack.
78013         * m4/c-stack.m4 (gl_C_STACK): New macro.
78014         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78015
78016         Module error.
78017         * m4/error.m4 (gl_ERROR): New macro.
78018         (jm_PREREQ_ERROR): Use onceonly macros.
78019
78020         Module fatal.
78021         * m4/fatal.m4: New file.
78022
78023         Module getloadavg.
78024         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78025         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78026
78027         Module getpagesize.
78028         * m4/getpagesize.m4: New file.
78029
78030         Module getusershell.
78031         * m4/getusershell.m4: New file.
78032
78033         Module physmem.
78034         * m4/physmem.m4: New file.
78035
78036         Module posixver.
78037         * m4/posixver.m4: New file.
78038
78039         Module quotearg.
78040         * m4/quotearg.m4: New file.
78041
78042         Module quote.
78043         * m4/quote.m4: New file.
78044
78045         Module readutmp.
78046         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78047
78048         Module sig2str.
78049         * m4/sig2str.m4: New file.
78050
78051         Other.
78052         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78053         ulonglong.m4.
78054         * m4/intmax_t.m4: New file.
78055         * m4/d-type.m4: Indentation.
78056         * m4/jm-macros.m4: Update.
78057         * m4/prereq.m4 (jm_PREREQ): Update.
78058         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78059         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78060         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78061         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78062         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78063         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78064         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78065         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78066         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78067         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78068         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78069         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78070         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78071         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78072         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78073         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78074         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78075         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78076         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78077
78078 2002-12-24  Bruno Haible  <bruno@clisp.org>
78079
78080         * MODULES.txt: Update according to m4/ changes.
78081
78082         Module gettext.
78083         * config.rpath: New file, from gettext-0.11.5.
78084
78085         * modules/*: New module descriptions.
78086         * gnulib-tool: New file.
78087         * MODULES.html.sh: New file.
78088
78089 2002-12-21  Karl Berry  <karl@gnu.org>
78090
78091         * doc/fdl.texi: update to version 1.2.
78092
78093 2002-12-19  Karl Berry  <karl@gnu.org>
78094
78095         * config/config.guess: update from prep.
78096
78097 2002-12-18  Bruno Haible  <bruno@clisp.org>
78098
78099         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78100         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78101
78102 2002-12-17  Bruno Haible  <bruno@clisp.org>
78103
78104         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78105         stdlib.h, string.h.
78106
78107 2002-12-17  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/canon-host.c (strdup): Remove unused declaration.
78110
78111         * lib/fsusage.c: Include full_read.h.
78112         (get_fs_usage): Use full_read instead of safe_read.
78113
78114         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78115
78116 2002-12-12  Karl Berry  <karl@gnu.org>
78117
78118         * config/config.guess: update from prep.
78119
78120 2002-12-11  Bruno Haible  <bruno@clisp.org>
78121
78122         * m4/setenv.m4: New file, from gettext-0.11.5.
78123
78124 2002-12-11  Bruno Haible  <bruno@clisp.org>
78125
78126         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78127         not unsetenv().
78128         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78129         modifications:
78130
78131         2002-12-11  Bruno Haible  <bruno@clisp.org>
78132
78133                 * setenv.c (alloca): Fall back to malloc.
78134                 (freea): New macro.
78135                 (setenv): Use freea() to free memory allocated with alloca().
78136
78137         2002-11-13  Bruno Haible  <bruno@clisp.org>
78138
78139                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78140                 function declarations.
78141                 * unsetenv.c (unsetenv): Likewise.
78142
78143         2002-03-04  Bruno Haible  <bruno@clisp.org>
78144
78145                 Portability to AIX 4.3.3.
78146                 * unsetenv.c: New file, extracted from setenv.c.
78147                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78148
78149         2001-12-20  Bruno Haible  <bruno@clisp.org>
78150
78151                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78152                 use malloc instead. For SunOS 4.
78153
78154         2001-12-11  Bruno Haible  <bruno@clisp.org>
78155
78156                 * setenv.c: Declare alloca.
78157                 (compar_fn_t): New typedef.
78158                 (KNOWN_VALUE, STORE_VALUE): Use it.
78159
78160         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78161         setenv.h.
78162
78163 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78164
78165         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78166         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78167         Choose values that are less likely to collide with system fnmatch
78168         options.
78169         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78170         defined (e.g., a pure POSIX system).
78171         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78172         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78173
78174 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78175
78176         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78177         a pain in practice to deal with generated m4 files.  This change
78178         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78179
78180         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78181         and jm-glibc-io.m4, as they are no longer a special case.
78182         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78183         kludge and the auto-generation stuff.  Check only whether the
78184         functions are declared, not whether they exist, since older hosts
78185         that don't declare the functions can't use the optimization anyway.
78186
78187 2002-12-06  Jim Meyering  <jim@meyering.net>
78188
78189         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78190
78191         Merge in changes from libc's misc/error.c, in preparation
78192         for the merge of gnulib's changes back into libc.
78193
78194         * lib/error.c (_): Define only if not already defined.
78195         Move definition to follow all #include directives.
78196         Include unlocked-io.h only if !_LIBC.
78197         [_LIBC]: Include <libio/libioP.h>.
78198         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78199         (fflush): Tweak definition to use INTUSE.
78200         (putc): Define.
78201
78202 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78203
78204         * lib/alloca.c [defined emacs]: Include "lisp.h".
78205         (xalloc_die) [defined emacs]: New macro.
78206         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78207         [! defined emacs]: Include <xalloc.h>.
78208         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78209         (pointer): Typedef to POINTER_TYPE *.
78210         (malloc): Remove decl; we now always use xmalloc.
78211         (alloca): Use old-style definition, since Emacs needs this.
78212         Check for arithmetic overflow when computing combined size.
78213
78214 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78215
78216         Do not generate unlocked-io.h automatically, since it's easier to
78217         maintain it by hand.
78218
78219         * lib/unlocked-io.h: New file, from GNU diffutils,
78220         but with proper copyright notice and attribution.
78221         * lib/gen-uio: Remove.
78222         * lib/Makefile.am: Add copyright notice.
78223         (libfetish_a_SOURCES): Add unlocked-io.h.
78224         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78225         (DISTCLEANFILES, io_functions): Remove macros.
78226         (EXTRA_DIST): Remove gen_uio.
78227         (unlocked-io.h): Remove rule.
78228
78229 2002-12-04  Jim Meyering  <jim@meyering.net>
78230
78231         Reflect the fact that stat.c and lstat.c are no longer generated.
78232         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78233         (DISTCLEANFILES): Likewise.
78234         (EXTRA_DIST): Likewise.
78235         (all_local): Don't depend on stat.c or lstat.c.
78236         (stat.c, lstat.c): Remove rules.
78237         (EXTRA_DIST): Remove xstat.in.
78238
78239         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78240         * lib/stat.c: New file.  Contents mostly from xstat.in.
78241         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78242         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78243
78244         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78245         too.
78246         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78247
78248 2002-12-03  Jim Meyering  <jim@meyering.net>
78249
78250         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78251         but not semantics, to minimize the differences between these two files.
78252         (safe_read): Change comment to mention SAFE_READ_ERROR.
78253
78254         * lib/safe-read.c (IS_EINTR): Define.
78255         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78256
78257 2002-12-02  Jim Meyering  <jim@meyering.net>
78258
78259         * lib/safe-read.c (EINTR): Define.
78260         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78261         (INT_MAX): Provide fallback.
78262         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78263
78264         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78265
78266 2002-12-02  Bruno Haible  <bruno@clisp.org>
78267
78268         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78269         Define, taken from safe-read.c.
78270         (INT_MAX): Provide fallback.
78271         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78272         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78273
78274         * lib/safe-read.c (EINTR): Remove definition.
78275         (safe_read): Don't use EINTR if it is absent.
78276
78277 2002-12-01  Jim Meyering  <jim@meyering.net>
78278
78279         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78280         zero.
78281         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78282
78283 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78284
78285         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78286         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78287         with `if (! (value < limit)) abort ();', for readability.
78288
78289 2002-11-26  Karl Berry  <karl@gnu.org>
78290
78291         * lib/strdup.c: copy from libc again, with jim's ok.
78292         * lib/.cppi-disable: re-add strdup.c
78293
78294 2002-11-25  Karl Berry  <karl@gnu.org>
78295
78296         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78297         instead of "strtol.c".
78298
78299 2002-11-25  Karl Berry  <karl@gnu.org>
78300
78301         * config/install-sh: update from automake for variable quoting, $0 in
78302         error msgs, etc.
78303
78304         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78305         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78306         entry.
78307
78308 2002-11-25  Jim Meyering  <jim@meyering.net>
78309
78310         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78311
78312 2002-11-24  Karl Berry  <karl@gnu.org>
78313
78314         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78315         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78316
78317 2002-11-24  Jim Meyering  <jim@meyering.net>
78318
78319         Update from coreutils:
78320
78321         * lib/mktime.c: Merge in changes from libc.
78322
78323         Avoid a link-time failure on some Linux systems.
78324         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78325         (otherwise).
78326         (__mon_yday): Declare with the STATIC attribute.
78327         (__mktime_internal): Likewise.
78328         Based on a report from Greg Schafer.
78329
78330 2002-11-23  Jim Meyering  <jim@meyering.net>
78331
78332         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78333         Use `unsigned', not `int', as type of index.
78334
78335         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78336
78337         * lib/fsusage.c: Remove unneeded parentheses around operands of
78338         `defined'.
78339
78340 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78341
78342         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78343         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78344         so that we can be included first.
78345         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78346         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78347         No need to include stddef.h or sys/types.h any more.
78348         Surround local include files with "", not "<>".
78349         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78350         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78351         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78352         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78353         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78354         (ISPRINT): Remove; no longer needed now that we assume C89.
78355
78356         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78357         Preserve errno.
78358
78359         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78360         quotearg_char): Use SIZE_MAX rather than
78361         (size_t) -1 when we are talking about "infinity".
78362
78363         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78364
78365 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78366
78367         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78368         hint that one should use `if (! x) abort ();' rather than `assert
78369         (x);', and anyway it's one less thing to worry about configuring.
78370         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78371         hash_rehash, hash_insert): Use abort rather than assert.
78372
78373 2002-11-22  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/safe-read.h: Assume C89. Add comments.
78376         (safe_read): Change return type to size_t.
78377         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78378         byte counts > SSIZE_MAX correctly.
78379         * lib/safe-write.h: New file.
78380         * lib/safe-write.c: New file.
78381         * lib/full-read.h: New file.
78382         * lib/full-read.c: New file.
78383         * lib/full-write.h: Assume C89. Add comments.
78384         * lib/full-write.c: Include safe-write.h.
78385         (full_write): Rewritten to use safe_write.
78386         Suggested by Jim Meyering and Paul Eggert.
78387
78388 2002-11-21  Jim Meyering  <jim@meyering.net>
78389
78390         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78391
78392         Merge in changes from the coreutils.
78393
78394         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78395         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78396         <stdint.h>.
78397         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78398         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78399         int.  Work more efficiently if X is the same width as uintmax_t.
78400         Do not compare X to -1, to avoid bogus compiler warning.
78401         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78402         Don't assume that f_frsize and f_bsize are the same type.
78403
78404         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78405         warning on FreeBSD.
78406
78407         * lib/makepath.c (make_path): Restore umask *before* creating the final
78408         component.
78409         (make_path): Minor reformatting.
78410
78411         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78412         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78413         HAVE_MALLOC/HAVE_REALLOC.
78414
78415         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78416         dummy ones.  At least on GNU/Linux systems, `auto' means something
78417         else.
78418         From Michael Stone.
78419
78420 2002-11-21  Bruno Haible  <bruno@clisp.org>
78421
78422         Remove case insensitive option matching.
78423         * lib/argmatch.h (argcasematch): Remove declaration.
78424         (ARGCASEMATCH): Remove macro.
78425         (__xargmatch_internal): Remove case_sensitive argument.
78426         (XARGMATCH): Update.
78427         (XARGCASEMATCH): Remove macro.
78428         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78429         case_sensitive argument.
78430         (argcasematch): Remove function.
78431         (__xargmatch_internal): Remove case_sensitive argument.
78432         (main): Use XARGMATCH instead of XARGCASEMATCH.
78433
78434         * lib/xmalloc.c: Change compile-time error message. Add comment about
78435         required autoconf version.
78436
78437 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78438
78439         Merge argmatch cleanups from Bison.  Assume C89.
78440
78441         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78442         Include stdlib.h, for EXIT_FAILURE.
78443         Always include <string.h>, since we assume C89.
78444         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78445         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78446         Include <stddef.h> instead, since it's all we need for size_t.
78447         (PARAMS): Remove.  All uses removed.
78448         (ARRAY_CARDINALITY): Do not bother to #undef.
78449         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78450         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78451         Remove unnecessary parentheses.
78452         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78453         Insert necessary parentheses.
78454         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78455         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78456
78457 2002-11-19  Bruno Haible  <bruno@clisp.org>
78458
78459         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78460         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78461
78462         * lib/mbswidth.h (PARAMS): Remove macro.
78463         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78464         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78465
78466         * lib/gcd.h (PARAMS): Remove macro.
78467         (gcd): Use ANSI C function declarations.
78468         * lib/gcd.c (gcd): Likewise.
78469
78470 2002-11-15  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/strcspn.c: Include <stddef.h>.
78473         (strcspn): Use ANSI C function declaration. Change return type to
78474         size_t. Use NULL.
78475         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78476         (strpbrk): Use NULL.
78477         * lib/strpbrk.h (PARAMS): Remove macro.
78478         (strpbrk): Use ANSI C function declaration.
78479         * lib/strstr.c: Don't include <sys/types.h>.
78480         * lib/strstr.h (PARAMS): Remove macro.
78481         (strstr): Use ANSI C function declarations.
78482
78483 2002-11-14  Karl Berry  <karl@gnu.org>
78484
78485         * config/mkinstalldirs: `do' on separate line, instead of
78486         `for var; do'.
78487
78488 2002-11-06  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78491         * lib/gcd.c (gcd): Likewise.
78492
78493 2002-11-05  Bruno Haible  <bruno@clisp.org>
78494
78495         * lib/gcd.h: New file, from gettext-0.11.5.
78496         * lib/gcd.c: New file, from gettext-0.11.5.
78497
78498 2002-11-05  Bruno Haible  <bruno@clisp.org>
78499
78500         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78501         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78502         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78503         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78504
78505         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78506         <libintl.h>.
78507         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78508         <libintl.h>.
78509
78510         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78511         * lib/human.c: Include gettext.h instead of <libintl.h>.
78512         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78513         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78514         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78515         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78516         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78517         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78518         (textdomain): Remove definition.
78519         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78520
78521         * lib/long-options.c: Remove include of <libintl.h> and definition of
78522         _.
78523         * lib/same.c: Remove include of <libintl.h> and definition of _.
78524
78525 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78526
78527         * lib/config.charset: A few additions for Solaris.
78528
78529 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78530
78531         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78532         * lib/localcharset.c (locale_charset): Declare as extern "C".
78533
78534 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78535
78536         * lib/config.charset: msdos in uk_UA uses CP1125.
78537
78538 2002-11-04  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78541         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78542         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78543         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78544         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78545
78546 2002-11-04  Bruno Haible  <bruno@clisp.org>
78547
78548         * lib/localcharset.c (locale_charset): Don't return an empty string.
78549
78550 2002-11-04  Bruno Haible  <bruno@clisp.org>
78551
78552         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78553         aliases.
78554
78555 2002-11-04  Bruno Haible  <bruno@clisp.org>
78556
78557         * lib/config.charset: Update for newest glibc. Add canonical names
78558         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78559
78560 2002-11-04  Bruno Haible  <bruno@clisp.org>
78561
78562         * lib/config.charset: Add support for NetBSD.
78563
78564 2002-11-04  Bruno Haible  <bruno@clisp.org>
78565
78566         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78567
78568 2002-11-01  Bruno Haible  <bruno@clisp.org>
78569
78570         * configure.in: Add AC_CONFIG_AUX_DIR call.
78571         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78572         test/Makefile.
78573         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78574
78575 2002-09-28  Karl Berry  <karl@gnu.org>
78576
78577         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78578         installed automake until the next release, since changes have been
78579         made.
78580
78581 2002-09-25  Karl Berry  <karl@gnu.org>
78582
78583         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78584         * lib/getopt*: copy from libc/posix.
78585         * lib/gettext.h: copy from gettext.
78586         * lib/.cppi-disable: add strdup.c, gettext.h.
78587
78588 2002-09-25  Karl Berry  <karl@gnu.org>
78589
78590         * config/srclist.txt: enable gettext.h check.
78591         * config/config.{guess,sub}: update from prep.
78592         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78593                 from automake 1.6.3.
78594         See srclist*.
78595
78596 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78597
78598         * regex.c (PATFETCH): Remove the translating fetch.
78599         (PATFETCH_RAW): Rename to PATFETCH.
78600         (set_image_of_range): New fun.
78601         (SET_RANGE_TABLE_WORK_AREA): Use it.
78602         (regex_compile): Don't translate the pattern chars so eagerly.
78603         Only do it when inserting an `exactn' bytecode or when handling
78604         a char-range.
78605         (mutually_exclusive_p): Avoid empty statement.
78606
78607 2002-07-06  Jim Meyering  <meyering@lucent.com>
78608
78609         * m4/README: Don't mention Makefile.am.in.
78610         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78611
78612 2002-07-01  Jim Meyering  <meyering@lucent.com>
78613
78614         * lib/c-stack.c: Include sys/time.h.
78615         From Volker Borchert.
78616
78617 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78618
78619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78620
78621 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78622
78623         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78624         New macro.  Use it uniformly instead of
78625         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78626         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78627         reported by Vin Shelton.
78628
78629 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78630
78631         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78632         Do not assume SA_SIGINFO behavior.
78633         Bug reported by Jim Meyering on NetBSD 1.5.2.
78634
78635 2002-06-22  Jim Meyering  <meyering@lucent.com>
78636
78637         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78638         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78639
78640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78641         now that configure.ac uses AC_GNU_SOURCE.
78642         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78643         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78644
78645         Update to latest tools.  Suggestions from Paul Eggert.
78646         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78647         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78648         * m4/fnmatch.m4: Likewise.
78649         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78650         to AC_HEADER_STDBOOL
78651
78652 2002-06-22  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78655         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78656
78657 2002-06-22  Jim Meyering  <meyering@lucent.com>
78658
78659         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78660
78661         * lib/exitfail.c, exitfail.h: Likewise.
78662         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78663
78664         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78665         of fnmatch.h.
78666         (EXTRA_DIST): Add fnmatch_loop.c.
78667         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78668
78669         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78670         * lib/fnmatch.c: Update from diffutils-2.8.2.
78671         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78672         * lib/fnmatch.h: Remove file.
78673
78674 2002-06-21  Jim Meyering  <meyering@lucent.com>
78675
78676         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78677         * m4/mbrtowc.m4: Likewise.
78678
78679         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78680         * m4/mbswidth.m4: Reflect name change:
78681         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78683
78684         * m4/lib-link.m4: Update from gettext-0.11.2.
78685         * m4/gettext.m4: Likewise.
78686
78687         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78688         From Alfred M. Szmidt.
78689
78690 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78691
78692         * lib/file-type.h: Report an error if neither S_ISREG nor
78693         S_IFREG is defined, instead of using a test specific to glibc
78694         2.2.  This should be safe, since POSIX requires S_ISREG and
78695         Unix Version 7 had S_IFREG.  We don't need to check for
78696         <sys/types.h> since we don't use any symbols that it defines.
78697
78698 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78699
78700         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78701         $@-t, so that each temporary file name is unique and valid in the first
78702         8 characters, for operation under DOS.
78703
78704 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78705
78706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78707
78708 2002-06-15  Jim Meyering  <meyering@lucent.com>
78709
78710         Work even with DJGPP 2.03, which lacks support for symlinks.
78711         From Richard Dawe.
78712         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78713         is defined.
78714         * lib/lchown.c (S_ISLNK): Likewise.
78715
78716 2002-06-15  Jim Meyering  <meyering@lucent.com>
78717
78718         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78719         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78720         have been included before this file.
78721
78722 2002-06-14  Jim Meyering  <meyering@lucent.com>
78723
78724         * lib/file-type.h: Use the version from diffutils-2.8.2.
78725         * lib/file-type.c: Likewise.
78726
78727 2002-06-07  Jim Meyering  <meyering@lucent.com>
78728
78729         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78730         They're needed at least for NetBSD 1.5.2.
78731         ($statxfs_includes): Include those same headers.
78732         ($statxfs_includes): Include sys/vfs.h if available.
78733         ($statxfs_includes): Likewise for sys/statvfs.h.
78734         Check for the following members in both structs statfs and statvfs:
78735         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78736
78737 2002-06-01  Jim Meyering  <meyering@lucent.com>
78738
78739         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78740         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78741
78742 2002-05-28  Jim Meyering  <meyering@lucent.com>
78743
78744         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78745         Reported by Volker Borchert.
78746
78747 2002-05-27  Jim Meyering  <meyering@lucent.com>
78748
78749         Fix a problem seen only on nonconforming systems whereby ls.c's
78750         use of localtime, and then of gettimeofday would cause trouble:
78751         the localtime call used to initialize rpl_gettimeofday's save
78752         mechanism would clobber ls's current local time information so
78753         that in any long listing the first file would always be listed
78754         with date 1970-01-01.  Analysis by Volker Borchert.
78755
78756         * lib/gettimeofday.c (localtime): Undefine.
78757         (rpl_localtime): New function.
78758
78759 2002-05-27  Jim Meyering  <meyering@lucent.com>
78760
78761         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78762         localtime.
78763
78764         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78765         use the replacement function; it wouldn't resolve at link time.
78766         Reported by Volker Borchert.
78767
78768 2002-05-22  Jim Meyering  <meyering@lucent.com>
78769
78770         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78771         file-type.h.
78772         * lib/file-type.h: New file.
78773         * lib/file-type.c (file_type): New file/function.  Extracted from
78774         diffutils.
78775
78776 2002-04-30  Jim Meyering  <meyering@lucent.com>
78777
78778         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78779
78780 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78781
78782         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78783
78784 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78785
78786         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78787         Do not check for alloca.h (no longer used) or stdbool.h (was never
78788         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78789
78790 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78791
78792         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78793
78794 2002-04-29  Jim Meyering  <meyering@lucent.com>
78795
78796         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78797         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78798         Use AC_FUNC_STRNLEN here instead.
78799
78800         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78801         With autoconf-2.53a, it's part of AC_PROG_CC.
78802
78803 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78804
78805         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78807
78808 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78809
78810         * lib/sig2str.h, lib/sig2str.c: New files.
78811         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78812
78813 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78814
78815         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78816         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78817         of 127, since 64 is the largest conceivable number for ancient
78818         nonstandard hosts.
78819         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78820
78821 2002-04-28  Jim Meyering  <meyering@lucent.com>
78822
78823         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78824
78825 2002-04-24  Jim Meyering  <meyering@lucent.com>
78826
78827         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78828         (jm_PREREQ): Use it.
78829
78830         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78831         mach/mach.h fcntl.h.
78832         Check for this function: setlocale.
78833
78834 2002-04-24  Jim Meyering  <meyering@lucent.com>
78835
78836         * lib/gettext.h: New file, from Gettext.
78837         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78838         (libfetish_a_SOURCES): Add gettext.h.
78839
78840 2002-04-16  Jim Meyering  <meyering@lucent.com>
78841
78842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78843         ut_pid, ut_id, ut_exit.
78844
78845 2002-04-16  Jim Meyering  <meyering@lucent.com>
78846
78847         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78848         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78849         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78850
78851 2002-04-12  Jim Meyering  <meyering@lucent.com>
78852
78853         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78854         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78855         existence of the getmntinfo function.  Needed for Darwin 5.3.
78856
78857         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78858         This is necessary at least on Darwin 5.3.
78859
78860         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78861         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78862         strnlen.o in the library, and that makes some versions of ranlib
78863         object.
78864
78865 2002-04-12  Jim Meyering  <meyering@lucent.com>
78866
78867         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78868
78869 2002-04-09  Jim Meyering  <meyering@lucent.com>
78870
78871         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78872         to be more precise.  Rather than saying we're checking whether the
78873         function `works', say what we're testing.
78874         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78875         Reported by Bruno Haible.
78876
78877 2002-03-10  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78880         Suggestion from Santiago Vila.
78881
78882 2002-03-08  Jim Meyering  <meyering@lucent.com>
78883
78884         * lib/rename.c: Mention that this wrapper is needed also on
78885         mips-dec-ultrix4.4 systems.
78886
78887 2002-03-02  Jim Meyering  <meyering@lucent.com>
78888
78889         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78890         not HAVE_CLOCK_SETTIME.
78891
78892 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78893
78894         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78895         Check for clock_settime.
78896
78897 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78898
78899         * lib/nanosleep.h: Rename to....
78900         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78901
78902         * lib/gettime.c: New file.
78903         * lib/settime.c: New file.
78904         * lib/stime.c: Remove.
78905
78906         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78907         timespec.h.  Remove nanosleep.h.
78908
78909 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78910
78911         * m4/acl.m4: New file.
78912         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78913         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78914
78915 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78916
78917         * lib/acl.c, lib/acl.h: New files.
78918         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78919
78920 2002-02-24  Jim Meyering  <meyering@lucent.com>
78921
78922         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78923         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78924         cause trouble.  Reported by Nelson Beebe.
78925
78926 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78927
78928         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78929         compilers that don't know that xalloc_die never returns.
78930
78931 2002-02-20  Jim Meyering  <meyering@lucent.com>
78932
78933         * lib/getdate.c: Regenerate using bison-1.33.
78934
78935 2002-02-17  Jim Meyering  <meyering@lucent.com>
78936
78937         * config/config.guess (main): Don't use `head -1'; it's no longer
78938         portable. Use `sed 1q' instead.
78939
78940 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78941
78942         * m4/codeset.m4: Upgrade to gettext-0.11.
78943         * m4/gettext.m4: Upgrade to gettext-0.11.
78944         * m4/glibc21.m4: Upgrade to gettext-0.11.
78945         * m4/iconv.m4: Upgrade to gettext-0.11.
78946         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78947         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78948         * m4/lib-ld.m4: New file, from gettext-0.11.
78949         * m4/lib-link.m4: New file, from gettext-0.11.
78950         * m4/lib-prefix.m4: New file, from gettext-0.11.
78951         * m4/progtest.m4: Upgrade to gettext-0.11.
78952
78953 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78954
78955         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78956         (jm_PREREQ): Use it.
78957
78958 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78959
78960         * lib/posixver.c, lib/posixver.h: New files.
78961         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78962
78963 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78964             Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78967         (fwrite_success_callback): New declaration.
78968         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78969         print_unicode_char. Call failure callback instead of error.
78970         (fwrite_success_callback): New function.
78971         (exit_failure_callback): New function.
78972         (fallback_failure_callback): New function.
78973         (print_unicode_char): Call unicode_to_mb.
78974
78975 2002-01-26  Jim Meyering  <meyering@lucent.com>
78976
78977         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78978         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78979
78980 2002-01-26  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78983
78984 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78985
78986         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78987
78988 2002-01-22  Jim Meyering  <meyering@lucent.com>
78989
78990         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78991         Otherwise, some versions of automake would omit the rule that makes
78992         Makefile from Makefile.in.
78993
78994 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78995
78996         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78997         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78998         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78999         (memcoll): Set errno to zero if there is no error.
79000
79001         * lib/quotearg.c (quotearg_buffer_restyled):
79002         Fix bug with quoting buffers containing NUL when backslashing escapes.
79003         This bug was exposed by the other changes in this patch.
79004         (quotearg_n_options): New arg ARGSIZE.
79005         All callers changed.
79006         (quoting_options_from_style): New function.
79007         (quotearg_n_style): Use it.
79008         (quotearg_n_style_mem): New function.
79009
79010         * lib/quotearg.h (quotearg_n_style_mem): New function.
79011
79012 2002-01-19  Jim Meyering  <meyering@lucent.com>
79013
79014         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79015         Remove useless quotes: DF_PROG="df".
79016         * m4/strnlen.m4: New file.
79017
79018 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79019
79020         * lib/backupfile.c (ISDIGIT): Comment fix.
79021         * lib/getdate.y (ISDIGIT): Likewise.
79022         * lib/posixtm.c (ISDIGIT, year): Likewise.
79023         * lib/strverscmp.c (ISDIGIT): Likewise.
79024         * lib/userspec.c (ISDIGIT): Likewise.
79025
79026 2002-01-16  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/getdate.y: Add three semicolons, each just before a closing
79029         brace. Bison (as of version 1.31) no longer papers over that mistake.
79030
79031 2002-01-05  Jim Meyering  <meyering@lucent.com>
79032
79033         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79034
79035 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79036
79037         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79038         not silently exit merely because the output buffer happens to
79039         have nothing pending.
79040
79041 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79042
79043         See the big note in ../ChangeLog.
79044         * lib/human.c (suffixes): Prefer K to k for 1024.
79045         (generate_suffix_backwards): New function.
79046         (human_readable_inexact): Use it.
79047         * lib/xstrtol.c (__xstrtol): If there is no number but there
79048         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79049         Accept 'K' as well as 'k'.
79050
79051 2001-12-15  Jim Meyering  <meyering@lucent.com>
79052
79053         * lib/regex.h (__restrict_arr): Update from libc.
79054
79055         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79056         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79057         (STREQ): Define.
79058
79059 2001-12-14  Jim Meyering  <meyering@lucent.com>
79060
79061         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79062         Suggestion from Bruno Haible.
79063
79064 2001-12-10  Jim Meyering  <meyering@lucent.com>
79065
79066         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79067         xrealloc, Instead, include "xalloc.h".
79068         (initbuffer): Don't cast xmalloc return value to char*.
79069         (readline): Reword comment.
79070         Don't cast xrealloc return value to char*
79071         Return NULL, not 0.
79072
79073 2001-12-09  Jim Meyering  <meyering@lucent.com>
79074
79075         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79076         about `signed and unsigned type in conditional expression'.
79077         * lib/posixtm.c (posix_time_parse): Likewise.
79078
79079         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79080
79081         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79082         to avoid a pedantic warning.
79083
79084         * lib/getstr.c: Don't include assert.h.
79085         (getstr): Remove warning-evoking assertions.
79086         Return -1 if offset parameter is out of bounds.
79087         Change the type of a local from int to size_t.
79088
79089         * lib/strftime.c (my_strftime_localtime_r): Include this function
79090         definition in the `#if ! HAVE_TM_GMTOFF' block.
79091
79092         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79093         Include xalloc.h instead.
79094
79095 2001-12-02  Jim Meyering  <meyering@lucent.com>
79096
79097         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79098         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79099         included.
79100
79101         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79102         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79103
79104 2001-11-30  Akim Demaille  <akim@epita.fr>
79105
79106         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79107         before being defined.
79108
79109 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79110
79111         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79112         First arg is int, not unsigned.
79113         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79114         (SIZE_MAX, UINT_MAX): New macros.
79115         (quotearg_n_options): Abort if N is negative.
79116         Avoid overflow check on hosts where size_t is 64 bits and int
79117         is 32 bits, as overflow is impossible there.
79118         Fix off-by-one typo that caused unnecessary reallocation.
79119
79120 2001-11-27  Jim Meyering  <meyering@lucent.com>
79121
79122         * lib/tempname.c: Merge with version from libc.
79123         * lib/regex.c: Likewise.
79124
79125         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79126         systems for which STDC_HEADERS is 0, it was not included, resulting in
79127         a warning about an integer-to-pointer conversion problem with getenv.
79128         Reported by Volker Borchert.
79129
79130 2001-11-26  Jim Meyering  <meyering@lucent.com>
79131
79132         * lib/gtod.h: Remove file.
79133         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79134         * lib/gettimeofday.c: Don't include gtod.h.
79135         (GTOD_init): Remove function.
79136         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79137         Suggestion from Volker Borchert.
79138
79139 2001-11-23  Jim Meyering  <meyering@lucent.com>
79140
79141         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79142         it.
79143         * lib/hash.c (struct hash_table): Define it here instead.
79144
79145 2001-11-22  Jim Meyering  <meyering@lucent.com>
79146
79147         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79148
79149 2001-11-20  Jim Meyering  <meyering@lucent.com>
79150
79151         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79152         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79153
79154 2001-11-19  Jim Meyering  <meyering@lucent.com>
79155
79156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79157         directory.  Use "conftestXXXXXX" as the template.
79158         Suggestion from Paul Eggert.
79159
79160         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79161         immediately, so the test doesn't mistakenly hit the max-open-files
79162         limit.
79163
79164 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79165
79166         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79167         (TEMPORARIES): New macro.
79168         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79169         removes an artificial limitation (e.g. HP-UX 10.20, where
79170         TMP_MAX is 17576).
79171
79172 2001-11-18  Jim Meyering  <meyering@lucent.com>
79173
79174         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79175
79176 2001-11-18  Jim Meyering  <meyering@lucent.com>
79177
79178         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79179         on SunOS 4.
79180
79181         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79182         files will be created before anything else.
79183
79184 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79185
79186         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79187         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79188
79189 2001-11-17  Jim Meyering  <meyering@lucent.com>
79190
79191         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79192         Prompted by a report from Bob Proulx.
79193
79194         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79195         Instead, require UTILS_FUNC_MKSTEMP.
79196
79197 2001-11-17  Jim Meyering  <meyering@lucent.com>
79198
79199         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79200         Now, that's done as part of AC_FUNC_STRTOD.
79201
79202 2001-11-17  Jim Meyering  <meyering@lucent.com>
79203
79204         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79205         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79206         rather than group writable.  Patch by Juan F. Codagnone.
79207
79208         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79209         xrealloc, Instead, include "xalloc.h".
79210
79211         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79212         Remove explicit declarations of xmalloc, xrealloc,
79213         and xstrdup.  Instead, include "xalloc.h".
79214
79215         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79216         unlocked-io.h.
79217         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79218         Likewise.
79219         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79220
79221         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79222         Reported by Padraig Brady.
79223
79224         * lib/mkstemp.c: #undef mkstemp.
79225         Include config.h.
79226         (rpl_mkstemp): Rename from mkstemp.
79227         Protoize.
79228
79229 2001-11-16  Jim Meyering  <meyering@lucent.com>
79230
79231         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79232         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79233         determine the amount of total physical memory, use pstat_getstatic.
79234         HPUX-11 doesn't define _SC_PHYS_PAGES.
79235         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79236         If sysconf couldn't be used to determine the amount of available
79237         physical memory, use both pstat_getstatic and pstat_getdynamic.
79238         Based on a patch from Bob Proulx.
79239
79240 2001-11-10  Jim Meyering  <meyering@lucent.com>
79241
79242         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79243         (jm_PREREQ): Use it.
79244
79245 2001-11-09  Jim Meyering  <meyering@lucent.com>
79246
79247         * m4/jm-macros.m4: Require autoconf-2.52f.
79248         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79249         Use these AC_-prefixed names, not the AM_-prefixed ones.
79250
79251         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79252
79253 2001-11-05  Jim Meyering  <meyering@lucent.com>
79254
79255         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79256
79257 2001-11-04  Jim Meyering  <meyering@lucent.com>
79258
79259         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79260         $DEFS.
79261
79262 2001-11-03  Jim Meyering  <meyering@lucent.com>
79263
79264         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79265         of AC_DEFUN.
79266
79267         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79268         know the name of the variable in the macro definition.
79269
79270 2001-11-03  Jim Meyering  <meyering@lucent.com>
79271
79272         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79273         in argmatch_to_argument call.
79274
79275         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79276         argument.
79277
79278         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79279         e.g., a fault due to an attempt to free a NULL pointer.
79280
79281 2001-11-01  Jim Meyering  <meyering@lucent.com>
79282
79283         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79284         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79285
79286 2001-11-01  Jim Meyering  <meyering@lucent.com>
79287
79288         * lib/dirfd.c, lib/dirfd.h: New files.
79289         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79290
79291         * lib/hash.c (hash_print) [TESTING]: Clean up.
79292
79293 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79294
79295         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79296         to avoid a warning if -Wall.
79297
79298 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79299
79300         * README: New file
79301         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79302         (per RMS's instructions, this is now the canonical source)
79303         * lgpl/, gpl/: New directories.
79304
79305 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79306
79307         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79308
79309 2001-10-21  Jim Meyering  <meyering@lucent.com>
79310
79311         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79312         this code would end up calling gettext even in packages built
79313         with --disable-nls.
79314         * lib/getopt.c (_): Likewise.
79315         * lib/regex.c (_): Likewise.
79316
79317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79318
79319         * m4/error.m4 (jm_PREREQ_ERROR):
79320         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79321         AC_FUNC_STRERROR_R does that.
79322         Check for strerror declaration.
79323
79324         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79325         are supposed to have them these days.
79326         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79327         Merge changes from latest Autoconf CVS.
79328         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79329         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79330         POSIX decided to standardize on the int flavor of strerror_r.
79331
79332 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79333
79334         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79335         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79336         Use strerror_r that is only a macro, even if it is not a function.
79337         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79338         (private_strerror): Use prototypes, not old-style function definition.
79339         (print_errno_message): New function.
79340         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79341         char*-flavored one.
79342         (error_tail, error, error_at_line): Use it.
79343
79344 2001-10-11  Jim Meyering  <meyering@lucent.com>
79345
79346         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79347         and quote_n (1, ... to avoid clobbering a buffer.
79348
79349 2001-10-05  Jim Meyering  <meyering@lucent.com>
79350
79351         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79352         hash-pjw.h.
79353         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79354         * lib/hash-pjw.h: New file.
79355
79356 2001-09-30  Jim Meyering  <meyering@lucent.com>
79357
79358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79359         `struct fsstat' has the `f_fstypename' member.
79360         Use that to define FS_TYPE, which is now used to make
79361         the getfsstat link test tighter.
79362
79363 2001-09-30  Jim Meyering  <meyering@lucent.com>
79364
79365         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79366         Include <sys/ucred.h>, for Apple Darwin.
79367         Include sys/mount.h and sys/fs_types.h only if available.
79368         (FS_TYPE): Define.
79369         (read_filesystem_list): Use FS_TYPE.
79370
79371 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79372
79373         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79374         a boolean context.
79375
79376 2001-09-29  Jim Meyering  <meyering@lucent.com>
79377
79378         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79379         [one-argument getmntent function]): Include stdio.h before mntent.h.
79380         SunOS 4.1.x needs it for the declaration of `FILE'.
79381         Patch by Volker Borchert.
79382
79383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79384         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79385         sys/fs_types.h, and make the link-test for getfsstat guard #include
79386         directives with appropriate #if HAVE_*_H tests so that we can
79387         detect getfsstat on Apple Darwin1.3.7 systems.
79388         Reported by Nelson Beebe.
79389         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79390
79391 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79392
79393         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79394         #defines strtoimax.  Also treat the other strto* functions
79395         like strtoimax.
79396
79397         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79398         Check for strtoul and strtoumax,
79399         as those declarations are made even in the signed case.
79400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79401         Likewise, for strtol and strtoimax.
79402
79403 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79404
79405         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79406         #defines strtoimax.  Also treat the other strto* functions
79407         like strtoimax.
79408
79409         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79410         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79411         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79412
79413 2001-09-26  Jim Meyering  <meyering@lucent.com>
79414
79415         Most macros in unlocked-io.h had the wrong number of arguments.
79416         * lib/gen-uio: New script.
79417         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79418         * lib/unlocked-io.hin: Remove file.
79419         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79420         rather than trying to embed it here.
79421         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79422         Reported by Padraig Brady.
79423
79424 2001-09-25  Volker Borchert  <bt@teknon.de>
79425
79426         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79427         `result'.
79428
79429 2001-09-24  Jim Meyering  <meyering@lucent.com>
79430
79431         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79432
79433 2001-09-23  Jim Meyering  <meyering@lucent.com>
79434
79435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79436         instead of the mere test for existence of mntent.h.  The latter
79437         would get a false-positive on AIX 3.4 systems.
79438         In the outer getmntent if-block, don't die if neither of the getmntent
79439         tests succeeds.  Instead, just fall through and continue with the
79440         remaining tests.
79441
79442 2001-09-23  Jim Meyering  <meyering@lucent.com>
79443
79444         * lib/mountlist.c: Remove useless parentheses in #if directives.
79445         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79446         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79447
79448 2001-09-22  Jim Meyering  <meyering@lucent.com>
79449
79450         * m4/gettext.m4: New file.  From gettext.
79451         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79452         * m4/progtest.m4: Likewise
79453         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79454         * m4/glibc21.m4: Likewise.
79455
79456         * m4/libintl.m4: Remove.  No longer used.
79457
79458 2001-09-22  Jim Meyering  <meyering@lucent.com>
79459
79460         * lib/localcharset.c: Update from latest gettext.
79461         * lib/config.charset: Likewise.
79462
79463 2001-09-20  Jim Meyering  <meyering@lucent.com>
79464
79465         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79466         strtoimax.
79467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79468         strtoumax.
79469
79470 2001-09-20  Jim Meyering  <meyering@lucent.com>
79471
79472         * lib/xstrtol.c (strtoimax): Guard declaration with
79473         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79474         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79475         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79476         (strtoumax): Likewise, for completeness (it wasn't necessary).
79477
79478 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79479
79480         * lib/strtoimax.c (HAVE_LONG_LONG):
79481         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79482         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79483         to work around bug in IBM C compiler.
79484
79485 2001-09-17  Jim Meyering  <meyering@lucent.com>
79486
79487         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79488         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79489         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79490         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79491         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79492         whenever the right hand side need not be expanded by the shell.
79493
79494 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79495
79496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79497         library.  It's not correct, as some older glibcs are buggy.
79498         fnmatch wasn't fixed until glibc 2.2.
79499
79500         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79501         special shell magic here.
79502
79503 2001-09-16  Jim Meyering  <meyering@lucent.com>
79504
79505         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79506         * m4/jm-macros.m4: Require it.
79507
79508 2001-09-16  Jim Meyering  <meyering@lucent.com>
79509
79510         * lib/mkdir.c: New file.
79511
79512 2001-09-15  Jim Meyering  <meyering@lucent.com>
79513
79514         * m4/jm-macros.m4: Check for help2man.
79515
79516 2001-09-11  Jim Meyering  <meyering@lucent.com>
79517
79518         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79519         The body, by Paul Eggert, was moved here from configure.in.
79520         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79521
79522 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79523
79524         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79525         (jm_PREREQ): Use it.
79526
79527 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79528
79529         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79530         Use ssize_t, not int, to store result of readlink.
79531         Check for ssize_t overflow as well as size_t overflow,
79532         as POSIX says the result of readlink is implementation-defined
79533         when ssize_t overflows.
79534         Remove unnecessary cast to char*.
79535         Use free+malloc instead of realloc, as the storage doesn't need
79536         to be preserved and it's clearer and can be more efficient that way.
79537         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79538         * lib/xreadlink.h (xreadlink): Update prototype.
79539
79540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79541
79542         * lib/xgetcwd.c: Revert some of the previous change; intead,
79543         fix the HAVE_GETCWD_NULL code to behave more like the
79544         !HAVE_GETCWD_NULL code used to.
79545
79546         Include "xalloc.h".
79547         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79548         invoke xalloc_die.
79549
79550 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79551
79552         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79553         sys/param.h, as pathmax.h includes them.
79554
79555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79556
79557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79558         (jm_PREREQ_XGETCWD): New macro.
79559
79560         * m4/getcwd.m4: New file.
79561
79562 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79563
79564         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79565         like the HAVE_GETCWD_NULL code.
79566         Include pathmax.h if not HAVE_GETCWD.
79567         Do not include xalloc.h.
79568         (INITIAL_BUFFER_SIZE): New symbol.
79569         Do not use xmalloc / xrealloc, since the caller is responsible for
79570         handling errors.  Preserve errno around `free' during failure.
79571         Do not overrun buffer when using getwd.
79572
79573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79574
79575         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79576         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79577         getcwd (NULL, 0).
79578
79579 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79580
79581         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79582         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79583         spotted by Jim Meyering.
79584
79585 2001-09-03  Jim Meyering  <meyering@lucent.com>
79586
79587         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79588         failure.
79589
79590 2001-09-02  Jim Meyering  <meyering@lucent.com>
79591
79592         * lib/error.c: Update from GNU libc.
79593
79594 2001-09-01  Jim Meyering  <meyering@lucent.com>
79595
79596         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79597         Used by df.
79598
79599 2001-09-01  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/xreadlink.c: New file.
79602         * lib/xreadlink.h: New file.
79603         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79604         xreadlink.h.
79605
79606         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79607         doesn't conflict with sparc Solaris 7's definition in
79608         /usr/include/sys/int_types.h.
79609
79610         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79611         files.
79612         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79613         and strncasecmp as r-values.  Unixware didn't have declarations.
79614
79615 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79616
79617         * lib/xstrtol.h: Add copyright notice.
79618         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79619         LONGINT_INVALID_SUFFIX_CHAR.
79620
79621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79622
79623         * lib/xstrtol.c (strtoimax): New decl.
79624
79625 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79626
79627         * lib/xgetcwd.c: Don't include pathmax.h.
79628         Include stdlib.h and unistd.h if available.
79629         Include xalloc.h.
79630         (xmalloc, xstrdup, free): Remove decls.
79631         (xgetcwd): Don't assume sizes fit in unsigned.
79632         Check for overflow when computing sizes.
79633         Simplify reallocation code.
79634
79635 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79636
79637         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79638         a directory's st_size can have an arbitrary value, so the old
79639         usage could waste an arbitrary amount of memory.  All uses
79640         changed.
79641         * lib/savedir.h: Update prototype.
79642
79643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79644
79645         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79646
79647         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79648         old strtoimax.c.
79649
79650         Also, make the following further changes to make this file's
79651         configuration more similar to that of strtol.c:
79652         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79653         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79654         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79655         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79656         changed to signed values.
79657
79658         And make the following changes as well:
79659         Fix copyright notice, as 1999 was missing.
79660         (verify): New macro.
79661         (strtoimax): Check sizes at compile-time, not run-time.
79662         Prefer strtol to strtoll if both work.
79663         (main): Remove; it was not that useful and was a pain to maintain.
79664
79665         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79666
79667 2001-08-31  Jim Meyering  <meyering@lucent.com>
79668
79669         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79670         Use an initial, malloc'd, buffer of length 128 rather than
79671         a statically allocated one of length 1024.
79672
79673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79674
79675         Simplify code, partly by assuming autoconf 2.52 semantics.
79676
79677         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79678
79679         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79680         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79681         All uses removed.
79682         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79683         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79684         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79685         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79686         jm_AC_HEADER_INTTYPES_H.
79687         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79688
79689         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79690
79691         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79692         Quote first arg of AC_DEFUN.
79693         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79694         since they are needed to parse the include file even if we need
79695         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79697         but with opposite signedness.
79698
79699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79700
79701         Merge 'exclude' changes from tar 1.13.22.
79702         This fixes one or two unlikely storage allocation overflow bugs,
79703         but doesn't change user-visible behavior otherwise.
79704
79705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79706
79707         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79708         (jm_PREREQ_EXCLUDE): New macro.
79709
79710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79711
79712         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79713         tm to be declared.
79714
79715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79716
79717         * lib/hash.c: Remove '2001' from copyright notice.
79718
79719 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79720
79721         * lib/full-write.h: New file.
79722         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79723         * lib/full-write.c: Correct credits, as cccp.c no longer
79724         exists and anyway it was so heavily changed from the old cccp
79725         code as to be unrecognizable.  Include full-write.h.
79726         (full_write): Return size_t, with short writes meaning failure.
79727         All callers changed.  This fixes a bug with large buffers
79728         on 64-bit hosts.
79729         * lib/utime.c: Include full-write.h.
79730
79731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79732
79733         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79734         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79735         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79736         Include if available.
79737         (<xalloc.h>): Include
79738         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79739         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79740         collide with FNM macros.
79741         (struct patopts): New struct.
79742         (struct exclude): Use it, as exclude patterns now come with options.
79743         (new_exclude): Support above changes.
79744         (new_exclude, add_exclude_file):
79745         Initial size must now be a power of two to simplify overflow checking.
79746         (free_exclude, fnmatch_no_wildcards): New function.
79747         (excluded_filename): No longer requires options arg, as the options
79748         are determined by add_exclude.  Now returns bool, not int.
79749         (excluded_filename, add_exclude):
79750         Add support for the fancy new exclusion options.
79751         (add_exclude, add_exclude_file): Now takes int options arg.
79752         Check for arithmetic overflow when computing sizes.
79753         (add_exclude_file): xrealloc might modify errno, so don't
79754         realloc until after errno might be used.
79755
79756         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79757         New macros.
79758         (free_exclude): New decl.
79759         (add_exclude, add_exclude_file): Now takes int options arg.
79760         (excluded_filename): No longer requires options arg, as the options
79761         are determined by add_exclude.  Now returns bool, not int.
79762
79763 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79764
79765         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79766
79767 2001-08-27  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79770
79771         * lib/version-etc.c (N_): Remove definition.
79772         Revert most of last change.
79773         Instead, simply don't mark the `Copyright...' string for translation.
79774         Based on advice from Paul Eggert.
79775
79776         * lib/strtoxmax.c: Tweak comment.
79777
79778 2001-08-26  Jim Meyering  <meyering@lucent.com>
79779
79780         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79781
79782         * m4/xstrtoimax.m4: New file.
79783         * m4/xstrtoumax.m4: Add comments explaining why we
79784         AC_REPLACE_FUNCS(strtol).
79785
79786 2001-08-26  Jim Meyering  <meyering@lucent.com>
79787
79788         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79789         of copyright with `%s' so translators don't get an untranslated
79790         message in 2002.
79791         (COPYRIGHT_YEAR): Define.
79792         (version_etc): Use fprintf rather than fputs.
79793         Suggestion from Ulrich Drepper.
79794
79795         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79796
79797         * lib/strtoll.c: New file, from GNU libc.
79798         * lib/xstrtoimax.c: New file.
79799
79800         * lib/xstrtol.h: Add xstrtoimax.
79801         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79802         * lib/strtoimax.c: New file.  Likewise, but first define
79803         STRTOUXMAX_SIGNED.
79804
79805         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79806         ...
79807         * lib/strtoxmax.c: ... then renamed to this.
79808
79809 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79810
79811         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79812         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79813         (jm_AC_TYPE_INTMAX_T): New macro.
79814         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79815
79816         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79817
79818         * m4/longlong.m4: Renamed from ulonglong.m4.
79819         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79820         * m4/uintmax_t.m4: Removed.
79821
79822 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79823
79824         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79825         Port to Solaris 8, where 'sed' requires a space after the 'r'
79826         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79827         Redirect output to $tmp just once.
79828
79829 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79830
79831         * lib/addext.c (<errno.h>): Include.
79832         (errno): Declare if not defined.
79833         (addext): Work correctly when pathconf returns -1 and leaves
79834         errno alone because there is no limit.  Also, work even if
79835         pathconf returns a value greater than SIZE_MAX.
79836
79837 2001-08-12  Jim Meyering  <meyering@lucent.com>
79838
79839         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79840         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79841         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79842         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79843         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79844         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79845         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79846         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79847         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79848         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79849         utime.m4, utimes.m4, xstrtoumax.m4:
79850         Quote the first argument in each use of AC_DEFUN.
79851
79852 2001-08-12  Jim Meyering  <meyering@lucent.com>
79853
79854         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79855         Simply `return getcwd (NULL, 0);'.
79856         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79857         Use 1300 as initial value for length, not PATH_MAX.
79858
79859         * lib/pathmax.h: Clean up cpp syntax.
79860
79861 2001-08-12  Jim Meyering  <meyering@lucent.com>
79862
79863         * lib/gettimeofday.c: New file.
79864         * lib/gtod.h: New file.
79865         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79866
79867 2001-08-05  Jim Meyering  <meyering@lucent.com>
79868
79869         * m4/jm-macros.m4: Require autoconf-2.52.
79870
79871 2001-08-04  Jim Meyering  <meyering@lucent.com>
79872
79873         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79874         stmt, to get in sync with glibc.
79875
79876 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79877
79878         The following changes are from gettext 0.10.39 as maintained by
79879         Bruno Haible.
79880
79881         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79882         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79883         with inverted sense.  All uses changed.
79884
79885         * lib/mbswidth.c: Don't include <limits.h>.
79886         Include <stdlib.h> and <string.h> unconditionally.
79887         (iswcntrl, mbsinit, ISCNTRL): New macros.
79888         (mbsnwidth): Use K&R style function declarations.
79889         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79890         can optimize it when MB_CUR_MAX == 1.
79891         The width of control characters is zero, not 1.
79892
79893 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79894
79895         The following changes are from gettext 0.10.39 as maintained by
79896         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79897
79898         * m4/codeset.m4: Upgrade to serial AM1.
79899         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79900         all uses changed.  Quote first arg of AC_DEFUN.
79901         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79902
79903         * m4/iconv.m4: Upgrade to serial AM2.
79904         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79905         Add --with-libconv-prefix.
79906         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79907         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79908         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79909         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79910         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79911
79912         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79913         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79914         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79915         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79916         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79917         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79918         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79919         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79920         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79921
79922         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79923         string.h any more.
79924
79925         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79926         not the default value.
79927
79928         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79929         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79930         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79931         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79932         Also check for iswcntrl, used for wcwidth fallback.
79933         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79934         to Autoconf 2.13.
79935
79936 2001-08-03  Jim Meyering  <meyering@lucent.com>
79937
79938         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79939         as it was in the original.  Reported by Paul Eggert.
79940
79941 2001-07-16  Jim Meyering  <meyering@lucent.com>
79942
79943         * m4/gettimeofday.m4: New file.
79944         Prompted by a report from Bernhard Baehr.
79945
79946 2001-07-15  Jim Meyering  <meyering@lucent.com>
79947
79948         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79949         stuff. Now it's in ../Makefile.cfg.
79950
79951 2001-07-15  Jim Meyering  <meyering@lucent.com>
79952
79953         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79954         (BUILT_SOURCES): Add unlocked-io.h.
79955         (io_functions): Define.
79956         (unlocked-io.h): New rule.
79957         (DISTCLEANFILES): Add unlocked-io.h.
79958         (all-local): Depend on unlocked-io.h, to ensure it is created.
79959
79960         * lib/unlocked-io.hin: New file
79961
79962         * lib/regex.c: Update from glibc.
79963
79964 2001-07-05  Jim Meyering  <meyering@lucent.com>
79965
79966         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79967         recommendation.
79968         (libfetish_a_SOURCES): Put all .h files here instead.
79969         Remove a thus-exposed (better checks in automake) duplicate and
79970         two unnecessary .h files.
79971
79972 2001-07-04  Jim Meyering  <meyering@lucent.com>
79973
79974         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79975         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79976         distcheck failure.
79977
79978 2001-07-02  Jim Meyering  <meyering@lucent.com>
79979
79980         The following changes were prompted by suggestions from Bruno Haible.
79981
79982         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79983         is now generated.
79984         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79985         definition of EXTRA_DIST.
79986         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79987         ensure that the generated file is created/updated whenever the list
79988         of $(unlocked_functions) is changed.
79989         (jm-glibc-io.m4): New rule.
79990         (unlocked-io.h): New rule -- currently unused.
79991
79992 2001-06-24  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79995         unmatched right bracket, rather than kludging it with an extra,
79996         falsely-matching quote in a comment.  Patch by Akim Demaille.
79997
79998 2001-06-11  Jim Meyering  <meyering@lucent.com>
79999
80000         * lib/regex.c: Update from GNU libc.
80001
80002 2001-05-27  Jim Meyering  <meyering@lucent.com>
80003
80004         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80005         Check for ut_type in struct utmp.
80006
80007 2001-05-27  Jim Meyering  <meyering@lucent.com>
80008
80009         * lib/readutmp.h (UT_TYPE): Define.
80010
80011 2001-05-24  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/argmatch.c: Include "quote.h".
80014         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80015         quote function.  Reported by Göran Uddeborg.
80016
80017 2001-05-22  Jim Meyering  <meyering@lucent.com>
80018
80019         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80020         now that we use the package-supplied version unconditionally.
80021         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80022
80023 2001-05-21  Jim Meyering  <meyering@lucent.com>
80024
80025         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80026         shell syntax errors.
80027
80028 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80029
80030         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80031
80032 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80033
80034         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80035         Don't bother to check library strftime, since
80036         we'll be using our own my_strftime function anyway.
80037         Define my_strftime instead of strftime.
80038
80039 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80040
80041         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80042         which is not yet declared.
80043
80044 2001-05-15  Jim Meyering  <meyering@lucent.com>
80045
80046         * m4/regex.m4: Use proper quoting so brackets appear in the test
80047         program.
80048         Reported by, and with help from, Bruno Haible.
80049
80050 2001-05-13  Jim Meyering  <meyering@lucent.com>
80051
80052         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80053         undefined.
80054
80055 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80056
80057         dirname code cleanup.  base_name now behaves more compatibly
80058         with POSIX basename when given file names that have trailing
80059         slashes, and similarly for dir_name.  Add new primitives
80060         base_len and dir_len.  Put the directory-name-related decls
80061         into dirname.h.
80062
80063         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80064         * lib/backupfile.c (base_name): Likewise.
80065         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80066         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80067         * lib/makepath.c (strip_trailing_slashes): Likewise.
80068         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80069         ISSLASH): Likewise.
80070         * lib/rename.c (strip_trailing_slashes): Likewise.
80071         * lib/same.c (base_name): Likewise.
80072         * lib/stripslash.c (ISSLASH): Likewise.
80073
80074         * lib/addext.c: Include <dirname.h> after size_t is defined.
80075         * lib/backupfile.c: Likewise.
80076
80077         * lib/addext.c (addext): Use base_len to trim redundant
80078         trailing slashes instead of doing it ourselves.
80079         But do not trim the last slash if it is not redundant.
80080
80081         * lib/backupfile.c (find_backup_file_name,
80082         max_backup_version): Use base_len instead of rolling it ourselves.
80083         Handle the case of "" and (on DOS) "C:" correctly.
80084
80085         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80086         needed. Include <string.h>, <dirname.h>.
80087         (base_name): Allow file names ending in slashes, other than names
80088         that are all slashes.  In this case, return the basename followed
80089         by the slashes.  This is more general, and can be used in places
80090         where the original base_name purposely had an assertion failure.
80091         (base_len): New function.
80092
80093         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80094         Do not include <assert.h>; no longer needed.
80095         Include xalloc.h.
80096         (memrchr): Remove decl.
80097         (dir_name_r): Remove.
80098         (dir_len): Renamed from dirlen.  All callers changed.
80099         Rewrite in terms of base_name, for simplicity and consistency.
80100         (dir_name): Never return NULL.  All callers changed.
80101         Do not include <stdlib.h> in test program; no longer needed.
80102         return 0; is fine for test program.
80103
80104         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80105         New macros.
80106         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80107
80108         * lib/path-concat.c (path_concat): Use base_len to compute
80109         base length, not strlen; this means we cannot rely on memcpy
80110         to null-terminate.
80111
80112         * lib/same.c (STREQ): Remove.
80113         (same_name): Handle the case where the basename ends in trailing '/'.
80114
80115         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80116         a slash was stripped.  Do not strip the last slash after a
80117         file system prefix.
80118
80119 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80120
80121         * lib/Makefile.am (libfetish_a_SOURCES):
80122         Add strftime.c, since we now compile it on all hosts.
80123
80124         * lib/strftime.c (my_strftime):
80125         Define to nstrftime if emacs, but only if my_strftime is not defined.
80126         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80127         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80128         Add one more extra argument: a nanoseconds value.
80129         All uses changed.
80130         (ns): New macro.
80131         (my_strftime function): Add %N format.
80132         (emacs_strftimeu): Renamed from emacs_strftime,
80133         with extra ut argument.
80134
80135 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80136
80137         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80138
80139 2001-04-21  Jim Meyering  <meyering@lucent.com>
80140
80141         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80142         doesn't interfere.
80143
80144 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80145
80146         * m4/ftruncate.m4: Check for chsize.
80147         Link with ftruncate.o unconditionally if ftruncate is missing.
80148         This was required when cross-compiling to i586-mingw32msvc.
80149
80150 2001-04-08  Jim Meyering  <meyering@lucent.com>
80151
80152         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80153         recomputed; that's necessary when the offset spans a DST transition.
80154         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80155
80156 2001-04-02  Jim Meyering  <meyering@lucent.com>
80157
80158         * lib/regex.h, regex.c: Update from GNU libc.
80159
80160 2001-03-24  Jim Meyering  <meyering@lucent.com>
80161
80162         * m4/jm-macros.m4: Require autoconf-2.49d.
80163
80164 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80165
80166         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80167
80168 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80169
80170         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80171
80172 2001-03-17  Jim Meyering  <meyering@lucent.com>
80173
80174         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80175         now that the version in autoconf is equivalent.
80176         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80177
80178         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80179         Suggestion from Akim Demaille.
80180
80181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80182         (jm_PREREQ_TEMPNAME): New function.
80183
80184 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80185
80186         * lib/tempname.c (uint64_t): Define to uintmax_t if
80187         not defined, and if UINT64_MAX is not defined.
80188         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80189         Reported by John David Anglin.
80190
80191 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80192
80193         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80194         resolve alias if codeset is empty.
80195         * lib/config.charset (BeOS): Use wildcard syntax.
80196
80197 2001-03-13  Jim Meyering  <meyering@lucent.com>
80198
80199         * lib/path-concat.c (path_concat)
80200         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80201         concatenating e.g., `C:' and `foo'.
80202         From Bruno Haible.
80203
80204 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80205
80206         * lib/localcharset.c (locale_charset): Don't use
80207         setlocale(LC_CTYPE,NULL). Don't return NULL.
80208         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80209
80210 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80211
80212         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80213         support for DOS/DJGPP.
80214
80215 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80216
80217         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80218         lacks mkstemp.  Compile our own tempname.c if we compile our own
80219         mkstemp.c, as mkstemp relies on tempname.
80220
80221 2001-03-01  Jim Meyering  <meyering@lucent.com>
80222
80223         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80224         AH_VERBATIM really does output its argument verbatim.
80225
80226 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80227
80228         * lib/Makefile.am (libfetish_a_SOURCES):
80229         Add dup-safer.c, fopen-safer.c.
80230         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80231
80232         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80233         * lib/unistd-safer.h: New files.
80234
80235 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80236
80237         The mkstemp replacement is taken from glibc 2.2.2, with some
80238         portability fixes for use outside glibc, as follows:
80239
80240         * lib/tempname.c (struct_stat64): New macro.
80241         (direxists, __gen_tempname): Use it.
80242         This avoids a portability problem with Solaris 8.
80243
80244         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80245         (<stddef.h>, <stdint.h>, <string.h>):
80246         Include only if STDC_HEADERS || _LIBC.
80247         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80248         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80249         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80250         (__set_errno): Define this macro if <errno.h> doesn't.
80251         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80252         Define these macros if <stdio.h> doesn't.
80253         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80254         Define these macros if <sys/stat.h>
80255         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80256         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80257         __xstat64): Define if not _LIBC.
80258         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80259         (__gen_tempname): Invoke gettimeofday only if
80260         HAVE_GETTIMEOFDAY || _LIBC;
80261         otherwise, fall back on plain "time".
80262         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80263
80264         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80265
80266         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80267
80268 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80269
80270         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80271
80272 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80273
80274         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80275         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80276         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80278
80279 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80280
80281         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80282         Remove workaround macros for hosts that have mbrtowc but not
80283         mbstate_t, as we now insist on proper declarations for both
80284         before using mbrtowc.
80285
80286 2001-02-17  Jim Meyering  <meyering@lucent.com>
80287
80288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80289         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80290         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80291         UnixWare 7.1.1.
80292
80293         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80294         rather than AC_CACHE_VAL.
80295
80296 2001-02-17  Jim Meyering  <meyering@lucent.com>
80297
80298         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80299         around included file name.
80300
80301         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80302
80303         * lib/strftime.c: Update from GNU libc (the only changes were to
80304         comments).
80305
80306 2001-02-17  Jim Meyering  <meyering@lucent.com>
80307
80308         * lib/regex.c: Update from libc.
80309
80310 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80311
80312         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80313         clash.
80314
80315 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80316
80317         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80318         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80319         Reported by Mark Hounschell via Paul Eggert.
80320
80321 2001-02-07  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80324
80325 2001-02-05  Jim Meyering  <meyering@lucent.com>
80326
80327         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80328         it includes the patch required for `large file' support with at least
80329         HP-UX's 10.20 /bin/cc.
80330
80331 2001-02-03  Jim Meyering  <meyering@lucent.com>
80332
80333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80334         AS_IF, now that it works once again (mysteriously).
80335         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80336
80337 2001-01-30  Jim Meyering  <meyering@lucent.com>
80338
80339         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80340         * m4/chown.m4: Rename conftestchown to conftest.chown.
80341         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80342         s/conftestdir2/conftest.d2/.
80343         * m4/utimes.m4: s/conftestdata/conftest.data/
80344         Inspired by Pavel Roskin's change in autoconf.
80345
80346 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80347
80348         * lib/config.charset: Update for FreeBSD 4.2.
80349
80350 2001-01-27  Jim Meyering  <meyering@lucent.com>
80351
80352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80353         a use of AS_IF.
80354         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80355
80356 2001-01-26  Jim Meyering  <meyering@lucent.com>
80357
80358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80359         quotearg.c includes it.
80360
80361 2001-01-26  Jim Meyering  <meyering@lucent.com>
80362
80363         * lib/quotearg.c: Include stddef.h.
80364         * lib/quote.c: Include stddef.h.
80365         Reported by Axel Kittenberger.
80366
80367         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80368         line in double quotes so that it evokes a better diagnostic.
80369         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80370         Reported by Axel Kittenberger.
80371
80372 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80373
80374         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80375         as if it was a `charset'.
80376
80377 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80378
80379         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80380         has const.
80381
80382 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80383
80384         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80385         to avoid a warning.  Add back 'const' to inptr.
80386
80387 2001-01-20  Jim Meyering  <meyering@lucent.com>
80388
80389         Be sure that headers are checked before used in code compiled
80390         for the type checks.
80391         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80392         In place of that, invoke jm_CHECK_ALL_TYPES.
80393         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80394         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80395         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80396         The check for ssize_t was mistakenly run before the test for unistd.h.
80397
80398         The configure-time check for stdbool.h was missing.
80399         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80400         (jm_PREREQ_HASH): New function.
80401
80402 2001-01-17  Jim Meyering  <meyering@lucent.com>
80403
80404         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80405         for autoconf-2.49c.
80406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80407
80408 2001-01-16  Jim Meyering  <meyering@lucent.com>
80409
80410         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80411         From Bruno Haible.
80412
80413 2001-01-14  Jim Meyering  <meyering@lucent.com>
80414
80415         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80416         foo and bar.  Create conftestdir/ in the script, not in the C code.
80417         Remove directories in the script, not in the C code.
80418         Remove conftestdir{,2} before trying to create the directory.
80419         Make the entire configure script fail if the mkdir fails.
80420
80421 2001-01-14  Jim Meyering  <meyering@lucent.com>
80422
80423         * lib/rename.c: New file.  From Volker Borchert.
80424         Include stdlib.h, string.h or strings.h, and xalloc.h.
80425         Use strip_trailing_slashes rather than open-coding it.
80426
80427 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80428
80429         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80430
80431 2001-01-03  Jim Meyering  <meyering@lucent.com>
80432
80433         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80434         of local `inptr' to avoid warning with some system declarations of
80435         iconv.
80436
80437 2001-01-02  Volker Borchert  <bt@teknon.de>
80438
80439         * m4/rename.m4: New file.
80440         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80441
80442 2001-01-01  Jim Meyering  <meyering@lucent.com>
80443
80444         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80445         even on systems with utmpx.h.  It's necessary for the declaration of
80446         utmp's ut_user member.  Reported by Andreas Jaeger.
80447
80448         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80449         available. They are required for the declarations of getgrgid and
80450         getpwuid resp.
80451         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80452         Reported by Andreas Jaeger.
80453
80454 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80455
80456         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80457         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80458         so `make install' also works in VPATH builds.
80459
80460 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80461
80462         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80463         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80464         can be used in subdirectories.
80465
80466 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80467
80468         * lib/modechange.c: Do not assume that mode_t uses the
80469         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80470         the other-execute bit of FOO even if S_IXOTH != 1.
80471
80472         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80473         WOTH, XOTH, ALLM): New macros.
80474         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80475          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80476         Use them.
80477         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80478         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80479         (mode_compile):
80480         No need to use uintmax_t; unsigned long is long enough.
80481         Don't bother to get suffix since we don't use it.
80482
80483 2000-12-26  Jim Meyering  <meyering@lucent.com>
80484
80485         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80486         better with autoheader.
80487
80488 2000-12-24  Jim Meyering  <meyering@lucent.com>
80489
80490         * lib/hash.c (is_prime): Return explicit boolean values.
80491         (hash_get_first): Return NULL to appease Irix5.6's 89.
80492         Reported by Nelson Beebe.
80493
80494 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80495
80496         * lib/localcharset.c (locale_charset): Add support for Win32.
80497
80498 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80499
80500         * lib/physmem.h, lib/physmem.c: New files.
80501
80502         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80503         (noinst_HEADERS): Add physmem.h.
80504
80505         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80506         't' for compatibility with Solaris 8 sort.
80507
80508 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80509
80510         * lib/config.charset: Add support for BeOS.
80511
80512 2000-12-17  Jim Meyering  <meyering@lucent.com>
80513
80514         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80515         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80516
80517 2000-12-16  Jim Meyering  <meyering@lucent.com>
80518
80519         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80520         N and M) would have treated it like `chown N:N FILE'.
80521
80522         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80523
80524 2000-12-16  Jim Meyering  <meyering@lucent.com>
80525
80526         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80527         SHELLS_FILE to a file name that's useful on djgpp systems.
80528         Include stdlib.h.
80529         (ADDITIONAL_DEFAULT_SHELLS): Define.
80530         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80531         Based mostly on a patch from Prashant TR.
80532
80533 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80534
80535         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80536         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80537         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80538
80539 2000-12-08  Andreas Schwab  <schwab@suse.de>
80540
80541         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80542         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80543
80544 2000-12-07  Jim Meyering  <meyering@lucent.com>
80545
80546         * lib/stripslash.c (ISSLASH): Define.
80547         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80548         `/'.
80549         From Prashant TR.
80550
80551         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80552         (dir_name_r): Declare this function as static.
80553         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80554         manifest itself on a name containing a mix of slashes and
80555         backslashes.
80556         Make this function work with names starting with a DOS-style
80557         drive letter and colon prefix.
80558         (dir_name): Append `.' if necessary.
80559         Based mostly on patches from Prashant TR and Eli Zaretskii.
80560
80561         * lib/dirname.h (dir_name_r): Remove prototype.
80562
80563 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80564
80565         * m4/off_t-format.m4: Remove this file.
80566         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80567
80568 2000-12-06  Jim Meyering  <meyering@lucent.com>
80569
80570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80571         replacement strtoull, we may well need the replacement strtoul, too.
80572         Check for declarations of strtoul and strtoull.
80573         Check for strtol.  Mainly as a cue to cause automake to include
80574         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80575         Check for limits.h -- strtol.c needs it.
80576
80577 2000-12-05  Jim Meyering  <meyering@lucent.com>
80578
80579         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80580
80581 2000-12-04  Jim Meyering  <meyering@lucent.com>
80582
80583         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80584         Also include memory.h, stdlib.h, unistd.h if appropriate.
80585         Reported by Andreas Jaeger (conflicting declaration of malloc).
80586
80587 2000-12-02  Jim Meyering  <meyering@lucent.com>
80588
80589         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80590         * m4/jm-macros.m4 (jm_MACROS): require it.
80591
80592 2000-12-02  Jim Meyering  <meyering@lucent.com>
80593
80594         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80595
80596 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80597
80598         * lib/memrchr.c: Include <config.h> before any system include file.
80599
80600 2000-11-30  Jim Meyering  <meyering@lucent.com>
80601
80602         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80603
80604 2000-11-30  Jim Meyering  <meyering@lucent.com>
80605
80606         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80607
80608 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80609
80610         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80611
80612 2000-11-26  Jim Meyering  <meyering@lucent.com>
80613
80614         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80615
80616 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80617
80618         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80619         size of (size_t) -1; it's not portable.
80620
80621 2000-11-17  Jim Meyering  <meyering@lucent.com>
80622
80623         * lib/strstr.c: Update from GNU libc.
80624
80625 2000-11-17  Akim Demaille  <akim@epita.fr>
80626
80627         * lib/obstack.h: Formatting changes.
80628         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80629         prevent type checking.
80630         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80631         cast the value to (void *): assigning a `foo *' to a `void *'
80632         variable is valid.
80633         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80634
80635 2000-11-16  Jim Meyering  <meyering@lucent.com>
80636
80637         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80638
80639 2000-11-11  Jim Meyering  <meyering@lucent.com>
80640
80641         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80642
80643 2000-11-10  Jim Meyering  <meyering@lucent.com>
80644
80645         * lib/obstack.h: Update from GNU libc.
80646         * lib/obstack.c: Likewise.
80647
80648 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80649
80650         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80651
80652 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80653
80654         * lib/getusershell.c (setusershell): Use rewind rather than
80655         fseek/fseeko, to avoid configuration hassles with fseeko.
80656         Don't bother opening SHELLS_FILE if shellstream is NULL;
80657         it's not necessary.
80658
80659 2000-11-05  Jim Meyering  <meyering@lucent.com>
80660
80661         * lib/makepath.h (make_dir): Declare.
80662         * lib/makepath.c (make_dir): Remove `static' attribute.
80663         Tweak a comment.
80664
80665 2000-11-04  Jim Meyering  <meyering@lucent.com>
80666
80667         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80668
80669 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80670
80671         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80672         last one in a bucket, advance to the next bucket.
80673
80674 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80675
80676         * lib/fnmatch.c: Do not comment out all the code if we are using
80677         the GNU C library, because in some cases we are replacing buggy
80678         code in the GNU C library itself.
80679
80680 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80681
80682         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80683         (regex_compile): Catch bogus \(\1\).
80684
80685 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80686
80687         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80688         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80689         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80690
80691 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80692
80693         * lib/error.h, getline.h, modechange.h:
80694         Remove "2000" from Copyright line, as the file hasn't been
80695         changed this year other than in the copyright notice.
80696
80697         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80698         was changed this year.
80699
80700 2000-10-29  Jim Meyering  <meyering@lucent.com>
80701
80702         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80703         renaming.
80704         * m4/ls-mntd-fs.m4: Likewise
80705
80706 2000-10-29  Jim Meyering  <meyering@lucent.com>
80707
80708         * lib/xstat.in: Fix grammar in comment.
80709
80710 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80711
80712         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80713         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80714         doesn't define __restrict_arr.
80715
80716 2000-10-28  Jim Meyering  <meyering@lucent.com>
80717
80718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80719         (jm_PREREQ_MEMCHR): New function.
80720
80721 2000-10-28  Jim Meyering  <meyering@lucent.com>
80722
80723         * lib/memchr.c: Update from libc.
80724         Adjust for portability:
80725         [HAVE_STDLIB_H]: Include stdlib.h.
80726         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80727         Undef __memchr, too.
80728         [!weak_alias]: Define __memchr to memchr.
80729
80730         * lib/regex.c: Update from libc.
80731         * lib/regex.h: Likewise.
80732         * lib/getopt1.c: Likewise.
80733         * lib/memcmp.c: Likewise.
80734
80735         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80736         Avoid using fseek, when possible -- it's broken by design.
80737         Patch by Ulrich Drepper.
80738
80739 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80740
80741         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80742         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80743         Giving in to popular pressure to shut up the compiler with casts.
80744
80745 2000-10-26  Jim Meyering  <meyering@lucent.com>
80746
80747         * lib/strftime.c: Update from libc.
80748
80749 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80750
80751         * regex.c: More `unsigned char' -> `re_char' changes.
80752         Also change several `int' into `re_wchar_t'.
80753         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80754         (PUSH_FAILURE_POINTER): Don't cast any more.
80755         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80756         We want GCC to complain, since this piece of code makes
80757         re_match non-reentrant, which *should* be fixed.
80758         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80759         (EXTEND_BUFFER): Use RETALLOC.
80760         (SET_LIST_BIT): Don't cast.
80761         (re_wchar_t): New type.
80762         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80763         that those two functions will always properly return.
80764         (IMMEDIATE_QUIT_CHECK): Cast to void.
80765         (analyse_first): Use recursion rather than an explicit stack.
80766         (re_compile_fastmap): Can't fail anymore.
80767         (re_search_2): Don't check re_compile_fastmap for failure.
80768         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80769         Now also sets the new value (passed in a new argument).
80770         (re_match_2_internal): Use it.
80771         Also, use a new var `reg' of type size_t when looping through regs
80772         rather than reuse the inappropriate `mcnt'.
80773
80774 2000-10-25  Jim Meyering  <meyering@lucent.com>
80775
80776         * lib/obstack.c: Update from libc.
80777
80778 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80779
80780         * regex.c (regex_compile): Change the way of handling a range from
80781         a char less than 256 to a char not less than 256.
80782
80783 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80784
80785         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80786         NT-Emacs only.
80787         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80788         so that re_search functions only quit when callers expect them to.
80789
80790 2000-10-23  Jim Meyering  <meyering@lucent.com>
80791
80792         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80793         wrong.  That set_locale call must not have any side effects.
80794         From Paul Eggert.
80795
80796 2000-10-22  Jim Meyering  <meyering@lucent.com>
80797
80798         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80799         [CYCLIC]: Remove now-unused definition.
80800
80801         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80802         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80803         Suggestion from Ulrich Drepper.
80804
80805 2000-10-21  Jim Meyering  <meyering@lucent.com>
80806
80807         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80808         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80810
80811 2000-10-21  Jim Meyering  <meyering@lucent.com>
80812
80813         * lib/dirname.c (memrchr): Declare if necessary.
80814         (dir_name): Remove the restriction that there be no
80815         trailing slashes.  Now, this code skips past them, effectively
80816         ignoring them.
80817         [TEST_DIRNAME] (main): New unit tests.
80818
80819         * lib/memrchr.c: New file from GNU libc.
80820         Undef __memrchr, too.
80821         [!weak_alias]: Define __memrchr to memrchr.
80822         Guard weak_alias use with `#ifdef weak_alias'.
80823
80824 2000-10-21  Jim Meyering  <meyering@lucent.com>
80825
80826         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80827         (dir_name): Use dir_name_r.
80828         * lib/dirname.h (dir_name_r): Declare it.
80829
80830 2000-10-17  Jim Meyering  <meyering@lucent.com>
80831
80832         * lib/quote.h (PARAMS): Define and use.
80833         Reported by Akim Demaille.
80834
80835         * lib/getopt.c: Update from libc.
80836
80837 2000-10-16  Jim Meyering  <meyering@lucent.com>
80838
80839         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80840         setlocale.
80841         From Jan Fedak.
80842
80843 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80844
80845         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80846
80847 2000-09-25  Jim Meyering  <meyering@lucent.com>
80848
80849         * lib/md5.h (rol): Define (from GnuPG).
80850
80851         * lib/sha.c: Give credit (GnuPG) where due.
80852         (M): Use rol rather than open-coding it.
80853         Add a FIXME comment.
80854
80855 2000-09-21  Jim Meyering  <meyering@lucent.com>
80856
80857         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80858         Reported by Michael Stone.
80859
80860 2000-09-20  Jim Meyering  <meyering@lucent.com>
80861
80862         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80863         (noinst_HEADERS): Add sha.h.
80864         Based on code from Scott G. Miller and from GnuPG.
80865
80866 2000-09-18  Jim Meyering  <meyering@lucent.com>
80867
80868         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80869         LIBS. Otherwise, everyone ends up linking with -lelf for some
80870         configurations.
80871         Reported by Mike Stone.
80872
80873 2000-09-15  Jim Meyering  <meyering@lucent.com>
80874
80875         * lib/regex.c: Update from libc.
80876
80877 2000-09-10  Jim Meyering  <meyering@lucent.com>
80878
80879         * lib/getopt.c (_getopt_internal): Update from glibc.
80880
80881 2000-09-09  Jim Meyering  <meyering@lucent.com>
80882
80883         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80884         think it should be used as a general replacement for isascii.
80885         * lib/fnmatch.c: Likewise.
80886         * lib/mbswidth.c: Likewise
80887         * lib/regex.c: Likewise.
80888
80889         Don't use atoi.
80890         * lib/userspec.c: Include sys/param.h and limits.h.
80891         Include xstrtol.h.
80892         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80893         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80894         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80895         UID, GID.  Check range.
80896
80897 2000-09-06  Jim Meyering  <meyering@lucent.com>
80898
80899         * lib/getopt.c (_getopt_internal): Update from glibc.
80900
80901 2000-08-30  Jim Meyering  <meyering@lucent.com>
80902
80903         * lib/strftime.c: Merge in changes from GNU libc.
80904
80905 2000-08-26  Jim Meyering  <meyering@lucent.com>
80906
80907         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80908         * m4/fpending.m4: New file.
80909
80910 2000-08-26  Jim Meyering  <meyering@lucent.com>
80911
80912         * lib/closeout.c: Include "__fpending.h".
80913         (close_stdout_status): Return right away if there's nothing to flush.
80914
80915         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80916         * lib/__fpending.c: New file.
80917         * lib/__fpending.h: New file.
80918
80919 2000-08-20  Jim Meyering  <meyering@lucent.com>
80920
80921         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80922         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80923         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80924
80925 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80926
80927         Improve fileutils installation on systems where running
80928         programs (like install) can't be unlinked.
80929         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80930         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80931
80932 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80933
80934         Standardize on "memory exhausted" instead of "Memory exhausted"
80935         or "virtual memory exhausted".
80936         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80937         "virtual memory exhausted".
80938         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80939         our own message.
80940         * lib/userspec.c (parse_user_spec): Likewise.
80941         * lib/bumpalloc.h: comment fix
80942         * lib/same.c, userspec.c: Include xalloc.h.
80943
80944         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80945         not char *const and pointing to a constant array.
80946         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80947         (xrealloc): Comment fix.
80948
80949         * lib/userspec.c (parse_user_spec):
80950         Don't translate a message until just before returning,
80951         to avoid unnecessary translation.
80952
80953 2000-08-07  Jim Meyering  <meyering@lucent.com>
80954
80955         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80956         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80957         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80958         getgroups.c, gethostname.c, getopt.h, group-member.c,
80959         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80960         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80961         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80962         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80963         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80964         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80965         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80966         yesno.c: Back out Copyright date changes for each file with no change
80967         this year.  This eases coordination with other programs using the same
80968         source code modules.  From Paul Eggert.
80969
80970 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80971
80972         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80973         not char, for compatibility with glibc 2.1.3 strftime.c.
80974
80975 2000-08-03  Greg McGary  <greg@mcgary.org>
80976
80977         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80978         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80979         (EXTEND_BUFFER): Use them.
80980
80981 2000-08-01  Jim Meyering  <meyering@lucent.com>
80982
80983         * lib/dirname.c (ISSLASH): Define.
80984         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80985         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80986         both `\' and `/' may be use as path separators.
80987         Based on a patch from Prashant TR.
80988
80989 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80990
80991         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80992         slot vector a constant, since it might get modified.
80993
80994 2000-07-31  Jim Meyering  <meyering@lucent.com>
80995
80996         * lib/xmalloc.c: Use `virtual memory exhausted', not
80997         `Memory exhausted'.
80998         * lib/obstack.c (print_and_abort): Likewise.
80999
81000 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81001
81002         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81003         buffer, so that the caller can always quote one small
81004         component of a "memory exhausted" message in slot 0.
81005         From a suggestion by Jim Meyering.
81006
81007 2000-07-30  Jim Meyering  <meyering@lucent.com>
81008
81009         * lib/makepath.c (make_path): Quote the other instance, too.
81010
81011         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81012         (STATIC_BUF_SIZE): Define.
81013         (quotearg_n_options): Use only statically allocated storage when
81014         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81015         than STATIC_BUF_SIZE.
81016
81017 2000-07-29  Jim Meyering  <meyering@lucent.com>
81018
81019         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81020         * lib/dirname.c (dir_name): Likewise.
81021
81022         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81023         `/'.
81024
81025         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81026         (dir_name): Assert that there are no trailing slashes.
81027
81028 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81029
81030         * lib/mbswidth.h (mbswidth): Add a flags argument.
81031         (mbswidth): New declaration.
81032         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81033         * lib/mbswidth.c (mbswidth): Add a flags argument.
81034         (mbsnwidth): New function.
81035
81036 2000-07-24  Jim Meyering  <meyering@lucent.com>
81037
81038         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81039
81040 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81041
81042         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81043
81044 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81045
81046         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81047         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81048         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81049         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81050         invoke multibyte primitives.
81051
81052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81053
81054         * lib/quotearg.c:
81055         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81056         so that mbstate_t is always defined.
81057
81058         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81059         be 1 in at least one GCC installation, and this configuration
81060         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81061         performance on hosts that have mbrtowc but have only unibyte
81062         locales, but I assume these hosts are rare.
81063
81064 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81065
81066         * lib/mbswidth.c (_XOPEN_SOURCE):
81067         Don't define; this causes problems on Solaris 7.
81068         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81069
81070 2000-07-23  Jim Meyering  <meyering@lucent.com>
81071
81072         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81073         too: getgrgid, getpwuid, getuid.
81074
81075 2000-07-23  Jim Meyering  <meyering@lucent.com>
81076
81077         * lib/basename.c (base_name): Add an assertion.
81078
81079 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81080
81081         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81082         shadow its mbsinit function.
81083
81084 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81085
81086         * lib/mbswidth.h: New file.
81087         * lib/mbswidth.c: New file.
81088         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81089         (noinst_HEADERS): Add mbswidth.h.
81090
81091 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81092
81093         * lib/config.charset: Add support for FreeBSD. Improve support for
81094         HP-UX and IRIX 6.
81095
81096 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81097
81098         * m4/mbswidth.m4: New file.
81099         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81100
81101 2000-07-15  Jim Meyering  <meyering@lucent.com>
81102
81103         * lib/makepath.c: Include quote.h.
81104         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81105         corresponding argument in a `quote (...)' call.
81106         Give better diagnostics.
81107
81108         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81109         (noinst_HEADERS): Add quote.h.
81110
81111         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81112         from tar's src/misc.c.
81113         * lib/quote.h: New file.  Prototypes for same.
81114
81115 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81116
81117         From a suggestion by Bruno Haible.
81118         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81119         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81120         to decide whether to define the BeOS workaround macro;
81121         this adjusts to the change to AC_MBSTATE_T.
81122
81123 2000-07-14  Jim Meyering  <meyering@lucent.com>
81124
81125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81126         jm_AC_TYPE_UINTMAX_T.
81127
81128 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81129
81130         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81131
81132         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81133         quotearg_buffer_restyled): Add support for
81134         clocale_quoting_style.  Undo previous change to
81135         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81136         and "{RIGHT QUOTATION MARK}" msgids.
81137
81138 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81139
81140         From a suggestion by Bruno Haible.
81141         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81142         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81143         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81144         and mbstate_t, to a single-part test that simply defines mbstate_t.
81145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81146         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81147
81148 2000-07-10  Jim Meyering  <meyering@lucent.com>
81149
81150         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81151
81152         * m4/gnu-source.m4: Output to confdefs.h directly.
81153         Suggestion from Akim Demaille.
81154
81155 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81156
81157         The old behavior of quoting `like this' doesn't look good with
81158         newer, ISO-style fonts.  See:
81159         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81160
81161         Instead, quote "like this" by default.  Let the translator
81162         tailor the locale-specific quoting behavior by providing
81163         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81164
81165         * lib/quotearg.c (N_): New macro.
81166         (gettext_default): New function.
81167         (quotearg_buffer_restyled): Use
81168         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81169         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81170
81171 2000-07-09  Jim Meyering  <meyering@lucent.com>
81172
81173         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81174         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81175
81176         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81178
81179 2000-07-09  Jim Meyering  <meyering@lucent.com>
81180
81181         * lib/Most files: Update copyright dates to include 2000.
81182
81183 2000-07-08  Jim Meyering  <meyering@lucent.com>
81184
81185         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81186         if not defined.
81187         (xgethostname): Remove now-unnecessary #ifdef.
81188         Move declaration of `err' into loop where it's used.
81189
81190 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81191         and Bruno Haible  <haible@clisp.cons.org>
81192
81193         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81194         only if the test for an object-type mbstate_t fails.  This
81195         prevents us from mistakenly reporting that mbstate_t is a
81196         system object type after we "#define mbstate_t int" to work
81197         around its lack.
81198
81199 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81200         and Bruno Haible  <haible@clisp.cons.org>
81201
81202         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81203
81204 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81205
81206         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81207         to strerror_r.
81208         Include <ctype.h> for use of isalpha.
81209
81210 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81211
81212         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81213         by allocating a larger buffer. Test the gethostname return value for
81214         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81215         returns an error and ENAMETOOLONG isn't defined.
81216
81217 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81218
81219         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81220         dimension.
81221
81222 2000-07-04  Jim Meyering  <meyering@lucent.com>
81223
81224         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81225         of the deprecated AC_CHECKING.
81226
81227 2000-07-04  Jim Meyering  <meyering@lucent.com>
81228
81229         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81230         Reported by Bruno Haible.
81231
81232 2000-07-04  Jim Meyering  <meyering@lucent.com>
81233
81234         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81235         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81236         lacks mbrtowc.
81237
81238 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81239
81240         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81241         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81242
81243 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81244         and Bruno Haible  <haible@clisp.cons.org>
81245
81246         * lib/quotearg.c (mbrtowc):
81247         Assign to *pwc, and return 1 only if result is nonzero.
81248         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81249
81250 2000-07-03  Jim Meyering  <meyering@lucent.com>
81251
81252         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81253
81254 2000-07-03  Jim Meyering  <meyering@lucent.com>
81255
81256         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81257         This is necessary to get a definition of e.g., UTMP_FILE on
81258         HP-UX 10.20.
81259         From Bob Proulx.
81260
81261 2000-07-02  Jim Meyering  <meyering@lucent.com>
81262
81263         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81264
81265         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81266         AC_LIBOBJ(function_name).
81267         * m4/chown.m4: Likewise.
81268         * m4/fnmatch.m4: Likewise.
81269         * m4/ftruncate.m4: Likewise.
81270         * m4/getgroups.m4: Likewise.
81271         * m4/getline.m4: Likewise.
81272         * m4/group-member.m4: Likewise.
81273         * m4/jm-macros.m4: Likewise.
81274         * m4/lstat.m4: Likewise.
81275         * m4/malloc.m4: Likewise.
81276         * m4/memcmp.m4: Likewise.
81277         * m4/nanosleep.m4: Likewise.
81278         * m4/putenv.m4: Likewise.
81279         * m4/realloc.m4: Likewise.
81280         * m4/regex.m4: Likewise.
81281         * m4/stat.m4: Likewise.
81282         * m4/strftime.m4: Likewise.
81283
81284 2000-07-02  Jim Meyering  <meyering@lucent.com>
81285
81286         * lib/quotearg.c (mbstate_t): Don't define here.
81287
81288 2000-07-02  Jim Meyering  <meyering@lucent.com>
81289
81290         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81291
81292 2000-07-01  Jim Meyering  <meyering@lucent.com>
81293
81294         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81295
81296 2000-07-01  Jim Meyering  <meyering@lucent.com>
81297
81298         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81299         problem.
81300
81301 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81302
81303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81304         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81305
81306 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81307
81308         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81309         per change in ../m4/ls-mntd-fs.m4.
81310         (read_filesystem_list): Ignore symbolic links.
81311
81312 2000-06-29  Jim Meyering  <meyering@lucent.com>
81313
81314         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81315         for declaration of strcmp.
81316
81317         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81318
81319         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81320         Avoid warning by casting result to `char *' to remove `const'.
81321
81322 2000-06-28  Jim Meyering  <meyering@lucent.com>
81323
81324         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81325         included by quotearg.c, for which we perform this test.  From
81326         Bruno Haible.
81327
81328 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81329
81330         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81332         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81333
81334 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81335
81336         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81337
81338 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81339
81340         savedir now sets errno on failure and invokes xmalloc to get memory.
81341         Fix a couple of other minor bugs while we're at it.
81342
81343         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81344         (NAMLEN): Remove macro.
81345         (malloc, realloc): Remove decls.
81346         (stpcpy): Likewise.
81347         ("xalloc.h"): Include.
81348         (NAME_SIZE_DEFAULT): New macro.
81349         (savedir): Use xmalloc / xrealloc to allocate memory.
81350         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81351         Skip "" directory entries.
81352         Use strlen to calculate directory entry length, since the old method
81353         is rarely used these days and isn't worth supporting.
81354         Don't use a pointer after freeing it.
81355         Check for integer overflow when calculating allocation size.
81356         Use memcpy to copy entries, instead of stpcpy.
81357         Set errno properly when returning NULL.
81358         Check for readdir error.
81359
81360 2000-06-26  Jim Meyering  <meyering@lucent.com>
81361
81362         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81363
81364 2000-06-25  Jim Meyering  <meyering@lucent.com>
81365
81366         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81367         Linux header bug when _XOPEN_SOURCE is defined to 500.
81368
81369 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81370
81371         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81372         deficiency.
81373
81374 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81375
81376         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81377         Include xalloc.h.
81378         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81379
81380 2000-06-24  Jim Meyering  <meyering@lucent.com>
81381
81382         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81383         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81384         for which strerror does return char*, but which lacks a conveniently
81385         accessible declaration of the function.  If the compile-test says
81386         strerror_r doesn't work, then resort to a `run'-test that works on
81387         BeOS and segfaults on DEC Unix.
81388
81389 2000-06-24  Jim Meyering  <meyering@lucent.com>
81390
81391         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81392
81393 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81394
81395         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81397
81398 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81399
81400         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81401         (mbrtowc, mbstate_t): Define substitutes if
81402         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81403         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81404         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81405
81406 2000-06-23  Jim Meyering  <meyering@lucent.com>
81407
81408         * m4/afs.m4: Add missing AC_MSG_RESULT.
81409         Reported by Bruno Haible.
81410
81411         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81412         Suggestion from Bruno Haible.
81413
81414 2000-06-23  Jim Meyering  <meyering@lucent.com>
81415
81416         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81417
81418 2000-06-21  Jim Meyering  <meyering@lucent.com>
81419
81420         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81421
81422 2000-06-21  Jim Meyering  <meyering@lucent.com>
81423
81424         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81425         (noinst_HEADERS): Add getstr.h.
81426
81427         * lib/getline.c (getstr): Move into a separate file.
81428         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81429         the following changes: new parameter, delim2; both delim[12]
81430         parameters have type `int', not `char'.  The latter would lose
81431         with 8-bit delimiters.
81432         * lib/getstr.h: New file.
81433
81434 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81435
81436         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81437         than 1024, return a memory chunk of least possible size, instead
81438         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81439         Use free/xmalloc instead of xrealloc to avoid copying for very long
81440         paths.
81441
81442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81443
81444         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81445         the empty string.
81446
81447 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81448
81449         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81450         address, not strdup.  Include <stdlib.h> and don't declare free().
81451
81452 2000-06-19  Jim Meyering  <meyering@lucent.com>
81453
81454         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81455
81456 2000-06-18  Jim Meyering  <meyering@lucent.com>
81457
81458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81459
81460         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81461         `checking whether...' message to be consistent with that of the
81462         lstat test.
81463
81464 2000-06-18  Jim Meyering  <meyering@lucent.com>
81465
81466         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81467         Besides, these days every porting target provides a mkdir function.
81468
81469         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81470         needed. (this snippet comes from src/system.h).
81471
81472 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81473
81474         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81475
81476 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81477
81478         * lib/human.c (adjust_value): New function.
81479         (human_readable_inexact): Apply rounding style even when
81480         printing approximate values.
81481
81482 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81483
81484         * lib/human.c (human_readable_inexact): Allow an input block
81485         size that is not a multiple of the output block size, and vice versa.
81486         Reported by Piergiorgio Sartor.
81487
81488 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81489
81490         * lib/getdate.y (get_date): Apply relative times after time
81491         zone indicator, not before.  Reported by Todd A. Jacobs.
81492
81493 2000-06-13  Jim Meyering  <meyering@lucent.com>
81494
81495         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81496
81497         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81498
81499 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81500
81501         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81502
81503 2000-06-12  Jim Meyering  <meyering@lucent.com>
81504
81505         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81506         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81507         optional argument.
81508         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81509         the optional argument, `lib'.
81510
81511 2000-06-08  Jim Meyering  <meyering@lucent.com>
81512
81513         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81514
81515 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81516
81517         Rewrite largefile configuration so that we don't need to run
81518         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81519         AC_CANONICAL_HOST in configure.in -- jmm]
81520
81521         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81522         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81523         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81524         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81525         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81526         All uses changed.
81527         Instead of inspecting the output of getconf, try to compile the
81528         test program without and with the macro definition.
81529         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81530         for getconf.  Instead, check for the needed flags by compiling
81531         test programs.
81532
81533 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81534
81535         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81536
81537 2000-06-04  Jim Meyering  <meyering@lucent.com>
81538
81539         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81540         SunOS 4.1.4 for which gid_t is an unsigned type.
81541
81542 2000-06-03  Jim Meyering  <meyering@lucent.com>
81543
81544         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81545         now that autoconf requires that.
81546
81547         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81548         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81549         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81550
81551 2000-06-03  Jim Meyering  <meyering@lucent.com>
81552
81553         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81554
81555 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81556
81557         * m4/glibc21.m4: New file.
81558         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81559
81560 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81561
81562         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81563         newer, don't install charset.alias.
81564         * lib/config.charset: Change the Linux/glibc rules so they become empty
81565         on glibc-2.1 or newer.
81566
81567 2000-06-02  Jim Meyering  <meyering@lucent.com>
81568
81569         * lib/mountlist.c: Back out last change.  Instead, do this...
81570         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81571         me_dummy member using the same `ignore'-testing code.
81572         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81573         fs_type strings.
81574         From Mark D. Roth.
81575
81576 2000-05-29  Jim Meyering  <meyering@lucent.com>
81577
81578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81579         mounts with the `ignore' attribute.  Based on a patch from
81580         Mark D. Roth.
81581
81582 2000-05-28  Jim Meyering  <meyering@lucent.com>
81583
81584         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81585         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81586         * m4/stat.m4: Likewise.
81587         * m4/lstat.m4: Likewise.
81588         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81589
81590         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81591         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81592
81593 2000-05-26  Jim Meyering  <meyering@lucent.com>
81594
81595         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81596
81597 2000-05-24  Jim Meyering  <meyering@lucent.com>
81598
81599         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81600         autoconf requires that.
81601         * m4/lib-check.m4: Likewise.
81602         * m4/jm-macros.m4: Likewise.
81603         * m4/strftime.m4: Likewise.
81604
81605         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81606         AC_CHECK_DECLS, now that autoconf requires that.
81607
81608 2000-05-22  Jim Meyering  <meyering@lucent.com>
81609
81610         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81611         * m4/lstat.m4: Likewise.
81612
81613 2000-05-22  Jim Meyering  <meyering@lucent.com>
81614
81615         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81616
81617 2000-05-20  Jim Meyering  <meyering@lucent.com>
81618
81619         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81620         (jm_PREREQ): Use it.
81621
81622 2000-05-18  Jim Meyering  <meyering@lucent.com>
81623
81624         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81625         back, too, since it may have been modified by allocate_entry.
81626         (hash_delete): Rewrite to use neither the assignment operator
81627         nor the comma operator in an if-expression.
81628
81629 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81630
81631         * lib/closeout.c:
81632         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81633         Remove; no longer needed.
81634         "quotearg.h": Add include.
81635         (file_name): Do not bother to explicitly initialize to NULL; it's less
81636         efficient on some hosts.
81637         (close_stdout_status): Remove test as to whether stdout was already
81638         closed; it breaks for the case "echo x | sort >&-".
81639         Quote file name colons.
81640         Do not assume that _("write error") lacks format strings.
81641
81642 2000-05-15  Jim Meyering  <meyering@lucent.com>
81643
81644         * lib/version-etc.c (version_etc_copyright): Update the copyright
81645         string used in all --version output.
81646
81647 2000-05-14  Jim Meyering  <meyering@lucent.com>
81648
81649         * lib/closeout.c (close_stdout_set_file_name): New function.
81650         (close_stdout_status): Use new file-scoped global.
81651         Return right away if fstat says the stdout file descriptor is invalid.
81652         * lib/closeout.h (close_stdout_set_file_name): Declare.
81653
81654 2000-05-10  Jim Meyering  <meyering@lucent.com>
81655
81656         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81657         (close_stdout_set_status): New function.
81658         * lib/closeout.h (close_stdout_set_status): Declare.
81659
81660 2000-05-09  Jim Meyering  <meyering@lucent.com>
81661
81662         * m4/gettext.m4: Rename this...
81663         * m4/libintl.m4: ...to this.
81664
81665 2000-05-08  Jim Meyering  <meyering@lucent.com>
81666
81667         * lib/long-options.c: Don't include closeout.h.
81668         (parse_long_options): Don't call close_stdout for --version.
81669
81670 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81671
81672         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81673         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81674         2.1.3 bug.  This avoids a clash when files like regex.c define
81675         _GNU_SOURCE.
81676
81677 2000-05-06  Jim Meyering  <meyering@lucent.com>
81678
81679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81680         (AC_REPLACE_FUNCS): Add strnlen.
81681
81682         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81683         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81684
81685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81686         AC_SEARCH_LIBS call for nanosleep.
81687         (LIB_NANOSLEEP): Set and AC_SUBST.
81688
81689 2000-05-06  Jim Meyering  <meyering@lucent.com>
81690
81691         * lib/strnlen.c: Undefine __strnlen and strnlen.
81692         [!weak_alias]: Define __strnlen to strnlen.
81693
81694         * lib/atexit.c: New file, from libiberty.
81695
81696 2000-05-06  Jim Meyering  <meyering@lucent.com>
81697
81698         * lib/closeout.c (close_stdout_status): Also check for errors on the
81699         stderr stream.
81700
81701 2000-05-05  Jim Meyering  <meyering@lucent.com>
81702
81703         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81704         AC_SEARCH_LIBS call for clock_gettime.
81705         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81706
81707         * m4/search-libs.m4: Update from autoconf.
81708
81709         su doesn't work on Solaris 2.6.
81710         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81711         <shadow.h>.  Reported by Dragos Harabor.
81712
81713 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81714
81715         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81716         memcpy instead of xmalloc, xrealloc, path_concat.
81717         (locale_charset): Treat empty environment variables as absent.
81718         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81719
81720 2000-05-04  Jim Meyering  <meyering@lucent.com>
81721
81722         * lib/getopt.c: Update from glibc.
81723         * lib/obstack.c: Likewise.
81724         * lib/obstack.h: Likewise.
81725         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81726         file
81727
81728         * lib/regex.h: Likewise.
81729         * lib/strndup.c: Likewise.
81730         * lib/strnlen.c: New file, from glibc.
81731
81732 2000-05-03  Jim Meyering  <meyering@lucent.com>
81733
81734         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81735
81736 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81737
81738         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81739         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81740         compile-time test, rather than inspecting host and OS, to
81741         decide whether to define _LARGEFILE_SOURCE.
81742
81743 2000-05-01  Jim Meyering  <meyering@lucent.com>
81744
81745         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81746
81747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81748         Based on a patch from Bruno Haible.
81749
81750 2000-05-01  Jim Meyering  <meyering@lucent.com>
81751
81752         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81753
81754 2000-04-29  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/path-concat.c: Declare strdup only if it's not defined.
81757         * lib/canon-host.c: Likewise.
81758
81759 2000-04-28  Jim Meyering  <meyering@lucent.com>
81760
81761         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81762         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81763         is included first, then limits.h is included by locale.h by libintl.h.
81764         From John David Anglin.
81765
81766 2000-04-25  Jim Meyering  <meyering@lucent.com>
81767
81768         * lib/makepath.c (S_IRWXUGO): Define.
81769         (make_path): Always perform explicit chmod if MODE specifies any
81770         of the `special' permission bits.  Prompted by a bug report against
81771         install from Mate Wierdl and Joost van Baal.
81772
81773 2000-04-18  Jim Meyering  <meyering@lucent.com>
81774
81775         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81776         (jm_PREREQ): Use it.
81777
81778 2000-04-18  Jim Meyering  <meyering@lucent.com>
81779
81780         * lib/README: New file.
81781
81782         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81783         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81784
81785 2000-04-17  Jim Meyering  <meyering@lucent.com>
81786
81787         Get it right :-)
81788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81789         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81790         Suggestion from Akim Demaille.
81791
81792 2000-04-17  Jim Meyering  <meyering@lucent.com>
81793
81794         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81795         the definition of it to rpl_strftime also defined-away the system's
81796         declaration.
81797
81798 2000-04-15  Jim Meyering  <meyering@lucent.com>
81799
81800         Use `C' to denote so-called `contiguous' files, the same way
81801         that tar does.
81802         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81803         (ftypelet): Use S_ISCTG.
81804         From Michael Deutschmann.
81805
81806 2000-04-14  Jim Meyering  <meyering@lucent.com>
81807
81808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81809         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81810         clobbered.
81811
81812 2000-04-14  Jim Meyering  <meyering@lucent.com>
81813
81814         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81815
81816 2000-04-13  Jim Meyering  <meyering@lucent.com>
81817
81818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81819         AH_VERBATIM to insert required #ifndef into config.h.in.
81820         Suggestion from Akim Demaille.
81821
81822 2000-04-12  Jim Meyering  <meyering@lucent.com>
81823
81824         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81825         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81826         Christian Krackowizer.
81827
81828         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81829         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81830         (AC_SYS_LARGEFILE): Require.
81831         (AM_C_PROTOTYPES): Require.
81832
81833 2000-04-08  Jim Meyering  <meyering@lucent.com>
81834
81835         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81836         names don't conflict.  Reported by Eli Zaretskii.
81837
81838 2000-04-07  Jim Meyering  <meyering@lucent.com>
81839
81840         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81841         sys/types.h, to work around system header problems on AIX 3.2.5.
81842         From Bruno Haible.
81843
81844 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81845
81846         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81847         bug.  Deal with the different error behavior of Irix iconv.
81848
81849 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81850
81851         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81852         IRIX if the installer said otherwise.
81853
81854 2000-04-05  Jim Meyering  <meyering@lucent.com>
81855
81856         Portability tweaks required for ultrix4.3.
81857         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81858         (jm_CHECK_DECLS): Add getutent to the list of functions.
81859         (_jm_DECL_HEADERS): Add utmpx.h.
81860         From John David Anglin.
81861
81862         * m4/strftime.m4: Back out the 2000-04-02 change.
81863         Instead of that change, simply undefine putenv in the test program.
81864
81865 2000-04-05  Jim Meyering  <meyering@lucent.com>
81866
81867         Portability tweaks required for ultrix4.3.
81868         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81869         getutent.
81870         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81871         * lib/canon-host.c: Declare strdup.
81872         * lib/path-concat.c: Likewise.
81873         From John David Anglin.
81874
81875 2000-04-04  Jim Meyering  <meyering@lucent.com>
81876
81877         Be more DOS 8.3-friendly.
81878         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81879         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81880         * lib/Makefile.am: Reflect renaming.
81881         Reported by Eli Zaretskii.
81882
81883         Use a temporary file name that won't clash with `charset.alias'
81884         in the DOS 8.3 name space.
81885         * lib/Makefile.am (charset_tmp): Define.
81886         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81887         (uninstall-local): Likewise.
81888         Reported by Eli Zaretskii.
81889
81890 2000-04-03  Jim Meyering  <meyering@lucent.com>
81891
81892         * m4/gettext.m4: Fix typo in comment.
81893
81894         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81895         textutils/configure.in).  Suggestion from Paul Eggert.
81896         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81897
81898 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81899
81900         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81901         variable in the shell rather than using putenv, which isn't
81902         portable.  This avoids the configure-time inter-test dependency
81903         on the potentially-renamed putenv function.
81904
81905 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81906
81907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81908         before checking struct stat.st_blksize, so that
81909         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81910
81911 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81912
81913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81914         since strftime.c uses HAVE_STRFTIME to decide whether to use
81915         the underlying strftime.
81916
81917 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81918
81919         * lib/time/strftime.c (my_strftime): Make sure we call the system
81920         strftime, not ourselves, when invoking the underlying strftime.
81921
81922 2000-03-24  Jim Meyering  <meyering@lucent.com>
81923
81924         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81925         (charset_alias): Define.
81926         (install-exec-local): Factor out common code.
81927         (uninstall-local): Split lines longer than 80.
81928         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81929         (SUFFIXES): Define.
81930         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81931         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81932
81933 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81934
81935         * lib/config.charset: Output a line containing "Packages using this
81936         file".
81937         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81938         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81939         ref-del.sed): New rules.
81940
81941 2000-03-17  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81944         Otherwise, include <strings.h>
81945
81946 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81947
81948         * lib/unicodeio.c (utf8_wctomb): New function.
81949         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81950         format instead of in UCS-4 with platform dependent endianness.
81951
81952 2000-03-10  Jim Meyering  <meyering@lucent.com>
81953
81954         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81955         From Marco Franzen.
81956
81957 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81958
81959         * lib/savedir.c (savedir): Work even if directory size is
81960         negative; this can happen with some screwy NFS configurations.
81961
81962 2000-03-06  Jim Meyering  <meyering@lucent.com>
81963
81964         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81965         if it's NULL (because we ran out of memory).  From Bruno Haible.
81966
81967 2000-03-05  Jim Meyering  <meyering@lucent.com>
81968
81969         * lib/localcharset.c ("path-concat.h"): Include.
81970         (get_charset_aliases): Use path_concat instead of ANSI string
81971         concatenation.
81972
81973         * lib/unicodeio.h (PARAMS): Define.
81974         Use it to guard prototype.
81975
81976 2000-03-04  Jim Meyering  <meyering@lucent.com>
81977
81978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81979         for lib/localcharset.c.
81980
81981 2000-03-04  Jim Meyering  <meyering@lucent.com>
81982
81983         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81984         installing into it.
81985         (uninstall-local): Uncomment this rule so `make distcheck' works
81986         once again.
81987
81988         * lib/unicodeio.c (<errno.h>): Include it.
81989         (errno): Declare if not defined.
81990
81991         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81992
81993         * lib/config.charset: New version, incorporating remarks from a linux
81994         i18n mailing list.  From Bruno Haible.
81995
81996 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81997
81998         * m4/codeset.m4: New file.
81999         * m4/iconv.m4: New file.
82000         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82001
82002 2000-03-03  Jim Meyering  <meyering@lucent.com>
82003
82004         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82005
82006 2000-03-02  Jim Meyering  <meyering@lucent.com>
82007
82008         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82009         the messages come out on separate lines.
82010
82011         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82012         rather than jm_CHECK_DECLARATIONS.
82013         * m4/decl.m4: Remove now-unused file.
82014
82015         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82016         geteuid.
82017
82018 2000-03-02  Jim Meyering  <meyering@lucent.com>
82019
82020         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82021
82022 2000-03-01  Jim Meyering  <meyering@lucent.com>
82023
82024         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82025         * lib/unicodeio.c: Likewise.
82026
82027 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82028
82029         * lib/config.charset: New file.
82030         * lib/localcharset.c: New file.
82031         * lib/unicodeio.h, lib/unicodeio.c: New files.
82032         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82033         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82034         (noinst_HEADERS): Add unicodeio.h.
82035         (all-local, install-exec-local, charset.alias): New targets.
82036
82037 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82038
82039         * lib/quotearg.c (ALERT_CHAR): New macro.
82040         (quotearg_buffer_restyled): Use it.
82041
82042 2000-02-27  Jim Meyering  <meyering@lucent.com>
82043
82044         * m4/check-decl.m4: Add getenv to the list.
82045
82046 2000-02-27  Jim Meyering  <meyering@lucent.com>
82047
82048         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82049         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82050
82051         * lib/backupfile.c: Guard inclusion of stdlib.h with
82052         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82053         Declare malloc if needed.
82054
82055         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82056         `#ifndef HAVE_DECL..'
82057         now that autoconf always defines the HAVE_DECL_ symbols.
82058         * lib/human.c: Likewise.
82059         * lib/same.c: Likewise.
82060         * lib/strtoumax.c: Likewise.
82061
82062         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82063         declaration check was not run.
82064         * lib/hash.c: Likewise.
82065         * lib/human.c: Likewise.
82066         * lib/same.c: Likewise.
82067         * lib/strtoumax.c: Likewise.
82068
82069         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82070         `.', then first look up the entire `.'-containing string as a login
82071         name.
82072
82073 2000-02-23  Jim Meyering  <meyering@lucent.com>
82074
82075         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82076         in place of my hack.
82077
82078 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82079
82080         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82081         (textint): New typedef.
82082         (parser_control): Member year changed from int to textint.
82083         All uses changed.
82084         (YYSTYPE): Removed; replaced by %union with int and textint members.
82085         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82086         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82087         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82088         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82089         (date, number, to_year): Use width of number in digits, not its value,
82090         to determine whether it's a 2-digit year, or a 2-digit time.
82091         (yylex): Store number of digits of numeric tokens.
82092         Reported by John Kendall.
82093
82094         (parser_control): Changed from struct parser_control to typedef (for
82095         consistency).  All uses changed.
82096
82097         (tID): Removed; not used.
82098         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82099
82100 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82101
82102         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82103         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82104
82105 2000-02-12  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/userspec.c (ISDIGIT): Define it.
82108         (isdigit): Remove definition.
82109         (is_number): Use ISDIGIT, not isdigit.
82110         <libintl.h>: Include.
82111         (_ and N_): Define.
82112         (parse_user_spec): Mark translatable strings.
82113
82114 2000-02-10  Jim Meyering  <meyering@lucent.com>
82115
82116         With these changes, nanosleep.[ch] are finally enough like the other
82117         lib/* replacement files to compile on a few more losing systems.
82118
82119         * lib/nanosleep.h: Don't include config.h.
82120         Remove prototype from declaration of nanosleep.
82121         (PARAMS): Remove now-unneeded definition.
82122         * lib/nanosleep.c: #undef nanosleep.
82123         (rpl_nanosleep): Rename from nanosleep.
82124
82125 2000-02-10  Jim Meyering  <meyering@lucent.com>
82126
82127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82128         gnu_nanosleep to rpl_nanosleep.
82129
82130 2000-02-09  Jim Meyering  <meyering@lucent.com>
82131
82132         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82133         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82134
82135 2000-02-08  Akim Demaille  <akim@epita.fr>
82136
82137         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82138         `[' and `]' and remove uses of `changequote'.
82139         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82140         (AC_SYS_LARGEFILE): Likewise.
82141         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82142         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82143         of changequote.
82144         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82145         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82146         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82147         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82148
82149 2000-02-05  Jim Meyering  <meyering@lucent.com>
82150
82151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82152         Remove explicit use of AC_HEADER_TIME.  It is required by
82153         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82154         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82155         in autoconf whereby the expansion of the latter ended up preceding
82156         the expansion of its prerequisite, AC_HEADER_TIME.
82157         Reported by Volker Borchert.
82158
82159 2000-02-03  Jim Meyering  <meyering@lucent.com>
82160
82161         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82162
82163 2000-02-03  Jim Meyering  <meyering@lucent.com>
82164
82165         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82166         rather than with `#if HAVE_UTMPNAME'.
82167
82168 2000-02-02  Jim Meyering  <meyering@lucent.com>
82169
82170         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82171         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82172         Reported by Eli Zaretskii.
82173
82174 2000-02-01  Jim Meyering  <meyering@lucent.com>
82175
82176         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82177
82178 2000-01-31  Jim Meyering  <meyering@lucent.com>
82179
82180         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82181         functions.  Add the time.h and sys/time.h headers along with the
82182         AC_REQUIRE'ment of AC_HEADER_TIME.
82183
82184 2000-01-31  Jim Meyering  <meyering@lucent.com>
82185
82186         * lib/nanosleep.h (nanosleep): Guard declaration with
82187         `#if ! HAVE_DECL_NANOSLEEP'.
82188         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82189         the declaration in that vendor's sys/timers.h.
82190         Reported by Christian Krackowizer.
82191
82192         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82193         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82194         (ISPRINT): Likewise.
82195         Reported by Tom Tromey.
82196
82197 2000-01-30  Jim Meyering  <meyering@lucent.com>
82198
82199         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82200
82201         * m4/prereq.m4 (utmp_includes): Define.
82202         Check for ut_user and ut_name members in both struct utmpx
82203         and struct utmp.
82204
82205 2000-01-30  Jim Meyering  <meyering@lucent.com>
82206
82207         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82208         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82209         header files where only utmpx.ut_user is declared.
82210
82211         * lib/readutmp.h (UT_USER): Define.
82212
82213 2000-01-29  Jim Meyering  <meyering@lucent.com>
82214
82215         * m4/lib-check.m4: New file containing library-related checks from
82216         fileutils and sh-utils (textutils had none).
82217
82218 2000-01-28  Jim Meyering  <meyering@lucent.com>
82219
82220         * m4/perl.m4: Change format of warning message to look more like that
82221         from the missing script.  Suggestion from François Pinard.
82222
82223 2000-01-25  Jim Meyering  <meyering@lucent.com>
82224
82225         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82226         well as time.h in the compile check.
82227         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82228         Fix typo in cross-compiling case: s/yes/no/.
82229
82230 2000-01-23  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/jm-macros.m4: Move df-related tests here from
82233         fileutils/configure.in
82234
82235         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82236         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82237
82238         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82239         s/space/ac_fsusage_space/.
82240         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82241
82242         * m4/ftruncate.m4: New file (derived from part of
82243         fileutils/configure.in).
82244         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82245         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82246
82247         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82248         AC_SUBST these here, rather than just in sh-util/configure.in, so
82249         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82250         all the same.
82251         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82252         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82253         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82254         (AC_SUBST(POW_LIBM)): Likewise.
82255         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82256
82257 2000-01-23  Jim Meyering  <meyering@lucent.com>
82258
82259         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82260         obstack.c.
82261
82262 2000-01-22  Jim Meyering  <meyering@lucent.com>
82263
82264         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82265
82266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82267
82268         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82269         configure.in
82270         (AC_CHECK_HEADERS): Likewise for sh-utils.
82271         (AC_CHECK_HEADERS): Likewise for textutils.
82272         Merge the three lists of headers.
82273
82274         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82275         from fileutils' configure.in.
82276
82277         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82278         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82279         check-decl.m4.
82280
82281         * m4/check-decl.m4: Use #if rather than #ifdef.
82282         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82283         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82284         (_jm_DECL_HEADERS): Define new function.
82285         (jm_CHECK_DECLARATIONS): Require it.
82286
82287 2000-01-22  Jim Meyering  <meyering@lucent.com>
82288
82289         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82290         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82291         Required for some AIX systems.  Reported by Christian Krackowizer.
82292         [TESTING] (main): New function.
82293
82294         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82295         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82296         letters.
82297
82298         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82299         iswprint.
82300
82301         * lib/strverscmp.c (ISDIGIT): Define.
82302         (strverscmp): Use ISDIGIT, not isdigit.
82303
82304 2000-01-19  Jim Meyering  <meyering@lucent.com>
82305
82306         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82307         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82308         defines `struct timespec' in <sys/time.h>
82309
82310         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82311         Thanks to Akim for explaining.
82312
82313 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82314
82315         * lib/nanosleep.c (nanosleep):
82316         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82317         POSIX.1 doesn't require SA_INTERRUPT and some systems
82318         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82319         it's been part of POSIX.1 since day 1 (in 1988).
82320
82321 2000-01-17  Jim Meyering  <meyering@lucent.com>
82322
82323         * lib/interlock: Remove unused file.  Reported by François Pinard.
82324
82325 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82326
82327         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82328         alert, backslash, formfeed, and vertical tab unnecessarily in
82329         shell quoting style.
82330
82331 2000-01-16  Jim Meyering  <meyering@lucent.com>
82332
82333         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82334         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82335         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82336         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82337
82338 2000-01-16  Jim Meyering  <meyering@lucent.com>
82339
82340         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82341         because the latter didn't work.
82342
82343 2000-01-15  Jim Meyering  <meyering@lucent.com>
82344
82345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82346         (AC_REPLACE_FUNCS): Add memcpy and memset.
82347         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82348         Add strpbrk.
82349         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82350
82351 2000-01-12  Jim Meyering  <meyering@lucent.com>
82352
82353         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82354         (jm_PREREQ): Use it.
82355         (jm_PREREQ_READUTMP): New macro.
82356         (jm_PREREQ): Use it.
82357
82358 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82359
82360         Quote multibyte characters correctly.
82361         * m4/c-bs-a.m4: New file.
82362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82363         (jm_PREREQ): Use it.
82364
82365 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82366
82367         * m4/uintmax_t.m4: Port to autoconf 2.13.
82368
82369 2000-01-08  Jim Meyering  <meyering@ascend.com>
82370
82371         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82372         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82373
82374 2000-01-04  Jim Meyering  <meyering@ascend.com>
82375
82376         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82377         jm_STRUCT_DIRENT_D_TYPE.
82378         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82379         jm_STRUCT_DIRENT_D_INO.
82380         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82381         jm_STRUCT_UTIMBUF.
82382         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82383         renamings.
82384         * m4/utime.m4: Likewise.
82385
82386         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82387         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82388
82389 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82390
82391         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82392         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82393
82394 2000-01-02  Jim Meyering  <meyering@ascend.com>
82395
82396         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82397         remember if this is necessary.
82398
82399 1999-12-26  Jim Meyering  <meyering@ascend.com>
82400
82401         * m4/jm-macros.m4: Use it here.
82402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82403
82404 1999-12-23  Jim Meyering  <meyering@ascend.com>
82405
82406         * m4/jm-macros.m4: Check for clock_gettime (moved from
82407         fileutils/configure.in)
82408         Check for gettimeofday.
82409
82410 1999-12-20  Jim Meyering  <meyering@ascend.com>
82411
82412         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82413         autoconf-2.14a-1999-12-20.
82414
82415 1999-12-19  Jim Meyering  <meyering@ascend.com>
82416
82417         * m4/lstat-slash.m4: New file.
82418         * m4/jm-macros.m4: Use the new macro:
82419         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82420
82421 1999-12-07  Jim Meyering  <meyering@ascend.com>
82422
82423         * m4/perl.m4: Require that File::Compare be available, too.
82424         Too many systems seem to lack it.
82425
82426         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82427         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82428
82429 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82430
82431         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82432         problem with the QNX 4.25 shell, which doesn't propagate exit
82433         status of failed commands inside shell assignments.
82434
82435 1999-11-17  Jim Meyering  <meyering@ascend.com>
82436
82437         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82438
82439 1999-11-07  Jim Meyering  <meyering@ascend.com>
82440
82441         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82442
82443 1999-11-06  Jim Meyering  <meyering@ascend.com>
82444
82445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82446         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82447
82448 1999-11-05  Jim Meyering  <meyering@ascend.com>
82449
82450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82451         configure.in of textutils, fileutils, and sh-utils into this one
82452         (shared between those packages) file.
82453         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82454         AC_STRUCT_ST_BLKSIZE.
82455
82456 1999-11-03  Jim Meyering  <meyering@ascend.com>
82457
82458         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82459         of AC_CHECK_TYPE checks includes unistd.h.
82460         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82461         Suggestion from Akim Demaille.
82462
82463 1999-10-30  Jim Meyering  <meyering@ascend.com>
82464
82465         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82466         m4-quoted string.
82467         * m4/ls-mntd-fs.m4: Likewise.
82468         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82469         * m4/jm-winsz1.m4: Likewise.
82470
82471         * m4/const.m4: Remove file, since the fix made it into the experimental
82472         version of autoconf.
82473         * m4/mktime.m4: Likewise.
82474
82475         * m4/check-type.m4: Remove file, now that the latest version of
82476         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82477
82478         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82479         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82480         AC_CHECK_TYPE.
82481
82482 1999-10-04  Jim Meyering  <meyering@ascend.com>
82483
82484         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82485
82486 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82487
82488         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82489         2.95.1 bug with HP-UX 10.20.
82490
82491 1999-09-17  Jim Meyering  <meyering@ascend.com>
82492
82493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82494         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82495         due to missing strdup (against sh-utils-2.0).
82496
82497 1999-08-29  Jim Meyering  <meyering@ascend.com>
82498
82499         * m4/jm-macros.m4: Require jm_BISON.
82500         * m4/bison.m4: New file.
82501
82502 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82503
82504         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82505         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82506
82507 1999-08-05  Jim Meyering  <meyering@ascend.com>
82508
82509         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82510         to avoid conflicts with `conftest' on 8+3 filesystems.
82511         Suggestion from Eli Zaretskii.
82512
82513 1999-08-04  Jim Meyering  <meyering@ascend.com>
82514
82515         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82516         fileutils and sh-utils (textutils's getline test was inadequate).
82517         (AM_FUNC_GETLINE): Run this test.
82518         (AC_CHECK_FUNCS): Check for getdelim.
82519         Reported by Bob Proulx.
82520
82521 1999-08-02  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/jm-macros.m4: Add a comment.
82524
82525 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82526
82527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82528         <inttypes.h> defines strtoumax as a macro (and not as a
82529         function).
82530
82531 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82532
82533         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82534         that we can shift, multiply and divide unsigned long long
82535         values; Ultrix cc can't do it.
82536
82537 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82538
82539         * m4/mktime.m4: New file, which is a preview of what should appear
82540         in the next public autoconf release.
82541
82542 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82543
82544         * m4/lfs.m4: Remove this file.
82545         * m4/largefile.m4: New file.  It contains the old contents of
82546         lfs.m4, except that all names with prefix AC_LFS have been
82547         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82548         compatible with future autoconf versions.  Also, some minor m4
82549         quoting problems have been fixed.
82550
82551 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82552
82553         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82554         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82555         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82556         and simplify the shell code.
82557
82558 1999-08-01  Jim Meyering  <meyering@ascend.com>
82559
82560         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82561         m4.
82562
82563 1999-07-20  Jim Meyering  <meyering@ascend.com>
82564
82565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82566
82567 1999-07-15  Jim Meyering  <meyering@ascend.com>
82568
82569         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82570
82571 1999-05-22  Jim Meyering  <meyering@ascend.com>
82572
82573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82574
82575 1999-05-20  Jim Meyering  <meyering@ascend.com>
82576
82577         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82578         Add a colon after each `then' in case $4 is empty.
82579
82580 1999-05-16  Jim Meyering  <meyering@ascend.com>
82581
82582         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82583
82584 1999-05-10  Jim Meyering  <meyering@ascend.com>
82585
82586         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82587
82588         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82589         AC_FUNC_MKTIME.
82590
82591 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82592
82593         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82594
82595 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82596
82597         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82598         not CPPFLAGS, so that linking works correctly in IRIX.
82599
82600 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82601
82602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82603
82604 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82605
82606         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82607         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82609         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82610         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82611
82612         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82613
82614 1999-04-20  Jim Meyering  <meyering@ascend.com>
82615
82616         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82617         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82618         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82619
82620 1999-04-18  Jim Meyering  <meyering@ascend.com>
82621
82622         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82623         * m4/jm-macros.m4: Use it.
82624
82625 1999-04-06  Jim Meyering  <meyering@ascend.com>
82626
82627         * m4/strftime.m4: Remove test for %f.
82628
82629 1999-03-29  Jim Meyering  <meyering@ascend.com>
82630
82631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82632         superset of the AC_TYPE_* checks in the textutils, fileutils,
82633         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82634         AC_TYPE_PID_T.
82635
82636 1999-03-28  Jim Meyering  <meyering@ascend.com>
82637
82638         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82639         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82640         replaced e.g., in the *.sh files of the sh-utils.
82641
82642 1999-03-20  Jim Meyering  <meyering@ascend.com>
82643
82644         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82645         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82646         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82647
82648 1999-03-19  Jim Meyering  <meyering@ascend.com>
82649
82650         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82651
82652 1999-03-12  Jim Meyering  <meyering@ascend.com>
82653
82654         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82655
82656 1999-03-07  Jim Meyering  <meyering@ascend.com>
82657
82658         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82659         declared.
82660
82661 1999-02-17  Jim Meyering  <meyering@ascend.com>
82662
82663         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82664         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82665
82666 1999-02-07  Jim Meyering  <meyering@ascend.com>
82667
82668         * m4/group-member.m4: New file -- extracted from sh-utils'
82669         configure.in.
82670
82671         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82672         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82673
82674 1999-02-06  Jim Meyering  <meyering@ascend.com>
82675
82676         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82677         * m4/fnmatch.m4: Likewise.
82678         * m4/getgroups.m4: Likewise.
82679         * m4/lstat.m4: Likewise.
82680         * m4/malloc.m4: Likewise.
82681         * m4/putenv.m4: Likewise.
82682         * m4/realloc.m4: Likewise.
82683         * m4/regex.m4: Likewise.
82684         * m4/stat.m4: Likewise.
82685         * m4/strftime.m4: Likewise.
82686         Suggestion from Alain Magloire.
82687
82688         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82689         * m4/fnmatch.m4: Likewise.
82690         * m4/getgroups.m4: Likewise.
82691         * m4/getline.m4: Likewise.
82692         * m4/lstat.m4: Likewise.
82693         * m4/malloc.m4: Likewise.
82694         * m4/memcmp.m4: Likewise.
82695         * m4/putenv.m4: Likewise.
82696         * m4/realloc.m4: Likewise.
82697         * m4/regex.m4: Likewise.
82698         * m4/stat.m4: Likewise.
82699         * m4/strftime.m4: Likewise.
82700         Suggestion from Alain Magloire.
82701
82702         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82703         an argument.
82704
82705         * m4/regex.m4: Add a run-time Test for proper operation of
82706         re_compile_pattern.
82707
82708 1999-01-31  Jim Meyering  <meyering@ascend.com>
82709
82710         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82711
82712 1999-01-30  Jim Meyering  <meyering@ascend.com>
82713
82714         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82715
82716         * m4/jm-mktime.m4: Make this a wrapper around the official
82717         AM_FUNC_MKTIME rather than my private copy, now that the official one
82718         is up to date.
82719         * m4/mktime.m4: Remove file.
82720
82721         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82722         * m4/uptime.m4: Likewise.
82723         * m4/uintmax_t.m4: Likewise.
82724
82725 1999-01-28  Jim Meyering  <meyering@ascend.com>
82726
82727         * m4/jm-macros.m4: Use jm_AFS.
82728         * m4/afs.m4: New file (from fileutils' configure.in).
82729
82730         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82731         * m4/chown.m4: Likewise.
82732         * m4/d-ino.m4: Likewise.
82733         * m4/d-type.m4: Likewise.
82734         * m4/fnmatch.m4: Likewise.
82735         * m4/getgroups.m4: Likewise.
82736         * m4/gettext.m4: Likewise.
82737         * m4/jm-mktime.m4: Likewise.
82738         * m4/jm-winsz2.m4: Likewise.
82739         * m4/lcmessage.m4: Likewise.
82740         * m4/ls-mntd-fs.m4: Likewise.
82741         * m4/malloc.m4: Likewise.
82742         * m4/memcmp.m4: Likewise.
82743         * m4/putenv.m4: Likewise.
82744         * m4/realloc.m4: Likewise.
82745         * m4/st_mtim.m4: Likewise.
82746         * m4/strftime.m4: Likewise.
82747
82748 1999-01-16  Jim Meyering  <meyering@ascend.com>
82749
82750         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82751         (ARGMATCH_DIE_DECL): Define.
82752
82753 1999-01-12  Jim Meyering  <meyering@ascend.com>
82754
82755         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82756         Reported by Lars Hecking.
82757
82758 1999-01-10  Jim Meyering  <meyering@ascend.com>
82759
82760         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82761         gross kludge.
82762         * m4/inttypes_h.m4: Likewise.
82763         * m4/lstat.m4: Likewise.
82764         * m4/malloc.m4: Likewise.
82765         * m4/readdir.m4: Likewise.
82766         * m4/realloc.m4: Likewise.
82767         * m4/st_dm_mode.m4: Likewise.
82768         * m4/stat.m4: Likewise.
82769         * m4/utimbuf.m4: Likewise.
82770         * m4/utimes.m4: Likewise.
82771
82772         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82773         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82774         comments in config.h.in are meaningful.
82775
82776         * m4/jm-macros.m4: Require autoconf-2.13 here.
82777
82778         * m4/regex.m4: By default, don't use the included regex.c on systems
82779         with glibc 2.  Suggestion from Uli Drepper.
82780
82781 1999-01-02  Jim Meyering  <meyering@ascend.com>
82782
82783         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82784
82785 1998-12-18  Jim Meyering  <meyering@ascend.com>
82786
82787         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82788         Based on a suggestion from Lars Hecking.
82789
82790 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82791
82792         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82793
82794 1998-11-16  Jim Meyering  <meyering@ascend.com>
82795
82796         * m4/lfs.m4: Double-quote the `uname...` expression.
82797
82798 1998-11-14  Jim Meyering  <meyering@ascend.com>
82799
82800         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82801         * m4/stat.m4: Likewise.
82802
82803 1998-11-03  Jim Meyering  <meyering@ascend.com>
82804
82805         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82806         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82807
82808 1998-10-18  Jim Meyering  <meyering@ascend.com>
82809
82810         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82811
82812 1998-10-17  Jim Meyering  <meyering@ascend.com>
82813
82814         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82815         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82816         calls for those previously hard-coded headers.  Instead, take a new
82817         parameter.
82818         (jm_CHECK_DECLARATIONS): Reflect interface change.
82819         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82820         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82821
82822         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82823
82824 1998-10-14  Jim Meyering  <meyering@ascend.com>
82825
82826         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82827         instead of "TZ=America/Vancouver".  From Paul Eggert.
82828
82829 1998-10-11  Jim Meyering  <meyering@ascend.com>
82830
82831         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82832         This adds a test for a recently added compatibility fix for mktime.c.
82833         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82834
82835 1998-09-27  Jim Meyering  <meyering@ascend.com>
82836
82837         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82838
82839         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82840         ../configure.in, including a change from Gordon Matzigkeit to allow
82841         cross-compiling for the Hurd.
82842
82843         * m4/glibc.m4: New file/macro to test for the GNU C Library
82844         versions 1 and 2.  From Gordon Matzigkeit.
82845         Indent.
82846
82847 1998-09-21  Jim Meyering  <meyering@ascend.com>
82848
82849         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82850
82851 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82852
82853         Port nanosecond-resolution times to UnixWare 2.1.2 and
82854         pedantic Solaris 2.6.
82855
82856         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82857         AC_STRUCT_ST_MTIM.
82858         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82859         Generate name of ns member, instead of just 1 or undef.
82860         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82861
82862 1998-08-15  Jim Meyering  <meyering@ascend.com>
82863
82864         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82865         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82866         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82867         instead of jm_TYPE_SSIZE_T.
82868
82869 1998-08-12  Jim Meyering  <meyering@ascend.com>
82870
82871         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82872
82873 1998-08-02  Jim Meyering  <meyering@ascend.com>
82874
82875         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82876         in acconfig.h manually.
82877
82878 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82879
82880         * m4/st_mtim.m4: New file.
82881
82882 1998-07-28  Jim Meyering  <meyering@ascend.com>
82883
82884         * m4/utimes.m4: Undef stat.
82885
82886 1998-07-25  Jim Meyering  <meyering@ascend.com>
82887
82888         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82889         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82890
82891 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82892
82893         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82894         uid and gid actually remain unchanged.
82895
82896 1998-07-07  Jim Meyering  <meyering@ascend.com>
82897
82898         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82899
82900 1998-07-04  Jim Meyering  <meyering@ascend.com>
82901
82902         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82903         to prove that this macro can be used in packages without regex.c.
82904
82905 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82906
82907         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82908         is to be used.
82909
82910 1998-07-03  Jim Meyering  <meyering@ascend.com>
82911
82912         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82913
82914         * m4/gettext.m4: New file -- from gettext-0.10.35.
82915         * m4/lcmessage.m4: Likewise.
82916         * m4/progtest.m4: Likewise.
82917
82918         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82919         * m4/jm-macros.m4: Require the new macro.
82920
82921 1998-06-29  Jim Meyering  <meyering@ascend.com>
82922
82923         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82924         for the definition of NGROUPS (used in a system header included
82925         by sys/mount.h).
82926
82927 1998-06-28  Jim Meyering  <meyering@ascend.com>
82928
82929         * m4/ls-mntd-fs.m4: New file.
82930         * m4/fstypename.m4: New file.
82931
82932         * m4/jm-macros.m4: Require the new macro.
82933         * m4/jm-glibc-io.m4: New file.
82934
82935 1998-05-19  Jim Meyering  <meyering@ascend.com>
82936
82937         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82938         * m4/lchown.m4: New file.
82939
82940         * m4/Makefile.am.in: New file.
82941         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82942
82943 1998-05-14  Jim Meyering  <meyering@ascend.com>
82944
82945         * m4/Makefile.am (EXTRA_DIST): Add them.
82946         * m4/jm-macros.m4: New file.
82947         * m4/utimbuf.m4: New file.
82948
82949 1998-05-12  Jim Meyering  <meyering@ascend.com>
82950
82951         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82952
82953 1998-05-11  Jim Meyering  <meyering@ascend.com>
82954
82955         * m4/isc-posix.m4: New file.
82956
82957 1998-05-10  Jim Meyering  <meyering@ascend.com>
82958
82959         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82960
82961 1998-05-09  Jim Meyering  <meyering@ascend.com>
82962
82963         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82964         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82965         with automake.
82966
82967         * m4/ssize_t.m4: New file.
82968         * m4/mktime.m4: Remove file -- the new automake has this now.
82969
82970 1998-04-26  Jim Meyering  <meyering@ascend.com>
82971
82972         * m4/assert.m4: New file.
82973         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82974
82975 1998-04-05  Jim Meyering  <meyering@ascend.com>
82976
82977         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82978         (jm_PREREQ): Use it here.
82979
82980 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82981
82982         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82983         in acconfig.h.
82984
82985 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82986
82987         * m4/prereq.m4: New file.
82988         * m4/error.m4: New file.
82989         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82990
82991 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82992
82993         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82994         cache-check for the same variable -- that defeated the purpose of
82995         the test; the test program was never run.  This was a problem only
82996         on systems with losing getline functions -- HP-UX 10.20 is one.
82997         Reported by Bjorn Helgaas.
82998
82999 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83000
83001         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83002
83003 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83004
83005         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83006
83007         * m4/const.m4: New file.  Use an initializer in this declaration
83008         typedef int charset[2]; const charset x;
83009         Reported by Bob Glickstein.
83010
83011 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83012
83013         * m4/chown.m4: Fix reversed types on -1 args to chown.
83014         From Kaveh Ghazi.
83015
83016 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83017
83018         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83019         Add lseek and memchr.
83020
83021         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83022         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83023         have a 20-character limit on names.
83024
83025 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83026
83027         * m4/inttypes_h.m4: New file.
83028         * m4/uintmax_t.m4: New file.
83029         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83030
83031
83032         -----
83033
83034         Local Variables:
83035         coding: utf-8
83036         End:
83037
83038         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83039
83040         Copying and distribution of this file, with or without
83041         modification, are permitted provided the copyright notice
83042         and this notice are preserved.